mirror of https://github.com/YosysHQ/yosys.git
13 lines
207 B
Plaintext
13 lines
207 B
Plaintext
|
|
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
|