prefix bare generate blocks with conditionals in codegen

This commit is contained in:
Zachary Snow
2021-06-17 15:27:51 -04:00
parent 404385b00f
commit 108852060e
14 changed files with 35 additions and 31 deletions
+3 -3
View File
@@ -1,16 +1,16 @@
module top;
wire x = 1;
generate
begin : f
if (1) begin : f
wire x;
begin : a
if (1) begin : a
wire x;
initial begin
$display("bar got %b", x);
end
end
assign a.x = x;
begin : b
if (1) begin : b
wire x;
initial begin
$display("bar got %b", x);