mirror of
git://projects.qi-hardware.com/nn-usb-fpga.git
synced 2025-01-09 23:30:16 +02:00
19 lines
317 B
Coq
19 lines
317 B
Coq
|
`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
|
||
|
|