mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
	
		
			293 B
		
	
	
	
		
			Verilog
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			293 B
		
	
	
	
		
			Verilog
		
	
	
	
	
	
| `default_nettype none
 | |
| module genblk_order_top(
 | |
| 	output wire out1,
 | |
| 	output wire out2
 | |
| );
 | |
| 	generate
 | |
| 		if (1) begin : outer
 | |
| 			if (1) begin : foo
 | |
| 				wire x = 0;
 | |
| 				if (1) begin : foo
 | |
| 					wire x = 1;
 | |
| 					assign out1 = foo.x;
 | |
| 				end
 | |
| 				assign out2 = foo.x;
 | |
| 			end
 | |
| 		end
 | |
| 	endgenerate
 | |
| endmodule
 |