mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 19:52:31 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
	
		
			238 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
	
		
			238 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| read_verilog << EOT
 | |
| module top(...);
 | |
| 
 | |
| input [1:0] D;
 | |
| input C;
 | |
| output O;
 | |
| reg [1:0] Q;
 | |
| 
 | |
| initial Q = 0;
 | |
| 
 | |
| always @(posedge C)
 | |
|         Q <= D;
 | |
| 
 | |
| assign O = Q[1];
 | |
| 
 | |
| endmodule
 | |
| EOT
 | |
| 
 | |
| synth
 | |
| check -assert -initdrv
 | |
| 
 | |
| select -assert-count 1 a:init=2'b0x
 |