2021-05-13 14:05:33 -04:00
|
|
|
module top (
|
2020-06-09 17:16:40 -04:00
|
|
|
input wire clk,
|
|
|
|
output wire [3:0] led
|
|
|
|
);
|
|
|
|
|
2021-05-13 14:05:33 -04:00
|
|
|
reg [3:0] cnt;
|
|
|
|
initial cnt <= 0;
|
2020-06-09 17:16:40 -04:00
|
|
|
|
2021-05-13 14:05:33 -04:00
|
|
|
always @(posedge clk) cnt <= cnt + 1;
|
2020-06-09 17:16:40 -04:00
|
|
|
|
2021-05-13 14:05:33 -04:00
|
|
|
assign led = cnt;
|
2020-06-09 17:16:40 -04:00
|
|
|
|
|
|
|
endmodule
|