Skip to content

Commit

Permalink
Add linting to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
M0stafaRady committed Feb 29, 2024
1 parent 49e252a commit b97ecba
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/uvm_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,18 @@ jobs:
with:
name: failed_tests
path: verify/uvm-python/failed_tests.tar.gz

lint: # Lint the RTL code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Lint
run: |
make lint BUS_TYPE=APB
- name: Upload lint results
if: failure()
uses: actions/upload-artifact@v2
with:
name: lint_results.log
path: verify/uvm-python/sim/lint.log


7 changes: 5 additions & 2 deletions verify/uvm-python/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
PLUSARGS += "+UVM_VERBOSITY=UVM_HIGH"
TOPLEVEL := top
MODULE ?= top_module
VERILOG_INCLUDE_DIRS = $(PWD)/IP_Utilities/rtl $(PWD)/../../hdl/rtl $(PWD)/../../hdl/rtl/bus_wrappers
VERILOG_SOURCES ?= $(PWD)/top.v $(PWD)/IP_Utilities/rtl/aucohl_lib.v $(PWD)/IP_Utilities/rtl/aucohl_rtl.vh $(PWD)/../../hdl/rtl/bus_wrappers/EF_UART_AHBL.pp.v $(PWD)/../../hdl/rtl/bus_wrappers/EF_UART_APB.pp.v $(PWD)/../../hdl/rtl/EF_UART.v
AHB_FILES ?= $(PWD)/../../hdl/rtl/bus_wrappers/EF_UART_AHBL.pp.v
APB_FILES ?= $(PWD)/../../hdl/rtl/bus_wrappers/EF_UART_APB.pp.v
WB_FILES ?= $(PWD)/../../hdl/rtl/bus_wrappers/EF_UART_wb.v
HDL_FILES ?= $(PWD)/IP_Utilities/rtl/aucohl_lib.v $(PWD)/IP_Utilities/rtl/aucohl_rtl.vh $(PWD)/../../hdl/rtl/EF_UART.v
VERILOG_SOURCES ?= $(PWD)/top.v $(AHB_FILES) $(APB_FILES) $(WB_FILES) $(HDL_FILES)
RTL_MACROS += ""
BUS_TYPE ?= APB
ifeq ($(BUS_TYPE),APB)
Expand Down

0 comments on commit b97ecba

Please sign in to comment.