File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ on: [push, pull_request]
55jobs :
66 lint :
77 runs-on : ubuntu-latest
8+ strategy :
9+ matrix :
10+ width : [1, 4]
811 name : Linter
912 env :
1013 REPO : serv
1720 - run : sudo apt install verilator
1821 - run : pip3 install fusesoc
1922 - run : fusesoc library add $REPO $GITHUB_WORKSPACE/$REPO
20- - run : fusesoc run --target=lint $VLNV
21- - run : fusesoc run --target=lint servant
23+ - run : fusesoc run --target=lint $VLNV --W=${{ matrix.width }}
24+ - run : fusesoc run --target=lint servant --width=${{ matrix.width }}
2225 - run : fusesoc run --target=lint serving
Original file line number Diff line number Diff line change @@ -12,3 +12,8 @@ lint_off -rule UNUSED -file "*/serv_top.v" -lines 70
1212//Some bufreg signals are not used in 1-bit mode
1313lint_off -rule UNUSED -file "*/serv_bufreg.v" -lines 10
1414lint_off -rule UNUSED -file "*/serv_bufreg.v" -lines 19-21
15+
16+ //Some signals not used in 4-bit mode
17+ lint_off -rule UNUSED -file "*/serv_immdec.v" -lines 12
18+ lint_off -rule UNUSED -file "*/serv_bufreg.v" -lines 9
19+ lint_off -rule UNUSED -file "*/serv_ctrl.v" -lines 17
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ targets:
4949 default_tool : verilator
5050 description: Run static code checks (linting)
5151 filesets : [core]
52+ parameters: [W]
5253 tools:
5354 verilator:
5455 mode : lint-only
Original file line number Diff line number Diff line change @@ -470,6 +470,7 @@ targets:
470470 flow: lint
471471 flow_options:
472472 tool : verilator
473+ parameters : [width]
473474 toplevel : servant
474475
475476 lx9_microboard:
You can’t perform that action at this time.
0 commit comments