mirror of https://github.com/YosysHQ/yosys.git
8 lines
136 B
Verilog
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
|