mirror of
				https://github.com/YosysHQ/sby.git
				synced 2025-10-30 20:42:30 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			274 B
		
	
	
	
		
			Systemverilog
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			274 B
		
	
	
	
		
			Systemverilog
		
	
	
	
	
	
| module top (
 | |
| 	input clk,
 | |
| 	input [7:0] din
 | |
| );
 | |
| 	reg [31:0] state = 0;
 | |
| 
 | |
| 	always @(posedge clk) begin
 | |
| 		state <= ((state << 5) + state) ^ din;
 | |
| 	end
 | |
| 
 | |
| `ifdef FORMAL
 | |
| 	always @(posedge clk) begin
 | |
| 		cover (state == 'd 12345678);
 | |
| 		cover (state == 'h 12345678);
 | |
| 	end
 | |
| `endif
 | |
| endmodule
 |