Forum Discussion
Altera_Forum
Honored Contributor
11 years agolpm_counter - connect sclr to reset
Hi, I've been looking at examples with lpm_counters but haven't found what I need exactly. I need to connect the sclr to some sort of reset. Would creating a pio suffice for this by writing 0x0...
Altera_Forum
Honored Contributor
11 years agoThanks for the reply. I might not need sclr. Basically, I have a DFF along with other logic gates connected to this counter but I'm not receiving the correct number of counts I'm expecting and the number stays at '2'. Right now I have clock, cnt_en, and q[31..0] for my counter. I originally had sclr as well but I'm getting the same results with and without it. I'm not sure where the error is but I do believe the logic gates connected to the counter are correct and the error isn't there. Maybe I'm not fully understanding the counter.
Any guidance is appreciated.