The following waveforms show the behavior of lpm_counter megafunction for the chosen set of parameters in design lpm_counter21.tdf. The design lpm_counter21.tdf is a 8 bit dynamically controlled up/down counter. The counter has an asynchronous clear input.
The behavior of the cin input is identical to the behavior of the cnt_en input. The ports cin and cout are used to chain multiple counters together.