f4pga-examples/eos-s3/btn_counter/btn_counter.v
Kamil Rakoczy 21390ff61f Update README.md files
Signed-off-by: Kamil Rakoczy <krakoczy@antmicro.com>
2020-09-07 12:36:46 +02:00

14 lines
195 B
Verilog

module top(
input wire clk,
output wire [3:0] led
);
reg [3:0] cnt;
initial cnt <= 0;
always @(posedge clk)
cnt <= cnt + 1;
assign led = cnt;
endmodule