Verilog/blinky.v
2024-04-01 10:40:00 +02:00

16 lines
346 B
Verilog

// blinky.v
// Blink the green LED with frequency 12e6/2^24 = 0.7Hz approx.
module top (clk_in, led_green_out);
input clk_in;
output led_green_out;
reg [23:0] counter;
assign led_green_out = counter[23];
assign led_red[3:0] = 4'b0;
always @ (posedge clk_in) begin
counter <= counter + 1;
end
endmodule