mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-27 01:39:23 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			35 lines
		
	
	
	
		
			618 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
	
		
			618 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| library(test) {
 | |
|   cell (dffsr_mixedpol) {
 | |
|     area : 6;
 | |
|     ff("IQ", "IQN") {
 | |
|       // look here
 | |
|       next_state : "!D";
 | |
|       clocked_on : "CLK";
 | |
|       // look here
 | |
|       clear      : "!CLEAR";
 | |
|       preset     : "PRESET";
 | |
|       clear_preset_var1 : L;
 | |
|       clear_preset_var2 : L;
 | |
|     }
 | |
|     pin(D) {
 | |
|       direction : input;
 | |
|     }
 | |
|     pin(CLK) {
 | |
|       direction : input;
 | |
|     }
 | |
|     pin(CLEAR) {
 | |
|       direction : input;
 | |
|     }
 | |
|     pin(PRESET) {
 | |
|       direction : input;
 | |
|     }
 | |
|     pin(Q) {
 | |
|       direction: output;
 | |
|       function : "IQ";
 | |
|     }
 | |
|     pin(QN) {
 | |
|       direction: output;
 | |
|       function : "IQN";
 | |
|     }
 | |
|   }
 | |
| }
 |