f4pga-examples/eos-s3/btn_counter.v
Tim 'mithro' Ansell 7b623cdfdf Remove the extra examples directory.
Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
2020-07-29 12:26:38 -07: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