yosys/tests/sim/sdffe.v

9 lines
139 B
Verilog

module sdffe( input d, clk, rst, en, output reg q );
always @( posedge clk)
if (rst)
q <= 0;
else
if (en)
q <= d;
endmodule