mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +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
 |