TIMING-DIFFERENCE MEASUREMENT
20170264304 · 2017-09-14
Inventors
- Ian Juso DEDIC (Northolt, GB)
- Gavin Lambertus Allen (Seabird, AU)
- Bernd Hans Germann (Brombachtal, DE)
- Albert Hubert Dorner (Lahr, DE)
Cpc classification
H03L7/085
ELECTRICITY
International classification
Abstract
There is disclosed herein current-mode circuitry for measuring a timing difference between first and second signals, the circuitry comprising: a tail node configured during a measurement operation to receive a current pulse in dependence upon the first signal; first and second nodes conductively connectable to said tail node along respective first and second paths; and steering circuitry configured during the measurement operation to control such connections between the tail node and the first and second nodes based on the second signal to steer the current pulse so that a first portion of the current pulse passes along the first path and a second portion of the current pulse passes along the second path in dependence upon the timing difference between said first and second signals; and a signal output unit configured to output a measurement-result signal indicating a measure of said timing difference based upon one or both of the first and second portions.
Claims
1. Current-mode circuitry for measuring a timing difference between first and second signals, the circuitry comprising: a tail node configured during a measurement operation to receive a current pulse in dependence upon the first signal; first and second nodes conductively connectable to said tail node along respective first and second paths; and steering circuitry configured during the measurement operation to control such connections between the tail node and the first and second nodes based on the second signal to steer the current pulse so that a first portion of the current pulse passes along the first path and a second portion of the current pulse passes along the second path in dependence upon the timing difference between said first and second signals; and a signal output unit configured to output a measurement-result signal indicating a measure of said timing difference based upon one or both of the first and second portions.
2. The current-mode circuitry as claimed in claim 1, wherein the steering circuitry is configured to steer the current such that the first portion passes along the first path and then the second portion passes along the second path.
3. The current-mode circuitry according to claim 1, wherein the control circuitry comprises switching circuitry provided along said paths, the switching circuitry configured such that the conductivity of the connections between the tail node and the first and second nodes is controlled by the second signal.
4. The current-mode circuitry of claim 3, wherein the switching circuitry comprises a first transistor whose channel forms part of the first path and a second transistor whose channel forms part of the second path, and wherein gate terminals of those transistors are controlled by the second signal.
5. The current-mode circuitry according to claim 1, comprising a controllable current source configured to provide said current pulse in dependence upon the first signal.
6. The current-mode circuitry according to claim 1, wherein the signal output unit is configured to output the measurement-result signal based upon a difference in the size of the first and second portions, or in dependence upon the size of one of the first and second portions.
7. The current-mode circuitry according to claim 1, wherein the signal output unit comprises first and second capacitances connected to the first and second nodes, respectively, for converting said first and second portions of the current pulse into corresponding first and second potential differences.
8. The current-mode circuitry according to claim 1, wherein the signal output unit comprises analogue-to-digital conversion circuitry and the measurement-result signal is a digital signal.
9. The current-mode circuitry according to claim 1, wherein: one or both of the first and second signals are switched logic level signals; and/or the first and second signals are clock signals or other repetitive signals.
10. A phase detector, comprising the current-mode circuitry of according to claim 1.
11. The phase detector of claim 10, wherein the current-mode circuitry is configured to repeatedly measure such timing differences between the first and second signals, generating a sequence of measures of the timing differences, and wherein the phase detector comprises: reference circuitry operable, in dependence upon a target relationship between said first and second signals, to generate a sequence of reference values indicating timing differences between the first and second signals corresponding to the target relationship; comparison circuitry configured to compare the sequence of measures with the sequence of reference values; and a signal output unit operable to output a phase-detection signal in dependence upon a result of the comparison.
12. The phase detector of claim 11, further comprising: calibration circuitry operable to calibrate operation of the phase detector in dependence upon the sequences of reference values and measures.
13. Phase-locked loop circuitry, comprising the phase detector according to claim 10.
14. Digital-to-analogue converter circuitry or analogue-to-digital converter circuitry, comprising the current-mode circuitry according to claim 1.
15. An IC chip, comprising the current-mode circuitry according to claim 1.
16. Digital-to-analogue converter circuitry or analogue-to-digital converter circuitry, comprising the phase detector according to claim 10.
17. Digital-to-analogue converter circuitry or analogue-to-digital converter circuitry, comprising the phase-locked loop circuitry according to claim 13.
18. An IC chip, comprising the phase detector according to claim 10.
19. An IC chip, comprising the phase-locked loop circuitry according to claim 13.
20. An IC chip, comprising the digital-to-analogue converter circuitry or analogue-to-digital converter circuitry according to claim 14.
Description
[0031] Reference will now be made, by way of example, to the accompanying drawings, of which:
[0032]
[0033]
[0034]
[0035]
[0036]
[0037]
[0038]
[0039]
[0040] Considering that there is a need to measure a timing difference between first and second signals, the general idea is to create a current pulse in dependence upon the first signal and then to use the second signal to steer that current pulse so that a first portion of it passes along a first path and a second portion of it passes along a second path. Those portions can then be used to output a measurement signal indicating a measure of the timing difference.
[0041] In
[0042]
[0043]
[0044] Circuitry arrangement 20 of
[0045] Signal selector 22 is operable to select one of a plurality of input signals based on a selection signal SEL and output that selected signal.
[0046] Looking at
[0047]
[0048] Embodiments of the present invention may operate on sinusoidal or square-wave clock signals (as well as other shaped of clock signal), however the following description will refer to such square-wave clock signals (e.g. as output by divider 14) for ease of understanding of the present invention. Although it will be appreciated that the techniques and circuitry disclosed herein may operate based on sinusoidal or square-wave clock signals, it will become apparent that there are significant advantages associated which such square-wave signals (for example, linearity in the operation).
[0049] As indicated in
[0050] Incidentally, although rising edges are focussed on here for convenience, falling edges could equally be employed, as could low/trough periods of the signals θ.sub.0 to θ.sub.3.
[0051] Thus, the signal selector 22 of
[0052] The circuitry 30 comprises a common tail node 32 and first and second nodes 34 and 36. A first signal path 38 connects the common tail node 32 to the first node 34 and a second signal path 40 connects the common tail node 32 to the second node 36.
[0053] A controllable current source 42 is connected to the common tail node 32 and connected to receive the selected clock signal θ.sub.SEL as its control signal. As such, the controllable current source 42 is configured to cause the current pulse Q.sub.T formed from the current I.sub.T (see
[0054] Taking the clock signal θ.sub.3 in
[0055] Switches 44 and 46 are provided along the first and second paths 38 and 40, respectively. Those switches 44 and 46 are also connected to be controlled based on clock signals /REFCLK and REFCLK, respectively, provided from clock distribution circuitry 24 in
[0056] Accordingly, the portion Q.sub.1 of the current pulse Q.sub.T before the rising edge of the clock REFCLK is caused to flow along the first path 38 and the portion Q.sub.2 of the current pulse Q.sub.T after the rising edge of the clock signal REFCLK is caused to flow along the second path 40, in line with
[0057] Circuitry 30 further comprises an output signal unit 50, comprising a capacitor bank 52 and an ADC unit 54.
[0058] Capacitor bank 52 comprises capacitors 62 and 64 and reset switches 66 and 68. Capacitors 62 and 64 are connected to the ends of paths 38 and 40 at the first and second nodes 34 and 36, respectively. Thus, pulse portions Q.sub.1 and Q.sub.2 create corresponding potential differences V.sub.1 and V.sub.2 across capacitors 62 and 64. If capacitors 62 and 64 have equal capacitances, then the potential differences V.sub.1 and V.sub.2 are proportional to the amounts of charge in pulse portions Q.sub.1 and Q.sub.2 and consequently are reflective of the position of the rising edge of the clock signal REFCLK relative to the current pulse Q.sub.T and thus the timing difference (or phase difference or phase lag) between the clock signals REFCLK and θ.sub.SEL.
[0059] For example, if the rising edge of the clock signal REFCLK is exactly in the middle of the period when the clock signal θ.sub.SEL is high, then the pulse portion Q.sub.1 and the pulse portion Q.sub.2 will be the same size as one another (i.e. having the same amount of charge, with the current pulses they are made up of having the same areas), leading to =V.sub.2 assuming that the capacitances of the capacitors 62 and 64 are equal. If the rising edge of REFCLK comes slightly earlier, then the relationship will be V.sub.1<V.sub.2 and if it comes slightly later then the relationship will be V.sub.1>V.sub.2. Thus, by examining V.sub.1 and V.sub.2, for example by looking at the difference V.sub.2−V.sub.1 or vice versa, it is possible to assess the location of the rising edge of the clock signal REFCLK relative to a rising edge of the clock signal θ.sub.SEL.
[0060] Looking back to
[0061] ADC unit 54 is connected to receive the potential differences V.sub.1 and V.sub.2 or a potential difference generated from them such as V.sub.2−V.sub.1, and to output a digital value indicative of the supplied potential difference or differences. The output digital value (in the same way as the voltages V.sub.1 and/or V.sub.2, or indeed V.sub.2−V.sub.1) is a measurement of the timing difference between the clock signals REFCLK and θ.sub.SEL. As such, circuitry 30 could be referred to as a time-to-digital converter (TDC).
[0062]
[0063] Looking back to
[0064] Consider for example that the current pulse Q.sub.T will not be exactly rectangular shaped, i.e. with perfect rising and falling edges, and thus the middle portion (i.e. minus the leading and trailing edge portions) will be the more linear portion of the pulse. Also note that using the square-wave signals of
[0065] Of course, rather than adopting the circuitry 20 of
[0066] This would have the advantage that at least one of those sets of circuitry 30 would catch the rising edge of the clock signal REFCLK in its linear region, enabling the rising edge to be (searched) for by looking at the results of the four sets of circuitry 30. Also, consider the need to hold the voltages V.sub.1 and V.sub.2 over the capacitors 62 and 64 while the ADC unit 54 generates its digital output (e.g. by successive approximation in the case of a SAR ADC), and then reset those voltages using the reset switches 66 and 68 before the next measurement is taken, as indicated in
[0067] However, considering the PLL circuitry 1 of
[0068] When the PLL circuitry is in, or is close to being in, lock, the integer part of the value X will be known (in the sense that it may be stable or could be calculated rather than needing measurement), and only the fractional part need be measured each time the rising edge of the clock signal REFCLK comes along.
[0069] Further it is not necessary to measure the relative position of every rising edge of the clock signal REFCLK. It may be possible to measure only the relative timing positions of certain such edges, for example every other one, or even 1 in every 100 edges. This is of course an implementation detail, however there may be some power consumption saving in not considering every rising edge at the cost of accuracy.
[0070] Considering further the theory behind
[0071] Ignoring the need for any overlap between the ranges covered by the four phases, then a charge pulse split of 25%:75% (REFCLK early) could be set as ADC negative full scale (e.g. −128 code for an 8 b ADC), and a split of 75%:25% (REFCLK late) could be set as ADC positive full scale (e.g. +127 code for an 8 b ADC).
[0072] To allow for some overlap in case there was some error in selecting the right pulse, i.e. the correct phase in
[0073]
[0074] A significant difference between the circuitry 70 and the circuitry 1 is that the phase comparator 4 has been replaced with phase comparator 71, itself embodying the present invention. The phase comparator 71 comprises a time-to-digital converter (TDC) 72, a counter 74 and a subtractor 76. The TDC 72 itself embodies the present invention.
[0075] The phase comparator 71 is connected to receive the reference clock signal REFCLK and the clock signal fed back from the VCO, in this case via the divider 14. The TDC 72, within the phase comparator 71, also receives these signals.
[0076] The TDC 72 is operable, based on its received signals, to outputs an integer+fraction value, having measured where the REFCLK rising edge lies and produced a digital output, using the techniques described above in connection with
[0077] Also as described above, the TDC 72 is operable to repeatedly output such integer+fraction values, i.e. to repeatedly measure a timing difference between its input signals. That is, it may repeatedly measure the relationship between rising edges of the reference clock signal REFCLK and the VCO clock signal.
[0078] The counter 74 is connected to receive a “demand” or target value, indicating the desired output frequency expressed as how many cycles (integer+fraction) of the VCO clock signal should correspond to one cycle of the reference clock signal (REFCLK). In the example in
[0079] The counter 74 is also connected to be clocked by the signal REFCLK, and is configured to increment its output by the demand value each time it is clocked. Thus its output A (see
[0080] The TDC 72 is configured to output an output B of corresponding actual measured values as mentioned above, in this example corresponding to the same successive REFCLK clock cycles as for the values of output A. The subtractor 76 is connected to receive outputs A and B as indicated, and to generate difference output C, as also indicated in
[0081] The output C is the output of the phase comparator 71, and is fed via the loop filter 8 (to average noise) to control the VCO 10, in a similar manner to that already described in connection with
[0082] As described above, once the PLL circuitry 70 is (or is close to being) locked, it may no longer be necessary for the TDC 72 to measure the integer part of the timing difference between its input signals. That is, only the fraction part may need to be actually measured, since the integer part may effectively be known. Further, as described in connection with
[0083]
[0084] For example, it would be possible to keep a record of predicted (or demanded or target or reference) fractional values and the corresponding measured actual fractional values. These could be plotted as in the upper graph in
[0085] The X-axis is for the predicted fractional values, here shown in relation to a 90° phase range covered by a particular one of the VCO clock phases θ.sub.0 to θ.sub.3 as in
[0086] Thus, only a quarter of the possible range (0° to 90° in phase, or 0 to 0.25 in terms of fractional values) is shown in
[0087] If the PLL circuitry 70, including the TDC 72, were operating perfectly and in lock, it may be expected that the predicted and measured values are the same, and as such the plotted values would fall on the dashed diagonal lines (effectively, X value=Y value) indicated. In practice, the plotted values (indicated as crosses) will fall close to these diagonal lines as indicated.
[0088] The lower graph in
[0089] To avoid overcomplicating
[0090] The form or pattern (e.g. slope and offset) of the trace in the lower graph could be assessed in practice e.g. by accumulating/storing errors associated with the left-hand half of the upper graph (i.e. of a 90° phase range) in one register and those associated with the right-hand half of the upper graph in another register over time. The totals or averages of these values over time may then be indicative of the form or pattern, avoiding the need to actually plot and analyse the graphs per se.
[0091] Accordingly, the above-described circuitry may be provided with control circuitry operable, based on such an analysis or comparison of the predicted and measured values, to control the TDC 72, or other parts of the circuitry 71 or 70, to reduce the errors experienced. Gain errors could be compensated for e.g. by trimming the ADC reference value or tail current (i.e. the magnitude of I.sub.T). Offset errors could be compensated for by an offset trim in the ADC comparator, adjusting the timing in the clocks, or even adding a digital offset in the TDC output. These are of course only examples.
[0092] It will be appreciated that the circuitry disclosed herein could be described as circuitry for measuring a timing difference between first and second signals, as a time-to-digital converter, as a phase detector or phase comparator, or as PLL circuitry. Such circuitry may be provided as a clock source, for example to control mixed-signal circuitry such as DAC or ADC circuitry. Circuitry of the present invention may be implemented as DAC or ADC circuitry.
[0093] Circuitry of the present invention may be implemented as integrated circuitry, for example on an IC chip such as a flip chip. The present invention extends to integrated circuitry and IC chips as mentioned above, circuit boards comprising such IC chips, and communication networks (for example, internet fiber-optic networks and wireless networks) and network equipment of such networks, comprising such circuit boards.
[0094] The present invention may be embodied in many different ways in the light of the above disclosure, within the spirit and scope of the appended claims.