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