Altera_Forum
Honored Contributor
16 years agoQuestions regading PLL, phase aligned clocks and synchronization of reset
*** PLL phase aligned clocks:
------------------------------ I Am using PLL in my design, The input to PLL is 80 Mhz clock, PLL generates phase aligned slow clock of 40Mhz. Farther in the design I use this 40 Mhz clock along with 80 Mhz as if there is only one clock domain, no synchronization. I assum that since the clocks are phase aligned, no synchronization needed Here is My First question: Is it OK? I have doubts, may be it's better to generate two clocks out of 80Mhz, 40Mhz and 80 Mhz so all clock will be same "nature", than to use one PLL generated clock (40Mhz) and one external (80 Mhz), what do you think? *** Synchroniztion of reset to PLL generated Clock: ----------------------------------------------------- As before, I have PLL that generates 40 Mhz phased aligned clock out of 80 Mhz clock, The design is feed by single asynchronous logic reset. Usually, In the design that do not involves PLL, I synchronize the reset before it is used in the design I synchronize it in the following way: - the reset activation is asynchronous - the negation is synchronous to clock. The aim of this synchronization is to insure that when the design exits out of reset all modules in the design start working the same clock. When PLL is used some complications appear... To what clock should I syncronize the negation? PLL receives the reset as is, before the synchronization. As before, I wish to insure, that all the design starts working the same clock after reset negation. How do I achive this, baring in mind that In side the design I Use clock generated in PLL? Is it safe to synchronize reset negation to the ouput of PLL clock? I have doubts because, I don't quite sure what happens with 40 Mhz clock after power reset 1) When does PLL start generation of 40 Mhz clock ? Is it only after negation of logic reset, or right after power reset? If it goes it only after logic reset, then at the first moment after negation of the reset, the clock of 40 Mhz is not well defined, abviously it is not save to synchronize the reset to it. 2) May be, the design should use reset that is "anded" with not(locked flag) and then be synchronized to 40 Mhz clock . [locked flag is flag that PLL rises when it finishes the clock generation]? Thak you, feel free to share your thoughts ! Greg.