1
0
mirror of synced 2026-02-21 15:07:30 +00:00
Files
YosysHQ.yosys/tests/xilinx/dffs.v
Miodrag Milanovic 36af102801 Test dffs separetely
2019-10-17 17:11:11 +02:00

16 lines
252 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