I have got FPGA development board (Cyclone II EP2C20F484C7) and am trying to implement a simple counter program as shown below (and maybe link it to the LEDs).
module counter (clk, reset, enable, count); input clk, reset, enable; output [3:0] count; reg [3:0] count; always @ (posedge clk) if (reset == 1'b1) begin count <= 0; end else if ( enable == 1'b1) begin count <= count + 1'b1; end endmodule
I have simulated it on ModelSim and it works fine but complied and Synthesized it using Quatrus II for some reason the FPGA board isnt detected when I try to program it.
Any suggestions on changes I might have to make in the code above inorder to get the required output? Or is there something i am doing wrong here?