Phase detectors with alignment to phase information lost in decimation
11705914 · 2023-07-18
Assignee
Inventors
Cpc classification
H03L7/1075
ELECTRICITY
G06F1/12
PHYSICS
H03L7/0807
ELECTRICITY
International classification
G06F1/12
PHYSICS
Abstract
Apparatus and methods for clock synchronization and frequency translation are provided herein. Clock synchronization and frequency translation integrated circuits (ICs) generate one or more output clock signals having a controlled timing relationship with respect to one or more reference signals. The teachings herein provide a number of improvements to clock synchronization and frequency translation ICs, including, but not limited to, reduction of system clock error, reduced variation in clock propagation delay, lower latency monitoring of reference signals, precision timing distribution and recovery, extrapolation of timing events for enhanced phase-locked loop (PLL) update rate, fast PLL locking, improved reference signal phase shift detection, enhanced phase offset detection between reference signals, and/or alignment to phase information lost in decimation.
Claims
1. A digital phase-locked loop (DPLL) comprising: a phase detector configured to receive a reference clock signal having a first sequence of timing events and a feedback clock signal having a second sequence of timing events, the phase detector further configured to output a phase detection signal; and a feedback divider configured to decimate the second sequence of timing events prior to the phase detector, wherein the phase detector comprises at least one interpolation circuit configured to generate a plurality of interpolated timing events based on at least one of the first sequence of timing events or the second sequence of timing events, wherein the phase detector is further configured to generate the phase detection signal based on the plurality of interpolated timing events.
2. The DPLL of claim 1 wherein the at least one interpolation circuit approximates one or more timing events decimated by the feedback divider.
3. The DPLL of claim 1 further comprising a feedback time to digital converter (TDC) connected in a feedback loop with the feedback divider and the phase detector, wherein the feedback TDC outputs the feedback clock signal.
4. The DPLL of claim 3 further comprising a controllable oscillator in the feedback loop.
5. The DPLL of claim 1 further comprising a reference TDC configured to output the reference clock signal.
6. The DPLL of claim 1 wherein the at least one interpolation circuit generates the plurality of interpolated timing events based on a phase error indicated by the phase detection signal.
7. The DPLL of claim 1 wherein the at least one interpolation circuit generates the plurality of interpolated timing events based on interpolating a plurality of digital time stamps.
8. A digital phase-locked loop (DPLL) comprising: a phase detector configured to receive a reference clock signal having a first sequence of timing events and a feedback clock signal having a second sequence of timing events, the phase detector further configured to output a phase detection signal; and a reference divider configured to decimate the first sequence of timing events prior to the phase detector, wherein the phase detector comprises at least one interpolation circuit configured to generate a plurality of interpolated timing events based on at least one of the first sequence of timing events or the second sequence of timing events, wherein the phase detector is further configured to generate the phase detection signal based on the plurality of interpolated timing events.
9. The DPLL of claim 8 wherein the at least one interpolation circuit approximates one or more timing events decimated by the reference divider.
10. The DPLL of claim 8 further comprising a feedback divider configured to decimate the second sequence of timing events prior to the phase detector.
11. A method of phase detection, the method comprising: receiving a reference clock signal having a first sequence of timing events as a first input to a phase detector of a digital phase-locked loop (DPLL); receiving a feedback clock signal having a second sequence of timing events as a second input to the phase detector; decimating the second sequence of timing events using a feedback divider; generating a plurality of interpolated timing events based on at least one of the first sequence of timing events or the second sequence of timing events using at least one interpolation circuit of the phase detector; and outputting a phase detection signal from the phase detector, including generating the phase detection signal based on the plurality of interpolated timing events.
12. The method of claim 11 further comprising outputting the feedback clock signal from a feedback time to digital converter (TDC) that is connected in a feedback loop with the feedback divider and the phase detector.
13. The method of claim 12 further comprising providing feedback using a controllable oscillator in the feedback loop.
14. The method of claim 11 further comprising outputting the reference clock signal from a reference TDC.
15. The method of claim 11 further comprising generating the plurality of interpolated timing events based on a phase error indicated by the phase detection signal.
16. The method of claim 11 further comprising generating the plurality of interpolated timing events based on interpolating a plurality of digital time stamps.
17. A method of phase detection, the method comprising: receiving a reference clock signal having a first sequence of timing events as a first input to a phase detector of a digital phase-locked loop (DPLL); receiving a feedback clock signal having a second sequence of timing events as a second input to the phase detector; decimating the first sequence of timing events using a reference divider; generating a plurality of interpolated timing events based on at least one of the first sequence of timing events or the second sequence of timing events using at least one interpolation circuit of the phase detector; and outputting a phase detection signal from the phase detector, including generating the phase detection signal based on the plurality of interpolated timing events.
18. The method of claim 17 further comprising approximating one or more timing events decimated by the reference divider using the at least one interpolation circuit.
19. The method of claim 17 further comprising decimating the second sequence of timing events using a feedback divider.
20. The method of claim 19 further comprising approximating one or more timing events decimated by the feedback divider using the at least one interpolation circuit.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
(17)
(18)
(19)
(20)
(21)
(22)
(23)
(24)
(25)
(26)
(27)
(28)
(29)
(30)
(31)
(32)
(33)
(34)
(35)
(36)
(37)
(38)
(39)
(40)
(41)
(42)
(43)
(44)
(45)
(46)
(47)
DETAILED DESCRIPTION OF EMBODIMENTS
(48) Various aspects of the novel systems, apparatuses, and methods are described more fully hereinafter with reference to the accompanying drawings. Aspects of this disclosure may, however, be embodied in many different forms and should not be construed as limited to any specific structure or function presented throughout this disclosure. Rather, these aspects are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
(49) Based on the teachings herein, one skilled in the art should appreciate that the scope of the disclosure is intended to cover any aspect of the novel systems, apparatuses, and methods disclosed herein, whether implemented independently of or combined with any other aspect. For example, an apparatus may be implemented or a method may be practiced using any number of the aspects set forth herein. Thus, it will be understood that certain embodiments can include more elements than illustrated in a drawing and/or a subset of the elements illustrated in a drawing. Further, some embodiments can incorporate any suitable combination of features from two or more drawings. In addition, the scope is intended to encompass such an apparatus or method which is practiced using other structure, functionality, or structure and functionality in addition to or other than the various aspects set forth herein. It should be understood that any aspect disclosed herein may be embodied by one or more elements of a claim or equivalent thereof.
(50) Although particular aspects are described herein, many variations and permutations of these aspects fall within the scope of the disclosure. Although some benefits and advantages of the preferred aspects are mentioned, the scope of the disclosure is not intended to be limited to particular benefits, uses, or objectives. Rather, aspects of the disclosure are intended to be broadly applicable to a variety of electronic systems. The detailed description and drawings are merely illustrative of the disclosure rather than limiting, the scope of the disclosure being defined by the appended claims and equivalents thereof.
(51)
(52) In the illustrated embodiment, the clock synchronization and frequency translation IC 40 includes a first input reference control circuit 1a, a second input reference control circuit 1b, a first reference clock demodulator 2a, a second reference clock demodulator 2b, a third reference clock demodulator 2c, a fourth reference clock demodulator 2d, a first reference divider 3a, a second reference divider 3b, a third reference divider 3c, a fourth reference divider 3d, a first time-to-digital converter (TDC) 4a, a second TDC 4b, a third TDC 4c, a fourth TDC 4d, a digital cross point multiplexer 5, a first digital phase-locked loop (DPLL) 6a, a second DPLL 6b, a first analog phase-locked loop (APLL) 7a, a second APLL 7b, a first output clock multiplexer 8a, a second output clock multiplexer 8b, a third output clock multiplexer 8c, a fourth output clock multiplexer 8d, a fifth output clock multiplexer 8e, a first output divider 9a, a second output divider 9b, a third output divider 9c, a fourth output divider 9d, a fifth output divider 9e, a first clock output driver 11a, a second clock output driver 11b, a third clock output driver 11c, a fourth clock output driver 11d, a fifth clock output driver 11e, a first feedback clock multiplexer 12a, a second feedback clock multiplexer 12b, a third feedback clock multiplexer 12c, a fourth feedback clock multiplexer 12d, a fifth feedback clock multiplexer 12e, a system clock PLL 13, a modulation and phase offset controller 14, a temperature sensor 15, a system clock compensation circuit 16, an internal zero delay control circuit 17, reference monitors 18, a reference switching circuit 19, auxiliary numerically controlled oscillators (NCOs) 21, auxiliary TDCs 22, a status and control pins interface 23, and a serial port and memory controller 24.
(53) As shown in
(54) Although one example of circuitry and pins is shown for a clock synchronization and frequency translation chip, other implementations and circuitry and/or pins can be used.
(55) The input reference pins (REFA, REFAA, REFB, REFBB) receive input reference signals (for instance reference clock signals or other phase and/or frequency reference signals), which are handled by the input reference control circuits 1a-1b. The input reference control circuits 1a-1b can be used to provide input reference selection, inversion, and/or a wide variety of other processing. In certain implementations, the input reference control circuits 1a-1b are configurable to process either differential or singled-ended input reference signals, thereby enhancing the flexibility of the IC 40.
(56) In certain implementations, one or more of the input reference pins (REFA, REFAA, REFB, REFBB) receives a reference clock signal having a carrier frequency and an embedded subcarrier frequency. Such a reference clock signal includes a low frequency clock signal embedded within a high frequency carrier.
(57) Providing a reference clock signal with an embedded subcarrier can provide a number of advantages. For example, in applications including a chassis with timing cards and line cards, the carrier frequency can convey desired frequency information while the subcarrier frequency can convey desired phase information.
(58) The reference demodulators 2a-2d serve to extract phase information associated with a subcarrier frequency of a reference clock signal. For example, when enabled, a reference demodulator recovers modulation events corresponding to periodic phase variations appearing on certain edges of the input reference clock signal. A reference clock signal with an embedded subcarrier frequency can be generated in a variety of ways, including, but not limited to, by another instantiation of a clock synchronization and frequency translation IC.
(59) Accordingly, the reference demodulators 2a-2d serve to extract modulation events embedded in a received input reference clock signal in applications including an embedded subcarrier frequency.
(60) The reference dividers 3a-3d operate to provide division to a corresponding input reference signal. In the illustrated embodiment, the reference dividers 3a-3d operate using programmable divisor values. For instance, desired divisor values can be programmed into the IC 40 by a user via the serial port. By including the reference dividers 3a-3d, flexibility of the chip is enhanced by providing control over the frequencies of input reference signals. For example, the reference dividers 3a-3d can be used to reduce the reference frequencies to values suitable for the input frequency range of the TDCs 4a-4d.
(61) The TDCs 4a-4d provide time-to-digital conversion of the divided reference signals from the reference dividers 3a-3d, respectively. In particular, each of the TDCs 4a-4d operates to observe the timing of a corresponding reference signal, and to generate digital time stamps identifying when edge transitions (for instance, rising and/or falling edges) of the reference signal occur.
(62) The digital cross point multiplexer 5 operates to route various signals throughout the IC 40 as desired. Although certain inputs and outputs are illustrated in
(63) The digital cross point multiplexer 5 is digitally programmable to provide connectivity desired for a particular application or implementation. In a first example, the digital cross point multiplexer 5 provides digital time stamps from the output of one or more of the TDCs 4a-4d to the first DPLL 6a and/or the second DPLL 6b. In a second example, the digital cross point multiplexer 5 provides digital time stamps from the output of one or more of the TDCs 4a-4d to the reference monitors 18. In a third example, the digital cross point multiplexer 5 connects the auxiliary NCOs 21 and/or auxiliary TDCs 22 to the DPLLs 6a, 6b and/or other circuitry of the IC 40.
(64) With continuing reference to
(65) The output clock multiplexers 8a-8e are used for selecting and distributing output clock signals from the first APLL 7a, the second APLL 7b, and/or the system clock PLL 13 to the output dividers 9a-9e. The output dividers 9a-9e provide programmable division to the output clock signals chosen by the output clock multiplexers 8a-8e, respectively. In the illustrated embodiment, the output clock dividers 9a-9e also operate with a controllable phase delay and/or burst control to support a burst clocking specification, such as JESD204B. The output dividers 9a-9e also support modulation of the location of edges of the output clocks signals (for instance, rising or falling edges) to support insertion of a subcarrier into a higher frequency carrier clock signal. Thus, the output dividers 9a-9e can also be used to generate a clock signal with an embedded subcarrier frequency, which can be demodulated by a reference demodulator (for instance, reference demodulators 2a-2d) of another instantiation of the IC 40.
(66) The divided output clock signals from the dividers 9a-9e are provided to the clock output drivers 11a-11e, respectively, which drive the output clock pins (OUT0AP, OUT0AN, OUT0BP, OUT0BN, OUT0CP, OUT0CN, OUT1AP, OUT1AN, OUT1BP, OUT1BN). Furthermore, the divided output clock signals are also provided to the feedback clock multiplexers 12a-12e, which can be used to provide one or more selected clock signals to the internal zero delay control circuit 17 and/or other clock feedback path(s).
(67) As shown in
(68) The system clock PLL 13 receives one or more system reference signals from the system reference pins (XOA, XOB). Additionally, the system clock PLL 13 uses the system reference signal to generate a system clock signal that controls timing of the IC 40. Although not illustrated in
(69) The modulation and phase offset controller 14 provides a wide variety of functionality. For example, the modulation and phase offset controller 14 can control a division rate and/or phase delay of the output dividers 9a-9e, thereby controlling frequency and phase of the output clock signals. The modulation and phase offset controller 14 of
(70) The temperature sensor 15 operates to generate a temperature indication signal indicating a temperature of the IC 40, for instance, a temperature condition near or local to the system clock PLL 13. In the illustrated embodiment, the temperature indication signal is provided to the system clock compensation circuit 16, which operates to generate compensation signals for compensating one or more circuit blocks of the IC 40 for error of the system clock signal arising from temperature variation.
(71) With continuing reference to
(72) The reference switching circuit 19 aids in controlling which input reference clock signals are provided as inputs to the DPLLs 6a-6b. For example, in a variety of applications, multiple reference clock signals are provided for redundancy and/or other reasons. Additionally, when a particular reference clock signal is unavailable or becomes unreliable, the reference clock signal can be switched. In certain implementations, a DPLL is temporarily operated open loop in a holdover mode during reference switching, thereby stabilizing the output clock signals generated by the IC 40 and preventing sudden output frequency changes.
(73) The auxiliary NCOs 21 and the auxiliary TDCs 22 operate to provide on-chip NCOs and TDCs for a wide variety of functions, thereby expanding the flexibility and/or range of applications that the IC 40 can be used in.
(74) The status and control pins interface 23 operates as an interface for transmitting and receiving signals over the multi-functional pins (M PINS).
(75) The serial port and memory controller 24 is coupled to a serial port or interface, such as a serial peripheral interface (SPI) or inter-integrated circuit (I.sup.2C) interface. The serial port and memory controller 24 can be used for a wide variety of functions, including, but not limited to, for receiving data from the user associated with programming or configuring the IC 40 in a desired manner.
(76) The clock synchronization and frequency translation IC 40 can be used to control clocking and timing in a wide variety of applications. In one example, the IC 40 provides jitter cleanup and synchronization in GPS, PTP (IEEE-1588), and/or SyncE applications. In a second example, the clock synchronization and frequency translation IC 40 is included in a base station (for instance, a femtocell or picocell) to control clocking for baseband and radio. In a third example, the clock synchronization and frequency translation IC 40 controls mapping/demapping for a transport network, such as an optical transport network (OTN), while providing jitter cleaning. In a fourth example, the clock synchronization and frequency translation IC 40 provides holdover, jitter cleanup, and phase transient control for Stratum 2, 3e, and 3 applications. In a fifth example, the clock synchronization and frequency translation IC 40 provides support for data conversion clocking, such as analog-to-digital (A/D) and/or digital-to-analog (D/A) conversion, for instance, for JESD204B support. In a sixth example, the clock synchronization and frequency translation IC 40 provides timing for wired infrastructure support, such as cable infrastructure and/or carrier Ethernet.
(77) The clock synchronization and frequency translation IC 40 illustrates one embodiment of a semiconductor chip that can be implemented in accordance with one or more features discussed herein. However, the teachings herein are applicable to other implementations of electronic systems.
(78)
(79) The DPLL 50 of
(80) The digital phase detector 51 compares a digital reference signal 55 to a digital feedback signal 56 to generate a numeric phase error signal. In certain implementations, the digital phase detector 51 includes a TDC-based phase detector. In one example, a first TDC generates digital time stamps representing time instances at which the digital reference signal 55 transitions and a second TDC generates digital time stamps representing time instances at which the digital feedback signal 56 transitions, and the digital phase detector 51 processes the time stamps to generate the numeric phase error signal. In another example, the digital phase detector 51 generates a digital error signal based on comparing the digital reference signal 55 to the digital feedback signal 56, and a common TDC is used to generate time stamps representing transitions of the digital error signal.
(81) The digital loop filter 52 provides digital filtering to the numeric phase error signal based on one or more numeric coefficients to generate a numeric frequency tuning word (FTW). As shown in
(82) With continuing reference to
(83) The feedback divider 54 generates the digital feedback signal 56 based on dividing the DPLL output clock signal 57. In certain implementations, the feedback divider 54 operates with a programmable divisor value to enhance flexibility.
(84) In steady state, the DPLL 50 locks the phase of the digital reference signal 55 to the phase of the digital feedback signal 56.
(85) Although
(86)
(87) The APLL 60 of
(88) The phase detector 61 operates to generate an analog phase error signal based on comparing a reference clock signal 65 to a feedback clock signal 66. In certain implementations, the reference clock signal 65 corresponds to the DPLL output clock signal 57 of
(89) The loop filter 62 generates a control voltage used to control an oscillation frequency of the VCO 63. The loop filter 62 has a loop bandwidth, which can be fixed or controllable, based on implementation. The VCO 63 generates an APLL output clock signal 67, which is divided by the feedback divider 64 to generate the feedback clock signal 66. In certain implementations, the feedback divider 64 has a programmable divisor.
(90) When in lock, the APLL 60 operates to phase-lock the feedback clock signal 66 to the reference clock signal 65. Additionally, a division rate of the divider 64 can be selected to control frequency translation of the APLL output clock signal 67 relative to the reference clock signal 65.
(91) Although
(92)
(93) In the illustrated embodiment, the system reference control circuit 71 includes an input multiplexer 41, a maintaining amplifier 42, a first input amplifier 43, a second input amplifier 44, a multiplexer 45, a frequency doubling circuit 46, a divider 47 (divider by 1, 2, 4 or 8, in one implementation), and an output multiplexer 48.
(94) The system clock PLL 70 of
(95) As shown in
(96) The system reference pins (XOA, XOB) serve in providing a desired system reference signal to the system clock PLL 70. In one example, a user can connect a crystal resonator to the XOA and/or XOB pins, and the maintaining amplifier 42 provides energy sufficient to maintain oscillations of the crystal resonator. In another example, a user can connect a single-ended and/or differential clock source (for instance, a temperature compensated crystal oscillator (TCXO) or oven controlled crystal oscillator (OXCO)) to the system reference pins, and the system reference control circuit 71 generates the system reference signal 78 based on a reference clock signal received from the clock source.
(97) As shown in
(98) The system clock PLL 70 of
(99) With continuing reference to
(100) Although
(101)
(102) The DPLL 80 illustrates another example of a DPLL suitable for use as the DPLLs 6a, 6b of
(103) The reference TDC 81 generates reference digital time stamps 91 representing time instances of transitions of an input reference signal 89. Additionally, the feedback TDC 82 generates feedback digital time stamps 92 representing time instances of transitions of a feedback signal 90 from the feedback divider 54. The digital phase detector 51 compares the reference digital time stamps 91 to the feedback digital time stamps 92 to generate a numeric phase error signal representing a phase error between the input reference signal 89 and the feedback signal 90.
(104) The illustrated DPLL 80 also includes the lock detector 86, which generates a lock detect signal indicating whether or not the input reference signal 89 and the feedback signal 90 are locked to one another. The digital loop filter 52 processes the numeric phase error signal to generate a numeric FTW that is provided to the FTW processor 84 via the holdover switch 83.
(105) As shown in
(106) For example, reference switchover occurs when the input reference signal 91 is changed from one input reference signal to another. For instance, the input reference signal 91 can be provided to the DPLL 80 by a selection circuit, such as a multiplexer, and the selected reference signal can be changed for a variety of reasons. When handling a reference switchover, the loop controller 85 can briefly enter a holdover mode, in which the holdover switch 83 is opened, new DPLL parameters are updated, and the FTW processor 84 operates with a holdover FTW from the loop controller 85. Thereafter, the holdover switch 83 is closed and the DPLL 80 operates closed-loop with the new input reference signal.
(107) The loop controller 85 can also operate the DPLL 80 indefinitely in the holdover mode when all of the input references are invalid and/or when a user manually sets or forces the holdover mode, for instance, by programming via a serial port. In the holdover mode, the output frequency of the DPLL 80 remains substantially fixed, although instability of the system clock signal can lead to output frequency variation.
(108) After recovery from the holdover mode, the loop controller 80 restores the DPLL to closed-loop operation and locks to the input reference signal, including recovery of loop parameters based on the profile settings for the new input reference signal after a switchover.
(109) The FTW processor 84 processes a received FTW from the digital loop filter 52 or loop controller 85 to generate a FTW for the NCO 53. The FTW processor 84 can provide a number of functions, such as programmable delay, statistical processing (for instance, windowed averaging), and/or tuning word history.
(110) Although
(111)
(112) The NCO 100 illustrates one example of an NCO suitable for use in the DPLLs 6a, 6b of
(113) The FTW conversion circuit 95 converts the input FTW (k bits) into an integer tuning portion (m bits) and a fractional tuning portion (n bits). In one example, k is 48 bits, m is 4 bits, and n is 40 bits. However, other implementations are possible.
(114) As shown in
(115) Although
(116)
(117) The IC 100 includes a first input reference buffer 101a, a second input reference buffer 101b, a first reference divider 103a, a second reference divider 103b, a first reference TDC 104a, a second reference TDC 104b, an auxiliary TDC 104c, another DPLL feedback TDC 104d, a DPLL 106, an APLL 107, an output clock distribution circuit 110, a system clock PLL 113, a first multiplexer 121, a second multiplexer 122, and a third multiplexer 123. The clock synchronization and frequency translation IC 100 further includes input reference pins (REFX, REFY), system reference pins (XOA, XOB), and a clock output pin (OUTX).
(118) Although one example of circuitry and pins is shown for a clock synchronization and frequency translation chip, other implementations and circuitry and/or pins can be used.
(119) The DPLL 106 includes a time stamp processor 131, a digital loop filter 132, a tuning word processor 133, an NCO 134, a feedback divider 135, and a feedback TDC 136. Additionally, the APLL 107 includes a PFD/loop filter 141, a VCO 142, and a feedback divider 153. In the embodiment shown in
(120) In the illustrated embodiment, the DPLL 106 operates in part by comparing digital time stamps from a TDC selected by the first multiplexer 121 to digital time stamps from a TDC selected by the second multiplexer 122. Additionally, a DPLL output clock signal from the DPLL 106 serves as an input reference signal to the APLL 107. The APLL output clock signal from the APLL 107 in turn is provided to the output distribution circuit 110, which provides an output clock signal to the clock output pin OUTX.
(121) As shown in
(122) The multiplexers 122-123 can be used to select a desired feedback path, thereby helping to achieved an output-to-input phase alignment desirable for a particular application.
(123) System Clock Compensation
(124) Autonomous oscillators, such as those used to provide local frequency references, suffer from multiple impairments to their average and/or instantaneous accuracy. For example, the system reference signals received on the system reference pins (XOA, XOB) of
(125) The average frequency accuracy (or simply, accuracy) may be described as the center or nominal frequency, which may be offset from the ideal target frequency value. Short-term frequency accuracy can be viewed as a deviation from the average and thus as a relative frequency stability. In certain implementations, accuracy is a manufacturing constant that varies per device and stability is environmentally correlated. Environmental factors include, but are not limited to, temperature, mechanical acceleration (vibration), mechanical stress, and time (aging).
(126) In certain implementations herein, an IC includes a system clock compensation circuit that generates one or more compensation signals for desensitizing various circuit blocks of the IC from actual variation in frequency in a system reference signal based on a time-varying estimate of the frequency error. By implementing the IC in this manner, the IC operates with less to frequency variation in the system reference signal. For example, frequency stability and accuracy errors of a system clock signal generated from the system reference signal can be accommodated by desensitizing circuit blocks clocked by the system clock signal from such errors.
(127) Thus, with a suitable model, accuracy and/or stability errors an oscillator can be estimated. When a secondary frequency reference is available, the relative accuracy and/or stability can be alternatively or additionally measured. When the errors of the secondary reference are small, relative measurements can be used to estimate the primary reference's errors. The estimation techniques may be combined to improve their overall quality.
(128) For example, let Ê.sub.f(t) designate the LO's estimated fractional frequency error versus time; that is, for an ideal frequency, f.sub.0, the actual frequency is f(t)≈f.sub.0×(1+Ê.sub.f(t)). Note that one or more other environmental factors that affect the oscillator may also be expressed as functions of time, so this is a general form and not restrictive of the underlying model or method of determining this value. Furthermore, Ê.sub.f(t) is one expression of the LO's error, it may be represented in other forms and other units, such as an offset frequency or fractional period error.
(129) One method of generating Ê.sub.f(t) is to characterize the LO's frequency as a function of an environmental parameter, such as temperature, T (which is a time variant value, though the function of time notation is omitted for brevity). The characterization data can be fit to a polynomial function of a desired order, and Ê.sub.f(t) expressed as Ê.sub.f(T)=A.sub.0+A.sub.1×T+A.sub.2×T.sup.2+ . . . or as another suitable function. The function used for modeling can be extended to account for other parameters, such as aging, supply voltage, etc. Although an example with a polynomial is described, other functions are possible, such as functions associated with other numbers of variables and/or computational complexities.
(130) Another method of determining the LO's frequency error is to measure the error relative to another clock signal which is designated as more accurate and/or more stable (this clock signal will be referred to as a stable clock or stable reference). Since the qualities which contribute to a good LO are not always found in conjunction with accuracy and stability, a clock that possesses these attributes, but would not be a good candidate as an LO, can be used to determine Ê.sub.f(t).
(131) The measurement can be achieved by a wide variety of techniques. In one example, the stable clock is applied as a reference to a digital phase lock loop (DPLL) operating at a rate derived (for instance, directly) from the LO. In various embodiments of DPLLs, the numeric control word generated by the loop is a time variant representation of the frequency ratio of the LO clock and the stable clock. Thus, the numerical control word can be processed to calculate a fractional frequency error and a corresponding compensation signal for compensating a particular circuit block for the fractional frequency error. One advantage of using a DPLL for detecting clock error is that the DPLL's loop applies a low-pass filter to the stable clock signal. This is a significant advantage when the stable clock exhibits substantial phase jitter, as the filter will reduce or minimize the noise in Ê.sub.f(t).
(132) One example of a component or circuit block that exhibits a direct dependence on oscillator frequency error is an NCO. Real time clocks (RTCs) are an application of NCOs. NCOs are generally constructed around one of two core elements, either an accumulator—commonly a phase accumulator such as used in a direct digital synthesizer (DDS), or a sigma-delta modulator (SDM), as used in a significant number of fractional-N PLLs. Given Ê.sub.f(t), each of these core components can be compensated.
(133) For instance, in an accumulator based NCO, the average output frequency of the component can be given by: f.sub.nco(t)=f(t)×control_word÷control_modulus, where control_word and control_modulus can be determined at design time and/or provided during operation. When it is desirable to generate an ideal frequency, f.sub.nco_ideal, which is not specifically ratio-metric to f(t), an ideal control word can be calculated, control_word_ideal=control_modulus×f.sub.nco_ideal÷f.sub.0. Combining this with prior equations, and assuming that control_modulus is substantially constant, a compensated control word can be computing which yields f.sub.nco(t)≈f.sub.nco_ideal: control_word=control_word_ideal÷(1+Ê.sub.f(t)).
(134) An SDM based NCO provides an average output frequency that can be given by: f.sub.nco(t)=f(t)×control_modulus÷control_word. This too can be solved for an equation giving a compensated control word, for instance, control_word=control_word_ideal×(1+Ê.sub.f(t)).
(135) Another example of components with oscillator rate dependence are discrete time (sampled) filters, which have coefficients described as functions of the sample frequency. For instance, a single pole IIR filter has a coefficient, α, which determines the −3 dB point of its frequency response, f.sub.c(t). This relationship is given by f.sub.c(t)≈f(t)×α/(2π×(1−α)), assuming f.sub.c(t)<<f(t). For a fixed −3 dB point, f.sub.c_ideal, α=2π×f.sub.c_ideal/(f.sub.0×(1+Ê.sub.f(t))).
(136)
(137) The electronic system 210 can represent a wide variety of electronic systems. In one embodiment, the electronic system 210 represents a portion of a semiconductor chip used for clock synchronization and/or frequency translation, such as the clock synchronization and frequency translation IC 40 of
(138) The system clock generation circuit 201 generates a system clock signal based on timing of a system reference signal. The system clock signal is used for controlling timing of a wide variety of circuitry, including clocked circuit blocks 203a, 203b, . . . 203n, in this example.
(139) The clocked circuit blocks 203a, 203b, . . . 203n can represent a wide variety of components, including, but not limited to, filters (including, but not limited to, sampled filters), reference monitors, TDCs, DPLLs (including, but not limited to, all digital phase-locked loops or ADPLLs), and/or NCOs. Although an embodiment with three clocked circuit blocks is shown, more or fewer clocked circuit blocks can be compensated as indicated by the ellipses.
(140) The system reference signal may be inaccurate and/or unstable, which can lead to a time dependent error of the system clock signal. For example, a system clock can have an error arising from an operating condition, such as temperature and/or another environmental factor. Absent compensation, the error in the system clock signal can lead to error in output signals generated by the clocked circuit blocks 203a, 203b, . . . 203n.
(141) The illustrated electronic system 210 includes the system clock compensation circuit 202, which generates compensation signals COMP1, COMP2, . . . COMPn for compensating the clocked circuit blocks 203a, 203b, . . . 203n from error the system clock signal. The system clock compensation circuit 202 can be implemented in a wide variety of ways, including implementations that provide open-loop compensation, closed-loop compensation, or a combination thereof.
(142) In various embodiments, the compensation signals COMP1, COMP2, . . . COMPn are digital signals, such that the system clock compensation circuit 202 digitally compensates one or more clocked circuit blocks for system clock error.
(143) The system clock compensation scheme of
(144)
(145) The electronic system 230 can represent a wide variety of electronic systems, for example, a portion of a clock synchronization and/or frequency translation IC.
(146) The system clock PLL 211 generates a system clock signal based on timing of a system reference signal. The system clock PLL 211 can be implemented in a wide variety of ways, including, but not limited to, using the system clock PLL 70 of
(147) The system clock signal is used for controlling timing of a wide variety of circuitry, including the TDC 213, the filter 214, the DPLL 215, the NCO 216, and the reference monitor 217, in this example. Although a specific example of clocked circuit blocks is shown, system clock compensation can be used to desensitize a wide variety of clocked circuit blocks from system clock error.
(148) In the illustrated embodiment, the system clock compensation circuit 212 receives one or more signals indicating one or more operating conditions of the electronic system. Examples of operating conditions include supply voltage and/or environmental factors, such as temperature, mechanical acceleration (vibration), mechanical stress, and/or time (aging).
(149) The system clock compensation circuit 212 further includes an error model 221, which generates a modeled system clock error based on the one or more signals indicating operating conditions. The system clock compensation circuit 212 further includes a system clock error calculation circuit 222, which processes the modeled system clock error to generate compensation signals for various circuit blocks. In this example, the circuit blocks include the TDC 213, the filter 214, the DPLL 215, the NCO 216, and the reference monitor 217. However, other circuit blocks and/or different combinations of circuit blocks can be compensated for error of a system clock signal. The system clock error calculation circuit 222 generates compensation signals of values suitable for compensating various clocked circuit blocks for an estimated system clock error.
(150) The error model 221 can be implemented in a wide variety of ways. In one embodiment, the error model 221 corresponds to a polynomial model. However other types of models can be used.
(151) Coefficients of the error model 221 can be obtained in a wide variety of ways. In one example, a user can program an IC (for instance, via the serial port of the IC 40 of
(152) Thus, the system clock compensation circuit 212 operates using the error model 221 to reduce sensitivity of various components to system clock error arising from a change in temperature, supply voltage, and/or other operating condition.
(153) A system clock compensation circuit that provides compensation based on an error model can also be referred to herein as providing open-loop compensation for system clock error.
(154)
(155) The electronic system 240 can represent a wide variety of electronic systems, for example, a portion of a clock synchronization and/or frequency translation IC.
(156) In the illustrated embodiment, the electronic system 240 receives not only a system reference signal for the system clock PLL 211, but also a stable reference signal for the clock difference calculation circuit 231.
(157) When a secondary reference signal is available (for instance, the stable reference signal shown in
(158) As shown in
(159) A system clock compensation circuit that provides compensation based on a measured clock error can also be referred to herein as providing closed-loop compensation for system clock error.
(160)
(161) The electronic system 260 can represent a wide variety of electronic systems, for example, a portion of a clock synchronization and/or frequency translation IC.
(162) The electronic system 260 provides closed-loop system clock compensation by generating a digital compensation signal for compensating for a modeled system clock error arising from temperature. As shown in
(163) As shown in
(164) The error model uses the temperature input signal and the coefficients 257 to generate a model estimate, which is further processed by the filter 255 to generate the digital compensation signal. The filter 255 aids in mitigating noise injection, and in certain implementations has a user-controllable filtering characteristic.
(165) The digital compensation signal is based on the value of the model at a particular temperature, and thus can vary with time as the temperature changes. The digital compensation signal is used by one or more circuit blocks to provide desensitization to stability and accuracy errors of the system clock signal. Although illustrated as generating one compensation signal, multiple compensation signals can be generated.
(166) Although an example with temperature is shown, the teachings herein are applicable to compensation of system clock errors arising from other operating conditions, for instance, supply voltage and/or environmental factors. In another embodiment, an error model is configured to receive a vibration signal indicating a vibration condition. For example, an accelerometer can be used to detect vibration and provide the error model with a vibration signal indicating the amount of vibration present. In yet another embodiment, an error model is configured to receive a supply voltage signal indicating a supply voltage condition. In yet another embodiment, multiple indicators of operating conditions are provided to an error model.
(167)
(168) The IC 275 measures an error of the system clock signal based on comparing the system clock signal to a stable reference source using a DPLL. Thus, the DPLL of
(169) As shown in
(170) The DPLL of
(171) In the illustrated embodiment, the compensation calculator 266 is also configured to receive a secondary compensation signal, which can be provided to further enhance accuracy of the clock error measurement. In one example, the secondary compensation signal is provided from an error model, thereby combining open-loop and closed-loop system clock compensation. In another example, the secondary compensation signal is provided from another PLL loop that compares the system clock signal to another stable reference signal.
(172)
(173) The error model 221 generates an open loop estimate of an error of the system clock signal based on values of one or more operating conditions (for instance, temperature, supply voltage, and/or other operating conditions). Additionally, the clock difference calculation circuit 231 generates a closed loop estimate of the error of the system clock signal based on comparing the system clock signal to the stable reference signal.
(174) In the illustrated embodiment, the combiner 276 generates one or more compensation signals based on combining the estimates from the error model 221 and the clock difference calculation circuit 231. In certain implementations, a system clock compensation circuit includes a slew rate limiter 277 to limit a rate at which one or more compensation signals can change. For instance, the slew rate limiter 277 can be used to limit a maximum change in frequency and/or phase of an output clock signal generated by an IC.
(175) The system clock compensation circuit 280 illustrates one example of a system clock compensation circuit that operates using a combination of open-loop compensation and closed-loop compensation.
(176)
(177) The TDC 281 provides time-to-digital conversion of an input signal IN based on timing of a system clock signal. The TDC 281 generates digital time stamps representing time instances at which transitions (for instance, rising and/or falling edges) of the input signal occur.
(178) The accumulator 282 is used in generating the digital time stamps representing the time instances of the input signal transitions. Additionally, the compensation signal COMP is used to vary a rate of the accumulator 282 to maintain the average accumulator slope substantially constant, thereby providing compensation based on instantaneous frequency error of the system clock signal. By implementing the TDC 281 in this manner, the digital time stamps can be substantially independent of temperature or other operating conditions.
(179) By enhancing the performance of the TDC 281, a number of benefits can be achieved. In one example, the time stamps from the TDC 281 are used by a DPLL to control phase locking. By compensating the TDC 281 using the compensation signal, superior DPLL performance can be achieved. In another example, the time stamps from the TDC 281 can be processed by a reference monitor to determine whether or not a reference signal (for instance, an external clock signal provided by a user) is within a specified frequency accuracy. By providing a TDC that is desensitized to system clock error, the reference monitor can achieve reference monitoring with higher accuracy, lower latency, and/or at a resolution finer than a ppm variation of the system clock signal.
(180)
(181) The compensation signal provides digital adjustment to the FTW. In one example, the compensation signal can be added to the input tuning word received by the FTW processor 284. Additionally, the compensation signal has a value selected to desensitize the FTW processor 284 to stability and accuracy errors of the system clock signal.
(182) When a system clock signal is compensated for temperature and/or other operating conditions, a lower loop bandwidth for the DPLL 285 can be used, which results in better loop filtering of low frequency phase noise and/or relaxed constraints on a quality or precision of an input reference signal to the DPLL 285.
(183) Thus, such compensation techniques allow a DPLL loop to provide filtering of loop noise and/or input reference noise without being constrained or limited by a need to filter for errors in the system clock signal.
(184)
(185) The NCO 290 generates an output clock signal based on the FTW and the system clock signal. Additionally, the compensation signal provides an adjustment or modification to the control word such that the NCO is compensated for error in the system clock signal arising from changes in temperature, supply voltage, and/or operating conditions.
(186) Reducing Variation in Signal Propagation Delay
(187) Signal propagation speeds through a signal path including active devices and/or transmission media can vary for a number of reasons. For example, a delay in signal propagation can vary with temperature, frequency, and/or other operating conditions.
(188) In certain implementations herein, signal timing within an electronic system is adjusted based on modeled and/or measured propagation delay. By enhancing signal timing in this manner, a reduction in signal timing variation at one or more desired nodes or points within a system can be achieved.
(189) While described in the context of controlling timing of a clock signal, the teachings herein are applicable to reducing variation in signal propagation delay of other kinds of signals. In one example, digital signals can be retimed to the timing of a clock signal, and thus can be indirectly controlled via that clock signal's timing.
(190) Certain PLLs are configured such that there is a well-controlled phase difference between an input reference signal to the PLL and an output clock signal generated by the PLL. For example, zero-delay PLLs refer to PLLs in which a phase difference between the output clock signal and the input reference signal is about zero degrees. Zero-delay PLLs can operate without output frequency scaling, such that a phase difference of zero degrees is present for each cycle. Zero-delay PLLs can also operate with output frequency scaling, such that the zero phase points of the signals match on regular subsets of clock cycles.
(191) A zero-delay PLL can minimize a phase difference between the output clock signal and input reference clock signal by matching the effective delay in the PLL's feedback path to equivalent portions of the reference and output signal paths.
(192) The physical location where the phases nominally align can be adjusted by including all or part of the output signal path, or a replica thereof, within the feedback path. Alternately or additionally, a controllable timing element can be included in the PLL and used to shift a point of phase alignment.
(193) When the reference signal path and output signal path vary in delay, the alignment will vary to a degree that is based on a quality of delay matching between these paths and the feedback path. For example, path matching can rely on the paths experiencing the same variation inducing stimulus and reacting equivalently. Generally, an (asymmetric) timing element in the PLL, such as a phase shifter, which is not equally represented in the path delays, will result in a non-equivalent reaction in the paths.
(194) By including a timing control element (for instance, a controllable delay element) capable of live adjustment (for example, adjustment that changes over time during operation) into a signal path, new methods of achieving zero delay at a point in the system and of reducing delay variation at that point can be achieved. For example, the timing control element can be included in a PLL or any other suitable periodic signal path. For a periodic signal, any delay of multiple unit cycles is indistinguishable in certain applications, so the minimum insertion delay of an element may be effectively removed. Non-periodic signals are also subject to the same techniques with regard to reducing delay variation.
(195) Signal delay to any point in the system may be modeled, empirically or otherwise, with any number of variables. Evaluating this delay model and applying the negative of the result to the timing control element can substantially control the net delay to zero or another desired phase value. When model variables change, the model evaluation and delay adjustment process can be repeated to maintain the desired delay. Furthermore, any delay sensitivities of the timing control element can be included in the delay model.
(196) A wide variety of delay models can be used in accordance with the teachings herein. For example, delay models may span a wide range of complexity. In certain implementations, a zero variable model is used to correct for a nominal offset.
(197) The delay models can compensate for variation in delay arising from a variety of sources. In one example, the delay model receives an input temperature signal indicating a temperature condition.
(198) When compensating for temperature, a single locality in the system can be used to approximate the average response over a larger physical region and/or multiple temperature measurements can be used to account for gradient effects.
(199) Additionally or alternatively to temperature, other variables can be modeled for impact on delay variation, such as device supply voltage(s) and/or signal format (i.e. CMOS, LVDS, etc.). Furthermore, even variables associated with timing measurements can be included. For example, a round trip delay time, such as measured by a time domain reflectometer or other suitable detector, can be used as a model variable. In contrast to zero delay PLLs whereby part of the feedback path encompasses a portion of the output path or a replica thereof, the model variable can be measured independent of the feedback path.
(200) Delay adjustment can be provided by a wide variety of timing control elements capable of live adjustment. For example, certain DPLLs include delay adjustable circuitry. The origination point of a signal, such as an oscillator, can also be delay adjustable in certain implementations. Furthermore, certain NCOs, including but not limited to direct digital synthesizers (DDS), have adjustable delays.
(201) In certain implementations, adjustment to a DPLL is controlled in a different manner depending on whether or not the timing loop of the DPLL is active. For example, an active loop's phase offset is subject to the dynamic response of the DPLL. In certain implementations, a DPLL includes an NCO, and a coordinated adjustment of the DPLL phase and NCO phase is provided for an active DPLL.
(202)
(203) In certain implementations, the IC 410 is a clock synchronization and frequency translation IC, such as the clock synchronization and frequency translation IC 40 of
(204) The illustrated IC 410 includes the delay compensation circuit 408, which generates a compensation signal COMP that compensates the timing circuit 406 for a variation in the delay of the path 403. In certain implementations, the delay compensation circuit 408 further compensates for on-chip variation.
(205) The delay compensation circuit 408 can compensate for variation in delay arising from temperature, supply voltage, and/or other operating conditions. In certain implementations, the compensation signal COMP is digital, such that the delay compensation circuit 408 provides digital adjustment for delay variation. Additionally, the value for digital adjustment is changed over time to compensate for variation in delay.
(206) By implementing the IC 401 in this manner, a difference in phase between the output signal at the destination node 402 and input reference signal REF can be controlled to a desired value.
(207)
(208) In certain implementations, the IC 411 is a clock synchronization and frequency translation IC, such as the clock synchronization and frequency translation IC 40 of
(209) A zero-delay PLL generates an output clock signal with substantially the same phase as an input reference clock signal from which the output clock signal is synthesized. However, a zero-delay PLL may not be suitable for certain applications. For example, a zero-delay PLL can be included on an IC, and a clock output signal from the IC can be provided over long trace and/or through other components (for instance, additional chips). Additionally, it can be desirable to match the phase at a certain point off chip to the phase of the input reference clock signal.
(210) Such off-chip routes and components can have delays that vary with temperature, supply voltage, and/or other operating conditions. Although a zero-delay PLL may drive the inputs of its phase detector to about zero degrees, the phase at one or more points off chip may not have a desired phase relationship with respect to the input reference signal.
(211) The illustrated IC 411 includes the delay compensation circuit 416, which generates a compensation signal that compensates the DPLL 415 for a variation in the delay of the signal path 413. In certain implementations, the delay compensation circuit 416 further compensates for on-chip variation.
(212) In the illustrated embodiment, the delay compensation circuit 416 includes a delay model 423 and a delay error calculation circuit 424.
(213) As shown in
(214) The delay model 423 generates a modeled delay error based on the one or more signals indicating operating conditions. Additionally, the delay error calculation circuit 424 processes the modeled delay error to generate a compensation signal for compensating the delay of the DPLL 415. The delay compensation circuit 416 can provide delay adjustment using the compensation signal COMP in a wide variety of ways, including both within a loop of a DPLL and/or outside of such a loop.
(215) The delay model 423 can be implemented in a wide variety of ways. In one embodiment, the delay model 423 corresponds to a polynomial model. However, other types of models can be used.
(216) Coefficients of the delay model 423 can be obtained in a wide variety of ways. In one example, a user can program an IC (for instance, via the serial port of the IC 40 of
(217) Thus, the delay compensation circuit 415 of
(218) A delay compensation circuit that provides compensation based on an delay model can also be referred to herein as providing open-loop compensation for delay variation.
(219)
(220) In certain implementations, the IC 431 is a clock synchronization and frequency translation IC, such as the clock synchronization and frequency translation IC 40 of
(221) In the illustrated embodiment, the delay difference detector 433 measures or detects a delay difference between the output clock signal from the DPLL 415 and the return clock signal received on the return path pin 419. The delay difference detector 433 can be implemented in a variety of ways, such as using a TDC. The detected difference signal is processed by a delay error calculation circuit 434 of the delay compensation circuit 432.
(222) The delay error calculation circuit 434 determines a delay error at the destination point 412 corresponding to a delay variation of the signal path 413 arising from temperature and/or other operating conditions. The delay error calculation circuit 434 takes into account a total path length from the output clock pin 418 to the return path pin 419. For example, in implementations in which a full round trip is made, the round trip total path length can be about twice that of the length of the signal path 413, and thus the delay error calculation circuit 434 can appropriately divide the detected delay error by a factor of about 2.
(223) Accordingly, in certain implementations, variation in delay is compensated for using measured delay variation. In one example, a roundtrip trace can be routed from an output pin of a chip to an input pin of a chip to detect about twice of the off-chip delay. Additionally, about half such a delay can be digitally compensated for. In another example, a trace of shorter length is used to provide an estimation of only a portion or section of the off-chip delay.
(224) The calculated delay error is used to generate a compensation signal COMP for the DPLL 415, such that the phase as the destination node 412 is controlled to a desired value. The delay compensation circuit 432 can provide delay adjustment using the compensation signal COMP in a wide variety of ways, including both within a loop of the DPLL 415 or outside of the DPLL's loop.
(225) A delay compensation circuit that provides compensation based on a measured delay difference can also be referred to herein as providing closed-loop compensation for delay variation.
(226)
(227)
(228) The delay compensation circuit 456 includes an internal temperature sensor 451, a multiplexer 452, multipliers 453a-453i, adders 454a-454d, and a filter 455. As shown in
(229) Although an example with temperature is shown, the teachings herein are applicable to compensation of delay errors arising from other operating conditions, for instance, supply voltage, signal format, and/or environmental factors.
(230) The DPLL 458 if
(231) Although one example of providing phase adjustment to a DPLL is shown, a phase of a DPLL can be adjusted in a wide variety of ways, including adjustment within the DPLL's loop, adjustment outside of the DPLL's loop, or a combination thereof.
(232) In one example, an output of the DPLL's phase detector is digitally adjusted based on a digital compensation signal. In another example, a reference input to a phase detector (for instance, values of digital time stamps) is digitally adjusted to provide phase adjustment. In yet another example, an explicit digitally-controllable delay element (for instance, a digitally-controlled delay line or DDL) is used for providing such adjustment.
(233)
(234) In the illustrated embodiment, the DPLL 483 generates an output clock signal that is provided to the first output clock pin 481 via the first digitally-controllable delay element 483 and to the second output clock pin 482 via the second digitally-controllable delay element 484. Additionally, the output clock signal travels from the first output pin 481 to a first destination node 473 via a first signal path 475, and to a second destination node 474 via a second signal path 476.
(235) The first and second signal paths 475, 476 can have different nominal delays and/or delay variations with operating conditions. In the illustrated embodiment, the delay compensation circuit 486 provides separate digital compensation signals COMP1, COMP2 to the digitally-controllable delay elements 483, 484, respectively.
(236) Using digitally controllable delay elements (for instance, DDLs) outside the loop of a DPLL or other timing circuit can provide independent or separate control in implementations including multiple output pins routed to different destinations.
(237) In certain implementations, control over one or more digitally controllable delay elements is combined with digital adjustment to a DPLL via another compensation signal. For example, certain digitally controllable delay elements may have settings that are relatively coarse and/or that exhibit a setting-dependent jitter. Thus, certain implementations combine phase adjustment via digitally controllable delay elements outside of a DPLL's loop with a phase adjustment to a DPLL's loop.
(238) Reference Monitors with Dynamically Controlled Latency
(239) The average period of a clock signal can be estimated by measuring a time interval between two points of the clock signal, and dividing by the number of clock cycles present between the points.
(240) However, an accurate time-base is needed to accurately measure an interval of time. For example, measured time intervals can be ratio-metrically related to the time-base, and thus any deviation in average accuracy will be related to the time-base. Instantaneous deviations in accuracy, as characterized by measurement jitter, can arise from the time-base and/or the clock measurement device that generates measurements based on the time-base.
(241) The measured clock signal is also subject to phase jitter, which combines with the measurement jitter to provide an uncertainty in the measured time interval. As the duration of measurement increases (for instance, increasing a number of cycles of the clock signal over which the measurement is taken), the uncertainty becomes small relative to the time interval. Thus to achieve a smaller uncertainty, a longer measurement duration can be used.
(242) A value of the uncertainty can be assumed, and a measurement latency can be chosen to be sufficiently long to account for the assumed uncertainty. However, using an assumed uncertainty value has significant drawbacks. For example, when the assumed uncertainty value is too large, the measurement duration is needlessly long. However, when the assumed uncertainty is smaller than the actual uncertainty, the measured time interval has a precision that violates the required tolerance, and thus may be inaccurate.
(243) In certain implementations herein, a clock measurement circuit operates to generate digital measurements of a reference clock signal based on timing of a system clock signal. Additionally, a reference monitor processes the digital measurements from the clock measurement circuit to statistically estimate the uncertainty in the digital measurements. Additionally, the reference monitor uses the estimate of the uncertainty to control a latency of the reference monitor in detecting whether or not the reference clock signal is within a tolerance specified by one or more tolerance parameters.
(244) In certain applications, an estimate of the uncertainty can be detected in less time than it takes to satisfy the measurement tolerance indicated by the tolerance parameters. Thus, the reference monitor can detect whether or not the reference clock signal is within the tolerance with lower latency and higher speed.
(245) Reducing a latency of the reference monitor can provide a number of advantages. For example, quickly determining whether or not the reference clock signal is within the tolerance provides a system with additional time to react to the change in the clock signal status, for instance, in response to a change of the reference clock signal from within the tolerance to outside of the tolerance.
(246) Furthermore, for larger shifts in frequency, the reference monitor can detect when the reference clock signal is out of tolerance more quickly. For example, when the error band around the frequency measurement no longer intersects with the tolerance window around the expected frequency, the reference monitor can determine that the reference clock signal has failed the monitoring comparison. Although the error band decreases in size over longer intervals, a relatively large error band may still cause the comparison to fail. For example, because the measured value can be further from the ideal to accommodate the larger band, larger frequency offsets can be detected earlier.
(247) Since the measurement is of the average frequency over the interval, longer intervals are less sensitive to shifts in frequency in the short term. Once the desired precision is met, the measurement can be concluded, and a new measurement can begin. In certain implementations, the reference monitor performs frequency measurements over multiple overlapping intervals simultaneously, thereby improving reaction time.
(248) Allowing for near minimal observation intervals, quickly detecting larger shifts in frequency, and/or maintaining sensitivity to shifts in frequency aid in reducing frequency detection latency.
(249)
(250) As shown in
(251) The clock measurement circuit 601 generates digital measurements (DIGITAL MEASUREMENTS) of the reference clock signal based on timing of a system clock signal (SYSTEM CLOCK). Thus, the system clock signal serves as a time base for generating the digital measurements.
(252) The reference monitor 602 processes the digital measurements from the clock measurement circuit 601 to determine whether or not the reference clock signal is within a desired tolerance specified by one or more tolerance parameters (TOLERANCE). In certain implementations, the tolerance parameters indicate at least one of a tolerated error in frequency accuracy or a tolerated error in frequency stability.
(253) As shown in
(254) The reference monitor 602 includes a statistical processing circuit 603, which processes the digital measurements from the clock measurement circuit 601 to statistically estimate the uncertainty in the digital measurements. Additionally, the statistical processing circuit 603 uses the estimate of the uncertainty to control a latency 604 of the reference monitor 602 in detecting whether or not the reference clock signal is within the tolerance indicated by the one or more tolerance parameters.
(255) The statistical processing circuit 603 can use a wide variety of statistical processing, including, but not limited to, calculation of variance and/or mean of the digital measurements over a time window. Persons of ordinary skill in the art will appreciate that a statistical processing circuit can calculate variance directly or indirectly by calculating standard deviation and/or another statistical indicator of variation.
(256) Uncertainty in measurements can arise from a number of sources, such as jitter of the system clock signal and/or jitter of the clock measurement circuit 601. By dynamically controlling the monitor's latency based on the estimate of the uncertainty, the delay of the reference monitor 602 can be dynamically adjusted as needed to obtain a desired measurement confidence.
(257) For example, when the uncertainty of measurement is estimated to be relatively low, the statistical processing circuit 603 shortens the latency 604 of monitor 602, thereby generating the monitor output signal relatively rapidly while maintaining a desired confidence. However, when the uncertainty of the measurement is estimated to be relatively high, the statistical processing circuit 603 extends the latency 602 such that the reference monitor 602 determines whether or not the reference clock signal is within the tolerance with a desired confidence interval.
(258) In contrast, a reference monitor that operates with an assumed or fixed uncertainty value can exhibit poorer performance. For example, when the assumed uncertainty value is too large, the measurement duration is needlessly long. However, when the assumed uncertainty value is smaller than the actual uncertainty, the measured value has a precision that violates the required tolerance, and thus measurement device can generate unreliable measurements.
(259) In one embodiment, the reference monitor 602 has an initial estimate of the uncertainty, which can be obtained in a variety of ways, such as via user programming and/or implemented in the reference monitor 602 as part of design and/or during manufacture. For a given selection of tolerance parameters, the reference monitor 602 can have a nominal latency corresponding to the initial estimate of the uncertainty. Furthermore, the statistical processing circuit 603 lengthens or shortens the latency 604 of the frequency measurement relative to the nominal latency based on the estimated uncertainty.
(260)
(261) The TDC 611 provides time-to-digital conversion of the reference clock signal based on timing of the system clock signal. The reference monitor 602 processes the digital time stamps from the TDC 611 to determine whether or not the reference clock signal is reliable. Additionally, the DPLL 613 processes the digital time stamps to control phase locking.
(262) There can be a trade-off between the accuracy of a reference monitor and a latency of the reference monitor. For example, the reference monitor can observe a reference clock signal over a relatively long window of time to determine the reliability of the reference clock signal with a relatively high confidence. In contrast, the reference monitor can observe the reference clock signal over a relatively short time window, but such an estimate may result in the reference monitor incorrectly determining whether or not the reference clock signal is within a desired tolerance.
(263) In the illustrated embodiment, the reference monitor 602 observes the digital time stamps to determine whether or not the reference clock signal is within a tolerance. For example, a user can specify an expected periodicity and tolerance for error, for instance, 1 microsecond and 1 ppm, respectively. Additionally, the reference monitor 602 dynamically adjusts the length of the measurement window or latency 604 based on statistically processing the output of the TDC 611. Thus, the reference monitor 602 can be used to observe the period of output of the TDC 611, and to develop statistics of the period over multiple cycles of the reference clock signal. Additionally, a statistical model can be used to determine the length of observation.
(264) The length of observation can be reduced when the statistics indicate that a measurement error arising from jitter is less than expected. Additionally, the length of observation can be increased when the statistics indicate that the measurement error arising from jitter is greater than expected. Thus, not only can the latency of a reference monitor be reduced, but the latency can be extended when an upper limit or bound on jitter error was incorrected chosen. Accordingly, teachings herein can be used to provide robust reference monitoring, rather than being inoperable by an inaccurate upper bound to jitter error selected during design.
(265)
(266) In the illustrated embodiment, the reference buffer 671 buffers the reference clock signal REFA. The buffered clock signal is provided to the reference clock divider 672, which operates to selectively divide the reference clock signal REFA by a divisor R.sub.A. The TDC 673 processes the reference clock signal from the divider 672 to generate digital time stamps for the reference monitor 674. In one embodiment, the digital time stamps are also provided to a digital cross point multiplexer (for example, the digital cross point multiplexer 5 of
(267) The reference monitor 674 processes the digital time stamps to determine whether or not the reference clock signal REFA is within a desired tolerance as indicated by various tolerance parameters. In this example, the tolerance parameters include a nominal period T.sub.REF, an offset limit ΔTOL relative to the nominal period, a hysteresis threshold ΔHYS, and a jitter limit J.sub.TOL. However, other implementations of tolerance parameters are possible. In certain implementations, the tolerance parameters are provided via user input, for instance, via programming an interface, such a serial port.
(268) In the illustrated embodiment, the reference monitor 674 generates output signals indicating whether or not the reference clock signal REFA is within the desired tolerance. Furthermore, the output logic circuitry 676 provides further logical processing to generate various status signals of the reference clock signal REFA.
(269) In this example, the status signals include an excess jitter signal J.sub.EXCESS indicating whether or not the clock reference signal REFA is outside the jitter limit J.sub.TOL, a loss of reference signal LOS indicating whether or not the clock reference signal REFA has been lost, a fast signal FAST indicating whether or not the clock reference signal REFA is outside of the offset limit ΔTOL for being too fast, and a slow signal SLOW indicating whether or not the clock reference signal REFA is outside of the offset limit ΔTOL for being too slow. The status signals further includes a fault signal OOT, which indicates when the reference clock signal REFA fails any of the tolerance parameters and thus is outside of the tolerance.
(270) The status of the reference clock signal REFA (as indicated by one or more of the status signals) can be used to control a variety of functions of an IC, such as automatic reference switching. For instance, when the reference monitoring system 670 is implemented in the IC 40 of
(271) In the illustrated embodiment, the reference monitor 674 serves to monitor the reference clock signal REFA for both frequency accuracy and frequency stability. For example, the offset limit ΔTOL can indicate a maximum amount the period may deviate from the nominal period T.sub.REF, and thus can be used to monitor for frequency accuracy. Furthermore, the jitter limit J.sub.TOL indicates a maximum amount of jitter (for instance, root mean square jitter), and thus can used to monitor for frequency stability.
(272) Implementing the offset limit ΔTOL as a proportional value rather than an absolute offset can provide a number of advantages. For example, the reference monitor 682 can detect whether or not the reference clock signal REFA is in tolerance without needed to know the division value of the reference divider 672. Rather, the reference monitor 674 can continually observe the difference between successive time stamps and compare the statistics of those observations relative to the offset limit ΔTOL to determine the reliability of the reference signal, for instance, whether the reference is fast, slow, absent, and/or exhibits excessive jitter.
(273) With continuing reference to
(274) Jitter introduces uncertainty in the time measurement between successive edges (for instance, successive rising edges) of the reference clock signal REFA. Furthermore, the internal time base (for example, the system clock signal) that the TDC 673 uses to make its measurements also introduces jitter uncertainty.
(275) Both jitter sources compromise a monitor's ability to determine when the reference is truly in or out of tolerance. That is, jitter dilutes the confidence of the monitor's ability to make an accurate decision. Furthermore, a reference monitor may have no a priori knowledge of the magnitude or spectral distribution of the jitter present on a particular reference clock signal. Furthermore, jitter characteristics can vary over time.
(276) The illustrated reference monitor 674 includes the statistical processing circuit 681, which processes the numeric time stamps from the TDC 673 to measure the reference period, including calculating statistics (mean and variance, in this embodiment) of the reference clock signal REFA as it observes period samples.
(277) The statistical processing circuit 681 uses the calculated statistics to estimate the actual uncertainty of measurement arising from jitter. For example, by comparing the calculated variance with the offset limit ΔTOL, the statistical processing circuit 681 determines how many period samples are needed to arrive at a period estimate with sufficient confidence to decide whether or not the reference clock signal REFA is in or out of tolerance. Thus, the statistical processing circuit 681 dynamically varies the latency 682 of the monitor 674 based on the calculated statistics.
(278) Implementing the reference monitor 674 with the statistical processing circuit 681 enables the reference monitor 674 to perform a high confidence period estimate of the reference clock signal REFA with reduced or near optimal minimum observation time. In certain implementations, the reference monitor 674 is implemented as a state machine.
(279) In certain implementations, the statistical processing circuit 681 generates estimates of uncertainty over multiple time windows that are partially overlapping, thereby providing multiple simultaneous frequency measurements to further improve reaction time.
(280) In one embodiment, rather than measuring the actual period of the reference clock signal REFA, the statistical processing circuit 681 estimates a deviation of the period relative to a scaled value of the nominal period T.sub.REF to a sufficiently high degree of confidence. Accordingly, certain statistical algorithms can have a confidence requirement integrated into its design.
(281) Under certain conditions, a decision time of a marginally out of tolerance reference signal can vary with a ratio of the square root of the measured jitter variance to the offset limit ΔTOL. Thus, the smaller the variance of the measured jitter, the less averaging and the shorter the decision making time.
(282) The statistical processing circuit 681 controls the latency 682 of the monitor 674 based on processing the time stamps to estimate the uncertainty of measurement. Thus, the latency or decision delay of the monitor 674 is not deterministic, but rather based on the value of the offset limit ΔTOL and the actual jitter present.
(283) Although jitter plays a role in the decision time of the reference monitor 674 under normal operation, it has relatively little effect on the decision time when the reference period is much greater than the scaled T.sub.REF value (that is, T.sub.REF multiplied by the divisor of the divider 672) or when the reference signal disappears completely. For example, the reference monitor 674 operates on time stamps from the TDC 673, and thus a loss of the clock reference signal REFA stalls the reference monitor's period estimation process.
(284) In the illustrated embodiment, the reference monitor 674 uses its local time base and the scaled T.sub.REF value to predict when the next edge will arrive. When the edge is relatively late (for instance, 15% beyond the prediction of the next reference input edge), the monitor 674 activates the loss of reference signal LOS. Implementing the monitor 674 in this manner aids in detecting when the reference clock signal REFA is no longer present.
(285) In the illustrated embodiment, the reference monitor 674 generates the fault signal OOT indicating whether or not the reference clock signal REFA is within tolerance. After the reference clock signal REFA faults, the reference monitor 674 monitors the reference signal for an in tolerance condition. When the reference clock signal REFA returns to tolerance, the fault signal OOT is controlled to indicate a non-fault condition.
(286) For certain applications, it is desirable for the reference clock signal REFA to be in a non-faulted condition for a period of time before the reference clock signal REFA is considered to be usable or valid. To accommodate such applications, the reference monitor 674 includes the programmable validation timer 675.
(287) For example, the programmable validation timer 675 can start in response to the reference monitor 674 transitioning the fault signal OOP from a faulted state to a non-faulted state. Thereafter, the timer 675 counts down, and activates the valid signal VALID to indicate that the reference is available for use in response to expiration of the timer. In this example, the programmable validation timer 675 receives the timer validation signal T.sub.VALID indicated a countdown period of the timer 675. The value of T.sub.VALID can be provided by the user in whole or in part; augmentation of this value can be included to accommodate variation in the monitor's detection latency. In the illustrated embodiment, a user also can force a start condition via a fault signal FAULT and a bypass signal BYPASS.
(288) In the illustrated embodiment, the programmable validation timer 675 stops counting down whenever the reference status becomes faulted (as indicated by the fault signal OOT). A subsequent start event results in the timer 675 reinitiating a count down from the programmed value of the timer validation signal programmable. Thus, in the example, the reference clock signal REFA does not attain valid status unless the reference clock signal REFA remains in tolerance for the full duration of the validation timer.
(289) The illustrated timer 675 further receives the timeout signal TIMEOUT, which can be used to force the timer 675 to end its count. In this manner, if a faulted reference has returned to a non-faulted state and is awaiting validation, the user can override the timer, if desired, thereby bringing the reference clock signal to valid status.
(290) Precision Timing Distribution and Recovery
(291) Timing can be distributed within an electronic system by way of transition edges of a reference signal, such as a level shifts of voltage or current, or pulses of light.
(292) However, since the edges can occur at any point in the continuum of time, such timing information is inherently analog. Although a wide variety of information in an electronic system is represented digitally and is able to benefit from fast and/or dense digital data transfer techniques, timing remains stubbornly analog.
(293) Analog-to-digital converters (ADCs) provide a method to represent voltages or currents as ratios of well-defined quantities, the Volt and Amp. Not only are the magnitude of these values relatively easy to approximate locally, they have easy to represent zero values. Time and the second are more difficult to meter and there is no universally accepted, locally available, zero.
(294) Two converters can be said to agree if their local meters, of whatever measurement unit, do not differ by more than a specified number of minimum fractional units, or least significant bits (LSBs). The greater the dynamic range, or number of significant bits in the conversion result, the more difficult it is for two converters to agree. For example, 8-bit converters can be made to agree with relative ease, 16-bit converters may require careful matching and trim to agree, beyond that, more exotic techniques may be needed.
(295) In certain implementations herein, timing of transitions of a reference signal is digitized using a time-to-digital converter (TDC). For example, the TDC can generate digital time stamps representing time instances at which transitions (for instance, rising and/or falling edges) of the reference signal occur.
(296) Certain TDCs may have a dynamic range with a resolution of 1 picosecond and full-scale of 1 microsecond to 1 millisecond or more, for instance, 20-30+ bits. Even in the presence of a convenient local time meter, obtaining agreement between such TDCs can be challenging.
(297) Crystal oscillators or other autonomous frequency generators can be used as a local time meter. However, crystal oscillators can be of insufficient accuracy for many applications. For example, typical references are accurate to tens of parts per million (ppm) or worse, which can correspond to less than 17 bits of resolution. Furthermore, instantaneous accuracy varies substantially with environmental factors, such as temperature.
(298) To overcome such limitations, an electronic system can operate without local reference dependency and share a common reference between all devices exchanging TDC samples. Regardless of the absolute accuracy and stability of the common reference, as long as all devices share the same impairments, they can agree on TDC values, although specific applications may have bounds on absolute accuracy.
(299) In certain implementations herein, source devices provide destination devices with TDC time stamps. Additionally, the source devices are implemented with a format conversion circuit for interpreting digital time stamps consistently throughout the system.
(300) Certain applications operate with timing achieved using both frequency information (periods of signals) and phase information. Sharing both frequency and phase information requires a common sense of zero time. Unlike other physical quantities, zero time may be defined cyclically, like January 1st, midnight, or the start of every hour. By providing both frequency and phase information, timing information can be unambiguously interpreted, for instance, when represented relative to the prior or next zero.
(301) When timing information is transmitted between a sender and receiver there is a delay between the composition of the message and the comprehension of that message. In order for the message to be understood unambiguously, the zero value to which the message is relative should be known. If the cyclic duration between zeros is much longer than the longest transmission delay (uncertainty), the correct zero can be properly determined.
(302) In certain implementations, a fixed transmission delay can be characterized and accounted for. For example, consider a message sent with the time X units prior to zero. If this message is received shortly before a zero, it can be assumed that the zero referred to by the message is the next zero. However, if the message is received shortly after a zero, it can be determined that the message referred to that zero which just passed. Any other inferences for zero would imply a transmission delay greater than, or approaching, the cyclic period of zeros.
(303) A specific timing event on a shared timing meter reference can be designated as zero, therefore allowing it to be a complete timing reference. When the periodicity of the reference is much lower than the message transmission delays, then every event can be designated as zero. However, there are many practical considerations which make this configuration unrealistic. Unfortunately, any reference rate faster than the message propagation delay cannot use (unidirectional) messaging alone to designate which subset of events represent zero. Zero events can be indicated via a parallel analog timing signal or by embedding indicator data within the timing reference signal itself.
(304) With a shared timing meter reference, intervals between timing events can be shared within a system. With a complete timing reference, individual timing events can be shared. Which timing information is shared and thus the relative complexity of the timing solution can be based on application.
(305) Techniques for distributing and utilizing a shared timing reference, both with and without zero synchronization, are described in greater detail herein. In certain implementations, electronic systems that are capable of conveying both frequency and phase timing information are provided. Furthermore, provided herein are algorithms and applications that can be built on top of such systems.
(306)
(307) The first source device 801a receives a first signal (signal A), a common clock signal from the common time base 804, and a first local clock signal from the LO 805a, which are used to transmit data indicating timing of the signal A over the data hub 803. Additionally, the second source device 801b receives a second signal (signal B), the common clock signal from the common time base 804, and a second local clock signal from the LO 805b, which are used to transmit data indicating timing of the signal B over the data hub 803. Although an example with two source devices is shown, more or fewer source devices can be included.
(308) As shown in
(309) The electronic system 810 can be used to digitally distribute a periodic timing signal, either physical or logical, from one point in the system 810 to another point in the system 810 where it is regenerated, either logically or physically. The regenerated or recovered signal possesses the precise average frequency of the original and may also replicate its phase to within a certain accuracy.
(310) The system 810 allows for the sharing of digital timing information across distributed devices. An application of the system 810 is to replicate qualities of a periodic signal (frequency and optionally phase) from one point to one or more additional points by means of digital data transfer rather than analog signal transfer.
(311) For example, utilizing analog signaling, network equipment chassis, timing cards, and line cards are designed with knowledge of the chassis size (maximum number of line cards). Backplane connectors vary based on the maximum number of ingress/egress ports per card. With analog signaling, these systems can be made less sensitive to the total size and port count of the chassis, but at the expense of functionality.
(312) In contrast, physical data connections (lanes) are much more flexible and efficient than physical clock signals due to packetized multiplexing, carrier detect multiple access (CDMA), error detection and correction, and/or scalable throughput rate. Migrating timing information from clock signals to data lanes has clear advantages in scalability.
(313) Sending the signal information requires continually capturing timing information about the source signal and encapsulating that data in a message transmitted to the receiver. Timing for a physical signal can be captured, for instance, via a TDC, while logical (non-physical) signal event timing may be determined in a variety of ways. The timing information may be for all events, i.e. all rising and falling edges of the signal waveform, a regular subset of events, i.e. only the rising edges or only every Nth rising edge, or an irregular subset of events.
(314) When timing information of an irregular subset of events is provided, additional information can be sent along with the message which identifies the subset, which may be explicit or implicit (inferred contextually). In one example, the sender may indicate how many intermediate events were skipped, or, if the nominal period is known with sufficient accuracy, the receiver may be able to infer the number of skipped events. In another example, each event can be serialized with an incrementing value such that the difference between identifiers indicates the number of events, thereby providing limited loss of messages to occur between the sender and receiver without damaging the integrity of the sequence. Other information about the events may also be included, such as identifying a specialized subset.
(315) Regeneration of periodic analog timing signals can be performed in a variety of ways, such as by delay or phase lock loops (DLLs or PLLs), or a combination thereof. For digital timing signals, the digital equivalent of these loops can be used (DDLLs or DPLLs). The output of either digital loop can be logical or physical. Both loops can use digital phase detectors (DPDs) to determine the error vector between the source signal and the regenerated signal.
(316) In certain implementations, the source signal is the digital timing data received from the remote source and the regenerated signal is represented by a time stamp produced by the local logical or physical clock output. The error vector is used to control (often indirectly) either a delay element or oscillator which produces the regenerated signal.
(317) To determine the correct error vector, the DPD identifies which source event corresponds to which regenerated event (because of the feedback loop configuration, the regenerated event is also referred to as a feedback event). Due to latency and loss of events (either by design or due to data loss), particularly in the source path, the DPD should account for these effects when determining correspondence between source and feedback events.
(318) Stability of PLLs (including DPLLs) can be achieved by updating the error vector frequently. Interpolation of lost (or late) source data is one technique which can keep the error vector current. If the timing references between the source and receiver are not zero aligned to each other, source events and feedback events will have an arbitrary average offset. Because the offset is arbitrary, it is not possible for the recovered timing to necessarily share the same phase as the source. The offset (which can be estimated from the initial difference) should be recorded and nulled from all subsequent error vectors. Even with shared zero alignment between devices, the accuracy of the zero alignment will directly affect the quality of the regenerated phase. Note that even when zero alignment is present, the receiver may choose to null any offset.
(319)
(320) The source ICs 811a, 811b, . . . 811m receive signals SIG1, SIG2, . . . SIGm, respectively. Although an example with three source ICs is shown, and number of source ICs can be included (for instance, one source IC, two source ICs, or three or more source ICs). Furthermore, although each source IC is shown as receiving one signal for distribution over the digital interface 813, one or more of the source ICs can distribute multiple signals.
(321) As shown in
(322) The source ICs 811a, 811b, . . . 811m operate to generate digital representations of the timing of the signals SIG1, SIG2, . . . SIGm using the common reference signal and the local system reference signals SYSTEM REFs1, SYSTEM REFs2, . . . SYSTEM REFsm, respectively. The digital timing representations of the signals SIG1, SIG2, . . . SIGm are provided over the digital interface 813 to the destination ICs 812a, 812b, . . . 812n.
(323) The digital interface 813 can be implemented in a wide variety of ways. In one example, the digital interface 813 is an Ethernet interface. In another example, the digital interface 813 is an I.sup.2C, SPI, or other serial interface. Although various examples of the digital interface 813 have been provided, any suitable digital interface can be used, including both standardized and custom interfaces.
(324) The destination ICs 812a, 812b, . . . 812n receive the digital representations of the timing of the signals SIG1, SIG2, . . . SIGm, via the digital interface 813. Although an example with three destination ICs is shown, and number of destination ICs can be included (for instance, one destination IC, two destination ICs, or three or more destination ICs).
(325) As shown in
(326) The destination ICs 812a, 812b, . . . 812n operate to recover one or more of the signals SIG1, SIG2, . . . SIGm based on the received digital timing representations, the common reference signal, and the local system reference signals SYSTEM REFd1, SYSTEM REFd2, . . . SYSTEM REFdn, respectively. Both frequency and phase of the signals SIG1, SIG2, . . . SIGm can be recovered.
(327) Although each destination IC is shown as recovering each of the signals SIG1, SIG2, . . . SIGm, any combination of signals can be recovered as desired.
(328) The electronic system 820 can be used to provide precise distribution of signals (including, but not limited to, clock signals) to multiple destination ICs. For example, in certain applications, tens or hundreds of clock signals can be digitally communicated to a large number of ICs using a digital bus.
(329)
(330) The upconvert circuit 845 provides frequency upconversion to a local oscillator signal received from the LO 844 to generate an upconverted clock signal for the synchronization circuit 843. The synchronization circuit 843 compares the upconverted clock signal to the common clock signal to control synchronization of the TDC 841 and the format conversion circuit 842.
(331) The TDC 841 generates digital time stamps representing transition times of the input signal. The digital time stamps are processed by the format conversion circuit 842, which aids in converting the digital time stamps to a format suitable for a common interpretation of time stamps across multiple distributed destination devices.
(332)
(333) The upconvert circuit 855 provides frequency upconversion to a local oscillator signal received from the LO 854 to generate an upconverted clock signal for the synchronization circuit 853. The synchronization circuit 853 compares the upconverted clock signal to the common clock signal to control synchronization of the format conversion circuit 851 and DPLL 852.
(334) The format conversion circuit 851 interprets a time reference point of the received digital time stamps, and converts the digital time stamps to a format suitable for processing by the DPLL 852. The DPLL 852 processes the digital time stamps to recover the signal.
(335) In certain implementations, the DPLL 852 recovers both the frequency and phase of the signal received by a corresponding source device. When such a signal is distributed to multiple destination devices (for instance, tens or hundreds of destination devices) each destination device can recover the original signal with precise frequency and accurate phase.
(336)
(337) The system PLL 865 generates a system clock signal for the synchronization circuit 863. The synchronization circuit 863 compares the system clock signal to the common reference signal to control synchronization of the TDC 861 and the format conversion circuit 862.
(338)
(339) The system PLL 875 generates a system clock signal for the synchronization circuit 873. The synchronization circuit 873 compares the system clock signal to the common reference signal to control synchronization of the format conversion circuit 871 and the DPLL 872. As shown in
(340)
(341) The IC 890 of
(342) When operating as the source IC, time stamps of an input signal can be generated in a variety of ways, such as by using any of TDCs 4a-4d and/or auxiliary TDCs 22. The source format conversion circuit 882 formats the time stamps to generate data suitable for transmission off-chip in a variety of ways, such as via the serial port, the multifunction pins (M PINS), and/or separate pins. Additionally, the system clock PLL 13 serves as an upconvert circuit for a system reference signal received on the system reference pins (XOA, XOB). In certain implementations, the synchronization circuit 881 provides source synchronization. However, other configurations are possible. For example, in another implementation, the synchronization circuit 881 is omitted in favor of providing synchronization using the system clock compensation circuit 16 operating in the closed loop configuration shown in
(343) When operating as the destination IC, digital timing representations can be received via the IC's pins, for instance using the serial port, the status and control pins 23 interface (for instance, by way of a university asynchronous receiver-transmitter or UART), and/or suitable digital interface. The digital timing representations are processed by the destination formation conversion circuit 883, and thereafter provided to a DPLL (for instance DPLL 6a, DPLL 6b, and/or a dedicated DPLL) to recover the signal. Additionally, the system clock PLL 13 serves as an upconvert circuit for a system reference signal received on the system reference pins (XOA, XOB), and the synchronization circuit 881 can be used to provide synchronization.
(344) Extrapolation of Timing Events for Enhanced PLL Update Rate
(345) A PLL generates an output signal (also referred to as a generated signal or synthesized signal), which is provided by feedback to the PLL's phase detector. The phase detector compares the feedback signal to a reference signal to generate a phase error signal used for controlling the PLL's loop and generation of the output signal. At the PLL's phase detector, the feedback signal is the coherent with the reference signal.
(346) The feedback signal and/or the reference signal can be decimated (for instance, by integer frequency division) prior to reaching the phase detector. The pre-decimated signals are coherent frequency multiples, and thus are coherent once per cycle of the respective decimated signal. Additionally, the reference signal and the generated signal are also coherent multiples, though their periodicity corresponds to the least common multiple (LCM) of the two decimation ratios after common divisors are removed.
(347) A PLL can decimate or divide signals for a variety reasons. In a first example, decimation is used to provide frequency translation. For instance, since coherence of the reference signal and the feedback signal is enforced at the phase detector, decimation permits the generated signal frequency to be a rational multiple of the reference input frequency. In a second example, decimation is used to operate components of the PLL within their operating frequency ranges.
(348) Clock signals can be characterized by the timing of one of the edge events (rising or falling), designated as phase 0 (zero), and thus their phase is observable periodically. Thus, a PLL operates as a sampled control system.
(349) PLLs often operate at a relatively low update rate to preserve valuable timing information. However, operation at higher update rates can have benefits to certain performance metrics of the PLL. For example, when clocks are decimated, the timing information present on the skipped events is lost, depriving the PLL of information.
(350) In certain embodiments herein, a PLL is implemented to retain the timing from some or all of the lost timing events arising from decimation.
(351) Implementing the PLL in this manner can enhance certain performance metrics of the PLL. For example, in the reference signal path, it allows higher oversampling relative to the control loop bandwidth and thus better filtering of certain types of phase jitter. Furthermore, in both the reference signal path and the feedback signal path, operating with a higher rate can provide a quicker indication of shifts in frequencies. For example, operating with higher update rate in the reference path provides the PLL's loop with better tracking capability, while operating higher update rate in the feedback path permits wider control loop bandwidths and consequently faster acquisition.
(352) In certain configurations, a reference signal of the PLL has a carrier frequency and an embedded subcarrier frequency. Providing a reference signal with an embedded subcarrier can provide a number of advantages. For example, the carrier frequency can convey desired frequency information while the subcarrier frequency can convey desired phase information. Additionally, the PLL recovers timing events associated with the sub-carrier, and processes the timing events to extrapolate timing events at a frequency greater than the subcarrier frequency.
(353) In applications in which the subset of events selected by decimation is non-arbitrary, such as when using a reference signal with an embedded sub-carrier, intermediate stages of decimation can be used to meet the maximum operating rates of PLL components. When the timing of the non-arbitrary subset is conveyed to the phase detector, the PLL will align to these events. For example, one or more decimations stages can be synchronized to pass special events associated with a sub-carrier that provides phase information.
(354)
(355) Various timing event sequences are shown in
(356) As shown in
(357) Accordingly, any event from the superset or full sequence {S.sub.j,k} can be used to estimate one or more elements from the subset or sub-sequence {S.sub.j,0}. For example, using an estimated and/or ideal periodicity of the superset events, ΔT, the value of S.sub.j,0 can be approximated as S.sub.j,k−k.Math.ΔT.
(358) In certain implementations, ΔT can be estimated from the sequence itself, such as by using a time-variant estimation that does not adversely impact the PLL's dynamic response.
(359) Within the implementation of a DPLL, each element of this sequence can be represented by a digital time stamp indicating the timing of the event. Accordingly, in certain implementations, the sequence {S.sub.j,k} of timing events is digitally represented using time stamps from a TDC.
(360)
(361) As shown in
(362) Various timing events have been extrapolated to relative to an edge of the decimated signal 1012, corresponding to timing information at S.sub.j,0. Additionally, a first extrapolated timing event 2021 has been used to estimate the value of S.sub.j,0 as S.sub.j,1−1.Math.ΔT, a second extrapolated timing event 2022 has been used to estimate the value of S.sub.j,0 as S.sub.j,2−2.Math.ΔT, and a third extrapolated timing event 2023 has been used to estimate the value of S.sub.j,0 as S.sub.j,3−3.Math.ΔT.
(363) The extrapolated timing events 2021-2023 include timing information ε.sub.0, ε.sub.1, . . . ε.sub.2 indicating phase jitter and/or instantaneous frequency of the signal 1011. If the goal were to accurately estimate that specific event S.sub.j,0, the timing information ε.sub.0, ε.sub.1, . . . ε.sub.2 may not be useful.
(364) However, providing information about the phase jitter and/or instantaneous frequency of the signal 1011 to a phase detector of a PLL allows the phase detector to measure coherence of the reference and generated signal sequences at the lowest rate of timing, but with information that is updated at a higher rate.
(365)
(366) Timing events can be extrapolated in a wide variety of ways, including, but not limited to backward extrapolation, forward extrapolation, or a combination thereof.
(367)
(368) In one embodiment, the input signal 1055 can include a carrier frequency (for instance, 10 MHz) and an embedded subcarrier frequency (for instance, 1 kHz). Additionally, the carrier frequency provides frequency information and the subcarrier frequency provides phase information. Although the input divider 1050 could have a division value selected to recover only the subcarrier (for instance, R=10,000 for a 10 MHz carrier and 1 kHz sub-carrier), running the DPLL with a relatively low update rate can provide poor performance.
(369) In contrast, the illustrated DPLL 1060 includes the extrapolation circuit 1052 for generating extrapolated timing events. For example, the extrapolated events can include extrapolations of timing events of the carrier frequency used to estimate the sub-carrier events. Since the extrapolated timing events include phase jitter and/or instantaneous frequency information, the operation of the DPLL 1060 is enhanced. The extrapolated timing events can be for the reference signal and/or feedback signal.
(370) For example, providing information about the phase jitter and/or instantaneous frequency of the signal 1055 to the phase detector 1051 allows measurement of coherence of the signal sequences at a desired low rate of timing, but with information that is updated at a higher rate.
(371)
(372)
(373) Fast Locking PLLs for Low Loop Bandwidth
(374) A locking time of certain PLLs can be relatively long. For example, a zero-delay PLL with low loop bandwidth and a low frequency reference signal can have a prohibitively long locking time.
(375) A PLL's locking time is based on a transient response of the closed loop negative feedback system of the PLL. For example, the duration of the locking transient can depend on local oscillator frequency offset relative to the reference frequency, initial phase offset present at the phase detector, and low pass filter parameters (for instance, bandwidth and phase margin).
(376) In certain implementations herein, a PLL is locked in multiple steps, including an initial frequency acquisition step in which the PLL is operated open loop. By executing an algorithm to separate and correct for individual components of the PLL in a suitable order, the duration of the locking transient can be reduced or minimized.
(377) Frequency is the derivative of phase. In certain implementations, a frequency offset between the reference input clock signal and the PLL's local oscillator (i.e. feedback clock signal) is minimized by a frequency offset correction. In certain implementations, the frequency offset correction is executed without inclusion of an initial phase offset parameter.
(378) A DPLL can provide suitable processing for facilitating implementation of such an algorithm.
(379) For example, an adjustment to a digital phase detector (DPD) is one example of a suitable mechanism for correcting phase offset. For instance, the initial phase offset can be quantified and subtracted from DPD outputs to the loop filter. Implementing the adjustment in this manner provides a number of advantages, such as injecting only the residual phase offsets generated by the frequency mismatch between DPD inputs. Once the DPLL achieves steady state, the loop filter output is stored in memory for use as the initial loop filter output in the subsequent algorithm step.
(380) In implementations in which the DPLL implements feedback frequency tuning via a numerically controlled oscillator (NCO), consecutive phase measurements of each DPD input can be differentiated and compared. Additionally, the result of the comparison can be used to calculate the fractional frequency error (for instance, normalize frequency error) of the feedback source relative to the reference input clock. The calculated fractional frequency error can then scale the current oscillator control value (including application of a control value versus frequency linearization transfer function) to produce a frequency correction value normalized to the NCO control word. Updating the active NCO control value with the summation of the previous control word and the frequency correction value provides relatively low instantaneous frequency offset of the DPLL's NCO output, yielding an initial feedback frequency for the subsequent algorithm step.
(381) Performing the application of the correction factor to the active NCO control value in multiple steps with magnitude determined based on a programmable limit and the time duration between consecutive updates allows for the implementation of a controlled rate of change of the frequency transition. Implementing the DPLL in this manner provides enhanced performance for systems in which the output clock of the NCO is used externally to the device.
(382) Once the frequency error has been reduced or minimized, the phase offset between the DPD's inputs is approximately constant and an offset correction may be implemented.
(383) In certain implementations, phase correction is provided by physically synchronizing the dividers between the highest intermediate frequency synchronous to the DPLL's local oscillator and the DPD's feedback input using the DPD's reference input signal as the synchronization source. This can result in the first edge out of the synchronized dividers being phase aligned to the DPD's reference input signal within 1 UI of the frequency at the input of the first affected divider.
(384) When it is desirable to limit the frequency deviation incurred as a function of the phase offset, the phase offset may be quantified and translated to a representation as the integration of the frequency deviation limit over a calculable time duration. This frequency offset can then be negated and applied to the feedback source for the calculated time duration to achieve the desired phase alignment without exceeding the frequency deviation limits.
(385) Once the frequency and phase offsets between DPLL reference and feedback sources have been reduced or minimized, the DPLL is operated in closed loop operation to compensate for any error in the calculation of the aforementioned correction factors.
(386) To minimize the duration of this correction stage, a bandwidth reduction algorithm can be implemented to begin loop acquisition at a much larger loop bandwidth and progressively decay versus time to a final operating bandwidth for steady state operation and adherence to system specifications.
(387)
(388) The method starts at step 1201, where a frequency offset between a reference signal and a feedback signal of a PLL is detected. In one embodiment, the method is implemented in the clock synchronization and frequency translation IC 40 of
(389) The frequency offset can be detected in a variety of ways, including open loop or closed loop detection using any suitable frequency offset detection circuit. In one example, reference monitors (for instance, the reference monitors 18 of
(390) The method 1210 continues to step 1202, in which the frequency offset of the PLL is compensated by providing an open loop frequency offset correction. Thus, the feedback loop of the PLL is opened or broken when provided the frequency offset correction. The frequency offset of the PLL can be compensated in a wide variety of ways. In one example, a loop filter output value is controlled to provide compensation. In another example, an NCO is adjusted based on normalizing a fractional frequency error by a control word of an NCO, and updating the NCO based on the normalized frequency error (for instance, updating the active NCO control value with the summation of the previous control word and the frequency correction value).
(391) The PLL's loop can be opened and closed in a wide variety of ways, such as by using a loop controller (for instance, the loop controller 85 of
(392) In certain implementations, the frequency offset is gradually provided to limit change to an output frequency of the PLL.
(393) The method continues to a step 1203, in which a phase offset between the reference signal and the feedback signal is compensated by providing a phase offset correction after the frequency offset correction. The phase offset correction can be provided in a variety of ways. In one example, a feedback divider of the PLL is synchronizing based on timing of the reference clock signal. For instance, a PLL's dividers can be physically synchronized to a highest intermediate frequency synchronous to the PLL's local oscillator and the phase detector's feedback input using the reference input signal as the synchronization source. Such a phase alignment can result in the first edge out of the synchronized dividers being phase aligned to the reference input signal within 1 UI of the frequency at the input of the first affected divider.
(394) In certain implementations, the phase offset is compensated by gradually providing phase adjustment to limit an output frequency deviation of the PLL.
(395) In certain implementations, the loop controller controls and/or coordinates the operations of step 1203.
(396) In an ensuing step 1204, a residual error of the PLL is compensated by locking the feedback signal to the reference signal with the feedback loop of the PLL. Thus, the PLL's feedback loop is closed when correcting the residual error. In certain implementations, the loop bandwidth of the PLL is changed over time to enhance locking speed. For instance, a bandwidth reduction algorithm may be implemented to begin loop acquisition at a much larger loop bandwidth and progressively decay versus time to a final operating bandwidth for steady state operation and adherence to system specifications. The loop bandwidth can be changed in a variety of ways, such as by programming different numeric coefficients of a digital loop filter (for example,
(397) In certain implementations, the loop controller controls and/or coordinates the operations of step 1204.
(398)
(399)
(400)
(401)
(402)
(403)
(404) Phase Shift Detection
(405) In many applications, a phase locked loop (PLL) is deployed purely for frequency synchronization and the initial steady-state phase alignment between input timing reference and output clock is of no concern to the system's operation and therefore arbitrary.
(406) Due to practical system operation, the source of a timing reference may be switched to a redundant, frequency synchronous source with arbitrary phase relationship to the original reference. In the event that such a switch occurs outside of the context of the PLL control logic, the phase difference between timing references is introduced to the PLL phase detector (PD) as phase error and results in an undesired, transient frequency deviation on the output clock.
(407) Knowledge of the characteristics of such events allows for an implementation of appropriate detection circuitry to trigger proper handling of such phase shifts, preserving desired system operation.
(408) It is often the case that sufficiently small phase shifts can result in transient effects which degrade system performance and, as a result, the magnitude of the phase shifts that are desirable to detect and compensate (i.e. detection threshold T.sub.R) is on the order of or lower than the peak to peak noise of the timing reference itself.
(409) In such a case, simply observing the phase error of each the timing input and comparing it to the detection threshold can result in the detection of false positives leading to the decimation of the timing reference's phase information.
(410) One primary characteristic of a phase shift is that it has a non-zero mean, while the timing noise, assumed to be relatively Gaussian, is zero mean. Therefore, summing N consecutive samples will gain up the phase error contributed by a phase shift by a scalar of N, but not the timing noise contributors effectively increasing the signal to noise ratio of the detection circuitry.
(411) This allows for the use of an extended detection threshold, T.sub.E, as determined by: T.sub.E=N×T.sub.R while still detecting a phase shift of magnitude T.sub.R without resulting in false detections.
(412)
(413) It should be noted that in lieu of using an extended threshold, the instantaneous phase error input may be differentiated prior to the windowed accumulation and compared against the original detection threshold. This would provide substantially the same increase in signal to noise ratio in the detection circuitry.
(414) For further noise immunity, a majority rule processing is applied a set of N samples of the detection circuitry output can be used. This provides two distinct benefits.
(415) First, by using a set of detector outputs versus a single positive output provides increased noise immunity against a false positive being declared in the event that a single phase error sample contained an excessively large amount of noise. As Gaussian noise is technically unbounded, the peak to peak noise grows with sample size, and systems are requested to run ad infinitum by customers, this is a valuable improvement. However, when a single phase error value is substantially large, a single shot measurement approach, with an independent detection threshold well in excess of the noise, can still be of value in conjunction with this invention.
(416) Second, if a phase shift exactly equal to the detection threshold occurs, then it is likely that noise contributors will cause some detection decisions to yield a negative result while the mean phase shift measured is still greater than or equal to the detection threshold. If all N samples of the detection circuitry output are required to yield a positive result then minimum detectable the phase shift magnitude will be equal to the detection threshold plus the input noise of the timing reference.
(417) Once the detection output yields positive results, but not enough subsequent samples have been collected to populate the N sample set entirely with post-shift sample which is required to detect a phase shift via majority rule, the output of the PD may be suppressed to prevent the PLL from responding to a potential phase shift. If after full population of the N sample set with post-shift samples, a majority rule vote does not confirm the potential step, the suppressed samples may be re-introduced downstream of the phase shift detector.
(418) In one embodiment, a reference switching circuit (for instance, the reference switching circuit 19) is implemented in accordance with one or more of the features discussed above. In another embodiment, a reference monitor (for instance, the reference monitors 18 of
(419)
(420) In the illustrated embodiment, the phase shift detector 1301 operates with an extended detection threshold 1302. In certain implementations, the phase shift detector 1301 observes phase shift over N cycles of the reference clock signal. For instance, the phase shift detector 1301 can accumulate the detected phase shift over the N cycles, thereby calculating a windowed average. For example, summing N consecutive samples will gain up the phase error contributed by a phase shift by a scalar of N, but not the timing noise contributors effectively increasing the signal to noise ratio of the detection circuitry. Thus, a phase shift of magnitude T.sub.R can be detected without resulting in false detections.
(421)
(422) Additionally or alternatively to an extended threshold, a phase shift detector can differentiate instantaneous phase error prior to windowed accumulation, and the result can be compared against the original detection threshold T.sub.R.
(423)
(424) The majority rule processing circuit 1321 increases noise immunity against a false positive being declared in the event that a single phase error sample contains an excessively large amount of noise. Additionally, when a phase shift substantially equal to the detection threshold occurs, then it is likely that noise contributors will cause some detection decisions to yield a negative result while the mean phase shift measured is still greater than or equal to the detection threshold. If all N samples of the detection circuitry output are required to yield a positive result, then minimum detectable the phase shift magnitude will be equal to the detection threshold plus the input noise of the timing reference.
(425) Once the detection output yields positive results, but not enough subsequent samples have been collected to populate the N sample set entirely with post-shift sample to thereby detect a phase shift via majority rule, the output of the PD may be suppressed to prevent the PLL from responding to a potential phase shift. If after full population of the N sample set with post-shift samples, a majority rule vote does not confirm the potential step, the suppressed samples may be re-introduced downstream of the phase shift detector.
(426)
(427) Reduction of Buildout Clock Switching Residue
(428) Phase buildout clock switching can be used to reduce or minimize the output phase deviation resulting from the acquisition of a new reference clock by compensating for a phase difference equal to an estimate of the average offset.
(429) In certain implementations herein, apparatus and methods for improving the quality of this estimate and thus reduce the residual phase error caused by the switch are provided.
(430) Assuming the average phase difference in a phase lock loop (PLL) is constant over time (that is, the reference and output frequencies are nominally equal), the average of the first N phase error samples provides a better estimate of the offset as N increases. The exact rate of improvement varies with the statistical distribution of samples and the type of averaging performed (for instance, uniform or weighted).
(431) The value of N cannot be arbitrarily large. Either the loop is inactive during sample collection, which delays the intended operation; or the loop is active and begins to react to phase errors, which affects the sample measurements. Furthermore, if the nominal frequencies are not equal, the phase error measurements will record a linear trend proportional to the frequency difference.
(432) Restricting the maximum value of N such that the collection period is much less than the loop's time-constant can minimize the interaction between the phase averaging and the PLL operation. By temporarily increasing the loop's time-constant (reducing the bandwidth), the maximum value of N may be increased while limiting the interaction.
(433) When there is an offset in frequencies, a deterministic time dependent phase offset is accumulated. The effect of this error can be mitigated by limiting N such that the error contributions in the average offset are dominated by random effects. Alternately, the linear trend may be canceled from the resulting average. The slope of the trend-line may be extracted from the samples themselves, or by some other estimate of the frequency offset.
(434) Further variants to the phase offset data collection can be employed. Rather than using a fixed value of N, the noise and trend-line of the data may be examined, as it becomes available, to determine whether the collection period should be ended or extended. Also, adjustments made by the PLL to its output are known and this knowledge may be used to cancel the effects of these adjustments from the phase offset measurement.
(435) A multi-sample average can be a better estimate for the offset than a single-sample. Although there are limitations to the amount of improvement possible, the significant error sources associated with the average may be limited or otherwise mitigated.
(436) In certain embodiments herein, a deviation resulting from the acquisition of a new reference clock is compensated for a phase difference equal to an estimate of the average offset taken using a multi-sample average. In certain implementations, the estimate is obtained by comparing time stamps from TDCs (for example, the TDCs 4a-4d of FIG. 1). Additionally, rather than comparing one time stamp to another, the difference between multiple pairs of corresponding time stamps are calculated and averaged.
(437)
(438) The phase offset detector 1405 detects a phase offset between the first reference clock signal (REF1) and the second reference clock signal (REF2) based on multiple samples of each clock signal. For example, a multi-sample average can be a better estimate for the offset than a single-sample. The phase offset detector 1405 can include one or more features discussed above. In certain implementations, the multiplexer 1403 is controlled by a reference switching circuit, such as the reference switching circuit 19 of
(439) As shown in
(440) The phase offset detection schemes described above can be incorporated into any of the PLLs described herein. For example, in one embodiment the clock synchronization and frequency translation IC 40 of
(441) Aligning to Phase Information Lost in Decimation
(442) In a zero-delay phase lock loop (PLL), it is often desirable to initialize the reference and output (feedback) clocks such that they exhibit minimal or relatively low initial skew (phase offset). This limits the phase error that the PLL pull-ins upon activation and reduces or minimizes the duration and magnitude of the phase/frequency transient response.
(443) When decimation (such as by frequency division) of these clocks occur, the pair of edges which are best aligned may not be included in the set of edges available to the phase detector (PD). Knowledge of the decimation ratio for each clock signal can allow the device to extrapolate the timing of the best edge pairing, thus minimizing the initial phase error.
(444) Zero-delay operation of a PLL describes the steady-state operation of the loop such that the reference and output clocks align—at least on a subset of the clock events. An extension to zero-delay, hitless operation, also defines that the loop acquisition transient is minimized.
(445) When the clocks are decimated, to achieve frequency translation and/or meet the maximum frequency limits of the PLL components, the process of achieving hitless operation can be complicated. For a DPLL, it is possible for the PD to operate upon timestamps representing the reference and output signals. Calculations upon these timestamps provide a mechanism to address various challenges, including those that arise from implementation of hitless mode.
(446) Given a timestamp, S.sub.j, the interval between timestamps in a path, T≈S.sub.j+1−S.sub.j, and the decimation ratio associated with that path, M, all the events between S.sub.j and S.sub.j+1, which were lost, can be estimated. Denote the non-decimated sequence of events starting with S.sub.j as S.sub.j,k, where S.sub.j=S.sub.j,0 and k is in [0 . . . M−1]. Then S.sub.j,k can be approximated by S.sub.j,k≈S.sub.j+T.Math.k÷M.
(447)
(448)
(449) If the DPLL is configured such that the output frequency is an integer multiple of the reference frequency, every reference event has an exactly corresponding output event. In this case, interpolation applied to the output events will yield the nearest match.
(450) In certain implementations, the time distance (D) to the nearest match is constrained to D≤0.5 UI, where the unit interval, UI=T÷M. For any reference event with timestamp X, there are consecutive decimated output events represented by S.sub.j and S.sub.j+1 such that S.sub.j≤X<S.sub.j+1. Let the divided phase of X relative to S.sub.j be denoted as φ=(X−S.sub.j)÷(S.sub.j+1−S.sub.j). Then the extrapolated output index which matches closest is K=round(M.Math.φ). If K=M, S.sub.j+1,0 is the nearest match, otherwise S.sub.j,K is the best. Recall S.sub.j,K≈S.sub.j+T.Math.K÷M, so applying an offset of T.Math.K÷M to the sequence of output timestamps will cause the DPLL to align to the pair of edges which match best, even when K≠0, that is, the alignment pair is obscured by the output decimation.
(451) Similarly, if the reference frequency is an integer multiple of the output frequency, every output event has an exact corresponding reference event. As before, interpolation will yield the best matching pair, only now the extrapolation is performed upon the reference sequence.
(452) In certain embodiments herein, one or more of the features discussed above is implemented in a digital phase detector (for example, the digital phase detector 51 of
(453)
(454) Implementing the DPLL 1660 with the interpolation circuit 1652 can provide a number of advantages. For example, knowledge of the decimation ratio for each clock signal can allow the device to extrapolate the timing of the best edge pairing, thus minimizing the initial phase error.
(455)
(456) Applications
(457) Devices employing the above described schemes can be implemented into various electronic devices. Examples of electronic devices include, but are not limited to, consumer electronic products, parts of the consumer electronic products, electronic test equipment, communication infrastructure, etc. For instance, one or more clock synchronization and frequency translation ICs can be used in a wide range of analog, mixed-signal, and RF systems, including, but not limited to, data converters, chip-to-chip communication systems, clock and data recovery systems, base stations, mobile devices (for instance, smartphones or handsets), laptop computers, tablets, and wearable electronics. A wide range of consumer electronics products can also include such ICs for Internet of Things (IOT) applications. For instance, one or more clock synchronization and frequency translation ICs can be included in an automobile, a camcorder, a camera, a digital camera, a portable memory chip, a washer, a dryer, a washer/dryer, a copier, a facsimile machine, a scanner, a multi-functional peripheral device, or a wide range of other consumer electronics products. Furthermore, electronic devices can include unfinished products, including those for industrial, medical and automotive applications.
(458) In one example, a clock synchronization and frequency translation IC provides jitter cleanup and synchronization in GPS, PTP (IEEE-1588), and/or SyncE applications. In a second example, a clock synchronization and frequency translation IC is included in a base station (for instance, a femtocell or picocell) to control clocking for baseband and radio. In a third example, a clock synchronization and frequency translation IC controls mapping/demapping for a transport network, such as an optical transport network (OTN), while providing jitter cleaning. In a fourth example, a clock synchronization and frequency translation IC provides holdover, jitter cleanup, and phase transient control for Stratum 2, 3e, and 3 applications. In a fifth example, a clock synchronization and frequency translation IC provides support for data conversion clocking, such as analog-to-digital (A/D) and/or digital-to-analog (D/A) conversion, for instance, for JESD204B support. In a sixth example, a clock synchronization and frequency translation IC provides timing for wired infrastructure support, such as cable infrastructure and/or carrier Ethernet.
CONCLUSION
(459) The foregoing description may refer to elements or features as being “connected” or “coupled” together. As used herein, unless expressly stated otherwise, “connected” means that one element/feature is directly or indirectly connected to another element/feature, and not necessarily mechanically. Likewise, unless expressly stated otherwise, “coupled” means that one element/feature is directly or indirectly coupled to another element/feature, and not necessarily mechanically. Thus, although the various schematics shown in the figures depict example arrangements of elements and components, additional intervening elements, devices, features, or components may be present in an actual embodiment (assuming that the functionality of the depicted circuits is not adversely affected).
(460) While certain embodiments have been described, these embodiments have been presented by way of example only, and are not intended to limit the scope of the disclosure. Indeed, the novel apparatus, methods, and systems described herein may be embodied in a variety of other forms; furthermore, various omissions, substitutions and changes in the form of the methods and systems described herein may be made without departing from the spirit of the disclosure. For example, while the disclosed embodiments are presented in a given arrangement, alternative embodiments may perform similar functionalities with different components and/or circuit topologies, and some elements may be deleted, moved, added, subdivided, combined, and/or modified. Each of these elements may be implemented in a variety of different ways. Any suitable combination of the elements and acts of the various embodiments described above can be combined to provide further embodiments. Accordingly, the scope of the present invention is defined only by reference to the appended claims.
(461) Although the claims presented here are in single dependency format for filing at the USPTO, it is to be understood that any claim may depend on any preceding claim of the same type except when that is clearly not technically feasible.