What you want to do is called a Numerically Controlled "Oscillator", or NCO. It works like this...
Create a counter that can increment by values other than 1. The inputs to this counter are the master clock, and a value to count by (din). For each clock edge, count <= count + din. The number of bits in din is the same as the number of bits in the counter. The actual count value can be used for many useful things, but what you want to do is super simple.
You want to detect every time the counter rolls over, and output a pulse to your motor when that happens. Do this by taking the most significant bit of the counter and running it through a single flip-flop to delay it by one clock. Now you have two signals that I'll call MSB, and MSB_Previous. You know if the counter has rolled over because MSB=0 and MSB_Prev=1. When that condition is true, send a pulse to the motor.
To set the pulse frequency, the formula is this: pulse_rate = main_clk_freq * inc_value/2^n_bits
Where inc_value is the value that the counter is being incremented by and n_bits is the number of bits in the counter.
An important thing to note is that adding bits to the counter does not change the range of the output frequency-- that is always 0 Hz to half of main_clk_freq. But it does change the accuracy that you can generate the desired frequency. Odds are high that you won't need 32-bits for this counter, and that maybe just 10 to 16 bits will be enough.
This method of generating pulses is nice because it is super easy, the logic is small and fast, and it can often generate frequencies more accurately and with better flexibility than the type of counter+comparator design that you have in your question.
The reason why the logic is smaller is not only because you can get by with a smaller counter, but you do not have to compare the entire output of the counter. You only need the top bit. Also, comparing two large numbers in an FPGA usually requires a lot of LUTs. Comparing two 32-bit numbers would require 21 4-Input LUTs and 3 logic levels, where as the NCO design requires 1 LUT, 2 Flip-Flops, and only 1 logic level. (I'm ignoring the counter, since it is basically the same for both designs.) The NCO approach is much smaller, much faster, much simpler, and yields better results.
Update: An alternative approach to making the rollover detector is to simply send out the MSB of the counter to the motor. If you do this, the signal going to the motor will always be a 50/50 duty cycle. Choosing the best approach depends on what kind of pulse your motor needs.
Update: Here is a VHDL code snippet for doing the NCO.
signal count :std_logic_vector (15 downto 0) := (others=>'0);
signal inc :std_logic_vector (15 downto 0) := (others=>'0);
signal pulse :std_logic := '0';
. . .
process (clk)
begin
if rising_edge(clk) then
count <= count + inc;
end if;
end process;
pulse <= count(count'high);
The SoCKit board uses a Cyclone V FPGA with an embedded Hard Processor System (HPS).
Altera's Introduction to Cyclone V Hard Processor System states:
The HPS and FPGA portions of the device each have their own pins. Pins
are not freely shared between the HPS and the FPGA fabric
The SoCKit board connects with the LCD via an I2C interface which uses pins C23 & D22. Those pins are part of the HPS design and so they are not directly accessible to the FPGA fabric.
To determine if a given pin is accessible by the FPGA, or by the HPS you will need to check the pinout for your FPGA. In the case of the SoCKit design, the FPGA is in a FCSXFC6 package.
Best Answer
Make sure you have selected the proper programming hardware by clicking 'Hardware Setup...' (e.g. 'USB-Blaster').
Select the proper 'Mode' from the dropdown based on what your target board supports.
For Active Serial Programming, click 'Add File...' and select the .pof file (I think the dialog forces this). JTAG and Passive Serial modes use .sof files.
For Active Serial Programming, click 'Add Device...' to select the EPCS configuration device you're using (e.g. EPCS4).
Finally, check 'Program/Configure' checkbox and should now be able to click 'Start'.
UPDATE: Verify the USB-Blaster driver is installed; should show up as 'Altera USB-Blaster' in Device Manager when the DE2 board is on and plugged in: