Forum Discussion
Altera_Forum
Honored Contributor
11 years agoWhen your two clocks are synchronized in this way, you will find it a lot easier to just use the faster clock and use a clock enable signal.
Basically your have only one process, clocked with the fast clock. Instead of generating a slow clock, use the counter to generate clock enable pulses. For example if your setup used 10MHz for the fast clock and 1MHz for the slow clock, use a counter on the 10MHz clock to generate a signal that is 0 most of the time, and 1 just one out of 10 periods. This will be your slow clock enable signal. Implement your fast counter just like before, and change your slow counter to only increment when the clock enable signal is 1. It makes everything a lot easier because everything is within the same process.