Skip to content

Commit 14f264b

Browse files
committed
Fix lint for QERV mode
1 parent 3c2dc51 commit 14f264b

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

.github/workflows/lint.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on: [push, pull_request]
55
jobs:
66
lint:
77
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
width: [1, 4]
811
name: Linter
912
env:
1013
REPO : serv
@@ -17,6 +20,6 @@ jobs:
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

data/verilator_waiver.vlt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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
1313
lint_off -rule UNUSED -file "*/serv_bufreg.v" -lines 10
1414
lint_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

serv.core

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

servant.core

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)