fix partial packing of multidimensional unpacked arrays

This commit is contained in:
Zachary Snow
2021-07-05 18:20:41 -04:00
parent 5fd21ebfb0
commit 43883efa5c
3 changed files with 21 additions and 14 deletions
+6 -3
View File
@@ -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