mirror of
https://github.com/verilator/verilator.git
synced 2025-01-14 18:44:02 +00:00
d6c2e2faf6
This will still warn if a case item is completely covered by previous items, but will no longer complain about overlaps like this: priority casez (foo_i) 2'b ?1: bar_o = 3'd0; 2'b 1?: bar_o = 3'd1; Before, there was a warning for the second statement because the first two patterns match 2'b11.
9 lines
491 B
Plaintext
9 lines
491 B
Plaintext
%Warning-CASEOVERLAP: t/t_priority_case.v:34:7: Case item ignored: every matching value is covered by an earlier item
|
|
34 | 2'b ?1: out1 = 3'd1;
|
|
| ^~~~~~
|
|
... Use "/* verilator lint_off CASEOVERLAP */" and lint_on around source to disable this message.
|
|
%Warning-CASEOVERLAP: t/t_priority_case.v:44:7: Case item ignored: every matching value is covered by an earlier item
|
|
44 | 2'b ?1: out1 = 3'd1;
|
|
| ^~~~~~
|
|
%Error: Exiting due to
|