verilator/test_regress/t/t_select_bad_msb.out
Pierre-Henri Horrein 3c849d7ce0
Generate SELRANGE instead of errors for potentially unreachable code (#2625) (#2754)
When using a "if" statement inside an always block, part of the code may
be unreachable. This can be used to avoid errors, but it generated an
error, this commit demotes this to a warning. Partly fixes #2625.
2021-01-15 07:31:48 -05:00

11 lines
597 B
Plaintext

%Warning-LITENDIAN: t/t_select_bad_msb.v:12:8: Little bit endian vector: left < right of bit range: [0:22]
: ... In instance t
12 | reg [0:22] backwd;
| ^
... Use "/* verilator lint_off LITENDIAN */" and lint_on around source to disable this message.
%Warning-SELRANGE: t/t_select_bad_msb.v:16:16: [1:4] Range extract has backward bit ordering, perhaps you wanted [4:1]
: ... In instance t
16 | sel2 = mi[1:4];
| ^
%Error: Exiting due to