US20070263757A1 - Digital clock recovery circuit - Google Patents

Digital clock recovery circuit Download PDF

Info

Publication number
US20070263757A1
US20070263757A1 US11/879,689 US87968907A US2007263757A1 US 20070263757 A1 US20070263757 A1 US 20070263757A1 US 87968907 A US87968907 A US 87968907A US 2007263757 A1 US2007263757 A1 US 2007263757A1
Authority
US
United States
Prior art keywords
clock
frequency
indication
phase
counter
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.)
Abandoned
Application number
US11/879,689
Inventor
William Dally
John Edmondson
Ramin Farjad-Rad
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to US11/879,689 priority Critical patent/US20070263757A1/en
Publication of US20070263757A1 publication Critical patent/US20070263757A1/en
Abandoned legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/02Speed or phase control by the received code signals, the signals containing no special synchronisation information
    • H04L7/033Speed or phase control by the received code signals, the signals containing no special synchronisation information using the transitions of the received signal to control the phase of the synchronising-signal-generating means, e.g. using a phase-locked loop
    • H04L7/0331Speed or phase control by the received code signals, the signals containing no special synchronisation information using the transitions of the received signal to control the phase of the synchronising-signal-generating means, e.g. using a phase-locked loop with a digital phase-locked loop [PLL] processing binary samples, e.g. add/subtract logic for correction of receiver clock
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03LAUTOMATIC CONTROL, STARTING, SYNCHRONISATION, OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
    • H03L7/00Automatic control of frequency or phase; Synchronisation
    • H03L7/06Automatic control of frequency or phase; Synchronisation using a reference signal applied to a frequency- or phase-locked loop
    • H03L7/08Details of the phase-locked loop
    • H03L7/081Details of the phase-locked loop provided with an additional controlled phase shifter
    • H03L7/0812Details of the phase-locked loop provided with an additional controlled phase shifter and where no voltage or current controlled oscillator is used
    • H03L7/0814Details of the phase-locked loop provided with an additional controlled phase shifter and where no voltage or current controlled oscillator is used the phase shifting device being digitally controlled
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03LAUTOMATIC CONTROL, STARTING, SYNCHRONISATION, OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
    • H03L7/00Automatic control of frequency or phase; Synchronisation
    • H03L7/06Automatic control of frequency or phase; Synchronisation using a reference signal applied to a frequency- or phase-locked loop
    • H03L7/08Details of the phase-locked loop
    • H03L7/085Details of the phase-locked loop concerning mainly the frequency- or phase-detection arrangement including the filtering or amplification of its output signal
    • H03L7/089Details 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
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03LAUTOMATIC CONTROL, STARTING, SYNCHRONISATION, OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
    • H03L7/00Automatic control of frequency or phase; Synchronisation
    • H03L7/06Automatic control of frequency or phase; Synchronisation using a reference signal applied to a frequency- or phase-locked loop
    • H03L7/08Details of the phase-locked loop
    • H03L7/085Details of the phase-locked loop concerning mainly the frequency- or phase-detection arrangement including the filtering or amplification of its output signal
    • H03L7/091Details 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 using a sampling device
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03LAUTOMATIC CONTROL, STARTING, SYNCHRONISATION, OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
    • H03L7/00Automatic control of frequency or phase; Synchronisation
    • H03L7/06Automatic control of frequency or phase; Synchronisation using a reference signal applied to a frequency- or phase-locked loop
    • H03L7/08Details of the phase-locked loop
    • H03L7/085Details of the phase-locked loop concerning mainly the frequency- or phase-detection arrangement including the filtering or amplification of its output signal
    • H03L7/093Details of the phase-locked loop concerning mainly the frequency- or phase-detection arrangement including the filtering or amplification of its output signal using special filtering or amplification characteristics in the loop
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/0016Arrangements for synchronising receiver with transmitter correction of synchronization errors
    • H04L7/002Arrangements for synchronising receiver with transmitter correction of synchronization errors correction by interpolation
    • H04L7/0025Arrangements for synchronising receiver with transmitter correction of synchronization errors correction by interpolation interpolation of clock signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/02Speed or phase control by the received code signals, the signals containing no special synchronisation information
    • H04L7/033Speed or phase control by the received code signals, the signals containing no special synchronisation information using the transitions of the received signal to control the phase of the synchronising-signal-generating means, e.g. using a phase-locked loop
    • H04L7/0337Selecting between two or more discretely delayed clocks or selecting between two or more discretely delayed received code signals
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y10TECHNICAL SUBJECTS COVERED BY FORMER USPC
    • Y10STECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y10S331/00Oscillators
    • Y10S331/02Phase locked loop having lock indicating or detecting means

Definitions

  • FIG. 1 is a timing chart 2 illustrating a typical high-speed data signal in which the clock signal is intrinsic to the data signal. Here, five data bits are shown, representing the sequential binary sequence ⁇ 10010 ⁇ .
  • a data signal is oversampled by a factor of two to recover the “edge” between two data bits and adjust the phase of the recovered clock based on this edge measurement.
  • FIG. 2 shows the same timing chart 2 as FIG. 1 , and further illustrates the ideal data sample points 4 and edge sample points 5 used by a factor-of-two oversampling clock recovery circuit.
  • FIGS. 3A and 3B illustrate how an edge between two data bits is recovered.
  • the two data samples 8 , 10 have different values, so it is clear that an edge occurred between them.
  • the edge sample 9 has the same value as the first data sample 8 , it is deduced that the sample 9 was early, i.e. the sample occurred prior to the actual edge between the two bits.
  • the sampling clock can be adjusted by adding a small delay.
  • FIG. 4 is a block diagram of a clock recovery loop 20 .
  • This loop 20 is basically a two stage counter that accumulates the net difference between early and late edges detected by a set of samplers 22 , four for example. For each bclk cycle, the samplers 22 acquire four equally spaced values from the line, i.e. two data bit samples and the edges immediately following these bits, clocked by a four-phase clock from a phase interpolator 24 .
  • the early/late logic 26 examines these four samples, along with the previous (historical) data bit, and determines whether one or more edges occurred and whether the sample points are unambiguously early or late with respect to the data signal edges. (Early and late here refers to early and late samples. This is exactly the opposite of an early or late edge. That is, an early sample corresponds to a late edge.)
  • the early/late logic 26 provides early and late indications accordingly. These indications become inputs to the two-stage counter 28 , 29 .
  • the first stage 28 of the counter divides by N, four for example, to filter the number of noisy edge samples, i.e., the number of early/late indications.
  • the two-stage counter 28 , 29 forms a divide by 2 ⁇ P ⁇ N counter that accumulates the net difference between the number of early and late samples.
  • the divide-by-N counter 28 acts to filter the early and late signals, reducing the variance due to jitter on the input signal.
  • the phase interpolator 24 accepts a reference clock, bclk, and the phase setting output 25 from the divide by 2P counter 29 .
  • the phase interpolator 24 generates a sample clock 27 for each of the four samplers 22 .
  • the sample clock for the first sampler is displaced from the reference clock by an amount determined by the phase setting from the divide by 2P counter.
  • the four sample clocks are spaced evenly around the unit circle—each following the previous clock by 90 degrees.
  • FIG. 5 is a timing chart illustrating operation of the phase interpolator 24 of FIG. 4 .
  • this edge sample is very noisy.
  • the edge may be seen as early (late) even if the sample point is correctly placed or late (early), and corrections to the sample clock can result in “phase wander”.
  • This phase wander of the sample clock can be minimized by filtering pulses, using, for example, a divide-by-N counter where N is a reasonably large number.
  • phase lag can occur. Filtering as above for phase wander can increase the effect of phase lag.
  • the present invention is a second-order, dual-loop clock-data recovery (CDR) circuit that overcomes this problem by adding a digital frequency estimator loop to estimate the difference between input and reference clock frequencies, and then removing this difference.
  • the divider then must only deal with deviations from the estimated frequency. This permits a very large divider to be used without compromising the ability to track over a wide input frequency range.
  • a clock recovery circuit includes a sampler for sampling a data signal. Logic determines whether a data edge lags or precedes a clock edge which drives the sampler, and provides early and late indications. A filter filters the early and late indications, and a phase controller adjusts the phase of the clock based on the filtered indications. Based on the filtered indications, a frequency estimator estimates the frequency difference between the data and clock, providing an input to the phase controller to further adjust the phase so as to continually correct for the frequency difference.
  • a phase interpolator adjusts the phase of the clock responsive to the phase controller.
  • the frequency estimator may include a second filter, a frequency counter, and a frequency synthesizer.
  • the second filter further filters the filtered indications.
  • the frequency counter responsive to the further filtered indications, produces an output that represents an estimated difference in frequency between the clock and the data.
  • the frequency synthesizer produces signals responsive to the estimated frequency difference. The signals control the phase controller to further adjust the phase.
  • the frequency synthesizer may include a divide-by-X counter which divides the clock by a number X, which is based on the estimated frequency difference.
  • the divided clock then provides the input to the phase controller to further adjust the phase.
  • a converter may convert the estimated frequency difference to a corresponding period, where the number X is responsive to the period.
  • the divide-by-X counter may include both a divide-by-K counter, where K is a fixed number, as well as a divide-by-V counter, where V is responsive to the period.
  • a single divide-by-K counter may be used by plural clock recovery circuits.
  • the converter uses a conversion table that may be stored, for example, in a read-only-memory (ROM). Alternatively, the converter may perform a 1's complement of a magnitude portion of the estimated frequency difference.
  • ROM read-only-memory
  • the converter may also be implemented with a microprocessor, which may also implement at least a portion of the divide-by-X counter.
  • the frequency counter may be a saturating counter.
  • FIG. 1 is a timing chart illustrating a typical high-speed data signal in which the clock signal is intrinsic to the data signal.
  • FIG. 2 is the timing chart of FIG. 1 , further illustrating the ideal data and edge sample points used by a factor-of-two oversampling clock recovery circuit.
  • FIGS. 3A and 3B are timing charts that illustrate how an edge between two data bits is recovered.
  • FIG. 4 is a schematic diagram of a clock recovery circuit.
  • FIG. 5 is a timing chart illustrating operation of the phase interpolator of the clock recovery circuit of FIG. 4 .
  • FIG. 6 is the timing chart of FIG. 2 , in which jitter has been added to the signal.
  • FIG. 7 is a timing chart illustrating, in a greatly exaggerated manner, the respective cases of a sample clock running faster and slower than a data clock.
  • FIG. 8A is a graph a illustrating a probability density function for the position of an edge between two bit cells when the input data signal has considerable jitter.
  • FIG. 8B is a the same graph of FIG. 8A , additionally showing the case where a sample is taken at phase step +3.
  • FIG. 9 is an illustration of a Markov chain which is used to perform analysis of phase wander.
  • FIG. 10 is a chart showing state probabilities of the two stage counter of FIG. 4 for an arbitrary jitter probability density function.
  • FIG. 11 is a probability density function used to illustrate phase lag.
  • FIG. 12 is a schematic diagram of an embodiment of a dual-loop clock/data recovery (CDR) circuit of the present invention.
  • CDR clock/data recovery
  • FIG. 13 is a schematic diagram of an embodiment of the frequency estimator of FIG. 12 .
  • FIG. 14 is a schematic diagram of an embodiment of the frequency synthesizer of FIG. 13 .
  • FIG. 15 is a schematic diagram of an alternate embodiment of the frequency synthesizer of FIG. 13 .
  • FIG. 16 is a schematic diagram of another alternate embodiment of the frequency synthesizer of FIG. 13 .
  • FIG. 6 is the timing chart 2 of FIG. 1 , but with jitter 12 added to the signal. That is, the edges do not occur exactly at equal intervals but rather each edge is displaced according to some probability distribution.
  • edges 14 in FIG. 6 occur early (but by different amounts), while the edge 16 occurs late.
  • the dashed lines represent how the signal should appear with no jitter.
  • the recovery circuit's clock phase is adjusted based on this noisy measurement, the clock phase will wander about the correct setting. That is, it takes a somewhat random walk about its center point. Each time an early edge, such as 14 , is sampled, the clock is advanced. Each time a late edge, such as 16 , is sampled, the clock is retarded. Thus the random distribution of edge times—due to jitter on the input signal—leads to random movement of the clock sampling point.
  • FIG. 8A shows the probability density function for this variable when the input jitter is uniformly distributed over a range of 0.5 UI.
  • the x-axis is shown in phase steps for a system where 32 (i.e., P) phase steps are spaced uniformly over a single UI.
  • the distribution of jitter ranges from ⁇ 8 steps ( ⁇ 0.25 UI) to +8 steps (+0.25 UI).
  • the probability that a sample taken at phase step +i is early is (8 ⁇ i)/16 and the probability of the sample being late is (8+i)/16.
  • FIG. 8B shows the case where a sample is taken at phase step +3, as denoted by arrow 65 . At this point, 5/16 of the area of the density function falls to the right of the sample point and 11/16 falls to the left. Hence the probability that the sample is late is 11/16, while the probability that the sample is early is 5/16.
  • FIG. 9 is an illustration of a Markov chain 71 which can be used to perform the analysis of phase wander.
  • Each node 73 in the chain 71 represents a state of the two-stage counter 28 , 29 .
  • the label A.B represents the state where the phase counter 29 has a count of A (within a range of 0 to 2P ⁇ 1, or alternatively ⁇ P to +P) and the divide by N counter 28 has a count of B.
  • the probability of an early or late sample edge gives the transition probability between two states.
  • phase lag Another phenomenon is “phase lag”.
  • FIG. 7 illustrates, in a greatly exaggerated manner, when the sample clock 52 is faster than the data clock 50 , it leads the data clock 50 , on average, over time. Eventually, the sample clock is adjusted (at 55 ) so that the two clocks are almost exactly synchronized. However, due to the difference in frequency, the sample clock 52 soon leads the data clock 50 more than it lags. A similar effect occurs when the sample clock is slower than the data clock 54 , as illustrated at 54 .
  • the sample point will lag (lead) the correct value so that the early/late probabilities are unbalanced by an amount large enough to generate sufficient net early (late) edges to adjust the clock position often enough to keep up with the constant phase drift between the two clocks.
  • phase lag is increased as the number of early (late) edges required for each clock adjustment is increased.
  • the fraction of edges that drive the two-stage phase counter 28 , 29 in the proper direction is directly proportional to the offset of the data sample point from the center of the eye—and hence the offset of the edge sample point from the edge of the eye.
  • edges that fall in area 83 exactly cancel the effect of the edges that fall in area 87 since 3 ⁇ 8 of all data edges fall in each area.
  • the net result is that only the 1 ⁇ 4 of the edges that fall in area 85 act to adjust the clock sample point in the right direction.
  • the maximum phase lag can be calculated.
  • phase lag in UI
  • J the amount of uniform jitter in UI (peak-to-peak)
  • N and P are the counter moduli
  • d the minimum edge density (edges per UI) of the input signal
  • ⁇ f the frequency difference (actually, given as a ratio in ppm).
  • d 1 ⁇ 4.
  • FIG. 12 is a schematic diagram of a dual-loop CDR circuit 31 embodiment of the present invention.
  • the circuit 31 is similar to that shown in FIG. 4 except for the addition of a frequency estimator block 32 and the corresponding second set of up/down inputs to the phase counter 30 A (a phase controller).
  • the differential input line 19 is over-sampled by a factor of two by a set of four samplers 22 clocked by a four-phase clock from a phase interpolator 24 .
  • the samplers acquire four equally spaced values from the line, i.e. two data samples and two edge samples.
  • the data and edge samples are used by the early/late block 26 to generate early and late indications.
  • An “early” indication is generated if the edge is sampled early (differs from the next data bit) while a “late” indication is generated if the edge is sampled late (differs from the previous data bit).
  • the early and late indications are filtered by a divide-by-N counter 28 .
  • An “early” indication causes the counter to count up, retarding the sample point.
  • a “late” indication causes the counter to count down, advancing the sample point.
  • N should be at least 64.
  • up and down pulses drive the phase counter 30 A which adjusts the position of the sampling clock via the phase interpolator 24 .
  • these up and down pulses are input into a frequency estimator 32 which estimates the frequency difference ⁇ f between the input signal and the system clock bclk.
  • the frequency estimator 32 generates its own up and down pulses (f up and f up ) to rotate the phase counter at a steady rate corresponding to the estimated frequency difference.
  • the phase counter rotates in the sense that each complete cycle of the counter from count 0 to count 2P ⁇ 1 and back to 0 corresponds to a phase shift of 360 degrees in the phase interpolator.
  • FIG. 13 is a schematic diagram of an embodiment of the frequency estimator 32 of FIG. 12 .
  • the up and down pulses from the divide by N counter 28 ( FIG. 12 ) are further filtered by a divide by M counter 34 that acts to stabilize the frequency loop, the output of which is then input to a saturating frequency counter 36 .
  • the output of the frequency counter 36 represents the estimated difference in frequency, ⁇ f, between the data signal input clock and the recovery circuit reference clock.
  • the output of the frequency estimator 32 is in sign-magnitude format.
  • a six-bit ⁇ f contains a sign bit, s, and a five-bit magnitude, m, which together represent the number ⁇ 1 s ⁇ m, covering the range from ⁇ 31 to 31.
  • the frequency estimator can be realized with more or fewer bits and with a different encoding (e.g., one's complement, two's complement, or one-hot) than sign magnitude.
  • Each increment of the frequency counter 36 output represents a uniform difference in frequency, e.g. 10 ppm, which exactly corresponds to the frequency of the correction signal that is generated by the frequency synthesizer 37 , e.g. 10 ppm of 1.25 GHz is 125 KHz.
  • FIG. 14 is a schematic diagram of an embodiment of the frequency synthesizer 37 that uses a ROM 40 and a divide-by-V counter 38 .
  • This reciprocal operation may be approximated by a small ROM 40 .
  • the ROM 40 outputs a value V that sets the number of kclks (K bclks) between up or down pulses.
  • the divide-by-V counter 38 outputs a pulse.
  • the sign bit of ⁇ f together with gates 44 and 46 , determines whether this is an up (f up ) or a down (f dn ) pulse.
  • the ROM 40 asserts an inhibit signal 48 that disables both the f up and f dn outputs.
  • the divide-by-K counter 42 may be shared among multiple receivers and can be located elsewhere, perhaps at a receive master. It divides down the bit clock, bclk, to reduce the operating frequency and required length for the divide-by-V counter 38 .
  • the first step in calculating the required values for K and V[ ⁇ f] is to determine the maximum ⁇ f that can be tracked by the original loop.
  • the maximum ⁇ f that can be left after frequency estimation is 24 ppm.
  • the smallest ROM that can be used to estimate frequency to within 24 ppm while covering a range of actual frequency differences from ⁇ 200 ppm to +200 ppm requires eight entries, as illustrated in the Table 2 below.
  • the table shows the target difference in frequency for this count ( ⁇ f), the interval or period in bclks that is required to achieve this frequency difference (interval), the number of kclks that most closely approximates this interval (V), and the actual frequency difference corresponding to an interval of 8 ⁇ V (actual ⁇ f), and the size of the frequency step between the previous count and the present count (step).
  • V divide ratio
  • Realizing Table 2 requires a frequency counter 36 with a saturating range of ⁇ 8 to +8 and an 8-bit divide-by-V counter to realize the divide by 163.
  • a more conservative design uses a 15-entry ROM, as shown in Table 3 below.
  • the nominal frequency step here is 13 ppm and the worst-case step size is 16 ppm.
  • This design while requiring one more bit of both the frequency counter and the divide-by-V counter and requiring seven additional ROM entries, gives considerably more margin.
  • the ROM can be eliminated entirely and the 1s complement of the magnitude portion of ⁇ f used directly as the value of V.
  • a consequence of this approach is that it takes longer for the frequency loop to acquire, as it has to step from a divider of 255 kclks to a divider of 20 kclks one step at a time. Note that in this embodiment the output of the frequency counter is not a frequency but rather a period.
  • the ROM can be replaced with a combinational logic circuit that realizes the same function.
  • M determines the gain of the second-order loop. Stability is assured due to the zero provided by the direct phase update provided by the up and down pulses of the divide-by-N counter 28 directly controlling the phase counter 30 . However, M should be sufficiently large that the divide-by-V counter 38 has cycled at least a few times before M is updated again. At lock, where the frequency of pulses out of the divide-by-N counter 28 is at most 24 ppm (one pulse every 40,000 bclks), no divide-by-M counter is needed since the maximum interval for cycling the divide-by-V counter is 2300 bclks. In practice however, a divide-by-8 counter here would smooth the frequency adjustment process.
  • FIG. 15 illustrates another embodiment of a frequency synthesizer 37 A in which the output of the frequency counter is used to gate kclk pulses whenever a combinational logic circuit 91 , which examines the output of a free-running counter 93 driven by kclk and the frequency counter gives a true output.
  • Gates 97 and 99 pass the pulses to either the f up or the f dn output, depending on the value of the sign of the frequency counter output.
  • such a circuit can generate a pulse whenever the output of the free running counter is greater than the ones complement of the frequency counter. Note that this embodiment generates the correct number of kclk pulses averaged over a long period of time. However, these pulses are not evenly spaced, leading to increased sample clock jitter.
  • both control loops should be observable and controllable from a microprocessor.
  • the invention may operate in one or more of the following modes:
  • phase adjust loop and frequency adjust loop both operate without any intervention from a processor.
  • phase adjust loop where the divide-by-N counter 28 ( FIG. 12 ) directly increments and decrements the phase counter 30 , operates automatically.
  • the frequency adjust loop is broken by a microprocessor 101 .
  • the microprocessor 101 completes the loop by reading the output of the frequency counter ( ⁇ f) and generating the divide value (V) for the divide-by-V counter 38 .
  • the microprocessor 101 replaces the ROM 40 ( FIG. 14 ) in this mode.
  • the saturating frequency counter may be made very small (two or three bits), while the microprocessor accumulates additional ⁇ f bits internally.
  • the only per-receiver logic required over a first-order loop is the divide-by V counter 38 and the 2 or 3 bit saturating frequency counter 36 .
  • the microprocessor reads the saturating frequency counter and directly updates the phase setting. That is, the microprocessor also performs the function of the phase counter 6 .
  • the microprocessor should have complete observability of all counter states.

Abstract

A clock recovery circuit includes a sampler for sampling a data signal. Logic determines whether a data edge lags or precedes a clock edge which drives the sampler, and provides early and late indications. A filter filters the early and late indications, and a phase controller adjusts the phase of the clock based on the filtered indications. Based on the filtered indications, a frequency estimator estimates the frequency difference between the data and clock, providing an input to the phase controller to further adjust the phase so as to continually correct for the frequency difference.

Description

    RELATED APPLICATIONS
  • This application is a continuation of U.S. application Ser. No. 10/178,902, filed Jun. 21, 2002, which claims the benefit of U.S. Provisional Application No. 60/304,251, filed on Jun. 10, 2001. The entire teachings of the above application(s) are incorporated herein by reference.
  • BACKGROUND OF THE INVENTION
  • FIG. 1 is a timing chart 2 illustrating a typical high-speed data signal in which the clock signal is intrinsic to the data signal. Here, five data bits are shown, representing the sequential binary sequence {10010}.
  • In at least one currently employed clock recovery circuit, a data signal is oversampled by a factor of two to recover the “edge” between two data bits and adjust the phase of the recovered clock based on this edge measurement.
  • For example, FIG. 2 shows the same timing chart 2 as FIG. 1, and further illustrates the ideal data sample points 4 and edge sample points 5 used by a factor-of-two oversampling clock recovery circuit.
  • FIGS. 3A and 3B illustrate how an edge between two data bits is recovered. In FIG. 3A, the two data samples 8,10 have different values, so it is clear that an edge occurred between them. Here, because the edge sample 9 has the same value as the first data sample 8, it is deduced that the sample 9 was early, i.e. the sample occurred prior to the actual edge between the two bits. With the knowledge that the edge was sampled early, the sampling clock can be adjusted by adding a small delay.
  • In FIG. 3B, again the two data samples 8, 10 have different values, so again it is clear that an edge occurred between them. Now, because the edge sample 9 has the same value as the second data sample 10, it is deduced that the sample 9 was late, i.e. the sample occurred after the actual edge between the two bits. With the knowledge that the edge was sampled late, the sampling clock can be advanced.
  • Of course, where the value does not change between two consecutive data bits, as with the two consecutive 0s in FIG. 1, no edge exists to aid in clock recovery.
  • FIG. 4 is a block diagram of a clock recovery loop 20. This loop 20 is basically a two stage counter that accumulates the net difference between early and late edges detected by a set of samplers 22, four for example. For each bclk cycle, the samplers 22 acquire four equally spaced values from the line, i.e. two data bit samples and the edges immediately following these bits, clocked by a four-phase clock from a phase interpolator 24.
  • The early/late logic 26 examines these four samples, along with the previous (historical) data bit, and determines whether one or more edges occurred and whether the sample points are unambiguously early or late with respect to the data signal edges. (Early and late here refers to early and late samples. This is exactly the opposite of an early or late edge. That is, an early sample corresponds to a late edge.)
  • The early/late logic 26 provides early and late indications accordingly. These indications become inputs to the two- stage counter 28, 29. The first stage 28 of the counter divides by N, four for example, to filter the number of noisy edge samples, i.e., the number of early/late indications. The second stage 29 of the counter has 2P counts, corresponding to P phase steps per bit cell over the two bit cells spanned by the half-bit-rate bclk. In this figure, there are P=32 phase steps per bit cell and thus the counter has 2P=64 states encoded as a 6-bit phase setting.
  • Thus, overall, the two- stage counter 28, 29 forms a divide by 2×P×N counter that accumulates the net difference between the number of early and late samples. The divide-by-N counter 28 acts to filter the early and late signals, reducing the variance due to jitter on the input signal. The divide-by-2P phase counter 29 accumulates the net early and late signals out of the divide-by-N counter to generate a log 2(2P)=6 bit phase setting signal.
  • The phase interpolator 24 accepts a reference clock, bclk, and the phase setting output 25 from the divide by 2P counter 29. The phase interpolator 24 generates a sample clock 27 for each of the four samplers 22. The sample clock for the first sampler is displaced from the reference clock by an amount determined by the phase setting from the divide by 2P counter. The relative phase from the reference clock to the first sampler clock is 360×p/64 degrees, where p is the phase setting output 25 from the counter 29. For example, if p=0, the two clocks are exactly aligned; and if p=16, the first sample clock is displaced by 90 degrees from the reference clock. The four sample clocks are spaced evenly around the unit circle—each following the previous clock by 90 degrees.
  • FIG. 5 is a timing chart illustrating operation of the phase interpolator 24 of FIG. 4. The reference clock (blck) pulse is shown at 60, while 61 and 62 each illustrates the four outputs of the phase interpolator 24 where p=0 and p=8, respectively.
  • SUMMARY OF THE INVENTION
  • When the input data signal has considerable jitter, this edge sample is very noisy. The edge may be seen as early (late) even if the sample point is correctly placed or late (early), and corrections to the sample clock can result in “phase wander”. This phase wander of the sample clock can be minimized by filtering pulses, using, for example, a divide-by-N counter where N is a reasonably large number.
  • On the other hand, when the data clock frequency and the sample clock frequency are not exactly the same, “phase lag” can occur. Filtering as above for phase wander can increase the effect of phase lag.
  • Thus, there is a tension between phase wander and phase lag. Choosing a large N makes phase wander small but phase lag large. Similarly a small N reduces phase lag at the expense of wander. With large amounts of input jitter and a large ÿf, it is not possible to get the recovery clock circuit of FIG. 4 to meet both constraints.
  • The present invention is a second-order, dual-loop clock-data recovery (CDR) circuit that overcomes this problem by adding a digital frequency estimator loop to estimate the difference between input and reference clock frequencies, and then removing this difference. The divider then must only deal with deviations from the estimated frequency. This permits a very large divider to be used without compromising the ability to track over a wide input frequency range.
  • According to an embodiment of the present invention, a clock recovery circuit includes a sampler for sampling a data signal. Logic determines whether a data edge lags or precedes a clock edge which drives the sampler, and provides early and late indications. A filter filters the early and late indications, and a phase controller adjusts the phase of the clock based on the filtered indications. Based on the filtered indications, a frequency estimator estimates the frequency difference between the data and clock, providing an input to the phase controller to further adjust the phase so as to continually correct for the frequency difference.
  • A phase interpolator adjusts the phase of the clock responsive to the phase controller.
  • The frequency estimator may include a second filter, a frequency counter, and a frequency synthesizer. The second filter further filters the filtered indications. The frequency counter, responsive to the further filtered indications, produces an output that represents an estimated difference in frequency between the clock and the data. The frequency synthesizer produces signals responsive to the estimated frequency difference. The signals control the phase controller to further adjust the phase.
  • The frequency synthesizer may include a divide-by-X counter which divides the clock by a number X, which is based on the estimated frequency difference. The divided clock then provides the input to the phase controller to further adjust the phase.
  • A converter may convert the estimated frequency difference to a corresponding period, where the number X is responsive to the period. The divide-by-X counter may include both a divide-by-K counter, where K is a fixed number, as well as a divide-by-V counter, where V is responsive to the period. A single divide-by-K counter may be used by plural clock recovery circuits.
  • In one embodiment, the converter uses a conversion table that may be stored, for example, in a read-only-memory (ROM). Alternatively, the converter may perform a 1's complement of a magnitude portion of the estimated frequency difference. The converter may also be implemented with a microprocessor, which may also implement at least a portion of the divide-by-X counter.
  • In one embodiment, the frequency counter may be a saturating counter.
  • BRIEF DESCRIPTION OF THE DRAWINGS
  • The foregoing will be apparent from the following more particular description of example embodiments of the invention, as illustrated in the accompanying drawings in which like reference characters refer to the same parts throughout the different views. The drawings are not necessarily to scale, emphasis instead being placed upon illustrating embodiments of the present invention.
  • FIG. 1 is a timing chart illustrating a typical high-speed data signal in which the clock signal is intrinsic to the data signal.
  • FIG. 2 is the timing chart of FIG. 1, further illustrating the ideal data and edge sample points used by a factor-of-two oversampling clock recovery circuit.
  • FIGS. 3A and 3B are timing charts that illustrate how an edge between two data bits is recovered.
  • FIG. 4 is a schematic diagram of a clock recovery circuit.
  • FIG. 5 is a timing chart illustrating operation of the phase interpolator of the clock recovery circuit of FIG. 4.
  • FIG. 6 is the timing chart of FIG. 2, in which jitter has been added to the signal.
  • FIG. 7 is a timing chart illustrating, in a greatly exaggerated manner, the respective cases of a sample clock running faster and slower than a data clock.
  • FIG. 8A is a graph a illustrating a probability density function for the position of an edge between two bit cells when the input data signal has considerable jitter.
  • FIG. 8B is a the same graph of FIG. 8A, additionally showing the case where a sample is taken at phase step +3.
  • FIG. 9 is an illustration of a Markov chain which is used to perform analysis of phase wander.
  • FIG. 10 is a chart showing state probabilities of the two stage counter of FIG. 4 for an arbitrary jitter probability density function.
  • FIG. 11 is a probability density function used to illustrate phase lag.
  • FIG. 12 is a schematic diagram of an embodiment of a dual-loop clock/data recovery (CDR) circuit of the present invention.
  • FIG. 13 is a schematic diagram of an embodiment of the frequency estimator of FIG. 12.
  • FIG. 14 is a schematic diagram of an embodiment of the frequency synthesizer of FIG. 13.
  • FIG. 15 is a schematic diagram of an alternate embodiment of the frequency synthesizer of FIG. 13.
  • FIG. 16 is a schematic diagram of another alternate embodiment of the frequency synthesizer of FIG. 13.
  • DETAILED DESCRIPTION OF THE INVENTION
  • A description of example embodiments of the invention follows.
  • Phase Wander
  • FIG. 6 is the timing chart 2 of FIG. 1, but with jitter 12 added to the signal. That is, the edges do not occur exactly at equal intervals but rather each edge is displaced according to some probability distribution.
  • For example, the edges 14 in FIG. 6 occur early (but by different amounts), while the edge 16 occurs late. The dashed lines represent how the signal should appear with no jitter.
  • Because the recovery circuit's clock phase is adjusted based on this noisy measurement, the clock phase will wander about the correct setting. That is, it takes a somewhat random walk about its center point. Each time an early edge, such as 14, is sampled, the clock is advanced. Each time a late edge, such as 16, is sampled, the clock is retarded. Thus the random distribution of edge times—due to jitter on the input signal—leads to random movement of the clock sampling point.
  • This movement is not completely random. If the clock is displaced from its correct position (for example if it is early) it will be adjusted in the correct direction (being retarded) more often that it will be adjusted in the incorrect direction (being advanced). However, the clock position may take many steps in the wrong direction, leading to a broad probability distribution in the position of the clock sample point.
  • Reducing this “phase wander” to acceptable levels requires considerable filtering of the raw edge samples. By integrating over many samples before adjusting the clock, the variance of the clock adjustments is reduced and the probability distribution of the clock sample position is narrowed.
  • A Markov analysis of a system with N=4 having jitter uniformly distributed over 0.5 unit interval (UI) shows that such a system may have over 0.44 UI of phase wander.
  • When the input data signal has considerable jitter, the position of the edge between two bit cells is a random variable. FIG. 8A shows the probability density function for this variable when the input jitter is uniformly distributed over a range of 0.5 UI. The x-axis is shown in phase steps for a system where 32 (i.e., P) phase steps are spaced uniformly over a single UI. The distribution of jitter ranges from ÿ8 steps (−0.25 UI) to +8 steps (+0.25 UI).
  • With the data edge position being a random variable, whether an edge sample is early or late (as indicated by the early/late indication) is also a random variable. For example, the probability that a sample taken at phase step +i is early is (8−i)/16 and the probability of the sample being late is (8+i)/16. FIG. 8B shows the case where a sample is taken at phase step +3, as denoted by arrow 65. At this point, 5/16 of the area of the density function falls to the right of the sample point and 11/16 falls to the left. Hence the probability that the sample is late is 11/16, while the probability that the sample is early is 5/16.
  • To model phase wander, assume that there is no net difference between the input data frequency and twice the reference clock (bclk) frequency and calculate the probability P(x) of the counter wandering x phase steps from the center position.
  • FIG. 9 is an illustration of a Markov chain 71 which can be used to perform the analysis of phase wander. Each node 73 in the chain 71 represents a state of the two- stage counter 28, 29. The label A.B represents the state where the phase counter 29 has a count of A (within a range of 0 to 2Pÿ1, or alternatively ÿP to +P) and the divide by N counter 28 has a count of B. The probability of an early or late sample edge gives the transition probability between two states. Thus, the transition probabilities out of the state A.B are determined entirely by the label A, with the down probability dA given by the integral of the probability density function up to phase step A and the up probability uA given by the remaining area under the curve: u A = x = P 2 A P ( x ) x d A = 1 - u A
  • Since the Markov chain 71 of FIG. 9 is a linear chain (also called a birth-death system), we can analyze it in closed form since in steady state we know: P ( A . B ) = P ( A . B - 1 ) u A . B - 1 d A . B
    where A.B−1 denotes decrementing the two-stage counter state. Since the up and down probabilities for the N states at each phase setting are the same, one can write: P ( A . N ) = P ( A .1 ) ( u A d A ) N - 1 P ( ( A + 1 ) .1 ) = P ( A . N ) ( u A d A + 1 )
  • Using these equations, we can solve for the state probabilities of the two stage counter for an arbitrary jitter probability density function. FIG. 10 is a chart 77 which shows these probabilities for a 32-step-per-UI phase counter, i.e. P=32, and filter counters ranging from N=4 to N=64. The chart 77 shows that with 0.5 UI uniform jitter, the phase wander range that has a probability of at least 1015 of occurring is from −0.23 UI to +0.23 UI, i.e., an eye opening of almost 0.5 UI for N=4. For N=64, this is reduced to a range of ÿ0.075 UI to +0.075 UI, an eye opening of only 0.15 UI.
  • Thus, to maintain a bit error rate (BER) better than 10-15, a sufficient eye opening, e.g., 0.5 UI for N=4, 0.15 UI for N=64, etc., must be allowed to account for phase wander. That is, the smaller N is, the larger the eye opening must be to achieve the same BER.
  • Phase Lag
  • Another phenomenon is “phase lag”. As FIG. 7 illustrates, in a greatly exaggerated manner, when the sample clock 52 is faster than the data clock 50, it leads the data clock 50, on average, over time. Eventually, the sample clock is adjusted (at 55) so that the two clocks are almost exactly synchronized. However, due to the difference in frequency, the sample clock 52 soon leads the data clock 50 more than it lags. A similar effect occurs when the sample clock is slower than the data clock 54, as illustrated at 54.
  • Thus, when the input data frequency (illustrated as 50) is slightly faster (slower) than the reference clock frequency (plesiochronous) and the input signal has significant jitter, the sample point will lag (lead) the correct value so that the early/late probabilities are unbalanced by an amount large enough to generate sufficient net early (late) edges to adjust the clock position often enough to keep up with the constant phase drift between the two clocks. However, when a large filter is employed, for example to reduce phase wander, phase lag is increased as the number of early (late) edges required for each clock adjustment is increased.
  • Referring back to the clock recovery loop of FIG. 4, the fraction of edges that drive the two- stage phase counter 28, 29 in the proper direction is directly proportional to the offset of the data sample point from the center of the eye—and hence the offset of the edge sample point from the edge of the eye.
  • To see this, consider the situation illustrated in FIG. 11. Here we have 0.5 UI of uniform jitter and 32 phase steps per UI. The sample clock phase is currently early relative to the input data signal, leading the input signal by two phase steps (0.0625 UI). This offset of two steps, along with a complementary offset of two steps in the opposite direction together consume four phase steps (0.125) of the eye, as illustrated by the area 85 in the center of FIG. 11. That is, when the data sample point is at this phase step 89, ⅜ of the possible input edges, those falling in area 83 in FIG. 11, will retard the sample point while ⅝ of the possible input edges, those falling in areas 85 and 87 of FIG. 11, will advance the sample point. The edges that fall in area 83 exactly cancel the effect of the edges that fall in area 87 since ⅜ of all data edges fall in each area. Thus the net result is that only the ¼ of the edges that fall in area 85 act to adjust the clock sample point in the right direction.
  • Given a maximum allowable ÿf between the input signal and the reference clock (bclk) of the clock recovery circuit, the maximum phase lag can be calculated. Alternatively, we can work from a budgeted phase lag and calculate the maximum ÿf consistent with this amount of lag.
  • The formulae are: ϕ = JNP Δ f d Δ f = d ϕ JNP
    where φ is phase lag in UI, J is the amount of uniform jitter in UI (peak-to-peak), N and P are the counter moduli, d is the minimum edge density (edges per UI) of the input signal, and ÿf is the frequency difference (actually, given as a ratio in ppm). For example, if the input data is random, the edge density will average d=½. However to be conservative it is better to assume a lower edge density such as d=¼.
  • For example, with N=4, a phase lag of 0.1 UI yields a maximum Δf of 391 ppm. Increasing N to 64 while holding ÿ at 0.1 UI gives a maximum Δf of 24 ppm ( 1/16 the amount).
  • Second-Order Digital Clock Recovery Circuit
  • FIG. 12 is a schematic diagram of a dual-loop CDR circuit 31 embodiment of the present invention. The circuit 31 is similar to that shown in FIG. 4 except for the addition of a frequency estimator block 32 and the corresponding second set of up/down inputs to the phase counter 30A (a phase controller). The differential input line 19 is over-sampled by a factor of two by a set of four samplers 22 clocked by a four-phase clock from a phase interpolator 24.
  • As with the system of FIG. 4, for each bclk cycle, the samplers acquire four equally spaced values from the line, i.e. two data samples and two edge samples. The data and edge samples are used by the early/late block 26 to generate early and late indications. An “early” indication is generated if the edge is sampled early (differs from the next data bit) while a “late” indication is generated if the edge is sampled late (differs from the previous data bit).
  • The early and late indications are filtered by a divide-by-N counter 28. An “early” indication causes the counter to count up, retarding the sample point. A “late” indication causes the counter to count down, advancing the sample point. Ideally, to prevent excessive phase wander, N should be at least 64. When the counter 28 overflows upward it generates a pulse on its ‘up’ output. When it overflows downward, it generates a pulse on its ‘down’ output.
  • These up and down pulses drive the phase counter 30A which adjusts the position of the sampling clock via the phase interpolator 24. In addition, these up and down pulses are input into a frequency estimator 32 which estimates the frequency difference Δf between the input signal and the system clock bclk. The frequency estimator 32 generates its own up and down pulses (fup and fup) to rotate the phase counter at a steady rate corresponding to the estimated frequency difference. The phase counter rotates in the sense that each complete cycle of the counter from count 0 to count 2P−1 and back to 0 corresponds to a phase shift of 360 degrees in the phase interpolator.
  • Frequency Estimator
  • FIG. 13 is a schematic diagram of an embodiment of the frequency estimator 32 of FIG. 12. The up and down pulses from the divide by N counter 28 (FIG. 12) are further filtered by a divide by M counter 34 that acts to stabilize the frequency loop, the output of which is then input to a saturating frequency counter 36. The output of the frequency counter 36 represents the estimated difference in frequency, ÿf, between the data signal input clock and the recovery circuit reference clock.
  • In one embodiment, the output of the frequency estimator 32 is in sign-magnitude format. For example, a six-bit Δf contains a sign bit, s, and a five-bit magnitude, m, which together represent the number −1s×m, covering the range from ÿ31 to 31. One skilled in the art of timing circuit design will understand that the frequency estimator can be realized with more or fewer bits and with a different encoding (e.g., one's complement, two's complement, or one-hot) than sign magnitude.
  • Each increment of the frequency counter 36 output represents a uniform difference in frequency, e.g. 10 ppm, which exactly corresponds to the frequency of the correction signal that is generated by the frequency synthesizer 37, e.g. 10 ppm of 1.25 GHz is 125 KHz.
  • The frequency synthesizer 37 generates a pulse stream with the appropriate rate on the appropriate output. For example, if the output of the frequency counter indicates that the input signal is 20 ppm faster than the 1.25 GHz reference clock, then the frequency synthesizer generates a 250 KHz*2P=16 MHz pulse stream on the fup output to increase the frequency of the sample clock by 250 KHz. Similarly, if the frequency counter indicates that the input signal is 30 ppm slower than the 1.25 GHz reference clock, then the frequency synthesizer generates a 375 KHz*2P=24 MHz pulse stream on the fdn output to decrease the frequency of the sample clock by 375 KHz.
  • FIG. 14 is a schematic diagram of an embodiment of the frequency synthesizer 37 that uses a ROM 40 and a divide-by-V counter 38. To control the divide-by-V counter 38, Δf is converted from a frequency to a period, taking advantage of the relation that T=1/f. This reciprocal operation may be approximated by a small ROM 40. The ROM 40 outputs a value V that sets the number of kclks (K bclks) between up or down pulses.
  • Every V kclks, i.e. every V×K bclks, the divide-by-V counter 38 outputs a pulse. The sign bit of Δf, together with gates 44 and 46, determines whether this is an up (fup) or a down (fdn) pulse. When ÿf is zero, the ROM 40 asserts an inhibit signal 48 that disables both the fup and fdn outputs.
  • The divide-by-K counter 42 may be shared among multiple receivers and can be located elsewhere, perhaps at a receive master. It divides down the bit clock, bclk, to reduce the operating frequency and required length for the divide-by-V counter 38.
  • The first step in calculating the required values for K and V[Δf] (the ROM contents) is to determine the maximum Δf that can be tracked by the original loop. As described in the discussion of phase wander in the background section, the maximum Δf that can be tracked is given by: Δ f = d ϕ JNP
    where d is the edge density (minimum edges per bit), φ is the maximum allowable phase lag (in UI), J is the jitter (in UI), and N and P are the divider constants of the divide-by-N counter 28 and the phase counter 30.
  • Assuming J=0.5 UI, d=0.25, and φ=0.1, and P=32, the maximum Δf that can be tracked is provided below in Table 1 for several values of N.
    TABLE 1
    N max Δf
    32 4.88 × 10−5
    64 2.44 × 10−5
    128 1.22 × 10−5
  • For example, if N=64 and the other parameters are as above, then the maximum Δf that can be left after frequency estimation is 24 ppm.
  • The smallest ROM that can be used to estimate frequency to within 24 ppm while covering a range of actual frequency differences from −200 ppm to +200 ppm requires eight entries, as illustrated in the Table 2 below. For each of the eight non-zero states of the frequency counter the table shows the target difference in frequency for this count (Δf), the interval or period in bclks that is required to achieve this frequency difference (interval), the number of kclks that most closely approximates this interval (V), and the actual frequency difference corresponding to an interval of 8×V (actual Δf), and the size of the frequency step between the previous count and the present count (step). Note that while choosing a value of K greater than unity simplifies the implementation by reducing counter lengths, such a value prevents generation of the optimal interval to achieve a given frequency difference, resulting in a small difference between the desired Δf and the actual Δf. This difference sets a limit on how large K can be made.
    TABLE 2
    Count Δf interval kclks (V) actual Δf step
    1 2.40 × 10−5 1302 163 2.40 × 10−5 2.40 × 10−5
    2 4.80 × 10−5 651 81 4.82 × 10−5 2.43 × 10−5
    3 7.20 × 10−5 434 54 7.23 × 10−5 2.41 × 10−5
    4 9.60 × 10−5 326 41 9.53 × 10−5 2.29 × 10−5
    5 1.20 × 10−4 260 33 1.18 × 10−4 2.31 × 10−5
    6 1.44 × 10−4 217 28 1.40 × 10−4 2.11 × 10−5
    7 1.68 × 10−4 186 24 1.63 × 10−4 2.33 × 10−5
    8 1.92 × 10−4 163 21 1.86 × 10−4 2.43 × 10−5
  • Table 2 shows the value of V (kclks) for each frequency counter output value (step), when K=8. With the lowest divide ratio (V=163) the divide-by-V counter 38 generates a 24 ppm pulse stream. At the highest divide ration (V=21), the counter generates a 186 ppm pulse stream (which is within 24 ppm of 200 ppm). Realizing Table 2 requires a frequency counter 36 with a saturating range of −8 to +8 and an 8-bit divide-by-V counter to realize the divide by 163.
  • A more conservative design uses a 15-entry ROM, as shown in Table 3 below. The nominal frequency step here is 13 ppm and the worst-case step size is 16 ppm. This design, while requiring one more bit of both the frequency counter and the divide-by-V counter and requiring seven additional ROM entries, gives considerably more margin.
    TABLE 3
    Count delta F interval kclks actual df step
    1 1.33 × 10−5 2344 293 1.33 × 10−5 1.33 × 10−5
    2 2.67 × 10−5 1172 146 2.68 × 10−5 1.34 × 10−5
    3 4.00 × 10−5 781 98 3.99 × 10−5 1.31 × 10−5
    4 5.33 × 10−5 586 73 5.35 × 10−5 1.37 × 10−5
    5 6.67 × 10−5 469 59 6.62 × 10−5 1.27 × 10−5
    6 8.00 × 10−5 391 49 7.97 × 10−5 1.35 × 10−5
    7 9.33 × 10−5 335 42 9.30 × 10−5 1.33 × 10−5
    8 1.07 × 10−4 293 37 1.06 × 10−4 1.26 × 10−5
    9 1.20 × 10−4 260 33 1.18 × 10−4 1.28 × 10−5
    10 1.33 × 10−4 234 30 1.30 × 10−4 1.18 × 10−5
    11 1.47 × 10−4 213 27 1.45 × 10−4 1.45 × 10−5
    12 1.60 × 10−4 195 25 1.56 × 10−5 1.16 × 10−5
    13 1.73 × 10−4 180 23 1.70 × 10−4 1.36 × 10−5
    14 1.87 × 10−4 167 21 1.86 × 10−4 1.62 × 10−5
    15 2.00 × 10−4 156 20 1.95 × 10−4 9.30 × 10−6
  • In yet another embodiment, both for simplification and to provide very fine-grain frequency control, the ROM can be eliminated entirely and the 1s complement of the magnitude portion of Δf used directly as the value of V. This requires that the magnitude portion of the frequency counter 36 have eight bits. A consequence of this approach is that it takes longer for the frequency loop to acquire, as it has to step from a divider of 255 kclks to a divider of 20 kclks one step at a time. Note that in this embodiment the output of the frequency counter is not a frequency but rather a period.
  • In yet another embodiment of the present invention, the ROM can be replaced with a combinational logic circuit that realizes the same function.
  • Values of M
  • The value of M determines the gain of the second-order loop. Stability is assured due to the zero provided by the direct phase update provided by the up and down pulses of the divide-by-N counter 28 directly controlling the phase counter 30. However, M should be sufficiently large that the divide-by-V counter 38 has cycled at least a few times before M is updated again. At lock, where the frequency of pulses out of the divide-by-N counter 28 is at most 24 ppm (one pulse every 40,000 bclks), no divide-by-M counter is needed since the maximum interval for cycling the divide-by-V counter is 2300 bclks. In practice however, a divide-by-8 counter here would smooth the frequency adjustment process.
  • A value of 4 or 8 appears to be adequate for M.
  • FIG. 15 illustrates another embodiment of a frequency synthesizer 37A in which the output of the frequency counter is used to gate kclk pulses whenever a combinational logic circuit 91, which examines the output of a free-running counter 93 driven by kclk and the frequency counter gives a true output. Gates 97 and 99 pass the pulses to either the fup or the fdn output, depending on the value of the sign of the frequency counter output.
  • For example, such a circuit can generate a pulse whenever the output of the free running counter is greater than the ones complement of the frequency counter. Note that this embodiment generates the correct number of kclk pulses averaged over a long period of time. However, these pulses are not evenly spaced, leading to increased sample clock jitter.
  • Microcomputer Control
  • In one embodiment of the present invention, to facilitate debugging, both control loops should be observable and controllable from a microprocessor. Specifically, various embodiments the invention may operate in one or more of the following modes:
  • Fully automatic: In this mode, the phase adjust loop and frequency adjust loop both operate without any intervention from a processor.
  • Automatic phase, manual frequency: In this mode, illustrated in FIG. 16, the phase adjust loop, where the divide-by-N counter 28 (FIG. 12) directly increments and decrements the phase counter 30, operates automatically. However, the frequency adjust loop is broken by a microprocessor 101. The microprocessor 101 completes the loop by reading the output of the frequency counter (Δf) and generating the divide value (V) for the divide-by-V counter 38. In essence, the microprocessor 101 replaces the ROM 40 (FIG. 14) in this mode.
  • To conserve logic, in another embodiment, the saturating frequency counter may be made very small (two or three bits), while the microprocessor accumulates additional Δf bits internally. For such a loop, the only per-receiver logic required over a first-order loop is the divide-by V counter 38 and the 2 or 3 bit saturating frequency counter 36.
  • Completely manual: In this mode, the microprocessor reads the saturating frequency counter and directly updates the phase setting. That is, the microprocessor also performs the function of the phase counter 6.
  • In any of these modes, the microprocessor should have complete observability of all counter states.
  • While this invention has been particularly shown and described with references to preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the scope of the invention encompassed by the appended claims.

Claims (51)

1. A clock circuit, comprising:
circuitry to provide a first indication indicating whether an edge in an input signal lags or precedes a clock edge in a clock signal;
a frequency estimator that estimates a frequency difference between the input signal and the clock signal to provide a second indication indicating the magnitude of the frequency difference; and
a phase adjuster to adjust the phase of the clock signal based on the first indication and the second indication.
2. The clock circuit of claim 1, wherein the phase adjuster comprises:
a phase controller that provides a phase setting signal based on the first and second indications; and
a phase interpolator to adjust the phase of the clock signal responsive to the phase setting signal.
3. The clock circuit of claim 1, further comprising a first filter coupled between the circuitry and the frequency estimator to filter the first indication before it is received by the frequency estimator, wherein the frequency estimator comprises:
a second filter to further filter the first indication;
a frequency counter that, responsive to the further filtered first indication, produces an output that represents an estimated difference in frequency between the clock signal and the input signal; and
a frequency synthesizer to produce the second indication responsive to the estimated frequency difference.
4. The clock circuit of claim 3, wherein the frequency synthesizer comprises:
a divide-by-X counter to divide the clock by a number X that is based on the estimated frequency difference, the divided clock providing the second indication to the phase controller.
5. The clock circuit of claim 4, further comprising:
a converter to convert the estimated frequency difference to a corresponding period, the number X being responsive to the period.
6. The clock circuit of claim 5, wherein the divide-by-X counter comprises:
a divide-by-K counter, where K is a fixed number; and
a divide-by-V counter, where V is responsive to the period.
7. The clock circuit of claim 6, wherein the divide-by-K counter is common to plural clock recovery circuits.
8. The clock circuit of claim 5, wherein the converter comprises a read-only-memory (ROM) containing a conversion table.
9. The clock circuit of claim 5, wherein the converter performs a 1's complement of a magnitude portion of the estimated frequency difference.
10. The clock circuit of claim 5, wherein the converter is implemented with a microprocessor.
11. The clock circuit of claim 10, wherein at least a portion of the divide-by-X counter is implemented with a microprocessor.
12. The clock circuit of claim 4, wherein the frequency counter is a saturating counter.
13. The clock circuit of claim 1, wherein the second indication includes a pulse stream having a frequency proportional to the frequency difference.
14. The clock circuit of claim 1, wherein the phase controller includes a phase counter, the phase counter being configured to increment according to the first indication and further increment at a steady rate corresponding to the frequency difference indicated by the second indication.
15. The clock circuit of claim 1, wherein the phase controller includes at least one first input to receive the first indication and at least one second input to receive the second indication.
16. The clock circuit of claim 1, further comprising a filter coupled between the circuitry and the phase controller to filter the first indication before it is received by the phase controller.
17. The clock circuit of claim 1, wherein the frequency estimator that estimates the frequency difference based on the first indication.
18. The clock circuit of claim 1, wherein the phase adjuster rotates the phase of the clock signal based on the second indication
19. A method of providing a clock, comprising:
generating a first indication indicating whether an edge of an input signal lags or leads a clock edge of a clock signal;
producing a second indication indicating a frequency difference between the input signal and the clock signal; and
adjusting the phase of the clock signal based on the first indication and the second indication.
20. The method of claim 19, wherein the producing comprises:
dividing the clock signal by a number X which is based on the estimated frequency difference, the adjusting being responsive to the divided clock.
21. The method of claim 20, further comprising:
converting the estimated frequency difference to a corresponding period, the number X being responsive to the period.
22. The method of claim 21, dividing the clock by X comprises:
dividing the clock signal by a number K, where K is a fixed number; and
dividing the clock signal by a number V, where V is responsive to the period.
23. The method of claim 22, wherein the divide-by-K counter is common to plural clock circuits.
24. The method of claim 21, wherein the converting includes using a stored conversion table to convert.
25. The method of claim 21, wherein the converting includes using a 1's complement of a magnitude portion of the estimated frequency difference.
26. The method of claim 21, wherein the converting is performed by a microprocessor.
27. The method of claim 24, wherein dividing by X is performed at least partially in a microprocessor.
28. The method of claim 20, wherein the producing a signal is performed with a saturating counter.
29. The method of claim 19, wherein the second indication includes a pulse stream having a frequency proportional to the frequency difference.
30. The method of claim 19, wherein the producing the second indication is based on the first indication.
31. The method of claim 19, wherein adjusting the phase of the clock signal includes rotating the phase based on the second indication.
32. A clock system, comprising:
logic means for providing first indication indicating whether an edge of an input signal lags or leads a clock edge of a clock signal;
frequency estimator means for estimating a frequency difference between the input signal and the clock signal, and for producing a second indication indicating the frequency difference; and
phase controller means for adjusting the phase of the clock signal based on the first indication and rotating the phase based on the second indication.
33. A method of generating a pulse stream, comprising:
providing a first indication indicating whether an edge of an input signal lags or precedes a clock edge in a clock signal;
based on the first indication, estimating a frequency difference between the input signal and the clock signal; and
producing a pulse stream having a frequency based on the frequency difference.
34. The method of claim 33, wherein the producing comprises:
dividing the clock signal by a number X which is based on the estimated frequency difference, the producing being responsive to the divided clock.
35. The method of claim 34, further comprising:
converting the estimated frequency difference to a corresponding period, the number X being responsive to the period.
36. The method of claim 35, wherein dividing the clock by X comprises:
dividing the clock signal by a number K, where K is a fixed number; and
dividing the clock signal by a number V, where V is responsive to the period.
37. The method of claim 36, wherein the divide-by-K counter is common to plural clock circuits.
38. The method of claim 35, wherein the converting includes using a stored conversion table to convert.
39. The method of claim 35, wherein the converting includes using a 1's complement of a magnitude portion of the estimated frequency difference.
40. The method of claim 35, wherein the converting is performed by a microprocessor.
41. The method of claim 40, wherein dividing by X is performed at least partially in a microprocessor.
42. The method of claim 33, wherein the pulse stream indicates magnitude of the frequency difference.
43. A pulse stream generator circuit, comprising:
a frequency counter to receive a first indication indicating whether an edge of an input signal lags or precedes a clock edge in a clock signal, the frequency counter generating a value corresponding to a frequency difference between the input signal and the clock signal; and
a frequency synthesizer that, based on the value, generates a pulse stream having a frequency based on the value.
44. The generator circuit of claim 43, wherein the value includes a sign-magnitude value including a magnitude component indicating degree of the frequency difference and a sign component indicating direction of the frequency difference.
45. The generator circuit of claim 44, wherein the frequency synthesizer includes a read-only memory (ROM) that determines a frequency of the pulse stream based on the magnitude component.
46. The generator circuit of claim 45, wherein the frequency synthesizer includes a divider circuit that divides a received reference clock based on the frequency determined by the ROM.
47. The generator circuit of claim 44, wherein the frequency synthesizer includes a logic circuit that, as a function of the magnitude component, generates the pulse stream by enabling and disabling at least one gate receiving a reference clock.
48. The generator circuit of claim 44, wherein the frequency synthesizer includes a central processing unit (CPU) that determines a frequency of the pulse stream based on the magnitude component.
49. The generator circuit of claim 43, further comprising a filter to filter the first indication.
50. The generator circuit of claim 43, wherein the pulse stream indicates magnitude of the frequency difference.
51. The generator circuit of claim 43, wherein the pulse stream has a frequency proportional to the frequency difference.
US11/879,689 2001-07-10 2007-07-18 Digital clock recovery circuit Abandoned US20070263757A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US11/879,689 US20070263757A1 (en) 2001-07-10 2007-07-18 Digital clock recovery circuit

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
US30425101P 2001-07-10 2001-07-10
US10/178,902 US7257183B2 (en) 2001-07-10 2002-06-21 Digital clock recovery circuit
US11/879,689 US20070263757A1 (en) 2001-07-10 2007-07-18 Digital clock recovery circuit

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
US10/178,902 Continuation US7257183B2 (en) 2001-07-10 2002-06-21 Digital clock recovery circuit

Publications (1)

Publication Number Publication Date
US20070263757A1 true US20070263757A1 (en) 2007-11-15

Family

ID=26874791

Family Applications (2)

Application Number Title Priority Date Filing Date
US10/178,902 Active 2024-12-21 US7257183B2 (en) 2001-07-10 2002-06-21 Digital clock recovery circuit
US11/879,689 Abandoned US20070263757A1 (en) 2001-07-10 2007-07-18 Digital clock recovery circuit

Family Applications Before (1)

Application Number Title Priority Date Filing Date
US10/178,902 Active 2024-12-21 US7257183B2 (en) 2001-07-10 2002-06-21 Digital clock recovery circuit

Country Status (1)

Country Link
US (2) US7257183B2 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080297213A1 (en) * 2007-05-30 2008-12-04 Aliazam Abbasfar Signaling with Superimposed Clock and Data Signals
US7532995B1 (en) * 2003-12-22 2009-05-12 Marvell International Ltd. Interpolator testing circuit
US8351559B1 (en) * 2010-04-13 2013-01-08 Smsc Holdings S.A.R.L. Sample time correction for multiphase clocks
US9407424B1 (en) * 2015-04-09 2016-08-02 Texas Instruments Incorporated Fast locking clock and data recovery using only two samples per period
US9893721B2 (en) 2015-10-19 2018-02-13 Samsung Electronics Co., Ltd. Edge detectors and systems of analyzing signal characteristics including the same
CN110235408A (en) * 2017-02-01 2019-09-13 高通股份有限公司 Clock and data recovery with non-uniform clock tracking
CN112073058A (en) * 2020-08-24 2020-12-11 烽火通信科技股份有限公司 Clock data recovery circuit and method based on FPGA
TWI786763B (en) * 2021-08-10 2022-12-11 群聯電子股份有限公司 Signal modulation device, memory storage device and signal modulation method

Families Citing this family (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4196657B2 (en) * 2002-11-29 2008-12-17 株式会社日立製作所 Data recovery method and digitally controlled clock data recovery circuit
US7474714B2 (en) * 2002-12-31 2009-01-06 Intel Corporation Phase/frequency detector for tracking receivers
US7349507B2 (en) * 2003-06-09 2008-03-25 Intel Corporation Extending PPM tolerance using a tracking data recovery algorithm in a data recovery circuit
US8675722B2 (en) * 2003-09-23 2014-03-18 International Business Machines Corporation Methods and apparatus for snapshot-based equalization of a communications channel
US7386080B2 (en) * 2003-09-30 2008-06-10 Intel Corportion High-speed data sampler for optical interconnect
US7426251B1 (en) 2004-02-03 2008-09-16 Xilinx, Inc. High speed transceiver operable to receive lower data rate transmissions
US7426252B1 (en) 2004-02-03 2008-09-16 Xilinx, Inc. High speed transceiver receiving lower rate data
US7284141B2 (en) * 2004-02-05 2007-10-16 Anritsu Company Method of and apparatus for measuring jitter and generating an eye diagram of a high speed data signal
GB0413144D0 (en) * 2004-06-12 2004-07-14 Texas Instruments Ltd Improvements in or relating to clock recovery
US7532645B1 (en) * 2005-01-14 2009-05-12 Xilinx, Inc. Receiver operable to receive data at a lower data rate
US7792232B2 (en) * 2005-06-30 2010-09-07 Intel Corporation Method and system for link jitter compensation including a fast data recovery circuit
JP4829571B2 (en) * 2005-09-09 2011-12-07 株式会社日立製作所 Receiver and positioning distance measuring system
KR100761401B1 (en) * 2006-09-28 2007-09-27 주식회사 하이닉스반도체 Semiconductor memory device and method for driving of the same
US8090064B2 (en) * 2007-02-09 2012-01-03 Fujitsu Limited Single loop frequency and phase detection
TWI379569B (en) * 2007-03-08 2012-12-11 Sandisk Il Ltd Bias and random delay cancellation
GB2449932A (en) * 2007-06-08 2008-12-10 Tandberg Television Asa Timestamp conversion using samples
US7860480B2 (en) * 2007-06-29 2010-12-28 Silicon Laboratories Inc. Method and apparatus for controlling a harmonic rejection mixer
CN101388665B (en) * 2007-09-14 2011-11-09 瑞昱半导体股份有限公司 Time-interleaved clock-data recovery device and method thereof
KR100894486B1 (en) * 2007-11-02 2009-04-22 주식회사 하이닉스반도체 Digital filter, clock data recovery circuit and operation method thereof, semiconductor memory device and operation method thereof
CN101694998B (en) * 2009-10-23 2014-12-31 中兴通讯股份有限公司 Locking system and method
KR101143469B1 (en) 2010-07-02 2012-05-08 에스케이하이닉스 주식회사 Output enable signal generation circuit of semiconductor memory
CN104010030A (en) * 2014-05-13 2014-08-27 北京大学 Data management method and system on the basis of mobile internet
US10484167B2 (en) * 2018-03-13 2019-11-19 Xilinx, Inc. Circuit for and method of receiving a signal in an integrated circuit device

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4280224A (en) * 1979-06-21 1981-07-21 Ford Aerospace & Communications Corporation Bit synchronizer with early and late gating
US4445224A (en) * 1980-12-09 1984-04-24 Fujitsu Limited Pull-in circuit for a digital phase locked loop
US4766397A (en) * 1985-02-01 1988-08-23 Advanced Micro Devices, Inc. Phase detector and phase-locked loop apparatus
US4926447A (en) * 1988-11-18 1990-05-15 Hewlett-Packard Company Phase locked loop for clock extraction in gigabit rate data communication links
US4933959A (en) * 1989-05-08 1990-06-12 Datatape Incorporated Tracking bit synchronizer
US5223843A (en) * 1988-01-05 1993-06-29 Rockwell International Corporation High performance global positioning system receiver means and method
US5917873A (en) * 1996-10-08 1999-06-29 Sony Corporation Receiving apparatus, receiving method, and digital PLL circuit
US6128680A (en) * 1997-12-18 2000-10-03 Alcatel Usa Sourcing, L.P. Apparatus and method of sharing a state machine for input and output signal processing
US20020039394A1 (en) * 2000-04-28 2002-04-04 Buchwald Aaron W. Phase interpolator device and method
US6768385B2 (en) * 2001-05-11 2004-07-27 Mstar Semiconductor, Inc. Intelligent phase lock loop

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4280224A (en) * 1979-06-21 1981-07-21 Ford Aerospace & Communications Corporation Bit synchronizer with early and late gating
US4445224A (en) * 1980-12-09 1984-04-24 Fujitsu Limited Pull-in circuit for a digital phase locked loop
US4766397A (en) * 1985-02-01 1988-08-23 Advanced Micro Devices, Inc. Phase detector and phase-locked loop apparatus
US5223843A (en) * 1988-01-05 1993-06-29 Rockwell International Corporation High performance global positioning system receiver means and method
US4926447A (en) * 1988-11-18 1990-05-15 Hewlett-Packard Company Phase locked loop for clock extraction in gigabit rate data communication links
US4933959A (en) * 1989-05-08 1990-06-12 Datatape Incorporated Tracking bit synchronizer
US5917873A (en) * 1996-10-08 1999-06-29 Sony Corporation Receiving apparatus, receiving method, and digital PLL circuit
US6128680A (en) * 1997-12-18 2000-10-03 Alcatel Usa Sourcing, L.P. Apparatus and method of sharing a state machine for input and output signal processing
US20020039394A1 (en) * 2000-04-28 2002-04-04 Buchwald Aaron W. Phase interpolator device and method
US20020044618A1 (en) * 2000-04-28 2002-04-18 Buchwald Aaron W. High-speed serial data transceiver and related methods
US6768385B2 (en) * 2001-05-11 2004-07-27 Mstar Semiconductor, Inc. Intelligent phase lock loop

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7532995B1 (en) * 2003-12-22 2009-05-12 Marvell International Ltd. Interpolator testing circuit
US20080297213A1 (en) * 2007-05-30 2008-12-04 Aliazam Abbasfar Signaling with Superimposed Clock and Data Signals
US8149972B2 (en) 2007-05-30 2012-04-03 Rambus Inc. Signaling with superimposed clock and data signals
US8351559B1 (en) * 2010-04-13 2013-01-08 Smsc Holdings S.A.R.L. Sample time correction for multiphase clocks
US9407424B1 (en) * 2015-04-09 2016-08-02 Texas Instruments Incorporated Fast locking clock and data recovery using only two samples per period
US9893721B2 (en) 2015-10-19 2018-02-13 Samsung Electronics Co., Ltd. Edge detectors and systems of analyzing signal characteristics including the same
CN110235408A (en) * 2017-02-01 2019-09-13 高通股份有限公司 Clock and data recovery with non-uniform clock tracking
CN112073058A (en) * 2020-08-24 2020-12-11 烽火通信科技股份有限公司 Clock data recovery circuit and method based on FPGA
TWI786763B (en) * 2021-08-10 2022-12-11 群聯電子股份有限公司 Signal modulation device, memory storage device and signal modulation method
US11636902B2 (en) 2021-08-10 2023-04-25 Phison Electronics Corp. Signal modulation apparatus, memory storage apparatus, and signal modulation method

Also Published As

Publication number Publication date
US7257183B2 (en) 2007-08-14
US20030086339A1 (en) 2003-05-08

Similar Documents

Publication Publication Date Title
US7257183B2 (en) Digital clock recovery circuit
KR100303897B1 (en) Low-power jitter-compensated phase-locked loop and how to reduce power and maintain low jitter at the same time
US6480047B2 (en) Reduced jitter phase lock loop using a technique multi-stage digital delay line
US5812619A (en) Digital phase lock loop and system for digital clock recovery
US7177611B2 (en) Hybrid control of phase locked loops
US6741109B1 (en) Method and apparatus for switching between input clocks in a phase-locked loop
US5168245A (en) Monolithic digital phaselock loop circuit having an expanded pull-in range
US6157690A (en) Digital PLL circuit
US5406592A (en) First order FLL/PLL system with low phase error
US10727846B2 (en) Phase cancellation in a phase-locked loop
JP4628517B2 (en) Frequency control device
WO2003013001A2 (en) Clock data recovering system with external early/late input
US6700943B1 (en) Digital bit synchronizer for low transition densities
US20020057118A1 (en) Apparatus and method for counting high-speed early/late pulses from a high speed phase detector using a pulse accumulator
US6920622B1 (en) Method and apparatus for adjusting the phase of an output of a phase-locked loop
US6445229B1 (en) Digital phase lock loop
KR100396926B1 (en) Method and apparatus for feedback dividing non-crystal of phase-locked loop and divisor decision method for feedback divider
US7548119B2 (en) Digitally controlled oscillator with jitter shaping capability
US5815017A (en) Forced oscillator circuit and method
JPH0744449B2 (en) Digital phase lock loop circuit
EP1257059B1 (en) Method and apparatus for synchronizing slave network node to master network node
US5233636A (en) Analog and digital phase detector for bit synchronism
US7349507B2 (en) Extending PPM tolerance using a tracking data recovery algorithm in a data recovery circuit
EP0689294B1 (en) Digital PLL circuit
US7869555B2 (en) Digital word representative of a non-integer ratio between the respective periods of two signals

Legal Events

Date Code Title Description
STCB Information on status: application discontinuation

Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION