1
0
mirror of git://projects.qi-hardware.com/nn-usb-fpga.git synced 2025-04-21 12:27:27 +03:00

Adding blink example

This commit is contained in:
Carlos Camargo
2010-04-02 20:51:59 -05:00
parent cd11f43e61
commit 34b8cb651b
3 changed files with 135 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
`timescale 1ns / 1ps
module blink(clk, reset, led);
parameter B = (7);
input clk, reset;
output led;
reg [24:0] counter;
always @(posedge clk) begin
if (reset)
counter <= {25{1'b0}};
else
counter <= counter + 1;
end
assign led = counter[24];
endmodule