support module "list of param assignments" shorthand

This commit is contained in:
Zachary Snow
2019-09-17 19:48:08 -04:00
parent bdafb60dec
commit 512d4b1a7f
3 changed files with 26 additions and 2 deletions
+9
View File
@@ -0,0 +1,9 @@
module top #(FOO = 10);
initial $display(FOO);
endmodule
module top2 #(FOO = 10, BAR = 11);
initial $display(FOO, BAR);
endmodule
module top3 #(FOO = 10, BAR = 11, parameter BAZ = 12);
initial $display(FOO, BAR, BAZ);
endmodule
+9
View File
@@ -0,0 +1,9 @@
module top #(parameter FOO = 10);
initial $display(FOO);
endmodule
module top2 #(parameter FOO = 10, parameter BAR = 11);
initial $display(FOO, BAR);
endmodule
module top3 #(parameter FOO = 10, parameter BAR = 11, parameter BAZ = 12);
initial $display(FOO, BAR, BAZ);
endmodule