mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
	
		
			206 B
		
	
	
	
		
			Systemverilog
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
	
		
			206 B
		
	
	
	
		
			Systemverilog
		
	
	
	
	
	
module top(input clk, input signed [3:0] sel_w , output reg out);
 | 
						|
 | 
						|
always @ (posedge clk)
 | 
						|
begin
 | 
						|
    case (sel_w) inside
 | 
						|
        [-4:3] : out <= 1'b1;
 | 
						|
        [4:5] : out <= 1'b0;
 | 
						|
    endcase
 | 
						|
end
 | 
						|
 | 
						|
endmodule
 |