Altera_Forum
Honored Contributor
18 years agocascade of 2 counters
Hi all,
sorry to post a so simple question but I'm blocked on this and I don't know how to solve it: I have a custom board with a Stratix II GX on it (S2GX), a 40 Mhz clock provided to it and 12 leds. The arriving clock is fed to a PLL which outputs a "clear" 40 Mhz freq. (this I have to do for another reason, but I have to) My aim is to light up 1 led / second, after 12 sec have all the leds turned on. I thought to do it with 2 cascaded counters: the first counts up to 40.000.000 (clk freq), its carry_out signal is the clock for the second counter, which counts up to 12. The value of this second counter is the control signal for my leds. For both the counters I used the LPM_Counter megafunction. When I run analysis and synth everything is ok, but with full compilation I get a critical warning: Critical Warning: Timing requirements for slow timing model timing analysis were not met. See Report window for details. and I can see a negative slack time on the summary of the timing analyzer for PLL's Clock hold. I don't know if it's a good idea to post code, owing to my use of the megafunctions, in case I can do it. Anyway, any idea / suggestion / help would be REALLY appreciated, thanks since now, C.