The following waveforms show the behavior of lpm_counter megafunction for the chosen set of parameters in design lpm_counter10.tdf. The design lpm_counter10.tdf is a 3 bit up modulus 5 counter. The counter has an asynchronous clear input.
The counter counts till the modulus value 4.