2020-04-14 04:23:03 +02:00
|
|
|
module top;
|
2021-07-02 05:17:08 +02:00
|
|
|
reg x = 1;
|
2020-08-09 04:43:47 +02:00
|
|
|
generate
|
2021-06-17 21:21:16 +02:00
|
|
|
if (1) begin : f
|
2020-08-09 04:43:47 +02:00
|
|
|
wire x;
|
2021-06-17 21:21:16 +02:00
|
|
|
if (1) begin : a
|
2020-08-09 04:43:47 +02:00
|
|
|
wire x;
|
|
|
|
|
initial begin
|
|
|
|
|
$display("bar got %b", x);
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
assign a.x = x;
|
2021-06-17 21:21:16 +02:00
|
|
|
if (1) begin : b
|
2020-08-09 04:43:47 +02:00
|
|
|
wire x;
|
|
|
|
|
initial begin
|
|
|
|
|
$display("bar got %b", x);
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
assign b.x = ~x;
|
|
|
|
|
end
|
|
|
|
|
assign f.x = x;
|
|
|
|
|
endgenerate
|
2020-04-14 04:23:03 +02:00
|
|
|
endmodule
|