CN2669486Y - Multi-clock frequency changing circuit - Google Patents

Multi-clock frequency changing circuit Download PDF

Info

Publication number
CN2669486Y
CN2669486Y CNU2003201225743U CN200320122574U CN2669486Y CN 2669486 Y CN2669486 Y CN 2669486Y CN U2003201225743 U CNU2003201225743 U CN U2003201225743U CN 200320122574 U CN200320122574 U CN 200320122574U CN 2669486 Y CN2669486 Y CN 2669486Y
Authority
CN
China
Prior art keywords
clock
type flip
flip flop
output
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
CNU2003201225743U
Other languages
Chinese (zh)
Inventor
彬 王
王彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Huahong Integrated Circuit Co Ltd
Original Assignee
Shanghai Huahong Integrated Circuit Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Huahong Integrated Circuit Co Ltd filed Critical Shanghai Huahong Integrated Circuit Co Ltd
Priority to CNU2003201225743U priority Critical patent/CN2669486Y/en
Application granted granted Critical
Publication of CN2669486Y publication Critical patent/CN2669486Y/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

The utility model discloses a multi-clock frequency changing circuit, aiming to provide a changing circuit which can implement seamless transition in different clock frequency. The utility model comprises a clock synchronizer and a clock gating circuit; the clock synchronizer is composed of a D flip-flop which respectively synchronizes the inceptive clock and the destination clock; the gating circuit comprises two or gates and one and gate, making the same clock only output one path clock signal and isolating the original all the time, so the desired clock is created ultimately.

Description

Clock frequency switching circuit for a long time
Technical field
The utility model relates to a kind of commutation circuit of the frequency of clock for a long time, in particular, relates to Circuits System seamlessly switches to another kind of operating frequency from a kind of operating frequency commutation circuit structure.
Background technology
At present, in many application, particularly in the portable use, often need under multiple clock frequency, switch.For example, when adopting powered battery, make circuit working under lower frequency, thereby reduce power consumption.
But there is following problem in the present commutation circuit of clock for a long time when carrying out the clock switching:
1. be easy to generate metastable state, cause circuit state uncertain.When a kind of clock frequency switches to another clock frequency, if these two kinds of clocks are non-homogeneous clocks, cause trigger to be in metastable state easily, thereby make circuit be in unpredictable state, thereby reduce the fail safe of circuit, and cause function to be made mistakes.
2. when carrying out the clock switching, can produce burr on clock signal, this burr also can cause the reduction of fail safe and circuit function to be made mistakes.
The drawback of poor stability, the poor stability when deficiency on these prior aries has caused clock to switch.
The utility model content
The purpose of this utility model is the above-mentioned deficiency at prior art, proposes a kind of commutation circuit that can realize seamless transitions under the different clock frequencies.
Above-mentioned purpose of the present utility model is achieved through the following technical solutions: comprise clock synchronizer and clock gating circuit; Described clock synchronizer is made of d type flip flop, and initial clock and target clock are carried out respectively synchronously; Clock clk1 imports the clock end of described d type flip flop 1 and the clock end of described d type flip flop 3 respectively; Clock clk2 imports the clock end of described d type flip flop 2 and the clock end of described d type flip flop 4 respectively; The D end input control switching signal of described d type flip flop 1, the S end links to each other with the output Q3 of d type flip flop 3, and output Q1 links to each other with the D end of d type flip flop 4 after anti-phase; The D of described d type flip flop 2 end is provided with not gate 10, makes the control switching signal of D end input after anti-phase, and the S end links to each other with the output Q4 of d type flip flop 4, and output Q2 holds with the D of d type flip flop 3 after anti-phase and links to each other; Between the D of the output Q1 of described d type flip flop 1 and described d type flip flop 4 end, be provided with not gate 8; Between the D of the output Q2 of described d type flip flop 2 and described d type flip flop 3 end, be provided with not gate 9; Described gating circuit comprises 2 or 5,6 and one and door 7, makes same clock can only export one tunnel clock signal, with original isolating all the time, finally generates required clock; Described or door 5 with the output signal of described d type flip flop 1 and clock clk1 mutually or; Described or door 6 with the output signal of described d type flip flop 2 and clock clk2 mutually or; Described and door 7 will be described or the output signal of door 5,6 and back export clock signal clk_out after the switching.
Compare with prior art, the utlity model has following beneficial effect: no matter solved the switching problem under the multiple clock frequency, still be non-homogeneous clock for the homology clock, can switch easily, eliminate sub state, filtered burr, increased stability and fail safe.
Description of drawings
Fig. 1 is the circuit theory diagrams of the utility model double-interface card Working mode switching method.
Embodiment
Below in conjunction with drawings and Examples the utility model is further described.
As shown in Figure 1, clock clk1 imports the clock end of d type flip flop 1 and the clock end of d type flip flop 3 respectively; Clock clk2 imports the clock end of d type flip flop 2 and the clock end of d type flip flop 4 respectively; The D end input control switching signal of d type flip flop 1, the S end links to each other with the output Q3 of d type flip flop 3, and output Q1 links to each other with the D end of d type flip flop 4 after anti-phase; The D of d type flip flop 2 end is provided with not gate 10, makes the control switching signal of D end input after anti-phase, and the S end links to each other with the output Q4 of d type flip flop 4, and output Q2 holds with the D of d type flip flop 3 after anti-phase and links to each other; Between the D of the output Q1 of d type flip flop 1 and d type flip flop 4 end, be provided with not gate 8; Between the D of the output Q2 of d type flip flop 2 and d type flip flop 3 end, be provided with not gate 9; Or door 5 with the output signal of d type flip flop 1 and clock clk1 mutually or; Or door 6 with the output signal of d type flip flop 2 and clock clk2 mutually or; With door 7 will or the output signal of door 5,6 and back output switching after clock signal clk_out.
The significance signal of top-level module is as shown in table 1.
Significance signal in table 1 clock switch circuit
Signal Direction Meaning Remarks
?switch ?IN The clock switching signal 0: select clk1 1: select clk2
?Clk1 ?IN Clock 1
?Clk2 ?IN Clock 2
?Clk_out ?OUT Clock signal after the switching
Clock switch circuit provided by the utility model can seamlessly switch between homology clock and non-homogeneous clock, metastable state when it can eliminate switching and the burr on the clock signal.Its operation principle is: after control switching signal switch enters this circuit, be divided into two-way:
One the tunnel directly delivers to the synchronizer circuit of clk1 clock zone, and the signal after is Q1 synchronously.The Q1 signal deliver to clock clk1 or door 5 in, carry out gate operation, obtain the clk1_gate signal;
Another kind is delivered to earlier in the not gate 8, obtains ~ switch, and this signal is delivered to the synchronous circuit of clk2 clock zone, and the signal after is Q2 synchronously.Signal Q2 delivers to clock clk2 or door 6, carries out the gate operation, obtains the clock signal clk2_gate of clk2 behind gate.
This two-way clock signal of Clk1_gate and clk2_gate is again by carrying out and operation, the clock signal clk_out after finally obtaining switching with door 7.
After guaranteeing that control signal Q1 and Q2 in the gating circuit can be ineffective simultaneously, in this circuit, introduced following measure: Q1 and Q2 to pass through not gate 8 and not gate 9 respectively earlier, receive the D end of d type flip flop (4,3) respectively.For fear of the appearance of burr, asserts signal at first will be carried out with another clock synchronously.
1. metastable elimination
Clock switches and is mainly undertaken by trigger.When non-homogeneous clock switches, may cause the metastable state in the circuit.For eliminating metastable state, adopted synchronizer circuit in the clock switch circuit.This circuit carries out control signal and source clock and target clock respectively synchronously, thereby guarantees for any one trigger in the circuit, before and after switching, clock signal and data-signal all be pass through synchronous, thereby eliminated metastable state.
2. the filtration of burr
Burr on the clock signal may have a strong impact on circuit function.In order to filter the burr in the circuit, above-mentioned synchronizer circuit and gating circuit combine, and can eliminate in handoff procedure.
Because gate-control signal and clock signal are asynchronous, this may cause the burr on the clock.By introducing two synchronizer circuits, can eliminate this hidden danger.
For certain trigger in the synchronizer, its set end and clock are asynchronous, and this also may introduce burr.Therefore, in circuit, introduced another again to synchronizer circuit.Asserts signal is at first passed through synchronizer, carries out synchronously with another clock, receives on the trigger of synchronizer of another clock zone again, with the shielding control signal corresponding.
In sum, the asynchronous burr that causes of asserts signal and clock signal is filtered by latter two trigger in the synchronizer; Burr possible on the clock gated logic is filtered by preceding two triggers in the synchronizer.Like this, no matter switch generation at any time, appearance that can be not jagged.

Claims (1)

1, a kind of frequency switching circuit of clock for a long time is characterized in that: comprise clock synchronizer and clock gating circuit; Described clock synchronizer is made of d type flip flop, and initial clock and target clock are carried out respectively synchronously;
Clock clk1 imports the clock end of described d type flip flop (1) and the clock end of described d type flip flop (3) respectively; Clock clk2 imports the clock end of described d type flip flop (2) and the clock end of described d type flip flop (4) respectively;
The D end input control switching signal of described d type flip flop (1), the S end links to each other with the output Q3 of d type flip flop (3), and output Q1 links to each other with the D end of d type flip flop (4) after anti-phase;
The D of described d type flip flop (2) end is provided with not gate (10), makes the control switching signal of D end input after anti-phase, and the S end links to each other with the output Q4 of d type flip flop (4), and output Q2 holds with the D of d type flip flop (3) after anti-phase and links to each other;
Between the D of the output Q1 of described d type flip flop (1) and described d type flip flop (4) end, be provided with not gate (8); Between the D of the output Q2 of described d type flip flop (2) and described d type flip flop (3) end, be provided with not gate (9);
Described gating circuit comprises 2 or (5,6) and one and door (7), makes same clock can only export one tunnel clock signal, with original isolating all the time, finally generates required clock;
Described or door (5) with the output signal of described d type flip flop (1) and clock clk1 mutually or; Described or door (6) with the output signal of described d type flip flop (2) and clock clk2 mutually or; Described and door (7) will be described or the output signal of door (5,6) and back export clock signal clk_out after the switching.
CNU2003201225743U 2003-12-18 2003-12-18 Multi-clock frequency changing circuit Expired - Lifetime CN2669486Y (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNU2003201225743U CN2669486Y (en) 2003-12-18 2003-12-18 Multi-clock frequency changing circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNU2003201225743U CN2669486Y (en) 2003-12-18 2003-12-18 Multi-clock frequency changing circuit

Publications (1)

Publication Number Publication Date
CN2669486Y true CN2669486Y (en) 2005-01-05

Family

ID=34439214

Family Applications (1)

Application Number Title Priority Date Filing Date
CNU2003201225743U Expired - Lifetime CN2669486Y (en) 2003-12-18 2003-12-18 Multi-clock frequency changing circuit

Country Status (1)

Country Link
CN (1) CN2669486Y (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101512363B (en) * 2006-08-31 2012-07-25 Nxp股份有限公司 Multi-clock system-on-chip and electronic device
CN102957403A (en) * 2011-08-15 2013-03-06 联发科技(新加坡)私人有限公司 Integrated circuit device, synchronisation module, electronic device and method therefor

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101512363B (en) * 2006-08-31 2012-07-25 Nxp股份有限公司 Multi-clock system-on-chip and electronic device
CN102957403A (en) * 2011-08-15 2013-03-06 联发科技(新加坡)私人有限公司 Integrated circuit device, synchronisation module, electronic device and method therefor
CN102957403B (en) * 2011-08-15 2015-08-05 联发科技(新加坡)私人有限公司 Integrated circuit (IC) apparatus, synchronization module, electronic installation and correlation technique

Similar Documents

Publication Publication Date Title
CN103546125B (en) A kind of multiselect one burr-free clock switching circuit
CN103197728A (en) Method for realizing burr-free clock switching circuit in different clock domains as well as circuit
US6989695B2 (en) Apparatus and method for reducing power consumption by a data synchronizer
US6107841A (en) Synchronous clock switching circuit for multiple asynchronous clock source
CN204613809U (en) A kind of carrot-free clock switch circuit
US20030001612A1 (en) Multiplexor generating a glitch free output when selecting from multiple clock signals
CN101592975B (en) Clock switching circuit
CN102062798B (en) Oscilloscope with high-speed ADC (Analog-Digital Conversion) chips
CN101593221B (en) Method and circuit for preventing different zone clocks from burr during dynamic switching
CN101350612B (en) Circuit for preventing gating clock bur
CN104779935A (en) Clock burr-free dynamic switching circuit
CN107017889A (en) A kind of successive approximation analog-digital converter
CN2872451Y (en) Dynamic switching circuit of clock
CN106484029A (en) Safe burr-free clock switching construction
CN101119107B (en) Low-power consumption non-overlapping four-phase clock circuit and implementing method
CN2669486Y (en) Multi-clock frequency changing circuit
CN201122939Y (en) Low-power consumption non-crossover four-phase clock circuit
CN205986799U (en) Heterogeneous non - overlap clock generation circuit
CN102790605B (en) asynchronous signal synchronizer
CN101686041A (en) Gated clock circuit and gated clock signal generation method
CN103812497A (en) Driver and method for outputting a low-jitter serial signal
CN1790203A (en) Power supply voltage generation circuit
CN204229395U (en) Multi-channel high-speed synchronous digital I/O system
CN101546207B (en) Clock signal switching circuit
CN2638332Y (en) Cross time clock domain signal synchronous treatment circuit

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CX01 Expiry of patent term

Expiration termination date: 20131218

Granted publication date: 20050105