US20140145768A1 - Correcting for offset-errors in a pll/dll - Google Patents
Correcting for offset-errors in a pll/dll Download PDFInfo
- Publication number
- US20140145768A1 US20140145768A1 US13/762,411 US201313762411A US2014145768A1 US 20140145768 A1 US20140145768 A1 US 20140145768A1 US 201313762411 A US201313762411 A US 201313762411A US 2014145768 A1 US2014145768 A1 US 2014145768A1
- Authority
- US
- United States
- Prior art keywords
- circuit
- output
- clock
- charge pump
- value
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 claims description 11
- 230000000694 effects Effects 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 21
- 230000007704 transition Effects 0.000 description 14
- 239000003990 capacitor Substances 0.000 description 13
- 229920005994 diacetyl cellulose Polymers 0.000 description 13
- 102100031456 Centriolin Human genes 0.000 description 4
- 101000941711 Homo sapiens Centriolin Proteins 0.000 description 4
- 230000000630 rising effect Effects 0.000 description 4
- 238000001514 detection method Methods 0.000 description 3
- 230000003068 static effect Effects 0.000 description 3
- 230000001934 delay Effects 0.000 description 2
- 238000002347 injection Methods 0.000 description 1
- 239000007924 injection Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 229910044991 metal oxide Inorganic materials 0.000 description 1
- 150000004706 metal oxides Chemical class 0.000 description 1
- 229920000729 poly(L-lysine) polymer Polymers 0.000 description 1
- 230000000644 propagated effect Effects 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03L—AUTOMATIC CONTROL, STARTING, SYNCHRONISATION OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
- H03L7/00—Automatic control of frequency or phase; Synchronisation
- H03L7/06—Automatic control of frequency or phase; Synchronisation using a reference signal applied to a frequency- or phase-locked loop
- H03L7/08—Details of the phase-locked loop
- H03L7/085—Details of the phase-locked loop concerning mainly the frequency- or phase-detection arrangement including the filtering or amplification of its output signal
- H03L7/089—Details of the phase-locked loop concerning mainly the frequency- or phase-detection arrangement including the filtering or amplification of its output signal the phase or frequency detector generating up-down pulses
- H03L7/0891—Details of the phase-locked loop concerning mainly the frequency- or phase-detection arrangement including the filtering or amplification of its output signal the phase or frequency detector generating up-down pulses the up-down pulses controlling source and sink current generators, e.g. a charge pump
- H03L7/0893—Details of the phase-locked loop concerning mainly the frequency- or phase-detection arrangement including the filtering or amplification of its output signal the phase or frequency detector generating up-down pulses the up-down pulses controlling source and sink current generators, e.g. a charge pump the up-down pulses controlling at least two source current generators or at least two sink current generators connected to different points in the loop
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03L—AUTOMATIC CONTROL, STARTING, SYNCHRONISATION OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
- H03L7/00—Automatic control of frequency or phase; Synchronisation
- H03L7/06—Automatic control of frequency or phase; Synchronisation using a reference signal applied to a frequency- or phase-locked loop
- H03L7/08—Details of the phase-locked loop
- H03L7/085—Details of the phase-locked loop concerning mainly the frequency- or phase-detection arrangement including the filtering or amplification of its output signal
- H03L7/089—Details of the phase-locked loop concerning mainly the frequency- or phase-detection arrangement including the filtering or amplification of its output signal the phase or frequency detector generating up-down pulses
- H03L7/0891—Details of the phase-locked loop concerning mainly the frequency- or phase-detection arrangement including the filtering or amplification of its output signal the phase or frequency detector generating up-down pulses the up-down pulses controlling source and sink current generators, e.g. a charge pump
- H03L7/0895—Details of the current generators
- H03L7/0898—Details of the current generators the source or sink current values being variable
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03L—AUTOMATIC CONTROL, STARTING, SYNCHRONISATION OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
- H03L7/00—Automatic control of frequency or phase; Synchronisation
- H03L7/06—Automatic control of frequency or phase; Synchronisation using a reference signal applied to a frequency- or phase-locked loop
- H03L7/08—Details of the phase-locked loop
- H03L7/085—Details of the phase-locked loop concerning mainly the frequency- or phase-detection arrangement including the filtering or amplification of its output signal
- H03L7/087—Details of the phase-locked loop concerning mainly the frequency- or phase-detection arrangement including the filtering or amplification of its output signal using at least two phase detectors or a frequency and phase detector in the loop
Definitions
- Embodiments of the present disclosure relate generally to phase-locked loops (PLL) and delay-locked loops (DLL), and more specifically to techniques for correcting for offset errors in a PLL/DLL.
- PLL phase-locked loops
- DLL delay-locked loops
- a PLL is generally a circuit that receives a reference clock as an input, and generates an output clock aligned in phase with respect to the reference clock.
- the frequency of the output clock may be equal to or a multiple of the frequency of the reference clock.
- a DLL is generally a circuit that generates an output clock aligned in phase with respect to a reference clock, with the output clock typically having a same frequency as that of the reference clock.
- An offset error is said to be present in a PLL/DLL when, in the locked state, there exists a non-zero phase difference between the corresponding reference clock and the output clock of the PLL/DLL.
- a locked state of a PLL/DLL refers to a condition when the PLL/DLL is operating in the steady state, in which the respective phases of the reference clock and output clock are (or should be) ideally aligned with respect to each other, i.e., the phase difference between the reference clock and the output clock should be zero.
- a non-zero phase difference may be present.
- Embodiments of the present disclosure are directed to correcting for offset-errors in a PLL/DLL.
- FIG. 1A is a diagram of a PLL in a prior embodiment.
- FIG. 1B is a diagram of a DLL in a prior embodiment.
- FIG. 2 is a diagram illustrating the details of a portion of a prior PLL/DLL.
- FIGS. 3A , 3 B and 3 C are example diagrams illustrating the manner in which error signals of a phase-frequency detector of a PLL/DLL are generated in an embodiment.
- FIG. 4 is a block diagram of a PLL/DLL in an embodiment of the present invention.
- FIG. 5 is a diagram of an RS-Latch used in a PLL/DLL in an embodiment of the present invention.
- FIGS. 6A and 6B are diagrams illustrating the relation between the inputs and outputs of an RS-Latch used in a PLL/DLL, in an embodiment of the present invention.
- FIG. 7 is a block diagram of a correction circuit to correct for offset-errors in a PLL/DLL in an embodiment of the present invention.
- FIG. 8 is a block diagram of a correction circuit to correct for offset-errors in a PLL/DLL in another embodiment of the present invention.
- FIG. 9 is a diagram of an RS-Latch used in a PLL/DLL in another embodiment of the present invention.
- FIGS. 10 and 11 are diagrams of corresponding circuits for generating an enable signal for use in an RS-latch, in an embodiment of the present invention.
- FIG. 12 is a timing diagram illustrating the operation of an RS-Latch and associated circuitry in an embodiment of the present invention.
- FIG. 13 is a diagram of a current-DAC used to implement a current source of a charge pump, in an embodiment of the present invention.
- the main feedback loop of a PLL/DLL receives a reference clock and an output clock as inputs, and operates to achieve one or both of a phase and a frequency lock of the output clock with respect to the reference clock.
- the PLL/DLL includes an RS-latch connected to receive the output clock and the reference clock.
- the RS-Latch generates a digital output representing a phase difference between the reference clock and the output clock.
- a correction block in the PLL/DLL receives the digital output and adjusts an electrical characteristic of the main feedback loop by a value that is based on the polarity of the digital output. Effects of offset-errors in the PLL/DLL are thereby minimized.
- FIGS. 1A and 1B are diagrams illustrating block-level details of a prior PLL and a prior DLL respectively.
- the PLL of FIG. 1A is shown containing phase-frequency detector (PFD) 110 , charge pump (CP) 120 , capacitor 130 , voltage-controlled oscillator 140 and divider 145 .
- PFD 110 compares the phases of reference clock (REF CLK) 101 and feedback (FB CLK) 146 , and generates corresponding signals (UP and DOWN, described below) representative of the phase error.
- CP 120 is controlled by the UP and DOWN signals to either source or sink corresponding currents to or from capacitor 130 (or a loop filter, in general).
- the voltage across capacitor 130 controls the frequency of OUTPUT CLK generated by VCO 140 .
- OUTPUT CLK 149 and FB CLK 146 represent the same signal.
- the output clock of the PLL is the same as the feedback clock applied as one of the inputs to the phase-frequency detector of the PLL.
- the description provided herein applies even when divider 145 provides a division ratio other than one.
- the DLL of FIG. 1B is shown containing PFD 150 , CP 160 , capacitor 170 , and voltage-controlled delay line (VCDL) 180 .
- PFD 150 compares the phases of REF CLK 151 and OUTPUT CLK 199 , and generates corresponding signals (UP and DOWN, described below) representative of the phase error.
- CP 160 is controlled by the UP and DOWN signals to either source or sink corresponding currents to or from capacitor 170 (or a loop filter, in general).
- VCDL 180 provides a controllable delay to REFCLK 151 (received as input) to generate OUTPUT CLK 199 , the control being provided by the voltage across capacitor 170 .
- FIG. 2 A part of the circuit portions functionally common to the PLL of FIG. 1A and the DLL of FIG. 1B are shown in FIG. 2 .
- charge pump 290 is shown containing switches 221 and 231 , and current sources 220 and 230 .
- the states (open and closed) of switches 221 and 231 are controlled by the value of error signals UP and DOWN respectively. In the example, it is assumed that a logic high value of an error signal closes the corresponding switch, while a logic low opens the switch.
- Terminal 298 represents a power supply terminal, while terminal 299 represents a ground terminal. It is noted here that in other embodiments, the positions of the current source and the corresponding switch can be interchanged.
- CP 290 can also be implemented with current sources 220 and 230 in place of switch 221 and switch 231 respectively, with switch 221 and switch 231 provided in place of current source 220 and current source 230 respectively.
- Switches 221 and 231 may be implemented using PMOS (P-type Metal oxide semiconductor) and NMOS (N-type MOS) transistors respectively.
- PFD 210 which can be used in place of PFD 110 or PFD 150 , is shown receiving REF CLK 201 and OUTPUT CLK 202 as inputs, OUTPUT CLK 202 being the output clock of the corresponding PLL/DLL, portions of which are shown in FIG. 2 .
- PFD 210 generates, on respective paths 211 and 212 , error signals UP and DOWN representative of the phase error between REF CLK and OUTPUT CLK.
- FIGS. 3A , 3 B and 3 C are example diagrams illustrating the manner in which error signals UP ( 211 ) and DOWN ( 212 ) are generated.
- REF CLK is shown as leading OUTPUT CLK.
- signal UP transitions to logic high, and is maintained at logic high till t 33 .
- Signal DOWN transitions to logic high at t 32 (at the rising edge of OUTPUT CLK) and remains at logic high till t 33 .
- Interval t 32 -t 33 is a fixed interval termed a ‘reset’ interval, during which both UP and DOWN signal are maintained at logic high, irrespective of the phase difference between REF CLK and OUTPUT CLK.
- the interval t 31 -t 32 (error interval) is proportional to the phase difference between REF CLK and OUTPUT CLK.
- REF CLK is shown as lagging OUTPUT CLK.
- signal DOWN transitions to logic high, and is maintained at logic high till t 36 .
- Signal UP transitions to logic high at t 35 (at the rising edge of REF CLK), and remains at logic high till t 36 .
- Interval t 35 -t 36 is a ‘reset’ interval similar to that noted above.
- the interval t 34 -t 35 (error interval) is proportional to the phase difference between REF CLK and OUTPUT CLK.
- REF CLK and OUTPUT CLK are synchronized, and the phase difference between them is zero.
- Signals UP and DOWN are high only for a ‘reset’ interval t 37 -t 38 .
- the error interval equals zero.
- signals UP and DOWN control the opening and closing of switches 221 and 231 respectively, as also noted above.
- current source 220 delivers a constant current (Icp) into node 245 and charges capacitor 240 .
- current source 230 draws a constant current (Icp) from node 245 , and thus from capacitor 240 .
- Icp constant current
- PFD 210 and CP 290 steers the voltage at node 245 to a steady-state value, at which REF CLK and OUTPUT CLK are (ideally) perfectly aligned in phase, i.e., phase difference between REF CLK and OUTPUT CLK is (ideally) zero.
- steady-state locked state
- no current is drawn from or driven into node 245 by CP 290 .
- a non-zero phase difference between REF CLK and OUTPUT CLK may exist even at steady-state (when no current is drawn from or driven into node 245 by CP 290 ).
- zero charge may be present across capacitor 240 for a non-zero phase error between REF CLK and OUTPUT CLK.
- Such non-zero phase error may be termed ‘static phase offset’, and such error may not get corrected by the ‘main feedback loop’ of the PLL/DLL.
- the offset-errors may include unequal delays in the propagation paths of signals UP and DOWN, and mismatch in the magnitude of currents of current sources 220 and 230 .
- the constant current driven by current source 220 into node 245 when switch 221 is closed and switch 231 is open may not equal the constant current drawn by current source 230 from node 245 when switch 221 is open and switch 231 is closed.
- the difference between the constant currents of current sources 220 and 230 may be a source of offset-error present in the CP 290 .
- Another source of offset-error in CP 290 is unequal rise/fall times of the currents of current source 220 and 230 when current sources 220 and 230 are switched ON or OFF.
- Offset-errors include device mismatches due to manufacturing, mismatches in the output impedances of current sources 220 and 230 , unequal times taken by switches 221 and 231 to turn ON and OFF, unequal charge injection and clock-feedthrough on node 245 due to the current sources and/or switches, etc.
- Errors due to offsets are generally undesirable in PLLs/DLLs.
- such offset-errors may result in reference spurs in the output clock of the PLL, errors in sampling when such PLL is used in clock recovery circuits, etc.
- effects of offset errors includes error in output phases if the delay line of the DLL is used to generate multiple clocks, errors in delay generation if a replica delay line is used to generate delays proportional to the delay in the master delay line, etc.
- FIG. 4 is a block diagram of a PLL/DLL in an embodiment of the present invention.
- PLL/DLL 400 operates to achieve one or both of a phase and a frequency lock of an output clock with respect to a reference clock.
- device 400 When implemented as a PLL, device 400 operates to achieve phase as well as frequency lock between the output clock and the reference clock, which may have, prior to lock, a frequency different from that of the output clock.
- device 400 operates to achieve phase lock between the output clock and the reference clock, both of which have the same frequency.
- PLL/DLL 400 is shown containing PFD) 410 , CP 490 , capacitor 440 , block 470 , RS-latch 450 and correction block 460 .
- CP 490 is shown containing current sources 420 and 430 , and switches 421 and 431 .
- Terminals 498 and 499 represent power and ground terminals respectively.
- PFD 410 may be implemented identical to PFD 210 of FIG. 2 , and generates UP and DOWN signals on respective paths 411 and 412 . Signals UP and DOWN have similar functionality as described with respect to UP ( 211 ) and DOWN ( 212 ) of FIG. 2 , with PFD 410 operating similar to PFD 210 , and their description is not repeated here in the interest of conciseness.
- CP 490 is controlled by the UP ( 411 ) and DOWN ( 412 ) signals to either source or sink corresponding currents to or from capacitor 440 (and node 445 ).
- the magnitude of either or both of currents provided by current sources 420 and 430 is adjustable by correction signal 461 generated by correction block 460 , as described below.
- block 470 represents a VCO, with the voltage on node 445 controlling the frequency of OUTPUT CLK 402 .
- PLL 400 may contain a divider similar to divider 145 of FIG. 1A , but not shown in FIG. 4 in the interest of conciseness.
- block 470 represents a VCDL, and additionally receives REF CLK 401 as an input clock (not shown in FIG. 4 ). The voltage on node 445 controls the phase of OUTPUT CLK 402 with respect to REF CLK 401 .
- RS-Latch 450 receives REF CLK 401 and OUTPUT CLK 402 as inputs, and generates digital signals 451 (Q) and 452 (Q-BAR) that are representative of the phase difference between REF CLK 401 and OUTPUT CLK 402 .
- Correction block 460 processes signals 451 and 452 to generate correction signal 461 , which may be either a digital signal (or a set of digital signals) or an analog signal (or a set of analog signals), which is used to control an electrical characteristic of CP 490 .
- An electrical characteristic refers to an electrical parameter (current and voltage). The specific electrical characteristic may differ based on the implementation of CP 490 .
- the electrical parameter is current
- correction signal 461 is used to adjust the magnitude of either or both of currents provided by current sources 420 and 430 , as indicated by the dotted arrows in FIG. 4 .
- the feedback loop formed by PFD 410 , CP 490 , capacitor 440 , block 470 and node 402 represents a ‘main feedback loop’ (primary loop) operating at a frequency equal to that of REF CLK 401 , to lock the phase of OUTPUT CLK 402 with the phase of REF CLK 410 .
- RS-latch 450 , correction block 460 and the corresponding connections form a feed-forward loop (secondary loop or offset correction loop) that is designed to operate at a relatively lower frequency as compared to the frequency of REF CLK, i.e., the rate of operation of the main feedback loop.
- the gain provided by RS-latch 450 is typically much higher than that provided by PFD 410 .
- the detection performed by the secondary loop is non-linear, and only provides information about which clock (REF CLK or OUTPUT CLK) is leading/lagging.
- the overall stability of device 400 is ensured as the secondary non-linear loop is much slower than the main feedback loop.
- the rate (or frequency) at which the value of correction signal 461 is updated is less than the rate at which signals UP ( 411 ) and DOWN ( 412 ) are updated.
- the rate at which correction signal 461 is updated is less than the frequency of REF CLK 401 .
- correction block 460 also receives REF CLK 401 as an input (although not shown in FIG. 4 ), and updates the value of correction signal 461 at every hundredth clock edge of REF CLK 401 . In the embodiment, it is ensured that the update rate (and thus the offset correction loop/secondary loop) is much slower than the main feedback loop, so that the dynamic characteristics of the main feedback loop are not affected.
- RS-latch 450 is implemented as shown in FIG. 5 .
- RS-latch 450 is shown implemented using NAND gates 510 and 520 .
- NAND 510 and NAND 520 respectively receive REF CLK 401 and OUTPUT CLK 402 as inputs.
- the output 451 (Q) of NAND 510 is provided as a second input to NAND 520 .
- the output 452 (Q-BAR) of NAND 520 is provided as a second input to NAND 510 .
- RS-Latch 450 set-reset latch
- alternative structures/gates/interconnections to similarly operate as a non-clocked digital storage element (also termed a latch) for storing one bit.
- RS-latch is used in this document to cover all such implementations.
- the advantages of using an RS-Latch include the following:
- FIGS. 6A and 6B are diagrams illustrating the relation between the inputs and outputs of RS-latch 450 as implemented in FIG. 5 .
- REF CLK 401 leads OUTPUT CLK 402 .
- each of signals 451 and 452 is at logic high.
- signal 401 transitions to logic high, while signal 402 continues to remain at logic low till t 620 .
- signal 451 transitions to logic low in response to the logic high transition of signal 401 , while signal 452 continues to remain at logic high.
- a logic low level of signal 451 and a logic high level of signal 452 indicate that signal 401 leads signal 402 .
- REF CLK 401 lags OUTPUT CLK 402 .
- each of signals 451 and 452 is at logic high.
- signal 402 transitions to logic high, while signal 401 continues to remain at logic low till t 640 .
- signal 452 transitions to logic low in response to the logic high transition of signal 402 , while signal 452 continues to remain at logic high.
- a logic high level of signal 451 and a logic low level of signal 452 indicate that signal 401 lags signal 402 .
- Correction block 460 adjusts the current of one or both current sources 420 and 430 based on the value of signals 451 and 452 .
- the correction applied by correction block 460 is based on the polarity of the output (e.g., 451 ) of RS-Latch 450 .
- the values of signals 451 and 452 are averaged over time, and the time averages are then used as the basis for adjusting one or both of current sources 420 and 430 .
- each of current sources 420 and 430 is implemented as a current-DAC (digital to analog converter), and correction block 460 is implemented as shown in FIG. 7 .
- correction block 460 is shown containing digital logic 710 and counter 720 .
- Digital logic 710 receives signals 451 , 452 and 715 as inputs.
- Signal 715 represents a clock signal, and is derived from REF CLK 401 , is typically at a lower frequency as compared to REF CLK 401 .
- digital logic 710 In response to the values of signals 451 and 452 , and controlled by clock 715 , digital logic 710 generates count-up and count-down signals 711 and 712 respectively.
- count-up signal 711 When count-up signal 711 is asserted (count-down 712 being de-asserted) counter 720 counts upwards, incrementing the count at each clock edge of clock 713 (which may be derived from clock 715 ).
- count-down signal 712 When count-up 711 being de-asserted) counter 720 counts downwards, decrementing the count at each clock edge of clock 713 .
- the count value generated by counter 720 may be forwarded on path 461 at pre-defined intervals (such as, for example, every hundredth edge of REF CLK 401 , indicated by clock 713 ).
- the frequencies of clock 713 and clock 715 can be the same, or clock 713 can be a divide-by-n (n being an integer) version of clock 715 .
- counter 720 is updated based on ‘n’ decisions of RS-Latch 450 .
- the advantage of updating counter 720 based on multiple (here n) decisions of RS-Latch 450 is that the effect of jitter of REF CLK 401 and/or OUTPUT CLK 402 on the loop correction is reduced. This is required as the phase errors which are generated due to jitter are not static phase errors, while the secondary loop may be intended to correct only static phase errors. While using n multiple decisions, it is also possible to create a dead-zone by ensuring that a positive or a negative correction is applied only when there are some minimum detection in the same direction.
- correction may be applied in the corresponding direction only if at least 75% of the ‘n’ decisions are the same.
- the creation of such a dead-zone may ensure that the secondary loop does not respond for small values of jitter on REF CLK and/or OUTPUT CLK.
- the control word for the current-DAC may be updated only by +1 or ⁇ 1 (or any other fixed number) in each correction cycle (which may be at a rate which is one-hundredth that of the operation of the main feedback loop, i.e., one hundredth of the frequency of REF CLK 401 ). In an embodiment, the rate of correction is lesser than the lock time of the main feedback loop of PLL/DLL 400 .
- the correction applied by the secondary loop may take several iterations to converge.
- a successive approximation (or binary) search is employed initially (e.g., after power-ON of the DLL/PLL), in an embodiment.
- the binary search initially provides to the current-DAC, a code corresponding to the center of the complete correction range of the secondary loop.
- the phase offset is determined (as indicated by the outputs ( 451 / 452 ) of RS-Latch 450 ) once the main feedback loop locks.
- the determination of the phase offset and the correction according to the binary technique are repeated till the correction converges.
- correction is done continuously, and with a correction magnitude in each step of +1/ ⁇ 1 (or any fixed magnitude), as noted above.
- the choice of selecting a correction of +1 or ⁇ 1 may be based on the polarity (or logic level) of the outputs ( 451 / 452 ) of RS-Latch 450 .
- the output of RS-Latch 450 is said to be at a polarity opposite to that when signals 451 and 452 are logic zero and logic one respectively.
- Correction block 460 may be implemented to include the logic necessary for performing the binary search noted above.
- FIG. 13 shows the details of current source 420 of FIG. 4 implemented as a current-DAC.
- the current-DAC is a binary weighted DAC, and is shown in FIG. 4 containing current sources 1300 A- 1300 N and switches 1310 A- 1310 N. Each of switches 1310 A- 1310 N is controlled to be open or closed based on the value of the corresponding bit in digital value 461 .
- Each current source 1300 A- 1300 N provides a constant current related in a binary weighted fashion. Thus, if the current provided by current source 1300 A is (I), then the currents of respective current sources 1300 B- 1300 N are (2I), (4I), (8I), etc.
- the number (N) of current sources generally depends on the specific implementation of current-DAC 420 , and typically equals the width (number of bits) of the digital value received on path 461 . It is understood that the specific implementation of current-DAC described above is merely illustrative, and current-DAC 420 may be implemented using other techniques as well. Current source 430 may also be implemented in a similar manner, and controlled by signal 461 .
- Signal 461 may contain multiple bits which, for example, may be binary weighted, and used to set the magnitude of currents of one or both of current sources 420 and 430 implemented as current DACs.
- the specific details of FIG. 7 are provided merely by way of illustration, and other implementations of correction block 460 would be apparent to one skilled in the relevant arts upon reading the disclosure herein.
- current sources 420 and 430 may be implemented using other types of DACs, and correction signal 461 can be modified to fit the requirement of the specific DAC implementation.
- the detection of phase difference between REF CLK 401 and OUTPUT CLK 402 is accomplished digitally (by RS-Latch 450 ), and the correction signal ( 461 ) is also digital (adjustment of current sources is effected digitally).
- the correction signal to adjust the magnitudes of one or both of the current source(s) of the charge pump (CP 490 ) in the main feedback loop is an analog signal, as illustrated with respect to FIG. 8 .
- FIG. 8 is a diagram of correction circuit 460 in another embodiment.
- Correction circuit 460 is shown implemented to contain a charge pump circuit (formed by switches 821 and 831 and current sources 820 and 830 ) and capacitor 840 .
- Signals 451 and 452 respectively control the state (open or closed) of switches 821 and 831 .
- the (analog) voltage on node 461 is used to adjust the magnitude of one or both of current sources 420 and 430 .
- additional circuitry may be employed to enable application of voltage 461 to one or both current sources 420 and 430 only at discrete time intervals, for example at a rate slower than the frequency of REF CLK 401 .
- FIGS. 9 , 10 and 11 further illustrate specific lower-level details of RS-Latch 450 and associated additional circuitry to clear RS-Latch 450 , in another embodiment.
- FIG. 12 is a timing diagram illustrating the operation of the circuits of FIGS. 9 , 10 and 11 .
- RS-Latch 450 is shown there implemented using three-input NAND gates 910 and 920 .
- NAND 910 receives REF CLK 401 , enable signal 901 (EN) and signal 452 (Q-BAR) as inputs, and generates signal 451 (Q) as output.
- NAND 920 receives OUTPUT CLK 402 , enable signal 901 (EN) and signal 451 (Q) as inputs, and generates signal 452 (Q-BAR) as output.
- FIG. 10 is shown containing D-type flip-flops (FF) 1010 and 1020 , NOR gate 1040 and OR gate 1030 .
- NOR gate 1040 receives signals REF CLK 401 and OUTPUT CLK 402 as inputs.
- FF 1010 receives a signal AYSNC-EN ( 1011 ) at its D-input and the output of NOR gate 1040 on its clock input.
- the output of FF 1010 is provided as signal 1012 (SYNC-EN) to the clock input of FF 1020 .
- the D-input of FF 1020 is connected to a power supply terminal 1098 .
- the reset (RST) input of FF 1020 is connected to the output of OR gate 1030 , which receives signal 1031 (VALID) and 1032 (RESET) as inputs.
- FIG. 11 is shown containing D-type FF 1110 , inverter gates 1130 and 1140 and exclusive-OR (XOR) gate 1120 .
- XOR gate 1120 receives signals 451 and 452 as inputs.
- the output of XOR gate 1120 is propagated through inverters 1130 and 1140 to generate signal 1031 (VALID).
- the clock input of FF 1110 is connected to signal 1031 (VALID).
- THE D-input of FF 1110 is connected to signal 452 .
- the output 1111 (CNTRL) of FF 1110 is provided as input to an UP/DOWN similar to counter 720 of FIG. 7 .
- the operation of the blocks of FIGS. 9 , 10 and 11 is provided next, with reference to the timing diagram of FIG. 12 .
- RESET 1032 pulses to logic high. Consequently, signal 901 (EN) is at logic zero. With EN 901 at logic zero, Q ( 451 ) and Q-BAR ( 452 ) are forced to remain at logic one.
- ASYNC-EN 1011
- signal 1012 SYNC-EN
- signal 901 (EN) is set to logic high at t 1201 .
- RS-Latch 450 With EN 901 at logic high, RS-Latch 450 is free to respond to signals 401 and 402 . Consequently, at t 1202 , when 401 REF CLK transitions to logic high (with signal 402 being a logic zero), signal 451 (Q) transitions to logic zero, while signal 452 (Q-BAR) remains at logic high. As result, signal 1032 (VALID) transitions to logic high, and Q-BAR ( 452 ) is reflected as signal 1111 (CNTRL). Further, the transition to logic high of signal 1032 (VALID) also resets 901 (EN) to logic zero, shown occurring at t 1203 .
- the logic level of 1111 (CNTRL) is provided to an UP/DOWN similar to counter 720 of FIG. 7 , with the counter counting upwards when CNTRL is a logic high and counting downwards when CONTRL is a logic low.
- signals Q and Q-BAR are each forced to logic high, which in turn resets signal 1031 (VALID) to logic low.
- Signal 1011 (ASYNC-EN) is reset to logic zero at t 1204 . With signal 1011 (ASYNC-EN) at logic zero, EN ( 901 ) remains at logic zero.
- Signal 1011 (ASYNC-EN) may be asserted to logic high at every hundredth cycle of REF CLK 401 , and the operations described above with respect to the timing diagram of FIG. 12 may repeat for each of such logic high durations of 1011 (ASYNC-EN).
- terminals/nodes are shown with direct connections to various other terminals, it should be appreciated that additional components (as suited for the specific environment) may also be present in the path, and accordingly the connections may be viewed as being electrically coupled to the same connected terminals.
- power supply and ground terminals are referred to as constant reference potentials.
Landscapes
- Stabilization Of Oscillater, Synchronisation, Frequency Synthesizers (AREA)
Abstract
Description
- The present application is related to and claims priority from co-pending India provisional patent application entitled, “CORRECTING FOR OFFSET-ERRORS IN A PLL/DLL”, application serial number: 4952/CHE/2012, filed on 28 Nov. 2012, attorney docket number: COSM-306-INPR, naming the same inventors as in the present application, and is incorporated in its entirety herewith.
- 1. Technical Field
- Embodiments of the present disclosure relate generally to phase-locked loops (PLL) and delay-locked loops (DLL), and more specifically to techniques for correcting for offset errors in a PLL/DLL.
- 2. Related Art
- A PLL is generally a circuit that receives a reference clock as an input, and generates an output clock aligned in phase with respect to the reference clock. The frequency of the output clock may be equal to or a multiple of the frequency of the reference clock. A DLL is generally a circuit that generates an output clock aligned in phase with respect to a reference clock, with the output clock typically having a same frequency as that of the reference clock.
- An offset error is said to be present in a PLL/DLL when, in the locked state, there exists a non-zero phase difference between the corresponding reference clock and the output clock of the PLL/DLL. A locked state of a PLL/DLL refers to a condition when the PLL/DLL is operating in the steady state, in which the respective phases of the reference clock and output clock are (or should be) ideally aligned with respect to each other, i.e., the phase difference between the reference clock and the output clock should be zero. However, even in such locked/steady state, due to various conditions, a non-zero phase difference may be present.
- Embodiments of the present disclosure are directed to correcting for offset-errors in a PLL/DLL.
- Example embodiments will be described with reference to the accompanying drawings briefly described below.
-
FIG. 1A is a diagram of a PLL in a prior embodiment. -
FIG. 1B is a diagram of a DLL in a prior embodiment. -
FIG. 2 is a diagram illustrating the details of a portion of a prior PLL/DLL. -
FIGS. 3A , 3B and 3C are example diagrams illustrating the manner in which error signals of a phase-frequency detector of a PLL/DLL are generated in an embodiment. -
FIG. 4 is a block diagram of a PLL/DLL in an embodiment of the present invention. -
FIG. 5 is a diagram of an RS-Latch used in a PLL/DLL in an embodiment of the present invention. -
FIGS. 6A and 6B are diagrams illustrating the relation between the inputs and outputs of an RS-Latch used in a PLL/DLL, in an embodiment of the present invention. -
FIG. 7 is a block diagram of a correction circuit to correct for offset-errors in a PLL/DLL in an embodiment of the present invention. -
FIG. 8 is a block diagram of a correction circuit to correct for offset-errors in a PLL/DLL in another embodiment of the present invention. -
FIG. 9 is a diagram of an RS-Latch used in a PLL/DLL in another embodiment of the present invention. -
FIGS. 10 and 11 are diagrams of corresponding circuits for generating an enable signal for use in an RS-latch, in an embodiment of the present invention. -
FIG. 12 is a timing diagram illustrating the operation of an RS-Latch and associated circuitry in an embodiment of the present invention. -
FIG. 13 is a diagram of a current-DAC used to implement a current source of a charge pump, in an embodiment of the present invention. - In the drawings, like reference numbers generally indicate identical, functionally similar, and/or structurally similar elements. The drawing in which an element first appears is indicated by the leftmost digit(s) in the corresponding reference number.
- 1. Overview
- In an embodiment of the present invention, the main feedback loop of a PLL/DLL receives a reference clock and an output clock as inputs, and operates to achieve one or both of a phase and a frequency lock of the output clock with respect to the reference clock. The PLL/DLL includes an RS-latch connected to receive the output clock and the reference clock. The RS-Latch generates a digital output representing a phase difference between the reference clock and the output clock. A correction block in the PLL/DLL receives the digital output and adjusts an electrical characteristic of the main feedback loop by a value that is based on the polarity of the digital output. Effects of offset-errors in the PLL/DLL are thereby minimized.
- Several aspects of the invention are described below with reference to examples for illustration. It should be understood that numerous specific details, relationships, and methods are set forth to provide a full understanding of the invention. One skilled in the relevant arts, however, will readily recognize that the invention can be practiced without one or more of the specific details, or with other methods, etc. In other instances, well-known structures or operations are not shown in detail to avoid obscuring the features of the invention.
- 2. PLL/DLL
-
FIGS. 1A and 1B are diagrams illustrating block-level details of a prior PLL and a prior DLL respectively. The PLL ofFIG. 1A is shown containing phase-frequency detector (PFD) 110, charge pump (CP) 120,capacitor 130, voltage-controlledoscillator 140 anddivider 145.PFD 110 compares the phases of reference clock (REF CLK) 101 and feedback (FB CLK) 146, and generates corresponding signals (UP and DOWN, described below) representative of the phase error.CP 120 is controlled by the UP and DOWN signals to either source or sink corresponding currents to or from capacitor 130 (or a loop filter, in general). The voltage acrosscapacitor 130 controls the frequency of OUTPUT CLK generated byVCO 140. When the division ratio ofdivider 145 equals one, OUTPUT CLK 149 and FB CLK 146 represent the same signal. For ease of description, it is assumed that when referring to a PLL in this document, the output clock of the PLL is the same as the feedback clock applied as one of the inputs to the phase-frequency detector of the PLL. However, the description provided herein applies even whendivider 145 provides a division ratio other than one. - The DLL of
FIG. 1B is shown containingPFD 150,CP 160,capacitor 170, and voltage-controlled delay line (VCDL) 180.PFD 150 compares the phases of REFCLK 151 and OUTPUTCLK 199, and generates corresponding signals (UP and DOWN, described below) representative of the phase error.CP 160 is controlled by the UP and DOWN signals to either source or sink corresponding currents to or from capacitor 170 (or a loop filter, in general). VCDL 180 provides a controllable delay to REFCLK 151 (received as input) to generate OUTPUTCLK 199, the control being provided by the voltage acrosscapacitor 170. - A part of the circuit portions functionally common to the PLL of
FIG. 1A and the DLL ofFIG. 1B are shown inFIG. 2 . InFIG. 2 ,charge pump 290 is shown containing 221 and 231, andswitches 220 and 230. The states (open and closed) ofcurrent sources 221 and 231 are controlled by the value of error signals UP and DOWN respectively. In the example, it is assumed that a logic high value of an error signal closes the corresponding switch, while a logic low opens the switch.switches Terminal 298 represents a power supply terminal, whileterminal 299 represents a ground terminal. It is noted here that in other embodiments, the positions of the current source and the corresponding switch can be interchanged. Thus,CP 290 can also be implemented with 220 and 230 in place ofcurrent sources switch 221 and switch 231 respectively, withswitch 221 and switch 231 provided in place ofcurrent source 220 andcurrent source 230 respectively. 221 and 231 may be implemented using PMOS (P-type Metal oxide semiconductor) and NMOS (N-type MOS) transistors respectively.Switches -
PFD 210, which can be used in place ofPFD 110 orPFD 150, is shown receivingREF CLK 201 andOUTPUT CLK 202 as inputs,OUTPUT CLK 202 being the output clock of the corresponding PLL/DLL, portions of which are shown inFIG. 2 .PFD 210 generates, on 211 and 212, error signals UP and DOWN representative of the phase error between REF CLK and OUTPUT CLK.respective paths -
FIGS. 3A , 3B and 3C are example diagrams illustrating the manner in which error signals UP (211) and DOWN (212) are generated. InFIG. 3A , REF CLK is shown as leading OUTPUT CLK. At time instant t31, at the rising edge of REF CLK, signal UP transitions to logic high, and is maintained at logic high till t33. Signal DOWN transitions to logic high at t32 (at the rising edge of OUTPUT CLK) and remains at logic high till t33. Interval t32-t33 is a fixed interval termed a ‘reset’ interval, during which both UP and DOWN signal are maintained at logic high, irrespective of the phase difference between REF CLK and OUTPUT CLK. The interval t31-t32 (error interval) is proportional to the phase difference between REF CLK and OUTPUT CLK. - In
FIG. 3B , REF CLK is shown as lagging OUTPUT CLK. At time instant t34, at the rising edge of OUTPUT CLK, signal DOWN transitions to logic high, and is maintained at logic high till t36. Signal UP transitions to logic high at t35 (at the rising edge of REF CLK), and remains at logic high till t36. Interval t35-t36 is a ‘reset’ interval similar to that noted above. The interval t34-t35 (error interval) is proportional to the phase difference between REF CLK and OUTPUT CLK. - In
FIG. 3C , REF CLK and OUTPUT CLK are synchronized, and the phase difference between them is zero. Signals UP and DOWN are high only for a ‘reset’ interval t37-t38. The error interval equals zero. - Referring again to
FIG. 2 , signals UP and DOWN control the opening and closing of 221 and 231 respectively, as also noted above. Whenswitches switch 221 is closed and switch 231 is open,current source 220 delivers a constant current (Icp) intonode 245 and charges capacitor 240. Whenswitch 221 is open and switch 231 is closed,current source 230 draws a constant current (Icp) fromnode 245, and thus fromcapacitor 240. When both of 221 and 231 are closed, a current Icp flows fromswitches power supply terminal 298 to ground. - As is well-known in the relevant arts, the operation of
PFD 210 andCP 290 steers the voltage atnode 245 to a steady-state value, at which REF CLK and OUTPUT CLK are (ideally) perfectly aligned in phase, i.e., phase difference between REF CLK and OUTPUT CLK is (ideally) zero. At steady-state (locked state), ideally no current is drawn from or driven intonode 245 byCP 290. - However, due to offset-errors, a non-zero phase difference between REF CLK and OUTPUT CLK may exist even at steady-state (when no current is drawn from or driven into
node 245 by CP 290). Specifically in the locked (steady-state) condition, zero charge may be present acrosscapacitor 240 for a non-zero phase error between REF CLK and OUTPUT CLK. Such non-zero phase error may be termed ‘static phase offset’, and such error may not get corrected by the ‘main feedback loop’ of the PLL/DLL. - The offset-errors may include unequal delays in the propagation paths of signals UP and DOWN, and mismatch in the magnitude of currents of
220 and 230. Specifically, the constant current driven bycurrent sources current source 220 intonode 245 whenswitch 221 is closed and switch 231 is open may not equal the constant current drawn bycurrent source 230 fromnode 245 whenswitch 221 is open and switch 231 is closed. The difference between the constant currents of 220 and 230 may be a source of offset-error present in thecurrent sources CP 290. Another source of offset-error inCP 290 is unequal rise/fall times of the currents of 220 and 230 whencurrent source 220 and 230 are switched ON or OFF. Other causes of offset-errors include device mismatches due to manufacturing, mismatches in the output impedances ofcurrent sources 220 and 230, unequal times taken bycurrent sources 221 and 231 to turn ON and OFF, unequal charge injection and clock-feedthrough onswitches node 245 due to the current sources and/or switches, etc. - Errors due to offsets are generally undesirable in PLLs/DLLs. For example, in a PLL, such offset-errors may result in reference spurs in the output clock of the PLL, errors in sampling when such PLL is used in clock recovery circuits, etc. In a DLL, effects of offset errors includes error in output phases if the delay line of the DLL is used to generate multiple clocks, errors in delay generation if a replica delay line is used to generate delays proportional to the delay in the master delay line, etc.
- 3. Correcting for Offset-Errors
-
FIG. 4 is a block diagram of a PLL/DLL in an embodiment of the present invention. In general, PLL/DLL 400 operates to achieve one or both of a phase and a frequency lock of an output clock with respect to a reference clock. When implemented as a PLL,device 400 operates to achieve phase as well as frequency lock between the output clock and the reference clock, which may have, prior to lock, a frequency different from that of the output clock. When implemented as a DLL,device 400 operates to achieve phase lock between the output clock and the reference clock, both of which have the same frequency. - PLL/
DLL 400 is shown containing PFD) 410,CP 490,capacitor 440, block 470, RS-latch 450 andcorrection block 460.CP 490 is shown containing 420 and 430, and switches 421 and 431.current sources 498 and 499 represent power and ground terminals respectively.Terminals PFD 410 may be implemented identical toPFD 210 ofFIG. 2 , and generates UP and DOWN signals on 411 and 412. Signals UP and DOWN have similar functionality as described with respect to UP (211) and DOWN (212) ofrespective paths FIG. 2 , withPFD 410 operating similar toPFD 210, and their description is not repeated here in the interest of conciseness. - Similar to
CP 290 ofFIG. 2 ,CP 490 is controlled by the UP (411) and DOWN (412) signals to either source or sink corresponding currents to or from capacitor 440 (and node 445). In addition, the magnitude of either or both of currents provided by 420 and 430 is adjustable bycurrent sources correction signal 461 generated bycorrection block 460, as described below. - When
device 400 corresponds to a PLL, block 470 represents a VCO, with the voltage onnode 445 controlling the frequency ofOUTPUT CLK 402. Additionally,PLL 400 may contain a divider similar todivider 145 ofFIG. 1A , but not shown inFIG. 4 in the interest of conciseness. Whendevice 400 correspond to a DLL, block 470 represents a VCDL, and additionally receivesREF CLK 401 as an input clock (not shown inFIG. 4 ). The voltage onnode 445 controls the phase ofOUTPUT CLK 402 with respect toREF CLK 401. - RS-
Latch 450 receivesREF CLK 401 andOUTPUT CLK 402 as inputs, and generates digital signals 451(Q) and 452 (Q-BAR) that are representative of the phase difference betweenREF CLK 401 andOUTPUT CLK 402. Correction block 460 processes signals 451 and 452 to generatecorrection signal 461, which may be either a digital signal (or a set of digital signals) or an analog signal (or a set of analog signals), which is used to control an electrical characteristic ofCP 490. An electrical characteristic refers to an electrical parameter (current and voltage). The specific electrical characteristic may differ based on the implementation ofCP 490. In an embodiment, the electrical parameter is current, andcorrection signal 461 is used to adjust the magnitude of either or both of currents provided by 420 and 430, as indicated by the dotted arrows incurrent sources FIG. 4 . - The feedback loop formed by
PFD 410,CP 490,capacitor 440, block 470 andnode 402 represents a ‘main feedback loop’ (primary loop) operating at a frequency equal to that ofREF CLK 401, to lock the phase ofOUTPUT CLK 402 with the phase ofREF CLK 410. RS-latch 450,correction block 460 and the corresponding connections form a feed-forward loop (secondary loop or offset correction loop) that is designed to operate at a relatively lower frequency as compared to the frequency of REF CLK, i.e., the rate of operation of the main feedback loop. The gain provided by RS-latch 450 is typically much higher than that provided byPFD 410. The detection performed by the secondary loop is non-linear, and only provides information about which clock (REF CLK or OUTPUT CLK) is leading/lagging. The overall stability ofdevice 400 is ensured as the secondary non-linear loop is much slower than the main feedback loop. - In an embodiment, the rate (or frequency) at which the value of
correction signal 461 is updated is less than the rate at which signals UP (411) and DOWN (412) are updated. Thus, the rate at whichcorrection signal 461 is updated is less than the frequency ofREF CLK 401. In an embodiment,correction block 460 also receivesREF CLK 401 as an input (although not shown inFIG. 4 ), and updates the value ofcorrection signal 461 at every hundredth clock edge ofREF CLK 401. In the embodiment, it is ensured that the update rate (and thus the offset correction loop/secondary loop) is much slower than the main feedback loop, so that the dynamic characteristics of the main feedback loop are not affected. - In an embodiment, RS-
latch 450 is implemented as shown inFIG. 5 . RS-latch 450 is shown implemented using 510 and 520.NAND gates NAND 510 andNAND 520 respectively receiveREF CLK 401 andOUTPUT CLK 402 as inputs. The output 451 (Q) ofNAND 510 is provided as a second input toNAND 520. The output 452 (Q-BAR) ofNAND 520 is provided as a second input toNAND 510. - While shown implemented using NAND gates, in general, RS-Latch 450 (set-reset latch) can be implemented with alternative structures/gates/interconnections to similarly operate as a non-clocked digital storage element (also termed a latch) for storing one bit. The term ‘RS-latch’ is used in this document to cover all such implementations. The advantages of using an RS-Latch (RS-Latch 450) include the following:
- a) Very high resolution, i.e., ability of the RS-Latch to resolve very small differences in phase.
- b) Very small input referred offset.
- c) Very high gain for small inputs, which ensures that the effect of any offset in any circuit which is used to receive the output(s) of RS-
Latch 450 is reduced substantially when viewed at the input of RS-Latch 450. -
FIGS. 6A and 6B are diagrams illustrating the relation between the inputs and outputs of RS-latch 450 as implemented inFIG. 5 . InFIG. 6A ,REF CLK 401 leadsOUTPUT CLK 402. When both of 401 and 402 are at logic low, each ofsignals 451 and 452 is at logic high. At t610, signal 401 transitions to logic high, whilesignals signal 402 continues to remain at logic low till t620. At t610, signal 451 transitions to logic low in response to the logic high transition ofsignal 401, whilesignal 452 continues to remain at logic high. Thus, a logic low level ofsignal 451 and a logic high level ofsignal 452 indicate thatsignal 401 leadssignal 402. - In
FIG. 6B ,REF CLK 401 lagsOUTPUT CLK 402. When both of 401 and 402 are at logic low, each ofsignals 451 and 452 is at logic high. At t630, signal 402 transitions to logic high, whilesignals signal 401 continues to remain at logic low till t640. At t630, signal 452 transitions to logic low in response to the logic high transition ofsignal 402, whilesignal 452 continues to remain at logic high. Thus, a logic high level ofsignal 451 and a logic low level ofsignal 452 indicate thatsignal 401 lags signal 402. -
Correction block 460 adjusts the current of one or both 420 and 430 based on the value ofcurrent sources 451 and 452. Thus, the correction applied bysignals correction block 460 is based on the polarity of the output (e.g., 451) of RS-Latch 450. In an embodiment, the values of 451 and 452 are averaged over time, and the time averages are then used as the basis for adjusting one or both ofsignals 420 and 430.current sources - In an embodiment, each of
420 and 430 is implemented as a current-DAC (digital to analog converter), andcurrent sources correction block 460 is implemented as shown inFIG. 7 . InFIG. 7 ,correction block 460 is shown containingdigital logic 710 andcounter 720.Digital logic 710 receives 451, 452 and 715 as inputs. Signal 715 represents a clock signal, and is derived fromsignals REF CLK 401, is typically at a lower frequency as compared toREF CLK 401. In response to the values of 451 and 452, and controlled by clock 715,signals digital logic 710 generates count-up and count-down 711 and 712 respectively.signals - When count-up
signal 711 is asserted (count-down 712 being de-asserted) counter 720 counts upwards, incrementing the count at each clock edge of clock 713 (which may be derived from clock 715). When count-down signal 712 is asserted (count-up 711 being de-asserted) counter 720 counts downwards, decrementing the count at each clock edge ofclock 713. The count value generated bycounter 720 may be forwarded onpath 461 at pre-defined intervals (such as, for example, every hundredth edge ofREF CLK 401, indicated by clock 713). The frequencies ofclock 713 and clock 715 can be the same, orclock 713 can be a divide-by-n (n being an integer) version of clock 715. Whenclock 713 is a divide-by-n version of clock 715,counter 720 is updated based on ‘n’ decisions of RS-Latch 450. The advantage of updating counter 720 based on multiple (here n) decisions of RS-Latch 450 is that the effect of jitter ofREF CLK 401 and/orOUTPUT CLK 402 on the loop correction is reduced. This is required as the phase errors which are generated due to jitter are not static phase errors, while the secondary loop may be intended to correct only static phase errors. While using n multiple decisions, it is also possible to create a dead-zone by ensuring that a positive or a negative correction is applied only when there are some minimum detection in the same direction. For example, correction may be applied in the corresponding direction only if at least 75% of the ‘n’ decisions are the same. The creation of such a dead-zone may ensure that the secondary loop does not respond for small values of jitter on REF CLK and/or OUTPUT CLK. - In an embodiment, to ensure that the correction by the secondary loop is much slower than the bandwidth of the main feedback loop, the control word for the current-DAC may be updated only by +1 or −1 (or any other fixed number) in each correction cycle (which may be at a rate which is one-hundredth that of the operation of the main feedback loop, i.e., one hundredth of the frequency of REF CLK 401). In an embodiment, the rate of correction is lesser than the lock time of the main feedback loop of PLL/
DLL 400. - Due to the slow update rate and/or small update magnitude (+1 or −1) of the secondary loop, the correction applied by the secondary loop may take several iterations to converge. Hence, in order to achieve fast initial calibration, a successive approximation (or binary) search is employed initially (e.g., after power-ON of the DLL/PLL), in an embodiment. The binary search initially provides to the current-DAC, a code corresponding to the center of the complete correction range of the secondary loop. Then, the phase offset is determined (as indicated by the outputs (451/452) of RS-Latch 450) once the main feedback loop locks. The determination of the phase offset and the correction according to the binary technique are repeated till the correction converges. Thereafter, correction is done continuously, and with a correction magnitude in each step of +1/−1 (or any fixed magnitude), as noted above. The choice of selecting a correction of +1 or −1 may be based on the polarity (or logic level) of the outputs (451/452) of RS-
Latch 450. Thus, when signals 451 and 452 are logic one and logic zero respectively, the output of RS-Latch 450 is said to be at a polarity opposite to that when signals 451 and 452 are logic zero and logic one respectively.Correction block 460 may be implemented to include the logic necessary for performing the binary search noted above. -
FIG. 13 shows the details ofcurrent source 420 ofFIG. 4 implemented as a current-DAC. In an embodiment, the current-DAC is a binary weighted DAC, and is shown inFIG. 4 containingcurrent sources 1300A-1300N and switches 1310A-1310N. Each ofswitches 1310A-1310N is controlled to be open or closed based on the value of the corresponding bit indigital value 461. Eachcurrent source 1300A-1300N provides a constant current related in a binary weighted fashion. Thus, if the current provided bycurrent source 1300A is (I), then the currents of respectivecurrent sources 1300B-1300N are (2I), (4I), (8I), etc. The number (N) of current sources generally depends on the specific implementation of current-DAC 420, and typically equals the width (number of bits) of the digital value received onpath 461. It is understood that the specific implementation of current-DAC described above is merely illustrative, and current-DAC 420 may be implemented using other techniques as well.Current source 430 may also be implemented in a similar manner, and controlled bysignal 461. -
Signal 461 may contain multiple bits which, for example, may be binary weighted, and used to set the magnitude of currents of one or both of 420 and 430 implemented as current DACs. The specific details ofcurrent sources FIG. 7 are provided merely by way of illustration, and other implementations ofcorrection block 460 would be apparent to one skilled in the relevant arts upon reading the disclosure herein. For example, 420 and 430 may be implemented using other types of DACs, andcurrent sources correction signal 461 can be modified to fit the requirement of the specific DAC implementation. - In the example of
FIG. 7 , the detection of phase difference betweenREF CLK 401 andOUTPUT CLK 402 is accomplished digitally (by RS-Latch 450), and the correction signal (461) is also digital (adjustment of current sources is effected digitally). In another embodiment, the correction signal to adjust the magnitudes of one or both of the current source(s) of the charge pump (CP 490) in the main feedback loop is an analog signal, as illustrated with respect toFIG. 8 . -
FIG. 8 is a diagram ofcorrection circuit 460 in another embodiment.Correction circuit 460 is shown implemented to contain a charge pump circuit (formed by 821 and 831 andswitches current sources 820 and 830) andcapacitor 840. 451 and 452 respectively control the state (open or closed) ofSignals 821 and 831. The (analog) voltage onswitches node 461 is used to adjust the magnitude of one or both of 420 and 430. Although not shown incurrent sources FIG. 8 , additional circuitry may be employed to enable application ofvoltage 461 to one or both 420 and 430 only at discrete time intervals, for example at a rate slower than the frequency ofcurrent sources REF CLK 401. -
FIGS. 9 , 10 and 11 further illustrate specific lower-level details of RS-Latch 450 and associated additional circuitry to clear RS-Latch 450, in another embodiment.FIG. 12 is a timing diagram illustrating the operation of the circuits ofFIGS. 9 , 10 and 11. - Referring to
FIG. 9 , RS-Latch 450 is shown there implemented using three- 910 and 920.input NAND gates NAND 910 receivesREF CLK 401, enable signal 901 (EN) and signal 452 (Q-BAR) as inputs, and generates signal 451 (Q) as output.NAND 920 receivesOUTPUT CLK 402, enable signal 901 (EN) and signal 451 (Q) as inputs, and generates signal 452 (Q-BAR) as output. -
FIG. 10 is shown containing D-type flip-flops (FF) 1010 and 1020, NORgate 1040 andOR gate 1030. NORgate 1040 receivessignals REF CLK 401 andOUTPUT CLK 402 as inputs.FF 1010 receives a signal AYSNC-EN (1011) at its D-input and the output of NORgate 1040 on its clock input. The output ofFF 1010 is provided as signal 1012 (SYNC-EN) to the clock input ofFF 1020. The D-input ofFF 1020 is connected to apower supply terminal 1098. The reset (RST) input ofFF 1020 is connected to the output ofOR gate 1030, which receives signal 1031 (VALID) and 1032 (RESET) as inputs. -
FIG. 11 is shown containing D-type FF 1110, 1130 and 1140 and exclusive-OR (XOR)inverter gates gate 1120.XOR gate 1120 receives 451 and 452 as inputs. The output ofsignals XOR gate 1120 is propagated through 1130 and 1140 to generate signal 1031 (VALID). The clock input ofinverters FF 1110 is connected to signal 1031 (VALID). THE D-input ofFF 1110 is connected to signal 452. The output 1111 (CNTRL) ofFF 1110 is provided as input to an UP/DOWN similar to counter 720 ofFIG. 7 . The operation of the blocks ofFIGS. 9 , 10 and 11 is provided next, with reference to the timing diagram ofFIG. 12 . - At system reset or initialization,
RESET 1032 pulses to logic high. Consequently, signal 901 (EN) is at logic zero. WithEN 901 at logic zero, Q (451) and Q-BAR (452) are forced to remain at logic one. At time instance t1200, ASYNC-EN (1011) is set to logic high. In response to signal 402 transitioning to logic zero (withsignal 401 also being a logic zero), signal 1012 (SYNC-EN) is asserted, and therefore, signal 901 (EN) is set to logic high at t1201. - With
EN 901 at logic high, RS-Latch 450 is free to respond to 401 and 402. Consequently, at t1202, when 401 REF CLK transitions to logic high (withsignals signal 402 being a logic zero), signal 451 (Q) transitions to logic zero, while signal 452 (Q-BAR) remains at logic high. As result, signal 1032 (VALID) transitions to logic high, and Q-BAR (452) is reflected as signal 1111 (CNTRL). Further, the transition to logic high of signal 1032 (VALID) also resets 901 (EN) to logic zero, shown occurring at t1203. The logic level of 1111 (CNTRL) is provided to an UP/DOWN similar to counter 720 ofFIG. 7 , with the counter counting upwards when CNTRL is a logic high and counting downwards when CONTRL is a logic low. - In response to
EN 901 resetting to logic low at t1203, signals Q and Q-BAR are each forced to logic high, which in turn resets signal 1031 (VALID) to logic low. Signal 1011 (ASYNC-EN) is reset to logic zero at t1204. With signal 1011 (ASYNC-EN) at logic zero, EN (901) remains at logic zero. Signal 1011 (ASYNC-EN) may be asserted to logic high at every hundredth cycle ofREF CLK 401, and the operations described above with respect to the timing diagram ofFIG. 12 may repeat for each of such logic high durations of 1011 (ASYNC-EN). - In the illustrations of the Figures, although terminals/nodes are shown with direct connections to various other terminals, it should be appreciated that additional components (as suited for the specific environment) may also be present in the path, and accordingly the connections may be viewed as being electrically coupled to the same connected terminals. In the instant application, power supply and ground terminals are referred to as constant reference potentials.
- While various embodiments of the present disclosure have been described above, it should be understood that they have been presented by way of example only, and not limitation. Thus, the breadth and scope of the present disclosure should not be limited by any of the above-described embodiments, but should be defined only in accordance with the following claims and their equivalents.
Claims (20)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| IN4952CH2012 | 2012-11-28 | ||
| IN4952/CHE/2012 | 2012-11-28 |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| US8723566B1 US8723566B1 (en) | 2014-05-13 |
| US20140145768A1 true US20140145768A1 (en) | 2014-05-29 |
Family
ID=50635622
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US13/762,411 Expired - Fee Related US8723566B1 (en) | 2012-11-28 | 2013-02-08 | Correcting for offset-errors in a PLL/DLL |
Country Status (1)
| Country | Link |
|---|---|
| US (1) | US8723566B1 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US12461146B2 (en) * | 2022-09-13 | 2025-11-04 | Nxp B.V. | Analog phase selection test system |
| TWI914198B (en) | 2024-10-08 | 2026-02-01 | 南亞科技股份有限公司 | Delay locked loop device |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9588497B1 (en) * | 2016-07-27 | 2017-03-07 | Silicon Laboratories Inc. | Differential voltage-controlled oscillator analog-to-digital converter using input-referred offset |
| JP7041512B2 (en) * | 2017-12-27 | 2022-03-24 | ラピスセミコンダクタ株式会社 | Semiconductor devices and test methods |
| CN109104194A (en) * | 2018-08-07 | 2018-12-28 | 上海艾为电子技术股份有限公司 | A kind of digital analog converter and digital power amplifier subsystem |
| CN109104196A (en) * | 2018-08-07 | 2018-12-28 | 上海艾为电子技术股份有限公司 | A kind of digital analog converter and digital power amplifier subsystem |
| CN120639088B (en) * | 2025-08-14 | 2025-11-28 | 西北工业大学 | A high-reliability, low-power latch detector |
Family Cites Families (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20020176188A1 (en) | 2001-05-25 | 2002-11-28 | Infineon Technologies N.A. Inc. | Offset cancellation of charge pump based phase detector |
| US6917658B2 (en) * | 2002-09-16 | 2005-07-12 | Silicon Labs Cp, Inc. | Clock recovery method for bursty communications |
| US7902886B2 (en) * | 2007-10-30 | 2011-03-08 | Diablo Technologies Inc. | Multiple reference phase locked loop |
| JP5457813B2 (en) * | 2009-12-16 | 2014-04-02 | ルネサスエレクトロニクス株式会社 | ADPLL circuit, semiconductor device and portable information device |
| JP2012060395A (en) * | 2010-09-08 | 2012-03-22 | Panasonic Corp | Pll frequency synthesizer |
| KR101695311B1 (en) * | 2010-12-23 | 2017-01-11 | 한국전자통신연구원 | Fractional digital pll with analog phase error compensation apparatus |
| US9257994B2 (en) * | 2012-03-22 | 2016-02-09 | Amr M. Lotfy | Apparatus and system for digitally controlled oscillator |
-
2013
- 2013-02-08 US US13/762,411 patent/US8723566B1/en not_active Expired - Fee Related
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US12461146B2 (en) * | 2022-09-13 | 2025-11-04 | Nxp B.V. | Analog phase selection test system |
| TWI914198B (en) | 2024-10-08 | 2026-02-01 | 南亞科技股份有限公司 | Delay locked loop device |
Also Published As
| Publication number | Publication date |
|---|---|
| US8723566B1 (en) | 2014-05-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10686584B2 (en) | Quadrature and duty cycle error correction in matrix phase lock loop | |
| US11012081B2 (en) | Apparatus and methods for digital phase locked loop with analog proportional control function | |
| US8253454B2 (en) | Phase lock loop with phase interpolation by reference clock and method for the same | |
| US8373460B2 (en) | Dual loop phase locked loop with low voltage-controlled oscillator gain | |
| US8704566B2 (en) | Hybrid phase-locked loop architectures | |
| US8019022B2 (en) | Jitter-tolerance-enhanced CDR using a GDCO-based phase detector | |
| US9083356B1 (en) | Systems and methods of phase-locked loop involving closed-loop, continuous frequency range, auto calibration and/or other features | |
| US7598775B2 (en) | Phase and frequency detector with zero static phase error | |
| US8723566B1 (en) | Correcting for offset-errors in a PLL/DLL | |
| US8384456B1 (en) | Integrated phase-locked and multiplying delay-locked loop with spur cancellation | |
| US20110234272A1 (en) | Method and apparatus for charge pump linearization in fractional-n plls | |
| US8203369B2 (en) | Fast-locking bang-bang PLL with low ouput jitter | |
| KR100717103B1 (en) | Phase-locked-loop circuit for automatically tuning the oscillation frequency of a voltage-controlled oscillator and delayed-loop circuit for automatically tuning the delay time of a delay line | |
| US20160336923A1 (en) | Phase locked loop with low phase-noise | |
| US7012473B1 (en) | Current steering charge pump having three parallel current paths preventing the current sources and sinks to turn off and on | |
| US9853650B1 (en) | Method and apparatus of frequency synthesis | |
| US11736113B2 (en) | Automatic hybrid oscillator gain adjustor circuit | |
| Hati et al. | A PFD and Charge Pump switching circuit to optimize the output phase noise of the PLL in 0.13-µm CMOS | |
| US11418200B2 (en) | Fractional-N phase lock loop (PLL) with noise cancelation | |
| US6778026B2 (en) | High-speed phase frequency detection module | |
| Vamvakos et al. | Phase-locked loop architecture for adaptive jitter optimization | |
| KR102418077B1 (en) | Injection-locked PLL architecture using sub-sampling-based frequency tracking loop and delay locked loop | |
| Sanchez-Azqueta et al. | A phase detection scheme for clock and data recovery applications | |
| Cheng et al. | A 0.5 V 2.4 GHz Digital PLL with a Sub-Feedback Loop Technique | |
| Albittar et al. | A novel technique for duty cycle correction for reference clocks in frequency synthesizers |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| AS | Assignment |
Owner name: COSMIC CIRCUITS PVT LTD, INDIA Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:MATHUR, RISHI;ARYA, JYOTI;BHOWMIK, PRASENJIT;REEL/FRAME:029778/0048 Effective date: 20130208 |
|
| AS | Assignment |
Owner name: CADENCE AMS DESIGN INDIA PRIVATE LIMITED, INDIA Free format text: CHANGE OF NAME;ASSIGNOR:COSMIC CIRCUITS PVT LTD.;REEL/FRAME:032537/0393 Effective date: 20131211 |
|
| STCF | Information on status: patent grant |
Free format text: PATENTED CASE |
|
| MAFP | Maintenance fee payment |
Free format text: PAYMENT OF MAINTENANCE FEE, 4TH YEAR, LARGE ENTITY (ORIGINAL EVENT CODE: M1551) Year of fee payment: 4 |
|
| FEPP | Fee payment procedure |
Free format text: MAINTENANCE FEE REMINDER MAILED (ORIGINAL EVENT CODE: REM.); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY |
|
| LAPS | Lapse for failure to pay maintenance fees |
Free format text: PATENT EXPIRED FOR FAILURE TO PAY MAINTENANCE FEES (ORIGINAL EVENT CODE: EXP.); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY |
|
| STCH | Information on status: patent discontinuation |
Free format text: PATENT EXPIRED DUE TO NONPAYMENT OF MAINTENANCE FEES UNDER 37 CFR 1.362 |
|
| FP | Lapsed due to failure to pay maintenance fee |
Effective date: 20220513 |