Clock switching circuit and its precautions
Source: InternetPublisher:拳制龙 Keywords: Power supply DC/DC frequency Updated: 2020/08/01
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?
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.
So how to eliminate burrs and eliminate possible problems later? See the figure below and add a feedback circuit.
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 it is necessary to ensure that clk0 is completely turned off, so the 1 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.
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 not to be correctly transmitted to the last level AND gate, thus eliminating glitches. function may not work.
- In-depth analysis of DC-AC converter inverter
- Brief Analysis of the Working Principle of AC Voltage Stabilizer Circuit
- Recommended circuits for different power on times of LM4911
- Parallel DC regulated power supply circuit diagram
- Current/voltage conversion circuit using current converter
- Using CW34603 to form a circuit to change the polarity of the output power supply
- Dual forward converter schematic diagram
- Boost drive circuit composed of RT8450
- LM317 regulated power supply
- A low-cost, high-reliability battery charger for electric vehicles
- Basic form circuit diagram of voltage feedback of two-stage amplifier circuit
- Control circuit diagram of demagnetization switch using CD2-G type
- Control circuit diagram of demagnetization switch using CD2-G type
- Automatic voltage adjustment circuit of compound-excited DC motor
- Photoelectric control switch circuit
- Circuit design of automatic street light controller using power switch TWH875
- Power supply circuit design optimized for digital light projectors
- Dual adjustable power circuit
- 2-phase CPU power circuit using HIP6301 and HIP6601 chips
- FGDF-3 three-phase low-temperature iron-plated power supply circuit