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