Skip to content

Commit 878b8cf

Browse files
committed
Verilog: KNOWNBUG test for conversion of packed array
1 parent 1c7277f commit 878b8cf

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
KNOWNBUG
2+
array_conversion1.sv
3+
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
--
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module main;
2+
3+
// that's 4 bytes, packed
4+
wire [3:0][7:0] my_bytes = '{ 1, 2, 3, 4 };
5+
6+
// can be converted implicitly
7+
wire [63:0] my_word = my_bytes;
8+
9+
assert final(my_word == 64'h04030201);
10+
11+
endmodule

0 commit comments

Comments
 (0)