Altera_Forum
Honored Contributor
11 years agoUsing Quartus to Subdivide the source clock in an EPM7128
Hi Folks,
I started a new thread for this as I originally asked in a thread (http://www.alteraforum.com/forum/showthread.php?t=45175&p=186787#post186787) about the correct syntax for the TimeQuest "Create_generated_clock" command. My original question on syntax was answered (thanks Rysc), but it was also pointed out that what I was doing was against Altera's recommended design practices, so I thought it was more appropriate to ask a different question in a fresh thread. I am very much a Quartus novice and was looking for a way to divide my source clock into a number of sub-clocks for a Z80 based system that I am building - the EPM7128S will be doing the glue logic and I hoped to be able to use it to generate the sub-clocks that I need. So, I did a bit of surfing and came across an example of using an lpm_counter to generate the clocks, without realising that it was at odds with the design guidelines. (Section 12 of the Quartus guide specifically states "To avoid glitches, do not decode the outputs of a counter or a state machine to generate clock signals". It was suggested that I use PLLs, which I think was a reference to the ALTPLL megafunction. Unfortunately, it is not implemented in the MAX CPLD. So, the questions is, how should I subdivide a 32MHZ source clock to give me glitch free output clocks of 16, 8, 4, 2 and 1 MHz? regards Dave