blob: ea8725b7b58749df2ac0d66506034245c7140287 [file] [log] [blame] [edit]
module top (
input wire clk,
input wire [7:0] sw,
output wire [7:0] led
);
localparam BITS = 8;
localparam LOG2DELAY = 28;
reg [BITS+LOG2DELAY-1:0] counter = 0;
always @(posedge clk) begin
counter <= counter + 1;
end
assign led = counter >> LOG2DELAY;
endmodule