aboutsummaryrefslogtreecommitdiffstats
path: root/tests/simple/genblk_dive.v
blob: ca0c0d4a1d3a1822b97ce51e148955f1adbf1c48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
`default_nettype none
module genblk_dive_top(output wire x);
	generate
		if (1) begin : Z
			if (1) begin : A
				wire x;
				if (1) begin : B
					wire x;
					if (1) begin : C
						wire x;
						assign B.x = 0;
						wire z = A.B.C.x;
					end
					assign A.x = A.B.C.x;
				end
				assign B.C.x = B.x;
			end
		end
	endgenerate
	assign x = Z.A.x;
endmodule