Fix lint for QERV mode

This commit is contained in:
Olof Kindgren 2025-05-11 19:30:54 +02:00
parent 3c2dc51969
commit a72c1e8737
4 changed files with 12 additions and 2 deletions

View file

@ -5,6 +5,9 @@ on: [push, pull_request]
jobs: jobs:
lint: lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
width: [1, 4]
name: Linter name: Linter
env: env:
REPO : serv REPO : serv
@ -17,6 +20,6 @@ jobs:
- run: sudo apt install verilator - run: sudo apt install verilator
- run: pip3 install fusesoc - run: pip3 install fusesoc
- run: fusesoc library add $REPO $GITHUB_WORKSPACE/$REPO - run: fusesoc library add $REPO $GITHUB_WORKSPACE/$REPO
- run: fusesoc run --target=lint $VLNV - run: fusesoc run --target=lint $VLNV --W=${{ matrix.width }}
- run: fusesoc run --target=lint servant - run: fusesoc run --target=lint servant --width=${{ matrix.width }}
- run: fusesoc run --target=lint serving - run: fusesoc run --target=lint serving

View file

@ -12,3 +12,8 @@ lint_off -rule UNUSED -file "*/serv_top.v" -lines 70
//Some bufreg signals are not used in 1-bit mode //Some bufreg signals are not used in 1-bit mode
lint_off -rule UNUSED -file "*/serv_bufreg.v" -lines 10 lint_off -rule UNUSED -file "*/serv_bufreg.v" -lines 10
lint_off -rule UNUSED -file "*/serv_bufreg.v" -lines 19-21 lint_off -rule UNUSED -file "*/serv_bufreg.v" -lines 19-21
//Some signals not used in 4-bit mode
lint_off -rule UNUSED -file "*/serv_immdec.v" -lines 12
lint_off -rule UNUSED -file "*/serv_bufreg.v" -lines 9
lint_off -rule UNUSED -file "*/serv_ctrl.v" -lines 17

View file

@ -49,6 +49,7 @@ targets:
default_tool : verilator default_tool : verilator
description: Run static code checks (linting) description: Run static code checks (linting)
filesets : [core] filesets : [core]
parameters: [W]
tools: tools:
verilator: verilator:
mode : lint-only mode : lint-only

View file

@ -470,6 +470,7 @@ targets:
flow: lint flow: lint
flow_options: flow_options:
tool : verilator tool : verilator
parameters : [width]
toplevel : servant toplevel : servant
lx9_microboard: lx9_microboard: