yosys/tests/sim/adff.v

8 lines
136 B
Verilog

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