Altera_Forum
Honored Contributor
7 years agoLPM Counter Output Resetting To Wrong Value
Hello,
I am using the lpm_counter Megafunction and I am observing incorrect behavior at the counter Q output on 20% of the FPGA design builds. In all the builds that fail, the counter output q[16] is an incorrect value of 1 after the sclr input port is released from reset when it should always be a value of 0 (like in the good builds). The counter ports used are clk, sclr, sload, data, cnt_en, and q. The sload counter input port is always a value of 0 in both the good state and failed state according to the logic analyzer. All the ports are inside the same clock domain clk80. The output failed state occurs even when there are no timing violations on the clk80 clock domain. I would really appreciate any suggests about how to fix this unexpected intermittent counter behavior. Thanks! John