allow dimension shorthand for instance arrays

This commit is contained in:
Zachary Snow
2020-06-17 22:26:27 -04:00
parent 3cfd368bc2
commit 64f3067d78
2 changed files with 7 additions and 5 deletions
+5 -5
View File
@@ -4,11 +4,11 @@ module Example;
endmodule
module top;
Example e[2:0][4:5]();
defparam e[0][5].FOO = 1;
defparam e[0][4].FOO = 2;
Example e[3][4:5]();
defparam e[2][5].FOO = 1;
defparam e[2][4].FOO = 2;
defparam e[1][5].FOO = 4;
defparam e[1][4].FOO = 8;
defparam e[2][5].FOO = 16;
defparam e[2][4].FOO = 32;
defparam e[0][5].FOO = 16;
defparam e[0][4].FOO = 32;
endmodule