# Pastebin cvhB2Cr7 /* Binary counter displayed on LEDs (the 4 green ones on the right). * Changes value about once a second. */ module top ( input inclk, output LED2, output LED3, output LED4, output LED5 ); wire clk; SB_GB_IO #(.PIN_TYPE(6'b000001)) gb_io_inst (.PACKAGE_PIN(inclk), .D_IN_0(), .GLOBAL_BUFFER_OUTPUT(clk)); localparam BITS = 4; localparam LOG2DELAY = 22; reg [BITS+LOG2DELAY-1:0] counter = 0; reg [BITS-1:0] outcnt; always @(posedge clk) begin counter <= counter + 1; outcnt <= counter >> LOG2DELAY; end assign {LED2, LED3, LED4, LED5} = outcnt; endmodule