f4pga-examples/eos-s3/btn_counter/btn_counter.v
Ryan Johnson 9b953d9f75 formatted files
Signed-off-by: Ryan Johnson <ryancj14@gmail.com>
2021-05-13 12:07:40 -06:00

13 lines
180 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