US9184907B2 - Flexible threshold counter for clock-and-data recovery - Google Patents

Flexible threshold counter for clock-and-data recovery Download PDF

Info

Publication number
US9184907B2
US9184907B2 US13/730,556 US201213730556A US9184907B2 US 9184907 B2 US9184907 B2 US 9184907B2 US 201213730556 A US201213730556 A US 201213730556A US 9184907 B2 US9184907 B2 US 9184907B2
Authority
US
United States
Prior art keywords
data
clock pulses
clock
late
early
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.)
Active, expires
Application number
US13/730,556
Other versions
US20140185633A1 (en
Inventor
Peter C. Mills
Gautam Bhatia
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.)
Nvidia Corp
Original Assignee
Nvidia Corp
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 Nvidia Corp filed Critical Nvidia Corp
Priority to US13/730,556 priority Critical patent/US9184907B2/en
Assigned to NVIDIA CORPORATION reassignment NVIDIA CORPORATION ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: BHATIA, GAUTAM, MILLS, PETER C.
Priority to DE102013224188.7A priority patent/DE102013224188B4/en
Publication of US20140185633A1 publication Critical patent/US20140185633A1/en
Application granted granted Critical
Publication of US9184907B2 publication Critical patent/US9184907B2/en
Active legal-status Critical Current
Adjusted expiration legal-status Critical

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/0337Selecting between two or more discretely delayed clocks or selecting between two or more discretely delayed received code signals
    • 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/0033Correction by delay
    • H04L7/0037Delay of clock signal

Definitions

  • a high-speed digital interface may be used to carry data within an electronic device or from one electronic device to another.
  • the data carried over the interface is synchronized to a clock signal of the sending device, which typically is not carried over the interface.
  • the receiving device In order to parse the data it receives, the receiving device will attempt to recreate the clock signal of the sending device.
  • a so-called clock-and-data recovery (CDR) circuit may be used for this purpose.
  • a CDR circuit adjusts the frequency and phase of a local clock in the receiving device to achieve consistency with the various logic transitions of the data received.
  • the CDR circuit must tolerate the effects of clock jitter in the sending and/or receiving clocks, as well as signal drift in the sent data.
  • the CDR circuit may tally the clock pulses arriving early with respect to the data, versus the clock pulses arriving late. The relative tally is then shifted and added into a binary register.
  • a chosen output transition of the register triggers advance of the local clock phase when late arrivals outnumber early arrivals by a threshold number; a complementary output transition triggers retard of the local clock phase when early arrivals outnumber late arrivals by the threshold number.
  • the threshold number is programmable in this approach, inasmuch as any output bit of the register may be chosen to trigger advance or retard of the local clock phase.
  • the threshold is limited to integer powers of two.
  • the register bit chosen to trigger advance or retard of the local clock phase may be determined by an adjustable filter setting for the CDR circuit.
  • a CDR circuit with a large filter setting (updating the clock phase on a high power of two) may react slowly to timing changes in the data, but will not overshoot the required clock phase.
  • a CDR circuit with a small filter setting (updating on a low power of two) will respond more quickly to timing changes in the data, but may overshoot the required clock phase, thereby introducing additional jitter.
  • a filter setting that is either too high or too low for a given interface is undesirable, as it may limit the bandwidth of error-free transmission.
  • FIG. 1 shows aspects of a high-speed digital interface in accordance with an embodiment of this disclosure.
  • FIG. 2 shows aspects of an example CDR circuit in accordance with an embodiment of this disclosure.
  • FIG. 3 illustrates an example method to reproduce a clock-pulse train of a data sender based on data received from the data sender, in accordance with an embodiment of this disclosure.
  • FIG. 1 schematically shows aspects of a high-speed digital interface 10 in one embodiment.
  • the interface as shown includes sixty-four channels labeled D0 through D63. Other embodiments may include more or fewer channels.
  • Each channel carries one-bit, digital data from data sender 12 to data receiver 14 .
  • the data sender and data receiver may be discrete electronic devices or discrete components of the same electronic device.
  • the data sender may be a central processing unit (CPU) of a computer, cellular telephone, handheld media player, or game system.
  • the data receiver may be a graphics processing unit (GPU), ethernet chip, hard drive, or hard-drive controller, for example.
  • GPU graphics processing unit
  • FIG. 1 shows one data sender 12 and one data receiver 14 ; in other embodiments, a given data sender may send data to a plurality of data receivers. A given data receiver may likewise receive data from a plurality of data senders. All aspects of this disclosure are further applicable to bi-directional exchange of data over an interface. In other words, data sender 12 may be configured also to receive data from data-receiver 14 , over interface 10 .
  • the data transmitted over interface 10 may be synchronized, within practical limits, to clock 16 of data sender 12 .
  • data receiver 14 may not have direct access to that clock.
  • the data receiver may include a series of so-called clock-and-data recovery (CDR) circuits 18 , one for each channel.
  • CDR clock-and-data recovery
  • Each CDR circuit attempts to recreate the clock signal underlying the data in its associated channel. It does so by inducing an appropriate phase shift in the pulse train of local clock 20 , which is supplied to each CDR circuit. More specifically, the CDR circuit adjusts the phase of the local clock to achieve consistency with the various logic transitions of the data received.
  • the CDR circuit may also adjust the frequency of the local clock, as needed, to achieve consistency with the logic transitions of the data received.
  • FIG. 2 shows aspects of an example CDR circuit 18 in one embodiment.
  • Each CDR circuit includes phase shifter 22 , timer logic 24 , and control logic 26 .
  • the phase shifter is configured to receive a train of clock pulses from local clock 20 and to release a corresponding train of clock pulses with a controlled phase shift. In other words, every clock pulse released from the phase shifter is shifted in phase by a controlled amount relative to the corresponding pulse received from the local clock.
  • the direction and amount of the applied phase shift is determined by a signed, 7-bit parameter PIO_INTERP, as described in further detail below.
  • a ‘signed, M-bit’ number, as used herein, contains M ⁇ 1 data bits in addition to one sign bit.
  • the bit widths of the various parameters discussed herein, and the registers that hold them are given only as examples. In every case, different bit widths may be used instead, without departing from the scope of this disclosure.
  • timer logic 24 and control logic 26 exert closed-loop control over phase shifter 22 to provide a phase-shifted pulse train that matches, as closely as possible, the clock signal underlying the data received in CDR circuit 18 .
  • This action compensates for the effects of clock jitter in the remote and/or local clock, as well as signal drift in the sent data.
  • timer logic 24 includes edge detector 28 .
  • the edge detector is configured to receive a single channel of data from data sender 12 over interface 10 .
  • the edge detector also receives the phase-shifted clock-pulse train from phase shifter 22 .
  • Logic within the edge detector determines, for each transition of the data, whether the concurrent clock pulse from the train is received before the leading edge of the transition (early with respect to the transition), or whether it is received after the leading edge of the transition (late with respect to the transition). In effect, the edge detector compares the data captured at an edge of each clock pulse to the data captured at the eye of each clock pulse, to determine whether the clock pulse is early or late with respect to the transition.
  • each channel of interface 10 may transmit data of such high frequency that it is impractical to distinguish late clock pulses from early clock pulses and tally the result in real time. Therefore, edge detector 28 includes a 1 ⁇ N demultiplexer 29 , which is clocked from the output of phase shifter 22 .
  • the demultiplexer parses the single-channel input data into N time-demultiplexed data lines for subsequent, parallel processing. Such processing my include N redundant XOR-type structures and delay-generating elements, which distinguish whether the clock pulse is late or early with respect to the demultiplexed data on a particular line.
  • the value of N may differ in the different embodiments of this disclosure.
  • N may equal any integer, or preferably an integer power of two; in one non-limiting embodiment, N may equal 16.
  • edge detector 28 For each of the N demultiplexed data lines, edge detector 28 sets a corresponding CLK_EARLY bit if the clock pulse is early with respect to the data on that line. Likewise, the edge detector sets a corresponding CLK_LATE bit if the clock pulse is late with respect to the data on that line.
  • CLK_EARLY and CLK_LATE bits are combined in math unit 30 to yield a signed value that equates to the number of late clock pulses relative to the number of early clock pulses (late minus early) in the demultiplexed data.
  • the UP_DOWN_SUM from the math unit may equal the sum of the CLK_LATE bits set by the edge detector minus the sum of the CLK_EARLY bits set by the edge detector. In FIG. 2 , this signed value is denoted UP_DOWN_SUM.
  • the math unit may include only combinational logic, as opposed to sequential or state logic.
  • the UP_DOWN_SUM provided by math unit 30 may be N+2 bits wide. This is the number of bits needed to represent the positive number N in two's complement binary form (which, in the present example, would correspond to all clock pulses in the demultiplexed data arriving late). In one non-limiting embodiment, the math unit may be six bits wide.
  • timer logic 24 includes a clock divider 34 , which divides the frequency of the phase shifted local clock by the value N.
  • the output of this clock divider is used to trigger the update of adder 32 , which is configured as a wrap-around adder.
  • the adder advances, after a period of N clock cycles from the local clock pulse train, by the signed number of late clock pulses relative to early clock pulses received in timer logic 24 within that period. Chosen at design time, the value of N effectively defines the update frequency of CDR circuit 18 in terms of the channel frequency of interface 10 .
  • N may equal the ratio of the channel frequency to the CDR update frequency.
  • each update of adder 32 can potentially result in an overflow (OFLOW) or underflow (UFLOW) of the contents of the adder, depending on the UP_DOWN_SUM.
  • the OFLOW and UFLOW outputs of the adder are therefore provided to downstream componentry of CDR circuit 18 so that the tally is not lost upon overflow or underflow of the adder.
  • the adder itself need only be wide enough to ensure that no update can result in double wrapping—i.e., the sum that remains in the adder after the update must be valid when the overflow or underflow is accounted for.
  • the adder may be N bits wide—four bits in some examples.
  • the overflow and underflow bits from adder 32 are applied to the up and down clock inputs of presettable, accumulator 36 of timer logic 24 .
  • the accumulator tallies, in units of N, the number of late clock pulses received in timer logic 24 relative to the early clock pulses.
  • the accumulator may be of any desired width—13 bits in one example—so that relatively large positive and negative count values may be accumulated.
  • the inventors herein have recognized an advantage in using a single bit (OFLOW or UFLOW) to update the relatively wide accumulator 36 . In particular, this strategy allows ample time to implement an exact threshold comparison of the accumulator contents in control logic 26 , which will now be described.
  • Control logic 26 includes phase interpolator 38 and threshold comparator 40 .
  • the phase interpolator is an up-down binary counter whose signed output PIO_INTERP determines the magnitude and direction of the phase shift applied by phase shifter 22 .
  • the threshold comparator receives from accumulator 36 a tally of the late clock pulses relative to the early clock pulses, and compares the tally to one or more reference values. The threshold comparator increments the phase interpolator when the tally exceeds a first reference value, and decrements the phase interpolator when the tally wraps below a second reference value.
  • threshold comparator 40 receives the output of accumulator 36 at input A.
  • the threshold comparator also receives a 13-bit unsigned CDR_FILTER value at input B, as the first reference value. If the accumulator exceeds CDR_FILTER, then the comparator increments the phase interpolator, and clears the accumulator to a value of zero. If the accumulator wraps below zero, as the second reference value, then the comparator decrements the phase interpolator and presets the accumulator to CDR_FILTER.
  • the accumulator may be set to CDR_FILTER ⁇ 2, to provide unbiased response to late and early clock pulses. Accordingly, the tally held in the accumulator may, in some scenarios, be offset by the preset value loaded into the accumulator initially, or with every retard of the phase shift.
  • the CDR_FILTER parameter may be programmed to any suitable value. Accordingly, phase interpolator 38 may update when the number of late clock pulses and the number of early clock pulses differ from each other by the product of a signed integer times the width of adder 32 . With a 4-bit adder, for example, such difference thresholds may include ⁇ 65536, ⁇ 65520, . . . , 0, . . . , 65504, 65520 ⁇ , late minus early. This is a distinct advantage over CDR circuits in which a binary counter bit is used to trigger advance or retard of the clock phase.
  • the control logic is configured to incrementally advance the phase shift when the late clock pulses outnumber the early clock pulses even by a non-integer power of two, and to incrementally retard the phase shift when the early clock pulses outnumber the late clock pulses by a non-integer power of two.
  • the present approach provides linear control over the difference thresholds—and therefore much finer control, especially at relatively high filter values.
  • the interface designer can better avoid the slow response associated with too large a filter setting and the overshoot/jitter associated with too small a filter setting.
  • FIG. 3 illustrates an example method 42 to reproduce a clock-pulse train of a data sender based on data received from the data sender.
  • the method may be enacted in a CDR circuit of a data receiver.
  • a train of clock pulses with a controlled phase shift is released from a phase shifter.
  • data is received from the data sender.
  • the data will include a plurality of logic transitions.
  • At 50 it is determined whether a clock pulse from the train is late or early with respect to the transition.
  • the late clock pulses are tallied relative to the early clock pulses.
  • the method advances to 60 , where the phase interpolator is decremented. Otherwise it is determined at 62 whether the late clock pulses outnumber the early clock pulses by a threshold. If so, the method advances to 64 , where the phase interpolator is incremented.
  • the thresholds applied in this method may be non-integer powers of two.
  • the phase shift may be incrementally advanced when the late clock pulses outnumber the early clock pulses by a non-integer power of two and retarded when the early pulses outnumber the late pulses by a non-integer power of two.
  • Such advancing and retarding may include comparing, in number, the late clock pulses relative to the early clock pulses versus a non-integer power-of-two threshold.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

One embodiment provides a data-receiving device component comprising a phase shifter, timer logic, and control logic. The phase shifter is configured to release a train of clock pulses with a controlled phase shift. The timer logic is configured to receive data from a data-sending device, and for each transition of the data received, to determine whether a clock pulse from the train is early or late with respect to the transition, and to tally the late clock pulses relative to the early clock pulses. The control logic, operatively coupled to the phase shifter and to the timer logic, is configured to incrementally advance the phase shift when the late clock pulses outnumber the early clock pulses by a non-integer power of two.

Description

BACKGROUND
A high-speed digital interface may be used to carry data within an electronic device or from one electronic device to another. In many scenarios, the data carried over the interface is synchronized to a clock signal of the sending device, which typically is not carried over the interface. In order to parse the data it receives, the receiving device will attempt to recreate the clock signal of the sending device. A so-called clock-and-data recovery (CDR) circuit may be used for this purpose.
A CDR circuit adjusts the frequency and phase of a local clock in the receiving device to achieve consistency with the various logic transitions of the data received. In high-speed applications, the CDR circuit must tolerate the effects of clock jitter in the sending and/or receiving clocks, as well as signal drift in the sent data. To this end, the CDR circuit may tally the clock pulses arriving early with respect to the data, versus the clock pulses arriving late. The relative tally is then shifted and added into a binary register. In this configuration, a chosen output transition of the register triggers advance of the local clock phase when late arrivals outnumber early arrivals by a threshold number; a complementary output transition triggers retard of the local clock phase when early arrivals outnumber late arrivals by the threshold number. The threshold number is programmable in this approach, inasmuch as any output bit of the register may be chosen to trigger advance or retard of the local clock phase. Naturally, however, the threshold is limited to integer powers of two.
In the CDR approach summarized above, the register bit chosen to trigger advance or retard of the local clock phase may be determined by an adjustable filter setting for the CDR circuit. A CDR circuit with a large filter setting (updating the clock phase on a high power of two) may react slowly to timing changes in the data, but will not overshoot the required clock phase. Conversely, a CDR circuit with a small filter setting (updating on a low power of two) will respond more quickly to timing changes in the data, but may overshoot the required clock phase, thereby introducing additional jitter. Accordingly, a filter setting that is either too high or too low for a given interface is undesirable, as it may limit the bandwidth of error-free transmission.
BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 shows aspects of a high-speed digital interface in accordance with an embodiment of this disclosure.
FIG. 2 shows aspects of an example CDR circuit in accordance with an embodiment of this disclosure.
FIG. 3 illustrates an example method to reproduce a clock-pulse train of a data sender based on data received from the data sender, in accordance with an embodiment of this disclosure.
DETAILED DESCRIPTION
Aspects of this disclosure will now be described by example and with reference to the illustrated embodiments listed above. Components, process steps, and other elements that may be substantially the same in one or more embodiments are identified coordinately and are described with minimal repetition. It will be noted, however, that elements identified coordinately may also differ to some degree. It will be further noted that the drawing figures included in this disclosure are schematic and generally not drawn to scale. Rather, the various drawing scales, aspect ratios, and numbers of components shown in the figures may be purposely distorted to make certain features or relationships easier to see.
FIG. 1 schematically shows aspects of a high-speed digital interface 10 in one embodiment. The interface as shown includes sixty-four channels labeled D0 through D63. Other embodiments may include more or fewer channels. Each channel carries one-bit, digital data from data sender 12 to data receiver 14. In the embodiments here contemplated, the data sender and data receiver may be discrete electronic devices or discrete components of the same electronic device. For example, the data sender may be a central processing unit (CPU) of a computer, cellular telephone, handheld media player, or game system. The data receiver may be a graphics processing unit (GPU), ethernet chip, hard drive, or hard-drive controller, for example.
For ease of illustration, FIG. 1 shows one data sender 12 and one data receiver 14; in other embodiments, a given data sender may send data to a plurality of data receivers. A given data receiver may likewise receive data from a plurality of data senders. All aspects of this disclosure are further applicable to bi-directional exchange of data over an interface. In other words, data sender 12 may be configured also to receive data from data-receiver 14, over interface 10.
Continuing in FIG. 1, the data transmitted over interface 10 may be synchronized, within practical limits, to clock 16 of data sender 12. However, data receiver 14 may not have direct access to that clock. Instead, in order to parse the data it receives over the interface, the data receiver may include a series of so-called clock-and-data recovery (CDR) circuits 18, one for each channel. Each CDR circuit attempts to recreate the clock signal underlying the data in its associated channel. It does so by inducing an appropriate phase shift in the pulse train of local clock 20, which is supplied to each CDR circuit. More specifically, the CDR circuit adjusts the phase of the local clock to achieve consistency with the various logic transitions of the data received. In some embodiments, the CDR circuit may also adjust the frequency of the local clock, as needed, to achieve consistency with the logic transitions of the data received.
FIG. 2 shows aspects of an example CDR circuit 18 in one embodiment. Each CDR circuit includes phase shifter 22, timer logic 24, and control logic 26. The phase shifter is configured to receive a train of clock pulses from local clock 20 and to release a corresponding train of clock pulses with a controlled phase shift. In other words, every clock pulse released from the phase shifter is shifted in phase by a controlled amount relative to the corresponding pulse received from the local clock. In the illustrated embodiment, the direction and amount of the applied phase shift is determined by a signed, 7-bit parameter PIO_INTERP, as described in further detail below. A ‘signed, M-bit’ number, as used herein, contains M−1 data bits in addition to one sign bit. The reader should note, however, that the bit widths of the various parameters discussed herein, and the registers that hold them, are given only as examples. In every case, different bit widths may be used instead, without departing from the scope of this disclosure.
Continuing in FIG. 2, timer logic 24 and control logic 26 exert closed-loop control over phase shifter 22 to provide a phase-shifted pulse train that matches, as closely as possible, the clock signal underlying the data received in CDR circuit 18. This action compensates for the effects of clock jitter in the remote and/or local clock, as well as signal drift in the sent data.
In the illustrated embodiment, timer logic 24 includes edge detector 28. The edge detector is configured to receive a single channel of data from data sender 12 over interface 10. The edge detector also receives the phase-shifted clock-pulse train from phase shifter 22. Logic within the edge detector determines, for each transition of the data, whether the concurrent clock pulse from the train is received before the leading edge of the transition (early with respect to the transition), or whether it is received after the leading edge of the transition (late with respect to the transition). In effect, the edge detector compares the data captured at an edge of each clock pulse to the data captured at the eye of each clock pulse, to determine whether the clock pulse is early or late with respect to the transition.
In some embodiments, each channel of interface 10 may transmit data of such high frequency that it is impractical to distinguish late clock pulses from early clock pulses and tally the result in real time. Therefore, edge detector 28 includes a 1×N demultiplexer 29, which is clocked from the output of phase shifter 22. The demultiplexer parses the single-channel input data into N time-demultiplexed data lines for subsequent, parallel processing. Such processing my include N redundant XOR-type structures and delay-generating elements, which distinguish whether the clock pulse is late or early with respect to the demultiplexed data on a particular line. As described in more detail hereinafter, the value of N may differ in the different embodiments of this disclosure. N may equal any integer, or preferably an integer power of two; in one non-limiting embodiment, N may equal 16.
For each of the N demultiplexed data lines, edge detector 28 sets a corresponding CLK_EARLY bit if the clock pulse is early with respect to the data on that line. Likewise, the edge detector sets a corresponding CLK_LATE bit if the clock pulse is late with respect to the data on that line. In the illustrated embodiment, the CLK_EARLY and CLK_LATE bits are combined in math unit 30 to yield a signed value that equates to the number of late clock pulses relative to the number of early clock pulses (late minus early) in the demultiplexed data. In other words, the UP_DOWN_SUM from the math unit may equal the sum of the CLK_LATE bits set by the edge detector minus the sum of the CLK_EARLY bits set by the edge detector. In FIG. 2, this signed value is denoted UP_DOWN_SUM. To increase processing speed, the math unit may include only combinational logic, as opposed to sequential or state logic. In one embodiment, the UP_DOWN_SUM provided by math unit 30 may be N+2 bits wide. This is the number of bits needed to represent the positive number N in two's complement binary form (which, in the present example, would correspond to all clock pulses in the demultiplexed data arriving late). In one non-limiting embodiment, the math unit may be six bits wide.
In view of the N-bit demultiplexing scheme enacted in edge detector 28, the tally of late versus early clock pulses reaches maturity at every Nth clock pulse. Therefore, timer logic 24 includes a clock divider 34, which divides the frequency of the phase shifted local clock by the value N. The output of this clock divider is used to trigger the update of adder 32, which is configured as a wrap-around adder. After every N clock cycles, the UP_DOWN_SUM from the math unit is added into the adder. Accordingly, the adder advances, after a period of N clock cycles from the local clock pulse train, by the signed number of late clock pulses relative to early clock pulses received in timer logic 24 within that period. Chosen at design time, the value of N effectively defines the update frequency of CDR circuit 18 in terms of the channel frequency of interface 10. In one embodiment, N may equal the ratio of the channel frequency to the CDR update frequency.
Continuing in FIG. 2, each update of adder 32 can potentially result in an overflow (OFLOW) or underflow (UFLOW) of the contents of the adder, depending on the UP_DOWN_SUM. The OFLOW and UFLOW outputs of the adder are therefore provided to downstream componentry of CDR circuit 18 so that the tally is not lost upon overflow or underflow of the adder. Accordingly, the adder itself need only be wide enough to ensure that no update can result in double wrapping—i.e., the sum that remains in the adder after the update must be valid when the overflow or underflow is accounted for. In one embodiment, therefore, the adder may be N bits wide—four bits in some examples.
As shown in FIG. 2, the overflow and underflow bits from adder 32 are applied to the up and down clock inputs of presettable, accumulator 36 of timer logic 24. In this manner, the accumulator tallies, in units of N, the number of late clock pulses received in timer logic 24 relative to the early clock pulses. The accumulator may be of any desired width—13 bits in one example—so that relatively large positive and negative count values may be accumulated. The inventors herein have recognized an advantage in using a single bit (OFLOW or UFLOW) to update the relatively wide accumulator 36. In particular, this strategy allows ample time to implement an exact threshold comparison of the accumulator contents in control logic 26, which will now be described.
Control logic 26 includes phase interpolator 38 and threshold comparator 40. The phase interpolator is an up-down binary counter whose signed output PIO_INTERP determines the magnitude and direction of the phase shift applied by phase shifter 22. The threshold comparator receives from accumulator 36 a tally of the late clock pulses relative to the early clock pulses, and compares the tally to one or more reference values. The threshold comparator increments the phase interpolator when the tally exceeds a first reference value, and decrements the phase interpolator when the tally wraps below a second reference value.
In the embodiment shown in FIG. 2, threshold comparator 40 receives the output of accumulator 36 at input A. The threshold comparator also receives a 13-bit unsigned CDR_FILTER value at input B, as the first reference value. If the accumulator exceeds CDR_FILTER, then the comparator increments the phase interpolator, and clears the accumulator to a value of zero. If the accumulator wraps below zero, as the second reference value, then the comparator decrements the phase interpolator and presets the accumulator to CDR_FILTER. On entry or on reset of the CDR circuit, the accumulator may be set to CDR_FILTER\2, to provide unbiased response to late and early clock pulses. Accordingly, the tally held in the accumulator may, in some scenarios, be offset by the preset value loaded into the accumulator initially, or with every retard of the phase shift.
In CDR circuit 18 as illustrated, the CDR_FILTER parameter may be programmed to any suitable value. Accordingly, phase interpolator 38 may update when the number of late clock pulses and the number of early clock pulses differ from each other by the product of a signed integer times the width of adder 32. With a 4-bit adder, for example, such difference thresholds may include {−65536, −65520, . . . , 0, . . . , 65504, 65520}, late minus early. This is a distinct advantage over CDR circuits in which a binary counter bit is used to trigger advance or retard of the clock phase. There, the thresholds are limited to integer powers of two (minus one if the integer is positive), further multiplied by whatever shift factor N is applied to the UP_DOWN_SUM as it enters the counter—e.g., {−65536, −32768, . . . , 0, . . . , 32752, 65520} assuming N=16. In the present approach, by contrast, the control logic is configured to incrementally advance the phase shift when the late clock pulses outnumber the early clock pulses even by a non-integer power of two, and to incrementally retard the phase shift when the early clock pulses outnumber the late clock pulses by a non-integer power of two. The present approach provides linear control over the difference thresholds—and therefore much finer control, especially at relatively high filter values. By providing finer control over these thresholds, the interface designer can better avoid the slow response associated with too large a filter setting and the overshoot/jitter associated with too small a filter setting.
The configurations described above enable various methods to reproduce a clock-pulse train of a data sender based on data received from the data sender. Accordingly, some methods are now described, by way of example, with continued reference to the above configurations. It will be understood, however, that the methods here described, and others fully within the scope of this disclosure, may be enabled by other configurations as well. Naturally, each execution of a method may change the entry conditions for a subsequent execution and thereby invoke a complex decision-making logic. Such logic is fully contemplated in this disclosure. Some of the process steps described and/or illustrated herein may, in some embodiments, be omitted without departing from the scope of this disclosure. Likewise, the indicated sequence of the process steps may not always be required to achieve the intended results, but is provided for ease of illustration and description. One or more of the illustrated actions, functions, or operations may be performed repeatedly, depending on the particular strategy being used.
FIG. 3 illustrates an example method 42 to reproduce a clock-pulse train of a data sender based on data received from the data sender. The method may be enacted in a CDR circuit of a data receiver. At 44 of method 42, a train of clock pulses with a controlled phase shift is released from a phase shifter. At 46 data is received from the data sender. Naturally, the data will include a plurality of logic transitions. At 48 it is determined whether a logic transition is detected in the data. If a logic transition is detected, then the method advances to 50. At 50 it is determined whether a clock pulse from the train is late or early with respect to the transition. At 54 the late clock pulses are tallied relative to the early clock pulses. At 56 it is determined whether the early clock pulses outnumber the late clock pulses by a threshold. If the early clock pulses outnumber the late clock pulses by the threshold, then the method advances to 60, where the phase interpolator is decremented. Otherwise it is determined at 62 whether the late clock pulses outnumber the early clock pulses by a threshold. If so, the method advances to 64, where the phase interpolator is incremented. As noted hereinabove, the thresholds applied in this method may be non-integer powers of two. Accordingly, the phase shift may be incrementally advanced when the late clock pulses outnumber the early clock pulses by a non-integer power of two and retarded when the early pulses outnumber the late pulses by a non-integer power of two. Such advancing and retarding may include comparing, in number, the late clock pulses relative to the early clock pulses versus a non-integer power-of-two threshold.

Claims (20)

The invention claimed is:
1. A data-receiving device comprising:
a phase shifter configured to generate a train of clock pulses with a controlled phase shift;
a timer circuit configured to time-demultiplex every N clock cycles of data received from a data-sending device into parallel data, wherein N>1, and wherein said timer circuit, for each transition of the data received and based on the parallel data, is further configured to determine whether a concurrent clock pulse from the train is early or late with respect to the transition, and to tally the late clock pulses relative to the early clock pulses; and
a control circuit coupled to the phase shifter and to the timer circuit and configured to cause the phase shifter to incrementally advance the phase shift when the late clock pulses outnumber the early clock pulses by a non-integer power of two based on a tally result accumulated over every N clock cycles.
2. The data-receiving device of claim 1 wherein the control circuit is further configured to cause the phase shifter to incrementally retard the phase shift when the early clock pulses outnumber the late clock pulses by a non-integer power of two.
3. The data-receiving device of claim 1 wherein the timer circuit comprises an edge detector configured, for each transition of the data received, to compare the data at an edge of the clock pulse to the data at an eye of the clock pulse to determine whether the clock pulse is early or late with respect to the transition.
4. The data-receiving device of claim 3 wherein the data compared by the edge detector is single-channel, time-demultiplexed data.
5. The data-receiving device of claim 3 wherein the timer circuit further comprises a math unit configured to tally the late clock pulses relative to the early clock pulses in the data compared by the edge detector over N clock cycles.
6. The data-receiving device of claim 1 wherein the timer circuit comprises a presettable accumulator configured to accumulate a tally of the late clock pulses relative to the early clock pulses in units greater than one.
7. The data-receiving device of claim 6 wherein the tally is offset by a preset value loaded into the accumulator on retard of the phase shift, and wherein the preset value is based on a filter setting of the device.
8. The data-receiving device of claim 6 wherein the accumulator is configured to update the tally upon receipt of a one-bit signal.
9. The data-receiving device of claim 6 wherein the timer circuit further comprises a wrap-around adder configured to advance, when triggered, by a signed number of the late clock pulses relative to the early clock pulses received within N clock cycles, wherein an overflow of the adder increments the accumulator, and wherein an underflow of the adder decrements the accumulator.
10. The data-receiving device of claim 9 wherein the data is received at a predetermined channel frequency, wherein the phase shift is updated at a predetermined update frequency, and wherein the adder is equal in width to a base-two logarithm of a ratio of the channel frequency to the update frequency.
11. The data-receiving device of claim 1 wherein the control circuit comprises a phase interpolator, which comprises an up-down binary counter whose signed output determines the phase shift.
12. The data-receiving device of claim 11 wherein the control circuit comprises a threshold comparator that receives a tally of the late clock pulses relative to the early clock pulses, and is configured to compare the tally to one or more reference values.
13. The data-receiving device of claim 12 wherein the threshold comparator is configured to increment the phase interpolator when the tally exceeds a first reference value, and decrement the phase interpolator when the tally wraps below a second reference value.
14. The data-receiving device of claim 13 wherein the tally is offset by a preset value based on a filter setting of the device, wherein the first reference value is equal to the preset value, and wherein the second reference value is equal to zero.
15. The data-receiving device of claim 1 further comprising a local clock configured to provide an input pulse train to the phase shifter.
16. The data-receiving device of claim 1 wherein the phase shifter, the timer circuit, and the control circuit are components of a clock-and-data recovery circuit.
17. A data-receiving device comprising:
a phase shifter configured to release a train of clock pulses with a controlled phase shift;
an edge detector configured to receive data from a data-sending device, and for each transition of the data received, to compare the data at an edge of the clock pulse to the data at an eye of the clock pulse to determine whether the clock pulse is early or late with respect to the transition;
a math unit configured to tally late versus early clock pulses in the data compared by the edge detector over a predetermined number of clock cycles;
a wrap-around adder configured to advance, when triggered, by a signed number of the late versus early clock pulses received within the predetermined number of clock cycles;
a presettable accumulator configured to accumulate a tally of the late versus early clock pulses based on one-bit overflow and underflow signals from the adder;
a phase interpolator comprising an up-down binary counter whose signed output determines the phase shift; and
a threshold comparator configured to receive a tally of the late versus early clock pulses and compare the tally to first and second reference values, the threshold comparator incrementing the phase interpolator when the tally exceeds a first reference value, and decrementing the phase interpolator when the tally wraps below a second reference value.
18. In a data-receiving device, a method of reproducing a clock-pulse train of a data-sending device component based on data received from the data-sending device, the method comprising:
generating a train of clock pulses with a controlled phase shift;
receiving the data from the data-sending device, the data including a plurality of circuit transitions;
demultiplexing every N clock cycles of data received into a parallel data;
for each transition of the data, determining whether a clock pulse from the train is early or late with respect to the transition based on the parallel data;
tallying the late clock pulses relative to the early clock pulses; and
incrementally advancing the phase shift when the late clock pulses outnumber the early clock pulses by a non-integer power of two based on a tally result accumulated over every N clock cycle.
19. The method of claim 18 wherein advancing the phase shift comprises comparing, in number, the late clock pulses relative to the early clock pulses to a non-integer power-of-two threshold value.
20. The method of claim 19 further comprising incrementally retarding the phase shift when the early pulses outnumber the late pulses by a non-integer power of two value.
US13/730,556 2012-12-28 2012-12-28 Flexible threshold counter for clock-and-data recovery Active 2033-08-02 US9184907B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US13/730,556 US9184907B2 (en) 2012-12-28 2012-12-28 Flexible threshold counter for clock-and-data recovery
DE102013224188.7A DE102013224188B4 (en) 2012-12-28 2013-11-27 Flexible threshold counter for clock and data recovery

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
US13/730,556 US9184907B2 (en) 2012-12-28 2012-12-28 Flexible threshold counter for clock-and-data recovery

Publications (2)

Publication Number Publication Date
US20140185633A1 US20140185633A1 (en) 2014-07-03
US9184907B2 true US9184907B2 (en) 2015-11-10

Family

ID=50928672

Family Applications (1)

Application Number Title Priority Date Filing Date
US13/730,556 Active 2033-08-02 US9184907B2 (en) 2012-12-28 2012-12-28 Flexible threshold counter for clock-and-data recovery

Country Status (2)

Country Link
US (1) US9184907B2 (en)
DE (1) DE102013224188B4 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9413518B2 (en) 2013-08-12 2016-08-09 Nvidia Corporation Clock data recovery circuit
US9762381B2 (en) 2013-07-03 2017-09-12 Nvidia Corporation Adaptation of crossing DFE tap weight
US9787509B2 (en) 2012-12-26 2017-10-10 Nvidia Corporation Influence clock data recovery settling point by applying decision feedback equalization to a crossing sample

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9319248B2 (en) 2012-12-21 2016-04-19 Nvidia Corporation Decision feedback equalizer using current mode processing with CMOS compatible output level
KR20160069093A (en) * 2014-12-05 2016-06-16 에스케이하이닉스 주식회사 Clock and data recovery circuit and system using the same
US9515785B2 (en) * 2014-12-11 2016-12-06 Huawei Technologies Co., Ltd. System and method for detecting loss of signal
KR102501200B1 (en) * 2016-02-15 2023-02-21 에스케이하이닉스 주식회사 Clock data recovery circuit and integrated circuit including the same

Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5436937A (en) * 1993-02-01 1995-07-25 Motorola, Inc. Multi-mode digital phase lock loop
US20040091073A1 (en) * 2002-11-04 2004-05-13 Sterling Smith Data recovery circuit, phase detection circuit and method for detecting and correcting phase conditions
US20040091064A1 (en) 2002-11-12 2004-05-13 Broadcom Corporation Phase detector with delay elements for improved data regeneration
US20040202266A1 (en) 2003-03-26 2004-10-14 Peter Gregorius Clock and data recovery unit
US20050180536A1 (en) 2004-02-17 2005-08-18 Payne Robert F. Interpolator based clock and data recovery (CDR) circuit with digitally programmable BW and tracking capability
US20060114069A1 (en) 2004-08-20 2006-06-01 Hiroaki Kojima Phase-locked loop circuit
US20060158262A1 (en) 2005-01-20 2006-07-20 Robinson Michael A Offset correction in a feedback system for a voltage controlled oscillator
US20090296867A1 (en) 2007-12-12 2009-12-03 Viet Linh Do ISI Pattern-Weighted Early-Late Phase Detector with Jitter Correction
US20100103999A1 (en) 2006-11-16 2010-04-29 Rambus, Inc. Partial response decision-feedback equalization with adaptation based on edge samples
US20110243215A1 (en) 2010-04-01 2011-10-06 Pei-Si Wu Equalizer and signal receiver thereof
US20120033773A1 (en) 2010-08-05 2012-02-09 Fujitsu Limited Phase Interpolation-Based Clock and Data Recovery for Differential Quadrature Phase Shift Keying
US20120106687A1 (en) 2010-10-27 2012-05-03 International Business Machines Corporation Calibration of Multiple Parallel Data Communications Lines for High Skew Conditions
US20120106539A1 (en) 2010-10-27 2012-05-03 International Business Machines Corporation Coordinating Communications Interface Activities in Data Communicating Devices Using Redundant Lines
US20120128055A1 (en) 2010-11-19 2012-05-24 Yueming Jiang Method, apparatus, and system to compensate inter-symbol interference
US20120151247A1 (en) 2010-10-27 2012-06-14 International Business Machines Corporation Dynamic Fault Detection and Repair in a Data Communications Mechanism
TW201228304A (en) 2010-12-30 2012-07-01 Phison Electronics Corp Adaptive equalizer and adaptive equalizing method
US20120250811A1 (en) 2011-03-31 2012-10-04 Avago Technologies Enterprise IP (Singapore) Pte. Ltd. Fast lock clock-data recovery for phase steps
US20130070882A1 (en) 2011-09-21 2013-03-21 Fujitsu Limited Phase Averaging-Based Clock and Data Recovery
US20130154698A1 (en) 2011-12-20 2013-06-20 Mosys, Inc Delay-locked loop with phase adjustment
US20130249612A1 (en) 2012-03-26 2013-09-26 Rambus Inc. Method and apparatus for source-synchronous signaling

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6937685B2 (en) * 2000-11-13 2005-08-30 Primarion, Inc. Apparatus and method for counting high-speed early/late pulses from a high speed phase detector using a pulse accumulator

Patent Citations (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5436937A (en) * 1993-02-01 1995-07-25 Motorola, Inc. Multi-mode digital phase lock loop
US20040091073A1 (en) * 2002-11-04 2004-05-13 Sterling Smith Data recovery circuit, phase detection circuit and method for detecting and correcting phase conditions
US20040091064A1 (en) 2002-11-12 2004-05-13 Broadcom Corporation Phase detector with delay elements for improved data regeneration
US20040202266A1 (en) 2003-03-26 2004-10-14 Peter Gregorius Clock and data recovery unit
US20050180536A1 (en) 2004-02-17 2005-08-18 Payne Robert F. Interpolator based clock and data recovery (CDR) circuit with digitally programmable BW and tracking capability
US20060114069A1 (en) 2004-08-20 2006-06-01 Hiroaki Kojima Phase-locked loop circuit
US20060158262A1 (en) 2005-01-20 2006-07-20 Robinson Michael A Offset correction in a feedback system for a voltage controlled oscillator
US20140016692A1 (en) 2006-11-16 2014-01-16 Rambus Inc. Edge based partial response equalization
US20100103999A1 (en) 2006-11-16 2010-04-29 Rambus, Inc. Partial response decision-feedback equalization with adaptation based on edge samples
US20090296867A1 (en) 2007-12-12 2009-12-03 Viet Linh Do ISI Pattern-Weighted Early-Late Phase Detector with Jitter Correction
US20110243215A1 (en) 2010-04-01 2011-10-06 Pei-Si Wu Equalizer and signal receiver thereof
US20120033773A1 (en) 2010-08-05 2012-02-09 Fujitsu Limited Phase Interpolation-Based Clock and Data Recovery for Differential Quadrature Phase Shift Keying
US20120106539A1 (en) 2010-10-27 2012-05-03 International Business Machines Corporation Coordinating Communications Interface Activities in Data Communicating Devices Using Redundant Lines
US20120151247A1 (en) 2010-10-27 2012-06-14 International Business Machines Corporation Dynamic Fault Detection and Repair in a Data Communications Mechanism
US20120106687A1 (en) 2010-10-27 2012-05-03 International Business Machines Corporation Calibration of Multiple Parallel Data Communications Lines for High Skew Conditions
US20120128055A1 (en) 2010-11-19 2012-05-24 Yueming Jiang Method, apparatus, and system to compensate inter-symbol interference
TW201228304A (en) 2010-12-30 2012-07-01 Phison Electronics Corp Adaptive equalizer and adaptive equalizing method
US20120250811A1 (en) 2011-03-31 2012-10-04 Avago Technologies Enterprise IP (Singapore) Pte. Ltd. Fast lock clock-data recovery for phase steps
US20130070882A1 (en) 2011-09-21 2013-03-21 Fujitsu Limited Phase Averaging-Based Clock and Data Recovery
US20130154698A1 (en) 2011-12-20 2013-06-20 Mosys, Inc Delay-locked loop with phase adjustment
US20130249612A1 (en) 2012-03-26 2013-09-26 Rambus Inc. Method and apparatus for source-synchronous signaling

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9787509B2 (en) 2012-12-26 2017-10-10 Nvidia Corporation Influence clock data recovery settling point by applying decision feedback equalization to a crossing sample
US9762381B2 (en) 2013-07-03 2017-09-12 Nvidia Corporation Adaptation of crossing DFE tap weight
US9413518B2 (en) 2013-08-12 2016-08-09 Nvidia Corporation Clock data recovery circuit

Also Published As

Publication number Publication date
DE102013224188B4 (en) 2017-06-08
DE102013224188A1 (en) 2014-07-03
US20140185633A1 (en) 2014-07-03

Similar Documents

Publication Publication Date Title
US9184907B2 (en) Flexible threshold counter for clock-and-data recovery
JP6568247B2 (en) N-phase signal transition alignment
US7555590B2 (en) Fast buffer pointer across clock domains
CN110543437B (en) Delay synchronization across clock domains
US9240804B2 (en) Techniques for alignment of parallel signals
KR102091302B1 (en) Timestamp correction in a multi-lane communication link with skew
KR100910853B1 (en) Semiconductor memory device and the method for operating the same
JP6598969B2 (en) Phase walk method of clock data recovery (CDR) in phase interpolator based transceiver system
US8477897B1 (en) Bit slip circuitry for serial data signals
US10164806B2 (en) Clock data recovery circuit using pseudo random binary sequence pattern and operating method for same
US7301996B1 (en) Skew cancellation for source synchronous clock and data signals
CN110768664B (en) Data sampling method and device
US9755663B1 (en) Parallel-serial conversion circuit, information processing apparatus and timing adjustment method
JP4448076B2 (en) Timing adjustment circuit for data transmission / reception circuit, LSI and data transmission / reception system
US8581654B2 (en) Method of compensating clock skew, clock skew compensating circuit for realizing the method, and input/output system including the clock skew compensating circuit
US10707849B2 (en) Synchronous mirror delay circuit and synchronous mirror delay operation method
WO2014110064A1 (en) Multi-protocol driver slew rate calibration system for calibrating slew rate control signal values
US8311173B2 (en) Frame pulse signal latch circuit and phase adjustment method
US9467278B2 (en) Methods and apparatus for trimming of CDR clock buffer using phase shift of transmit data
JP2008300915A (en) High-speed serial communication utilizing duty ratio of clock
JP2006005665A (en) Device and method for clock adjustment
WO2024205243A2 (en) Apparatus for correcting time skew
US20060146967A1 (en) Keep-out asynchronous clock alignment scheme
WO2007083443A1 (en) Skew correcting apparatus
US20100052754A1 (en) Input-signal recovery circuit and asynchronous serial bus data reception system using the same

Legal Events

Date Code Title Description
AS Assignment

Owner name: NVIDIA CORPORATION, CALIFORNIA

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:BHATIA, GAUTAM;MILLS, PETER C.;SIGNING DATES FROM 20130107 TO 20130115;REEL/FRAME:029726/0580

STCF Information on status: patent grant

Free format text: PATENTED CASE

MAFP Maintenance fee payment

Free format text: PAYMENT OF MAINTENANCE FEE, 4TH YEAR, LARGE ENTITY (ORIGINAL EVENT CODE: M1551); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

Year of fee payment: 4

MAFP Maintenance fee payment

Free format text: PAYMENT OF MAINTENANCE FEE, 8TH YEAR, LARGE ENTITY (ORIGINAL EVENT CODE: M1552); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

Year of fee payment: 8