Commit 4b3b09d2 by Zachary Snow

allow extraneous semicolons in generate blocks

parent 88c401e8
......@@ -1227,6 +1227,7 @@ GenItemOrNull :: { GenItem }
GenItems :: { [GenItem] }
: {- empty -} { [] }
| GenItems ";" { $1 }
| GenItems GenItem { $1 ++ [$2] }
GenItem :: { GenItem }
......
......@@ -66,6 +66,7 @@ module top;
logic [0:31] c;
generate
;
for (genvar n = 0; n < 32; n = n + 1)
assign c[n] = n & 1;
endgenerate
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment