The following waveforms show the behavior of lpm_counter megafunction for the chosen set of parameters in design mf_count2.tdf. The design mf_count2.tdf is a 20 bit up counter. The counter has a synchronous 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.