mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-30 19:22:31 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			240 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			240 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| read_verilog -icells << EOT
 | |
| module top(...);
 | |
| 
 | |
| input [1:0] D;
 | |
| input C, R;
 | |
| output [1:0] Q;
 | |
| 
 | |
| always @(posedge C, posedge R)
 | |
|   if (R)
 | |
|     Q <= 0;
 | |
|   else
 | |
|     Q <= D;
 | |
| 
 | |
| endmodule
 | |
| EOT
 | |
| 
 | |
| proc
 | |
| 
 | |
| #equiv_opt -assert -async2sync techmap -map +/adff2dff.v
 |