mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	Wrap initial blocks with a NO_INIT so that tests for archs without register initialization feature don't fail.
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			258 B
		
	
	
	
		
			Verilog
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			258 B
		
	
	
	
		
			Verilog
		
	
	
	
	
	
module top(out, clk, in);
 | 
						|
    output [7:0] out;
 | 
						|
    input signed clk, in;
 | 
						|
    reg signed [7:0] out;
 | 
						|
 | 
						|
`ifndef NO_INIT
 | 
						|
    initial begin
 | 
						|
        out = 0;
 | 
						|
    end
 | 
						|
`endif
 | 
						|
 | 
						|
    always @(posedge clk)
 | 
						|
	begin
 | 
						|
		out    <= out >> 1;
 | 
						|
		out[7] <= in;
 | 
						|
	end    
 | 
						|
endmodule
 |