mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	The recent fix for case expression width detection causes the width of the expressions to be queried before they are simplified. Because the logic supporting module scope identifiers only existed in simplify, looking them up would fail during width detection. This moves the logic to a common helper used in both simplify() and detectSignWidthWorker().
		
			
				
	
	
		
			11 lines
		
	
	
	
		
			135 B
		
	
	
	
		
			Verilog
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
	
		
			135 B
		
	
	
	
		
			Verilog
		
	
	
	
	
	
module top(
 | 
						|
	input wire x,
 | 
						|
	output reg y
 | 
						|
);
 | 
						|
	always @* begin
 | 
						|
		case (top.x)
 | 
						|
			1: top.y = 0;
 | 
						|
			0: top.y = 1;
 | 
						|
		endcase
 | 
						|
	end
 | 
						|
endmodule
 |