15 lines
195 B
Verilog
15 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
|