mirror of
https://github.com/chipsalliance/f4pga-examples.git
synced 2025-01-03 03:43:38 -05:00
9b953d9f75
Signed-off-by: Ryan Johnson <ryancj14@gmail.com>
13 lines
180 B
Verilog
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
|