The invention relates to phase error detection and, more particularly, to phase error detection in phase lock loop and delay lock loop devices.
Phase error (phase offset) is the time difference between relevant edges of the reference input clock and the feedback input to the phase detector of a phase lock loop (PLL). There are two type of phase error: static phase error and dynamic phase error. Static phase error is the time difference between the averaged input reference clock and the averaged feedback input signal when the PLL is in locked mode. Static phase error excludes jitter components. Dynamic phase error is the phase difference between the input clock and output clock due to inability of the PLL to instantaneously update the output clock when the period of the input clock changes. Dynamic phase error is also referred to as tracking skew, and includes jitter.
Phase jitter is the deviation in static phase offset for a controlled edge with respect to a mean value of static phase offset. Static phase error is caused by non-ideal elements in the PLL, such as the charge pump, phase detector, dividers in path, etc. Dynamic phase error is caused by reference clock jitter, VCO jitter, supply noise variations, etc. While zero phase error is ideal, the realistic offset for any PLL system is a measure of the ability of the loop to align the phases of the reference clock to the feedback clock. The wider this offset, the wider the phase relationship of a PLL output clock to the reference clock. The magnitude of the variation of phase offset is thus defined as phase jitter.
A lock detect circuit may be used to determine the lock state of a PLL. Information regarding the lock state of a PLL is used in a variety of applications, such as a macro test pass/fail criteria for manufacturing screen of wafers and modules in test. The lock signal may also be used as an indicator to a higher level system that stable clocking has been achieved and hence subsequent operations may be performed. During power-up or event changes (such as reference clock frequency change/divider value change/output frequency change) the PLL must achieve a lock state before the PLL clock signals or derivatives are suitable for use in downstream processing. Downstream circuits may go on standby mode for a preprogrammed wait time while the PLL is achieving lock.
Lock detect circuits are typically implemented as pure digital circuits that use digital counters. The counters generate pulses on different count codes and ensure that those pulses do not overlap. However, no pulses are generated at times when no feedback clock is present, which may cause the lock indicator to falsely report a lock condition.
In a first aspect of the invention, there is a device including a lock detect circuit that is structured and arranged to: convert a reference clock to a reference triangle wave; convert a feedback clock to a feedback triangle wave; determine whether the feedback triangle wave is within a tolerance margin that is defined relative to the reference triangle wave; and generate a determiner output that is a first value when the feedback triangle wave is not within the tolerance margin and a second value when the feedback triangle wave is within the tolerance margin.
In another aspect of the invention, there is a lock detect circuit including: a first ramp generator that converts a reference clock to a reference triangle wave; and a second ramp generator that converts a feedback clock to a feedback triangle wave. The lock detect circuit also includes a first margin setter that generates: a first margin signal that defines an upper bound of a tolerance margin relative to the reference triangle wave, and a second margin signal that defines a lower bound of the tolerance margin relative to the reference triangle wave. The lock detect circuit further includes: a second margin setter that generates a comparison triangle wave based on the feedback triangle wave; a determiner circuit that continuously compares the comparison triangle wave to the first margin signal and the second margin signal and that generates a determiner output based on the comparing; and a lock signal generation unit that generates a lock detect signal based on the determiner output.
In another aspect of the invention, there is a method of lock detection including: converting a reference clock to a reference triangle wave; converting a feedback clock to a feedback triangle wave; generating a first margin signal that defines an upper bound of a tolerance margin relative to the reference triangle wave; generating a second margin signal that defines a lower bound of the tolerance margin relative to the reference triangle wave; generating a comparison triangle wave based on the feedback triangle wave; continuously comparing the comparison triangle wave to the first margin signal and the second margin signal; generating a determiner output based on the comparing; and generating a lock detect signal based on the determiner output.
The present invention is described in the detailed description which follows, in reference to the noted plurality of drawings by way of non-limiting examples of exemplary embodiments of the present invention.
The invention relates to phase error detection and phase-frequency lock indication and, more particularly, to phase error detection and phase-frequency lock indication in phase lock loop and delay lock loop devices. According to aspects of the invention, analog circuitry is used to compare the phase of a feedback clock and a reference clock using triangular profiles of the clocks. In embodiments, an analog lock detect circuit is configured to: convert square/sinusoidal waves of a reference clock and a feedback clock to respective triangle waves; create a first margin signal and a second margin signal around the reference clock triangle wave; determine in real time whether the feedback clock triangle wave is between the first margin signal and the second margin signal; and generate a lock signal indicating a system lock when the feedback clock triangle wave remains between the high margin signal and the low margin signal for a predetermined amount of time. In this manner, aspects of the invention provide an analog implementation of a phase error detector that is suited for use with phase lock loop and delay lock loop devices.
As described herein, implementations of a lock detect circuit in accordance with aspects of the invention include both frequency and phase match indications, as opposed to separate frequency only lock indicators and phase only lock indicators. Implementations of the invention advantageously provide a high accuracy for defined margin. Implementations of the invention also advantageously avoid false lock indications that may occur in digital lock detect circuits. This is due to the analog lock detect circuit of the present invention utilizing the feedback clock, and only indicating a lock state when a triangle wave generated by the feedback clock falls within a tolerance margin defined by an upward offset and a downward offset applied to a triangle wave generated by the reference clock. Implementations of the invention also advantageously provide tunable tolerance settings in that the tolerance margin defined by upward offset and a downward offset can be programmed/changed.
Low precision digital lock indicators do not take precision of frequency and phase settling into account, and these circuits usually place several disclaimers on the usage of the lock signal. Highly precise digital lock indicators, on the other hand, have a tight window within which frequency and/or phase deviations are permitted to occur. The definition of the acceptable margin is one of the specifications of the lock detection circuit and the overall PLL architecture. The margin takes into account the allowable VCO jitter, reference clock jitter, and supply noise variation tolerable by the PLL application. The downstream application may be able to tolerate a certain percentage of frequency or phase deviation; however, when the lock indicator has a tighter margin it can hinder the system by indicating a loss of phase/frequency lock even though the system is capable of handling the offset.
Implementations of the lock detect circuit 300 advantageously utilize a triangle wave profile because a DC-shifted copy of a triangle wave has a constant voltage difference from the original triangle wave at any given time. In embodiments, DC-shifting the reference clock based triangle wave is used to set the margin of tolerance for the frequency and phase mismatch. While other kinds of waves (such a saw-tooth or square wave) can also be DC-shifted, the waveforms have sharp high slew transitions in one or both edges and thus create discontinuities in the acceptable margin profile. Accordingly, the triangle wave profile is preferred to provide a consistent margin profile that has smooth transitions. However, the invention is not limited to use with a triangle wave, and any suitable wave that accomplishes the functions described herein may be used in implementations of the invention.
With continued reference to
In embodiments, the margin setter 310a shown in
As shown in
In embodiments, the margin setter 310b shown in
Still referring to
In embodiments, the comparators 315a, 315b each comprise analog circuitry that performs the comparisons in real time. Specifically, REF_hi and FBK_mid are provided as inputs to the comparator 315a. The output 330a of the comparator 315a is a value of 1 when FBK_mid is greater than REF_hi and a value of 0 at all other times. Thus, the comparator 315a is used to determine whether FBK_mid is greater than REF_hi. Additionally, REF_lo and FBK_mid are provided as inputs to the comparator 315b. The output 330b of the comparator 315b is a value of 1 when FBK_mid is less than REF_lo and a value of 0 at all other times. Thus, the comparator 315b is used to determine whether FBK_mid is less than REF_lo.
The outputs 330a, 330b are provided as inputs to the OR gate 320. In this manner, the output 335 of the OR gate 320 has a value of 0 when FBK_mid is between REF_hi and REF_lo, and a value of 1 when FBK_mid is outside of the band defined between REF_hi and REF_lo. In this manner, the output 335 of the OR gate 320 has a first value (e.g., 0) when REFCLK and FBKCLK are locked in frequency and phase within the predetermined tolerance defined in the specification, and a second value (e.g., 1) when REFCLK and FBKCLK are not locked. In this manner, the comparators 315a, 315b and the OR gate 320 collectively define a determiner circuit that continuously compares a comparison triangle wave (i.e., FBK_mid) to a first margin signal (i.e., REF_hi) and a second margin signal (i.e., REF_lo), wherein the determiner circuit generates a determiner output (i.e., the output 335 of the OR gate 320) based on the comparing.
Still referring to
As shown in
Still referring to
The lock signal generation unit 325 of
At step 620, the REF_hi signal and the REF_lo signal are created based on REF_mid. Step 620 may be performed in the manner described with respect to
Still referring to
At step 640, it is determined whether the instantaneous value of FBK_mid is less than REF_hi and greater than REF_lo, i.e., whether FBK_mid is within the tolerance margin defined by REF_hi and REF_lo. Step 640 may be performed by the comparators 315a, 315b and the OR gate 320 described with respect to
When FBK_mid is between REF_hi and REF_lo at step 640, then at step 650 a wait time Twait is waited. At step 655, it is determined whether the value of Vwait is greater than or equal to a value of Vtimeout. In embodiments, Vwait is the output value of the integrator 340 of the lock signal generation unit 325 described with respect to
In accordance with an aspect of the invention, a method of lock detection includes converting the time period information of a reference clock (REFCLK) into a voltage value by way of integration (ramp-up) for a cycle and de-integration (ramp-down) for the next cycle. The method includes converting the time period information of a feedback clock (FBKCLK) into a voltage value by way of integration of similar characteristics (ramp-up) for a cycle and de-integration of similar characteristics (ramp-down) for the next cycle. The method includes creating a voltage varying upper limit (REF_hi) and lower limit (REF_lo) of the converted reference clock based on a user defined tolerance margin such that these limits track the converted reference clock in real-time with DC-shifts. The method includes comparing the converted feedback clock continuously to the upper and lower limits to determine whether the converted feedback clock is within the limits. When the converted feedback clock is within the bounds defined by the upper and lower limits, the method further includes waiting a predetermined amount of time to signify frequency and phase match, after which the method repeats. The predetermined amount of time is a wait scheme implemented also by an integration and whose characteristics have a much longer time constant than that associated with the reference clock and the feedback clock. When the converted feedback clock is outside the bounds defined by the upper and lower limits, the method further includes indicating an un-lock state.
In accordance with an aspect of the invention, a circuit for lock detection includes a ramp generator that converts a reference clock (REFCLK) to a triangle wave profile (REF_ramp) such that ramp-up is one time period and ramp-down is the adjacent time period. The circuit includes an identical ramp generator that converts a feedback clock (FBKCLK) to a triangle wave profile (FBK_ramp). The circuit includes a margin setting structure to create upper and lower voltage tolerance levels (REF_hi) and lower limit (REF_lo) that track with REF_ramp. The circuit includes a second optional margin setting structure, identical to the first margin setting structure, to process FBK_ramp for matching delay as well as match the DC level of REF_ramp. The circuit includes a set of comparators to check whether FBK_ramp lies within the upper and lower tolerance levels at any given time, and generate a logic flag when not within the tolerance levels. The circuit includes an integrator with a long time constant that is reset each time the logic flag happens, signifying an unlocked condition. The integrator is otherwise in integration mode increasing its output value toward a predetermined voltage (Vtimeout). The circuit includes a comparator to signify a lock signal when the output voltage of the integrator is more than the predetermined voltage corresponding to a wait time.
The circuits of the present invention can be implemented in semiconductor structures, which can be manufactured in a number of ways using a number of different tools. In general, though, the methodologies and tools are used to form the semiconductor implementations with dimensions in the micrometer and nanometer scale. The methodologies, i.e., technologies, employed to manufacture the semiconductor implementations have been adopted from integrated circuit (IC) technology. For example, the semiconductor implementations are built on wafers and are realized in films of material patterned by photolithographic processes on the top of a wafer. In particular, the fabrication of the semiconductor implementations uses three basic building blocks: (i) deposition of thin films of material on a substrate, (ii) applying a patterned mask on top of the films by photolithographic imaging, and (iii) etching the films selectively to the mask.
The method as described above is used in the fabrication of integrated circuit chips. The resulting integrated circuit chips can be distributed by the fabricator in raw wafer form (that is, as a single wafer that has multiple unpackaged chips), as a bare die, or in a packaged form. In the latter case the chip is mounted in a single chip package (such as a plastic carrier, with leads that are affixed to a motherboard or other higher level carrier) or in a multichip package (such as a ceramic carrier that has either or both surface interconnections or buried interconnections). In any case the chip is then integrated with other chips, discrete circuit elements, and/or other signal processing devices as part of either (a) an intermediate product, such as a motherboard, or (b) an end product. The end product can be any product that includes integrated circuit chips, ranging from toys and other low-end applications to advanced computer products having a display, a keyboard or other input device, and a central processor.
The descriptions of the various embodiments of the present invention have been presented for purposes of illustration, but are not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the embodiments, the practical application or technical improvement over technologies found in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.
Number | Name | Date | Kind |
---|---|---|---|
3893042 | Whitman et al. | Jul 1975 | A |
4087628 | Sanders et al. | May 1978 | A |
4437072 | Asami | Mar 1984 | A |
4724402 | Ireland | Feb 1988 | A |
4870382 | Keate et al. | Sep 1989 | A |
4870660 | Keate | Sep 1989 | A |
4884035 | Cok et al. | Nov 1989 | A |
5008635 | Hanke et al. | Apr 1991 | A |
5099213 | Yamakawa et al. | Mar 1992 | A |
5256989 | Parker et al. | Oct 1993 | A |
5278520 | Parker et al. | Jan 1994 | A |
5294894 | Gebara | Mar 1994 | A |
5315186 | Baker | May 1994 | A |
5327103 | Baron et al. | Jul 1994 | A |
5337022 | Pritchett | Aug 1994 | A |
5394444 | Silvey et al. | Feb 1995 | A |
5406590 | Miller et al. | Apr 1995 | A |
5410571 | Yonekawa et al. | Apr 1995 | A |
5491439 | Kelkar et al. | Feb 1996 | A |
5525932 | Kelkar et al. | Jun 1996 | A |
5530383 | May | Jun 1996 | A |
5656977 | Kelkar et al. | Aug 1997 | A |
5680076 | Kelkar et al. | Oct 1997 | A |
5757857 | Buchwald | May 1998 | A |
5870002 | Ghaderi et al. | Feb 1999 | A |
5963608 | Casper et al. | Oct 1999 | A |
6112125 | Sandusky | Aug 2000 | A |
6115438 | Andresen | Sep 2000 | A |
6133769 | Fontana et al. | Oct 2000 | A |
6177842 | Ahn et al. | Jan 2001 | B1 |
6215834 | McCollough | Apr 2001 | B1 |
6404240 | Hakkal et al. | Jun 2002 | B1 |
6466058 | Goldman | Oct 2002 | B1 |
6496554 | Anh | Dec 2002 | B1 |
6542041 | Choi | Apr 2003 | B2 |
6566920 | Kim | May 2003 | B1 |
6670834 | Swanson | Dec 2003 | B1 |
6714083 | Ishibashi | Mar 2004 | B2 |
6757349 | Katayama et al. | Jun 2004 | B1 |
6760394 | Cao et al. | Jul 2004 | B1 |
6762631 | Kumar | Jul 2004 | B1 |
6765444 | Wang et al. | Jul 2004 | B2 |
6794944 | Hirai | Sep 2004 | B2 |
6798858 | Atallah et al. | Sep 2004 | B1 |
6825702 | Montagnana | Nov 2004 | B2 |
6879195 | Green et al. | Apr 2005 | B2 |
6954510 | Lee | Oct 2005 | B2 |
7015727 | Balasubramanian | Mar 2006 | B2 |
7116145 | Kim et al. | Oct 2006 | B2 |
7183818 | Tsuji | Feb 2007 | B2 |
7183861 | Jung | Feb 2007 | B2 |
7227386 | Chen | Jun 2007 | B2 |
7268629 | Takase | Sep 2007 | B2 |
7323946 | Seefeldt et al. | Jan 2008 | B2 |
7397881 | Yamazaki | Jul 2008 | B2 |
7480361 | Zhang et al. | Jan 2009 | B1 |
7620126 | Boerstler et al. | Nov 2009 | B2 |
7715725 | Takasaka et al. | May 2010 | B2 |
7777540 | Peng et al. | Aug 2010 | B2 |
8040156 | Lee et al. | Oct 2011 | B2 |
8059774 | Kong et al. | Nov 2011 | B2 |
8076979 | Kathuria et al. | Dec 2011 | B2 |
9252788 | Stanton et al. | Feb 2016 | B1 |
20070090887 | Seefeldt | Apr 2007 | A1 |
20100127742 | Chen | May 2010 | A1 |
20130050013 | Kobayashi et al. | Feb 2013 | A1 |
Number | Date | Country |
---|---|---|
102497203 | Jun 2012 | CN |
05259901 | Oct 1993 | JP |
09307436 | Nov 1997 | JP |
10322200 | Dec 1998 | JP |
Entry |
---|
Spice, “Op Amp Triangle-Wave Generator” eCircuit Center, http://www.ecircuitcenter.com/Circuits/op—tri—gen/op—tri—gen.htm, 2005, 6 Pages. |
Store, “The Integrator Amplifier”, http://www.electronics-tutorials.ws/opamp/opamp—6.html, Sep. 9, 2014; 7 Pages. |
Number | Date | Country | |
---|---|---|---|
20160079990 A1 | Mar 2016 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 14483565 | Sep 2014 | US |
Child | 14940644 | US |