Files

24 lines
536 B
Verilog
Raw Permalink Normal View History

2020-04-13 22:23:03 -04:00
module top;
reg x = 1;
2020-08-08 20:43:47 -06:00
generate
if (1) begin : f
2020-08-08 20:43:47 -06:00
wire x;
if (1) begin : a
2020-08-08 20:43:47 -06:00
wire x;
initial begin
$display("bar got %b", x);
end
end
assign a.x = x;
if (1) begin : b
2020-08-08 20:43:47 -06:00
wire x;
initial begin
$display("bar got %b", x);
end
end
assign b.x = ~x;
end
assign f.x = x;
endgenerate
2020-04-13 22:23:03 -04:00
endmodule