1
0
mirror of git://projects.qi-hardware.com/nn-usb-fpga.git synced 2025-01-09 19:40:15 +02:00
nn-usb-fpga/Examples/blink/logic/blink.v

17 lines
292 B
Coq
Raw Normal View History

2010-04-03 04:51:59 +03:00
`timescale 1ns / 1ps
module blink(clk, reset, led);
input clk, reset;
output led;
reg [24:0] counter;
always @(posedge clk) begin
if (~reset)
2010-04-03 04:51:59 +03:00
counter <= {25{1'b0}};
else
counter <= counter + 1;
end
assign led = counter[24];
endmodule