1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-02-07 17:01:35 +00:00
Files
YosysHQ.nextpnr/fpga_interchange/examples/ff/ff.v
2021-02-23 14:09:28 -08:00

12 lines
153 B
Verilog

module top(input clk, input d, input r, output reg q);
always @(posedge clk)
begin
if(r)
q <= 1'b0;
else
q <= d;
end
endmodule