yosys/tests/sim/adff.v

8 lines
136 B
Verilog
Raw Permalink Normal View History

2022-02-15 02:35:53 -06:00
module adff( input d, clk, rst, output reg q );
always @( posedge clk, posedge rst )
if (rst)
q <= 0;
else
q <= d;
endmodule