verilator/test_regress/t/t_mem_multi_ref_bad.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

39 lines
2.3 KiB
Plaintext

%Error: t/t_mem_multi_ref_bad.v:15:11: Illegal bit or array select; type does not have a bit range, or bad dimension: data type is 'logic'
: ... In instance t
15 | dimn[1:0] = 0;
| ^
%Warning-SELRANGE: t/t_mem_multi_ref_bad.v:15:11: Extracting 2 bits from only 1 bit number
: ... In instance t
15 | dimn[1:0] = 0;
| ^
... Use "/* verilator lint_off SELRANGE */" and lint_on around source to disable this message.
%Error: t/t_mem_multi_ref_bad.v:16:14: Illegal bit or array select; type does not have a bit range, or bad dimension: data type is 'logic'
: ... In instance t
16 | dim0[1][1] = 0;
| ^
%Warning-SELRANGE: t/t_mem_multi_ref_bad.v:16:14: Selection index out of range: 1:1 outside 0:0
: ... In instance t
16 | dim0[1][1] = 0;
| ^
%Error: t/t_mem_multi_ref_bad.v:17:17: Illegal bit or array select; type does not have a bit range, or bad dimension: data type is 'logic'
: ... In instance t
17 | dim1[1][1][1] = 0;
| ^
%Warning-SELRANGE: t/t_mem_multi_ref_bad.v:17:17: Selection index out of range: 1:1 outside 0:0
: ... In instance t
17 | dim1[1][1][1] = 0;
| ^
%Warning-SELRANGE: t/t_mem_multi_ref_bad.v:19:19: Selection index out of range: 1 outside 0:0
: ... In instance t
19 | dim2[0 +: 1][1] = 0;
| ^
%Error: t/t_mem_multi_ref_bad.v:23:16: Illegal bit or array select; type does not have a bit range, or bad dimension: data type is 'logic'
: ... In instance t
23 | dim0nv[1][1] = 0;
| ^
%Warning-SELRANGE: t/t_mem_multi_ref_bad.v:23:16: Selection index out of range: 1:1 outside 0:0
: ... In instance t
23 | dim0nv[1][1] = 0;
| ^
%Error: Exiting due to