mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
	
		
			358 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
	
		
			358 B
		
	
	
	
		
			Text
		
	
	
	
	
	
// Test library for different DFF function expressions
 | 
						|
 | 
						|
library(dff) {
 | 
						|
  cell (dff) {
 | 
						|
    area : 1;
 | 
						|
    ff("IQ", "IQN") {
 | 
						|
      next_state : "(D)";
 | 
						|
      clocked_on : "CLK";
 | 
						|
    } 
 | 
						|
    pin(D) {
 | 
						|
      direction : input;
 | 
						|
    }
 | 
						|
    pin(CLK) {
 | 
						|
      direction : input;
 | 
						|
    }
 | 
						|
    pin(Q) {
 | 
						|
      direction: output;
 | 
						|
      function : "IQ";   
 | 
						|
    }
 | 
						|
  }
 | 
						|
 | 
						|
} /* end */
 |