fix handling of multi-dimensional integer array literals (resolves #113)

This commit is contained in:
Zachary Snow
2020-07-20 16:55:55 -06:00
parent e6e62e8813
commit 7eed2fc58e
3 changed files with 27 additions and 6 deletions
+7
View File
@@ -21,4 +21,11 @@ module top;
`PRINT(H);
`PRINT(I);
end
localparam [1:0][0:1] P = '{'{default:'d1}, '{default:'d2}};
localparam bit [1:0][0:1] Q = '{'{default:'d2}, '{default:'d1}};
initial begin
$display("%b %b %b", P, P[0], P[1]);
$display("%b %b %b", Q, Q[0], Q[1]);
end
endmodule