Introduction - If you have any usage issues, please Google them yourself
-- This example implements a behavioral counter with load, clear, and up/down features.
-- It has not been optimized for a particular device architecture, so performance may vary.
Altera recommends using the lpm_counter function to implement a counter (see VHDL: Down Counter).
This example is provided to show counter implementation that does not require the LPM.