1
0
mirror of synced 2026-01-24 19:42:18 +00:00
2019-10-18 12:50:24 +02:00

14 lines
262 B
Verilog

module dff ( input d, clk, output reg q );
always @( posedge clk )
q <= d;
endmodule
module dffe( input d, clk, en, output reg q );
initial begin
q = 0;
end
always @( posedge clk )
if ( en )
q <= d;
endmodule