1
0
mirror of https://github.com/mist-devel/mist-board.git synced 2026-01-20 17:38:20 +00:00
2015-09-21 12:19:40 +02:00

23 lines
293 B
Verilog

module led(
input CLOCK_27,
output reg LED
);
reg [31:0] counter;
reg clk;
always@(posedge CLOCK_27) begin
if (counter > 6750000) begin
counter <= 0;
clk <= !clk;
end
else
counter <= counter + 32'd1;
end
always@(posedge clk) begin
LED <= !LED;
end
endmodule