Add test with mismatched size
Signed-off-by: Ryszard Rozak <rrozak@antmicro.com>
This commit is contained in:
parent
5bb071811d
commit
e06bbde927
|
|
@ -14,4 +14,8 @@
|
|||
: ... note: In instance 't'
|
||||
17 | stream = {>>{packed_data2}};
|
||||
| ^
|
||||
%Warning-WIDTHEXPAND: t/t_stream_unpack_narrower.v:18:24: Stream target requires 61 bits, but source expression only provides 32 bits (IEEE 1800-2023 11.4.14.3)
|
||||
: ... note: In instance 't'
|
||||
18 | {>>{packed_data2}} = stream;
|
||||
| ^
|
||||
%Error: Exiting due to
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ module t;
|
|||
{>>{stream}} = packed_data;
|
||||
packed_data = {>>{stream}};
|
||||
stream = {>>{packed_data2}};
|
||||
{>>{packed_data2}} = stream;
|
||||
end
|
||||
|
||||
endmodule
|
||||
|
|
|
|||
Loading…
Reference in New Issue