The present invention is generally related to components of digital phase locked loops. In particular, the present invention provides an apparatus and method for rapidly determining a phase difference between an output signal and a reference signal in an all-digital phase locked loop.
Phase locked loops (PLLs) have a variety of applications in various fields. In hard disc drives, for example, PLLs are commonly used to extract clock information from the data signal and thus synchronize the data retrieval with internal functions of the read channel, to ensure that incoming data is retrieved and analyzed correctly. In order to perform this function, a PLL needs to be able to follow the phase as well as the frequency of the read signal. A key component of PLLs is the phase measure circuit, which is also referred to as a phase comparator or phase detector in the literature.
VCO 114's output (node 116) is the frequency output from the circuit and equals N*f(ref. This signal is fed into frequency divider 118 that divides f(clk) by N, which is an integer value in the range of 1, 2, . . . , N. The output of frequency divider 118 equals f(clk)/N at steady-state and this is the second input to phase detector 104. This completes the feedback loop. Since both inputs to phase detector 104 equal f(clk)/N, any shift in one of these frequencies will be detected by phase detector 104 and feed through charge pump 106 to voltage controlled oscillator 114. This results in f(clk) being adjusted to bring it back into sync to a value N*f(ref). This in sync condition is known as being “in lock,” hence the name phase-locked loop.
At steady-state, as one skilled in the art will recognize, the voltage Vc will be a DC constant. For instance, when a PLL is used as a frequency synthesizer, Vc will largely stay constant. The low-pass filter of a PLL is therefore designed to block out spurious AC signals that may corrupt Vc.
In many cases, however, the reference voltage will vary over time. One commonly encountered situation where this occurs is when a PLL is used to demodulate frequency-modulated (FM) radio signals. In an FM radio signal, the frequency of the signal is constantly changing. Thus, there is a need to be able to rapidly re-obtain lock.
The structure of low-pass filter 108 addresses these dual concerns. Capacitor 112 drains away high-frequency signal components to ground, thus spurious AC signals are prevented from reaching VCO 114. Capacitor 112 by itself, however, makes for a rather unstable system, and particularly so because it is coupled to charge pump 106. Instantaneous changes in the reference frequency can result in ringing at a lone shunt capacitor. This translates into a slower lock, since the ringing must die down before a stable lock is established. Thus, resistor 110 is placed in series with capacitor 112 to provide a damping effect. This damping reduces the degree and length of ringing, so that lock may be more rapidly obtained.
In order to fully implement a PLL in an ASIC (application-specific integrated circuit) design using programmable circuit arrays such as FPGAs (field programmable gate arrays), a fully digital PLL design is needed, and analog circuit components such as phase/frequency detector 104 must be replaced with equivalent digital circuits. An example of an existing approach to the design of an all-digital phase/frequency detector can be found in U.S. Pat. No. 5,757,868 to Kelton et al. A schematic diagram of the Kelton et al. phase/frequency detector is provided in
In the Kelton et al. phase/frequency detector, an input signal 208 is synchronized at D flip-flop 201 with a reference clock signal 200 provided by local oscillator 203. Reference clock signal 200 is at a frequency that is 2N times a base reference frequency LO, where N is a constant. Output 209 of D flip-flop 201 is combined with a second reference clock signal 212 at exclusive-nor (XNOR) gate 202. Reference clock signal 212 is at the base reference frequency LO. XNOR gate 202 acts as a one-bit multiplier, and its resultant output 210 is provided to and gate 206, which performs a Boolean “and” operation on reference clock signal 200 and resultant 210. Output 213 of and gate 206 drives the clock input of N-bit counter 207, thus causing counter 207 to increment (or decrement, depending on the design) during periods of time in which reference clock signal 212 and input signal 208 have the same value. A third reference clock signal 214 at a frequency of 2LO is used to reset counter 207.
At the end of every cycle of reference clock signal 214, output 215 of counter 207 is a number that reflects the amount of phase error between input signal 208 and reference clock signal 212. Since reference clock signal 214 has a frequency of 2LO, if input signal 208 and reference clock signal 212 are perfectly in phase, counter 207 will have cycled through all 2N of its possible output values two times, and, thus, output 215 will be zero. If input signal 208 and reference clock signal 212 are not perfectly in phase, however, counter 207 will not have gone through two complete cycles of 2N output values, and output 215 will be a non-zero number. A sign detector 205 takes resultant 210, reference clock signal 214, and output 215 as inputs, and derives a signed numerical phase error 216.
For high frequency input signals, however, the Kelton et al. approach and similar counter-based designs can be somewhat impractical, however. That is because reference clock signal 200 (i.e., the clock signal that drives the counter) must be several orders of magnitude higher in frequency than the input signal, in order to have an acceptable level of accuracy. For example, if the input signal frequency is 30 MHz, a counter clock frequency of 3 GHz is needed in order to achieve +/−1% accuracy. Depending on the nature of the PLL application, such an approach may be prohibitively expensive at the frequencies of interest.
Thus, there is a need for a high-speed phase/frequency comparator design for use in phase locked loops. The present invention provides a solution to this and other problems, and offers other advantages over previous solutions.
A preferred embodiment of the present invention provides an apparatus and method for detecting a phase difference between an input signal and a reference signal in an all-digital phase locked loop (PLL). An N-stage tapped delay line and N-bit parallel latch are used to create a snapshot of the waveform of the input signal by latching the output of the tapped delay line using the reference signal as the clock signal to the latch. An edge detector and encoder circuit translate the latched snapshot into a numerical phase difference value. A difference between this phase difference value and a desired phase difference is calculated, and this resulting difference is added to the value stored in an accumulator. The resulting value in the accumulator is a numerical phase error value that can be fed to a numerically controlled oscillator (NCO). The output of the NCO can, in turn, be fed back into the phase/frequency comparator as the input signal, thus forming a fully-digital PLL that can be incorporated into a digital application-specific integrated circuit (ASIC) design.
These and various other features and advantages that characterize the present invention will be apparent upon reading of the following detailed description and review of the associated drawings.
N-bit parallel latch 302 latches in the outputs of N-bit tapped delay line 300 when reference clock signal 303 transitions (either from low to high or high to low, depending on the latch design). The output of N-bit parallel latch 302 is thus a snapshot of the progress of input signal 301 through N-bit tapped delay line 300 over one cycle of reference clock signal 303. This snapshot is fed into N-bit edge detect circuit 304, which is described in more detail in
Weighted encoder 306 converts the output of N-bit edge-detect circuit 304 into a numerical phase difference value that reflects the phase difference between input signal 301 and reference signal 303. Phase difference calculator 308 calculates the difference between the output of weighted encoder 306 and a lock point input 309. Lock point input 309 is used to specify a particular desired phase difference between input signal 301 and reference signal 303. The output of phase difference calculator 308 is added to the value stored in an accumulator 310. Accumulator 310 serves as the digital counterpart to low-pass filter 108 in the analog PLL of
There are N inputs 400 and N outputs 404. Each of outputs 404 is the Boolean conjunction (“and”) of its corresponding input in inputs 400 with the Boolean complement (“not”) of the preceding input in inputs 400. More specifically, if inputs 400 are numbered D1, D2, . . . , DN from top to bottom, and outputs 404 are numbered Q1, Q2, . . . , QN from top to bottom, then Q2=D2 & ˜D1, Q3=D3 & ˜D2, and so forth. Input 402 (which may be thought of as “D0”) is permanently fixed at a logic-low (0) state and is used as the “preceding” input of the first input in inputs 400, so as to keep the propagation delays from inputs 400 to outputs 404 uniform.
The logic function computed by the edge detector depicted in
The fully digital PLL depicted in
Thus, a preferred embodiment of the present invention provides an apparatus and method for detecting a phase difference between an input signal and a reference signal in an all-digital phase locked loop (PLL), which can be incorporated into a digital application-specific integrated circuit (ASIC) design, such as a disc drive controller chip, or a programmable integrated circuit, such as a field-programmable gate array (FPGA). Specifically, a novel apparatus and method for controlling the arrival of a disc drive arm assembly at a track, are herein disclosed and characterized by steps of propagating a first signal through a tapped delay line; latching outputs of the tapped delay line in a parallel latch in response to a transition in a second signal to obtain a snapshot of the first signal at a point in time; mapping the snapshot to a numerical phase difference value; combining the numerical phase difference value with a value in an accumulator to obtain a new accumulator value; and presenting the new accumulator value as a result of a phase comparison.
The description of the present invention has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiment was chosen and described in order to best explain the principles of the invention, the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.
This application claims the benefit of the filing date of corresponding U.S. Provisional Patent Application No. 60/404,683, entitled “HIGH FREQUENCY ALL DIGITAL PHASE-FREQUENCY COMPARATOR,” filed Aug. 20, 2002.
Number | Name | Date | Kind |
---|---|---|---|
5121070 | Tomita | Jun 1992 | A |
5193103 | Singh et al. | Mar 1993 | A |
5313503 | Jones et al. | May 1994 | A |
5473274 | Reilly et al. | Dec 1995 | A |
5537069 | Volk | Jul 1996 | A |
5596614 | Ledda | Jan 1997 | A |
5648994 | Kao | Jul 1997 | A |
5671258 | Burns et al. | Sep 1997 | A |
5757868 | Kelton et al. | May 1998 | A |
5764709 | Whiteside | Jun 1998 | A |
5818265 | Meller et al. | Oct 1998 | A |
5883536 | Patterson | Mar 1999 | A |
5896067 | Williams | Apr 1999 | A |
5942937 | Bell | Aug 1999 | A |
5990673 | Forsberg | Nov 1999 | A |
5994932 | Ando | Nov 1999 | A |
6087868 | Millar | Jul 2000 | A |
6107890 | Carson et al. | Aug 2000 | A |
6351154 | Brachmann et al. | Feb 2002 | B2 |
6388480 | Stubbs et al. | May 2002 | B1 |
6404248 | Yoneda | Jun 2002 | B1 |
6414526 | Guinea et al. | Jul 2002 | B1 |
6429693 | Staszewski et al. | Aug 2002 | B1 |
6493653 | Drinkard et al. | Dec 2002 | B1 |
6552619 | Shastri | Apr 2003 | B2 |
6593773 | Staszewski et al. | Jul 2003 | B2 |
6630868 | Perrott et al. | Oct 2003 | B2 |
6819157 | Cao et al. | Nov 2004 | B2 |
Number | Date | Country | |
---|---|---|---|
20040070432 A1 | Apr 2004 | US |
Number | Date | Country | |
---|---|---|---|
60404683 | Aug 2002 | US |