The following waveforms show the behavior of lpm_counter megafunction for the chosen set of parameters in design lpm_counter20.tdf. The design lpm_counter20.tdf is a 16 bit dynamically controlled up/down modulus 50000 counter. The counter has an asynchronous clear input.
The output port cout will be asserted at the completion of count sequence. The ports cin and cout are used to chain multiple counters together.