mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 13:29:12 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
	
		
			272 B
		
	
	
	
		
			Systemverilog
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			272 B
		
	
	
	
		
			Systemverilog
		
	
	
	
	
	
module top (
 | 
						|
  input clk, rst,
 | 
						|
  output reg [3:0] cnt
 | 
						|
);
 | 
						|
  initial cnt = 0;
 | 
						|
 | 
						|
  always @(posedge clk) begin
 | 
						|
    if (rst)
 | 
						|
      cnt <= 0;
 | 
						|
    else
 | 
						|
      cnt <= cnt + 4'd 1;
 | 
						|
  end
 | 
						|
 | 
						|
  always @(posedge clk) begin
 | 
						|
    assume (cnt != 10);
 | 
						|
    assert (cnt != 15);
 | 
						|
  end
 | 
						|
endmodule
 |