mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
	
		
			235 B
		
	
	
	
		
			Verilog
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
	
		
			235 B
		
	
	
	
		
			Verilog
		
	
	
	
	
	
module main(input clk);
 | 
						|
	reg [3:0] counter = 0;
 | 
						|
	always @(posedge clk) begin
 | 
						|
		if (counter == 10)
 | 
						|
			counter <= 0;
 | 
						|
		else
 | 
						|
			counter <= counter + 1;
 | 
						|
	end
 | 
						|
	assert property (counter != 15);
 | 
						|
	// assert property (counter <= 10);
 | 
						|
endmodule
 |