1
0
mirror of synced 2026-01-25 11:56:22 +00:00
Files
YosysHQ.yosys/tests/asicworld/code_verilog_tutorial_flip_flop.v
Clifford Wolf 7764d0ba1d initial import
2013-01-05 11:13:26 +01:00

16 lines
205 B
Verilog

module flif_flop (clk,reset, q, d);
input clk, reset, d;
output q;
reg q;
always @ (posedge clk )
begin
if (reset == 1) begin
q <= 0;
end else begin
q <= d;
end
end
endmodule