Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions regression/verilog/arrays/array_conversion1.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
KNOWNBUG
array_conversion1.sv

^EXIT=0$
^SIGNAL=0$
--
--
This yields a type checking error.
11 changes: 11 additions & 0 deletions regression/verilog/arrays/array_conversion1.sv
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module main;

// that's 4 bytes, packed
wire [3:0][7:0] my_bytes = '{ 1, 2, 3, 4 };

// can be converted implicitly
wire [63:0] my_word = my_bytes;

assert final(my_word == 64'h04030201);

endmodule
Loading