mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
	
		
			165 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
	
		
			165 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| module DFF (D, CK, Q);
 | |
|   reg IQ, IQN;
 | |
|   input D;
 | |
|   input CK;
 | |
|   output Q;
 | |
|   always @(posedge CK) begin
 | |
|       // "D"
 | |
|       IQ <= D;
 | |
|       IQN <= ~(D);
 | |
|   end
 | |
| endmodule
 |