mirror of
https://github.com/chipsalliance/f4pga-examples.git
synced 2025-01-03 03:43:38 -05:00
7b623cdfdf
Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
14 lines
195 B
Verilog
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
|