forked from github/verilator
dc90e6c3c3
This adds the flag --generate-waivefile <filename>. This will generate a verilator config file with the proper lint_off statemens to turn off warnings emitted during this particular run. This feature can be used to start with using Verilator as linter and systematically capture all known lint warning for further elimination. It hopefully helps people turning of -Wno-fatal or -Wno-lint and gradually improve their code base. Signed-off-by: Stefan Wallentowitz <stefan.wallentowitz@hm.edu>
14 lines
581 B
Plaintext
14 lines
581 B
Plaintext
// DESCRIPTION: Verilator output: Waivers generated with --waiver-output
|
|
|
|
`verilator_config
|
|
|
|
// Below you find suggested waivers. You have three options:
|
|
// 1. Fix the reason for the linter warning
|
|
// 2. Keep the waiver permanently if you are sure this is okay
|
|
// 3. Keep the waiver temporarily to suppress the output
|
|
|
|
// lint_off -rule WIDTH -file "*t/t_waiveroutput.v" -match "Operator ASSIGN expects 1 bits on the Assign RHS, but Assign RHS's CONST '2'h3' generates 2 bits."
|
|
|
|
// lint_off -rule UNUSED -file "*t/t_waiveroutput.v" -match "Signal is not used: 'width_warn'"
|
|
|