The following waveforms show the behavior of lpm_counter megafunction for the chosen set of parameters in design lpm_counter0.tdf. The design lpm_counter0.tdf is a 4 bit dynamically controlled up/down modulus 12 counter.
The counter counts till the modulus value 11.