mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			207 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			207 B
		
	
	
	
		
			Text
		
	
	
	
	
	
module dff (D, CLK, Q);
 | 
						|
  reg "IQ", "IQN";
 | 
						|
  input D;
 | 
						|
  input CLK;
 | 
						|
  output Q;
 | 
						|
  assign Q = IQ; // "IQ"
 | 
						|
  always @(posedge CLK) begin
 | 
						|
      // "(D)"
 | 
						|
      "IQ" <= (D);
 | 
						|
      "IQN" <= ~((D));
 | 
						|
  end
 | 
						|
endmodule
 |