1
0
mirror of synced 2026-01-19 17:48:54 +00:00
YosysHQ.yosys/tests/asicworld/code_verilog_tutorial_d_ff.v
2013-01-05 11:13:26 +01:00

15 lines
185 B
Verilog

// D flip-flop Code
module d_ff ( d, clk, q, q_bar);
input d ,clk;
output q, q_bar;
wire d ,clk;
reg q, q_bar;
always @ (posedge clk)
begin
q <= d;
q_bar <= !d;
end
endmodule