mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			227 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			227 B
		
	
	
	
		
			Text
		
	
	
	
	
	
read_verilog -sv <<EOF
 | 
						|
module top;
 | 
						|
logic [4:0] x;
 | 
						|
logic z;
 | 
						|
assign z = 1'b1;
 | 
						|
always_comb begin : foo
 | 
						|
    x = '0;
 | 
						|
    if (z) begin : bar
 | 
						|
        for (int i = 0; i < 5; i++)
 | 
						|
            x[i] = 1'b1;
 | 
						|
    end
 | 
						|
end
 | 
						|
endmodule
 | 
						|
EOF
 | 
						|
proc
 |