mirror of
https://github.com/zachjs/sv2v.git
synced 2026-08-31 09:44:27 +02:00
fix partial packing of multidimensional unpacked arrays
This commit is contained in:
@@ -11,8 +11,11 @@ module top;
|
||||
wire [7:0] out1, out2;
|
||||
example e1(arr1[0], out1);
|
||||
example e2(arr2[0][0], out2);
|
||||
initial begin
|
||||
#1 arr1[0] = 8'hAD;
|
||||
#1 arr2[0][0] = 8'h42;
|
||||
initial begin : blk
|
||||
integer i;
|
||||
for (i = 0; i < 8; i = i + 1) begin
|
||||
#1 arr1[0][i] = (8'hAD >> i) & 1'b1;
|
||||
#1 arr2[0][0][i] = (8'h42 >> i) & 1'b1;
|
||||
end
|
||||
end
|
||||
endmodule
|
||||
|
||||
Reference in New Issue
Block a user