Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

Using LPM_COUNTER carry out to stop wraparound

I need to stop and up/down counter (implemented using LPM_COUNTER) from overflowing. The documentation doesn't really describe the behaviour of the carry out port, so can anyone tell me if ANDing the carry out in to the cnt_en input will do this for me? I'm worried that it will lock up at max or zero even when I change direction to count away from the overflow.

12 Replies