Home > Power Circuits > Clock switching circuit and its precautions

Clock switching circuit and its precautions

Source: InternetPublisher:睡不醒的小壮 Keywords: Power supply other power circuits Updated: 2020/06/05

Now that we have finished talking about the clock synchronization issue, let’s start with another common situation in SOC. Sometimes, in order to consider power consumption and performance issues, a certain module may work at one frequency in one case and another in another case. If you want to work at another frequency, you need to switch the mux at this time. Some people will say, it's not that simple, just add a mux, but is this really the case?

 

Clock switching circuit and its precautions

 

As shown in the picture above, everyone will naturally think of a clock switching circuit. However, if you analyze it carefully, you will find that the circuit will have the following problems, glitches! This glitch is not a good thing for either clk0 or clk1, and it does not belong to any For a clock domain, its pulse width cannot be determined at all. The point you switch will affect the width of the glitch.

 

Clock switching circuit and its precautions

 

So how to eliminate burrs and eliminate possible problems later? See the figure below and add a feedback circuit.

 

Clock switching circuit and its precautions

 

 

Clock switching circuit and its precautions

 

The feedback is to ensure that the clock is really turned off. For example, select switches from 0 to 1, that is, selects clk1, but at this time, make sure that clk0 is completely turned off, so the 1 is fed back through the DFF of the clk0 clock domain (if it can be fed back 1 indicates that 0 has entered the DFF of the clk0 clock domain) and is ANDed with the select of the clk1 clock domain.

 

Clock switching circuit and its precautions

In addition, in order to solve the cross-clock domain problem (select is different from the clk0 and clk1 clock domains after all), 1-2 levels of DFF are usually added.

In addition, one thing to note when using these circuits is that both clks must oscillate before selecting can be performed. Otherwise, switching may cause the select to not be correctly transmitted to the last level AND gate, thus eliminating glitches. function may not work.

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号