

module signaltap_demo(

      input  wire		CLOCK0_50,
      input				push_button, //Low-Active
      output reg [3:0]	LED // Low-Active
);



(* keep *) 	reg [31:0] counter = 0;
(* keep *) 	reg [3:0] manual_count = 0;
				reg push_button_prev;
				reg [1:0] led_index = 0;
				
always @(*) begin
case (led_index)
2'd0: LED = 4'b1110;
2'd1: LED = 4'b1101;
2'd2: LED = 4'b1011;
2'd3: LED = 4'b0111;
default: LED = 4'b1111;
endcase
end
				
				

always @(posedge CLOCK0_50) begin
    if (counter >= 25_000_000 - 1) begin
        counter <= 0;
		  led_index <= led_index + 1;
    end else begin
        counter <= counter + 1;

    end
    end


always @(posedge CLOCK0_50) begin

if (push_button_prev == 1'b1 && push_button == 1'b0) begin
manual_count <= manual_count + 1;
end
push_button_prev <= push_button;
end


endmodule
