Method and apparatus of frequency synthesis
09853650 · 2017-12-26
Assignee
Inventors
Cpc classification
H03L7/1976
ELECTRICITY
H03L7/087
ELECTRICITY
International classification
Abstract
An apparatus having a digitally controlled timing adjustment circuit configured to receive a first clock and a second clock and output a third clock and a fourth clock in accordance with a noise cancellation signal and a gain control signal, an analog phase detector configured to receive the third clock and the fourth clock and output an analog timing error signal, a filtering circuit configure to receive the analog timing error signal and output an oscillator control signal, a controllable oscillator configured to receive the oscillator control signal and output a fifth clock, a clock divider configured to receive the fifth clock and output the second clock in accordance with a division factor, a modulator configured to receive a clock multiplication factor and output the division factor and the noise cancellation signal, wherein a mean value of the division factor is equal to the clock multiplication factor, a digital phase detector configured to receive the third clock and the fourth clock and output a digital timing error signal, wherein the digital phase detector is self-calibrated so that a mean value of the digital timing error signal is zero, and a correlation circuit configured to receive the timing error signal and the noise cancellation signal and output the gain control signal.
Claims
1. An apparatus comprising: a digitally controlled timing adjustment circuit configured to receive a first clock and a second clock and output a third clock and a fourth clock in accordance with a noise cancellation signal and a gain control signal; an analog phase detector configured to receive the third clock and the fourth clock and output an analog timing error signal; a filtering circuit configure to receive the analog timing error signal and output an oscillator control signal; a controllable oscillator configured to receive the oscillator control signal and output a fifth clock; a clock divider configured to receive the fifth clock and output the second clock in accordance with a division factor; a modulator configured to receive a clock multiplication factor and output the division factor and the noise cancellation signal, wherein a mean value of the division factor is equal to the clock multiplication factor; a digital phase detector configured to receive the third clock and the fourth clock and output a digital timing error signal, wherein the digital phase detector is self-calibrated so that a mean value of the digital timing error signal is zero; and a correlation circuit configured to receive the timing error signal and the noise cancellation signal and output the gain control signal.
2. The apparatus of claim 1, wherein a timing difference between the fourth clock and the third clock is equal to a sum of: a timing difference between the second clock and the first clock, the noise cancellation signal scaled by the gain control signal, and a timing offset.
3. The apparatus of claim 1, wherein the digitally controlled timing adjustment circuit comprises: a fixed-delay circuit configured to receive the second clock and output the fourth clock, and a digitally controlled variable-delay circuit configured to receive the first clock and output the third clock in accordance with the noise cancellation signal and the gain control signal.
4. The apparatus of claim 3, wherein a delay of the digitally controlled variable delay circuit is linearly dependent on the noise cancellation signal and also linearly dependent on the gain control signal.
5. The apparatus of claim 3, wherein the digitally controlled variable delay circuit comprises: a tunable inverter comprising an inverter supplied by a rail voltage controlled by the gain control signal, and a variable capacitor controlled by the noise cancellation signal.
6. The apparatus of claim 1, wherein the digital phase detector comprises: a skew adjustment circuit configured to receive the third clock and the fourth clock and output a first delayed clock and a second delayed clock in accordance with a delay control signal, a time-to-digital converter configured to receive the first delayed clock and the second delay clock and output the digital timing error signal, and an integrator configured to receive the digital timing error signal and output the delay control signal.
7. The apparatus of claim 1, wherein the correlation circuit comprises a digital signal processing unit configured to decrement the gain control signal by a value determined by the digital timing error signal if the noise cancellation signal is positive, increment the gain control signal by the value determined by the digital timing error signal if the noise cancellation signal is negative, or make no change to the gain control signal if the noise cancellation signal is zero.
8. The apparatus of claim 1, wherein the analog phase detector comprises a phase/frequency detector.
9. The apparatus of claim 1, wherein the controllable oscillator is a voltage-controlled oscillator.
10. The apparatus of claim 1, wherein the clock divider is a counter.
11. A method comprising: receiving a first clock and a clock multiplication factor; modulating the clock multiplication factor into a division factor, wherein a mean value of the division factor is equal to the clock multiplication factor; establishing a noise cancellation signal in accordance with a difference between the clock multiplication factor and the division factor; deriving a third clock and a fourth clock from the first clock and a second clock using a digitally controlled timing adjustment circuit in accordance with a noise cancellation signal and a gain control signal; establishing analog timing error signal by detecting a timing difference between the fourth clock and the third clock using an analog phase detector; filtering the analog timing error signal into an oscillator control signal using a filtering circuit; outputting a fifth clock in accordance with the oscillator control signal using a controllable oscillator; outputting the second clock by dividing down the fifth clock in accordance with the division factor; establishing a digital timing error signal by detecting the timing difference between the fourth clock and the third clock using a digital phase detector that is self-calibrating so that a mean value of the digital timing error signal is zero; and adjusting the gain control signal in accordance with a correlation between the digital timing error signal and the noise cancellation signal.
12. The method of claim 11, wherein a timing difference between the fourth clock and the third clock is equal to a sum of: a timing difference between the second clock and the first clock, the noise cancellation signal scaled by the gain control signal, and a timing offset.
13. The method of claim 11, wherein the digitally controlled timing adjustment circuit comprises: a fixed-delay circuit configured to receive the second clock and output the fourth clock, and a digitally controlled variable-delay circuit configured to receive the first clock and output the third clock in accordance with the noise cancellation signal and the gain control signal.
14. The method of claim 13, wherein a delay of the digitally controlled variable delay circuit is linearly dependent on the noise cancellation signal and also linearly dependent on the gain control signal.
15. The method of claim 13, wherein the digitally controlled variable delay circuit comprises: a tunable inverter comprising an inverter supplied by a rail voltage controlled by the gain control signal, and a variable capacitor controlled by the noise cancellation signal.
16. The method of claim 11, wherein the digital phase detector comprises: a skew adjustment circuit configured to receive the third clock and the fourth clock and output a first delayed clock and a second delayed clock in accordance with a delay control signal, a time-to-digital converter configured to receive the first delayed clock and the second delay clock and output the digital timing error signal, and an integrator configured to receive the digital timing error signal and output the delay control signal.
17. The method of claim 11, wherein the correlation operation is performed by a correlation circuit that comprises a digital signal processing unit configured to decrement the gain control signal by a value determined by the digital timing error signal if the noise cancellation signal is positive, increment the gain control signal by the value determined by the digital timing error signal if the noise cancellation signal is negative, or make no change to the gain control signal if the noise cancellation signal is zero.
18. The method of claim 11, wherein the analog phase detector comprises a phase/frequency detector.
19. The method of claim 11, wherein the controllable oscillator is a voltage-controlled oscillator.
20. The method of claim 11, wherein the clock divider is a counter.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
DETAILED DESCRIPTION OF THIS INVENTION
(11) The present invention relates to phase lock loops. While the specification describes several example embodiments of the invention considered favorable modes of practicing the invention, it should be understood that the invention can be implemented in many ways and is not limited to the particular examples described below or to the particular manner in which any features of such examples are implemented. In other instances, well-known details are not shown or described to avoid obscuring aspects of the invention.
(12)
(13) PLL 100 will be the same as the aforementioned prior art PLL if: the digitally controlled timing adjustment circuit 160, the self-calibration TDC 190, and the correlation circuit 180 are removed, and PFD 110 receives CK1 and CK2, instead of CK3 and CK4. Similar to the prior art PLL, PLL 100 receives CK1 and outputs CK5 using VCO 140, which is adjusted in a closed loop manner via a feedback path comprising the clock divider 150, PFD 110, CP 120, and LF 130, such that a frequency of CK5 is equal to a frequency of CK1 times N.sub.MUL, which is not a pure integer. Since N.sub.MUL is not a pure integer but N.sub.DIV (which is the clock division factor of the clock divider 150) needs to be an integer, N.sub.DIV must be modulated in a way such that a mean value of N.sub.DIV equals N.sub.MUL. Modulator 170 receives N.sub.MUL and outputs N.sub.DIV, effectively modulating N.sub.DIV such that the mean value of N.sub.DIV equals N.sub.MUL. In doing so, the average frequency of CK5 is equal to the frequency of CK1 times N.sub.MUL, but an instantaneous timing of CK2 might deviate from an ideal timing of a fictitious clock divider that allows a non-integer division factor of N.sub.MUL. The deviation of the instantaneous timing of CK2 from the ideal timing due to the modulation of N.sub.DIV leads to an instantaneous noise in the timing difference between CK2 and CK1. However, the instantaneous noise of the timing difference between CK2 and CK1 due to the modulation of N.sub.DIV is pre-known. The instantaneous noise is calculated by the modulator 170 and represented by N.sub.C. The digitally controlled timing adjustment circuit 160 is configured to correct the instantaneous noise in the timing difference between CK2 and CK1 due to the modulation of N.sub.DIV, such the timing difference between CK4 and CK3 is free of the instantaneous noise. However, N.sub.C is numeric and digital in nature, while the timing difference between CK2 and CK1 is temporal and analog in nature. A function of digital-to-analog conversion is performed by the digitally controlled timing adjustment circuit 160 to convert N.sub.C into the amount of timing difference that needs to be cancelled. G.sub.C determines a gain factor of the digital-to-analog conversion.
(14) The self-calibrating TDC 190 detects a timing difference between CK3 and CK4 and output D.sub.TE to represent the timing difference. The self-calibrating TDC 190 calibrates itself so that a mean value of D.sub.TE is zero.
(15) Note that PFD (such as PFD 110 of
(16) In an embodiment, a function of the digitally controlled timing adjustment circuit 160 can be described by the following mathematical expression:
t.sub.4−t.sub.3=t.sub.2−t.sub.1+N.sub.C.Math.G.sub.C+t.sub.OS (1)
(17) Here, t.sub.1 is a timing of a rising edge of CK1, t.sub.2 is a timing of a rising edge of CK2, t.sub.3 is a timing of a rising edge of CK3, t.sub.4 is a timing of a rising edge of CK4, and t.sub.OS is a timing offset. Here, t.sub.2−t.sub.1 is a timing difference between CK2 and CK1, while t.sub.4−t.sub.3 is a timing difference between CK4 and CK3. Both S.sub.TE and D.sub.TE represent a relative timing between CK4 and CK3 and is mathematically equal to t.sub.4−t.sub.3. A major difference between S.sub.TE and D.sub.TE is that S.sub.TE is analog but D.sub.TE is digital. N.sub.C presents the instantaneous noise in t.sub.2−t.sub.1 due to the modulation of N.sub.DIV. If G.sub.C, which is the conversion gain for converting N.sub.C into the timing difference to be cancelled, is set properly, the noise in t.sub.2−t.sub.1 due to the modulation of N.sub.DIV will be corrected and absent in t.sub.4−t.sub.3. On the other hand, if G.sub.C is not set properly, the noise will be either over-corrected or under-corrected, resulting in a residual noise in t.sub.4−t.sub.3 that will become a part of D.sub.TE. When G.sub.C is set too large (small), the noise will be over-corrected (under-corrected); as a result, t.sub.4−t.sub.3 will contain a residual noise that is positively (negatively) correlated with N.sub.C, and therefore D.sub.TE will tend to be positive (negative) when N.sub.C is positive and negative (positive) when N.sub.C is negative. Correlation circuit 180 thus adjusts G.sub.C in accordance with a correlation between N.sub.C and D.sub.TE: when D.sub.TE is positively (negatively) correlated with N.sub.C, it indicates G.sub.C is too large (small) and needs to be decreased (increased).
(18) In an embodiment depicted in
(19) In an embodiment depicted in
(20) In an embodiment depicted in
(21) In an embodiment depicted in
(22) Clock divider 150 can be embodied by a counter that increments a count upon a rising edge of CK5. The count starts with 0, increments to 1 upon a rising edge of CK5, then increments to 2 upon a next rising edge of CK5, and so on. When the count reaches N.sub.DIV−1, it wraps around to 0 upon a next rising edge of CK5. In this manner, the counter cyclically counts from 0 to N.sub.DIV−1. CK2 is asserted whenever the count equals 0, and de-asserted otherwise.
(23) Digitally controlled timing adjustment circuit 160 receives CK1 and CK2 and outputs CK3 and CK4, so that a timing difference between CK4 and CK3 is related to a timing difference between CK2 and CK1 in accordance with a relation described by equation (1). In an embodiment depicted in
(24) By way of example but not limitation, N.sub.C is a four-bit word comprising four bits N.sub.C[0], N.sub.C[1], N.sub.C[2], and N.sub.C[3]. In an embodiment depicted in
(25) The correlation circuit 180 outputs G.sub.C based on a correlation between D.sub.TE and N.sub.C. In an embodiment, G.sub.C is established in accordance with an algorithm of adaptation described by the following equation
(26)
(27) Here, μ is an adaptation constant, G.sub.C.sup.(old) is a value before adaptation, and G.sub.C.sup.(new) is a value after adaptation. Since D.sub.TE and N.sub.C are purely digital, and equation (2) can be implemented by using a digital signal processing engine. In an embodiment, G.sub.C is a digital signal, and the correlation circuit 180 comprises a digital signal processing unit that adapts G.sub.C in accordance with D.sub.TE and N.sub.C using equation (2).
(28) A functional block diagram of a self-calibrating TDC 200 suitable for embodying the self-calibrating TDC 190 of
(29) In an embodiment, MOD 170 of
(30) Now refer to
(31) Still refer to
(32) Now refer to
(33) In accordance with an embodiment of the present invention, a flow chart 400 of a method comprises: receiving a first clock and a clock multiplication factor (step 401); modulating the clock multiplication factor into a division factor, wherein a mean value of the division factor is equal to the clock multiplication factor (step 402); establishing a noise cancellation signal in accordance with a difference between the clock multiplication factor and the division factor (step 403); deriving a third clock and a fourth clock from the first clock and a second clock using a digitally controlled timing adjustment circuit in accordance with the noise cancellation signal and a gain control signal (step 404); establishing an analog timing error signal by detecting a timing difference between the fourth clock and the third clock using an analog phase detector (step 405); filtering the analog timing error signal into an oscillator control signal using a filtering circuit (step 406); outputting a fifth clock in accordance with the oscillator control signal using a controllable oscillator (step 407); outputting the second clock by dividing down the fifth clock in accordance with the division factor (step 408); establishing a digital timing error signal by detecting the timing difference between the fourth clock and the third clock using a digital phase detector that is self-calibrating so that a mean value of the digital timing error signal is zero (step 409); and adjusting the gain control signal in accordance with a correlation between the digital timing error signal and the noise cancellation signal (step 410).
(34) Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.