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
@@ -19,4 +19,11 @@ module top;
$display("%b %2d %2d", H, $bits(H), 8);
$display("%b %2d %2d", I, $bits(I), 1);
end
localparam [3:0] P = 4'b1100;
localparam [3:0] Q = 4'b0011;
initial begin
$display("%b %b %b", P, P[1:0], P[3:2]);
$display("%b %b %b", Q, Q[1:0], Q[3:2]);
end
endmodule