Added base GOWIN eda script

This commit is contained in:
2023-10-14 20:30:45 +02:00
parent da27f38f0f
commit 84695d44b4
7 changed files with 198 additions and 1 deletions

View File

@ -0,0 +1,23 @@
module led_blink
(
input clk_i,
input reset_n_i,
output led_o
);
reg [23:0] counter;
reg polarity;
always@(posedge clk_i) begin
if (!reset_n_i)
counter <= 24'h00000;
else
counter <= counter + 1'b1;
if (counter == 24'hFFFFF)
polarity <= ~polarity;
end
assign led_o = polarity;
endmodule