This invention relates to the field of precision time measurement, and in particular to a precision time-to-digital converter.
Time-to-Digital converters (TDCs) convert time intervals into a digital representation. There is a practical limit on the frequency of a master clock that can be used to measure time intervals. TDCs are primarily concerned with measuring time intervals between clock pulses of a master clock so as to offer a resolution better than would determined by the period of the master clock alone. TDCs have a number of applications, for example, in the field of particle physics, but an important application is the all-digital phase-locked loop (ADPLL), where they are used as phase detectors. Increasing demands in this field, in particular for wireless applications, such as mobile phones, Bluetooth, wireless LAN etc., call for TDCs with time resolutions in the order of picoseconds (ps). This is smaller than the clock period of the highest frequency practical clocks, so some method of interpolation must be employed to subdivide a clock period into smaller time intervals.
ADPLL designs should cover the frequency range from sub-100 MHz to 20 GHz (or even broader), which requires a wide phase detection range of tens of ns. It means that the TDC phase detection range needs to cover (not less than) the period of the lowest frequency of the DCO. Therefore, a fine TDC time resolution combined with a wide phase detection range is the most important performance specifications in most wireless applications. The other way to digitally express the phase detection range of a TDC is by how many output bits it produces. For instance, a 10 bit TDC with 2 ps resolution is able to detect 2 ns of the phase detection range, while a 14 bit TDC can cover more than 32 ns. In the case of a fixed number of digital bits, the phase detection range gets narrower with the finer TDC time resolution, which means that a TDC design must trade-off time resolution for phase detection range, or vice versa. Parameters such as area, power consumption and reliability are also important for assessing the TDC's overall performance.
One prior art technique is to use a digital delay line consisting of a chain of inverter delay elements as shown in
Coincidence with the triggering signal is detected by a chain of D flip-flops. The D flip-flops capture the value of the D-input at a definite portion of the clock cycle (e.g. the rising edge of the clock or falling edge). An odd number of D flip-flops are triggered by the falling edge; an even number of D flip-flops are triggered by the rising edge. That captured value becomes the Q output.
As shown in
An alternative arrangement, shown in
Both the digital delay line and ring oscillator TDCs have relatively coarse time resolution. An improvement can be realized by modifying the digital delay line to employ the Vernier principle. In a conventional Vernier instrument, a Vernier scale is set along side a main scale, where the Vernier scale spacing is a fraction of the main scale spacing. Typically ten graduations of the Vernier scale correspond to nine graduations of the main scale. This means that if the starting graduation on the Vernier scale is aligned with a graduation on the main scale, the second Vernier graduation will be offset by 1/10th of the main scale, the third by 2/10 ths and so on until the tenth, which will align with the 9th graduation on the main scale. Alternatively, if the first Vernier graduation is aligned somewhere between graduations on the main scale, the first coincidence between the Vernier scale graduation and the main scale graduation will indicate the fraction of the graduations on the main scale where the first Vernier graduation is located.
A similar principle can be employed in the time domain by using two delay lines with slightly different delays. In this case the clock edges constitute the graduations. If the Vernier delay line with a slightly different delay is started when a triggering event occurs between two main clock edges, the next time a coincidence occurs between a Vernier clock edge and a main clock edge will give a measure of the fractional distance of the event between the main clock edges that is dependent on the difference in delays of the two delay lines.
Such a TDC is shown in
The Vernier delay-line TDC can be improved by looping the two delay lines to create a fast and slow ring as shown in
Embodiments of the invention split phase (time) measurement into coarse, and fine regions, or coarse, moderate, and fine regions. Only a short phase length (tens of ps) requires a fine-resolution measurement while the rest of the phase length (tens of ns) can be measured and counted in coarse graduations by a phase regulator and normal-phase counter. The phase regulator and normal-phase counter divide the time interval to be measured ΔTtot into defined sub-intervals TNOR and determine the number of such sub-intervals. The remaining interval TR, which is a fraction of the defined sub-interval TNOR, is quantized by a fine-resolution Vernier core. It will be appreciated that phase difference is measured as a time interval, so time and phase can be considered essentially the same for the purposes of this explanation.
According to the present invention there is provided a time-to-digital converter (TDC) for measuring a time interval ΔTTot between a leading signal and a triggering signal, comprising a phase regulator incorporating a looped delay line to create pre-defined sub-intervals TNOR determined by the length of said delay line, said phase regulator having an input receiving said leading signal whereby said leading signal loops around said delay line; a counter for counting the number of times m said leading signal loops around said delay line before said triggering signal arrives to obtain a coarse measurement of said time interval defined in terms of said sub-intervals TNOR; and a Vernier core for measuring a residual time interval TR where TR=ΔTTot−mTNOR to obtain a value for the time interval ΔTTot.
When compared with a Vernier-ring TDC consisting of the same number of delay elements, embodiments of the invention make the encoding of the phase measurement simpler due to the fact that only the number of passes of the leading signal through the looped delay line need to be counted. This can be done in a simple counter, whereas in the prior art it was necessary to save the state of entire ring in internal memory for every pass through the ring so as to permit the state of the memory to be determined when the triggering signal arrived. By contrast, in the present invention the simple counter counts the number of passes through the ring, making it necessary only to encode that state of one pass, which is the last pass before the triggering signal arrives. To save all these states (and there can be many depending on how large a phase detection range is supported, i.e. how many times the signal passes through the ring before the triggering signal arrives), a large amount of internal memory that operates at high speed is required. This is very costly from chip area and power perspective.
Moreover, with a prior art Vernier ring it is not easy to detect whether the pass is odd or even pass, requiring additional detection complexity or double the number of elements (half for odd and half for even passes), which again implies a larger area. As a result, Vernier ring structures typically run at s lower reference speed, which allows the present invention to gain a couple of dB (2 to 3) by simply running at higher reference frequencies.
In addition to allowing simple encoding logic, and therefore lower area and power implementation, embodiments of the invention can support higher reference frequencies for a given technology, directly contributing to better system performance by over 5 dB.
In one embodiment the phase regulator can be combined with an arbiter to play a secondary role as a moderate resolution TDC. Such an embodiment can offer a 3-level (coarse/moderate/fine) resolution. The power consumption can be reduced by an order of magnitude compared to a conventional Vernier ring TDC.
Embodiments of the invention make use of an RRD (reference-retimed-by-DCO) signal as the triggering signal and the reference signal itself as the leading signal. The edge of the RRD signal always occurs after the edge of the REF signal, so it can be used as the trigger signal. This avoids the need for an extra logic circuit that is required for traditional TDC solutions that do not make use of the RRD signal to identify which signal comes first and which signal comes second, and then to route first signal as data and route second signal as trigger data.
TDCs in accordance with the invention may include a coordinated-determination evaluator to make the final arithmetic determination of moderate resolution output (QM) and the fine resolution output (QR) simpler and faster. The coordinated-determination evaluator also separates true transitions from fake transitions.
In one embodiment the invention offers flexible switching between three-step (coarse/moderate/fine) time resolution configurations in the TDC in order to meet differing requirements in a single device.
According to another aspect of the invention there is provided a method of obtaining a digital representation of a time interval ΔTTot between a leading signal and a triggering signal, comprising creating pre-defined sub-intervals TNOR with a looped delay line; looping said leading signal through said looped delay line until a triggering signal arrives; counting the number of times m said leading signal loops around said delay line before said triggering signal arrives to obtain a coarse measurement of said time interval defined in terms of said sub-intervals TNOR; and measuring a residual time interval TR where TR=ΔTTot−mTNOR with a Vernier core to obtain a value for the time interval ΔTTot.
This invention will now be described in more detail, by way of example only, with reference to the accompanying drawings, in which:
The leading signal is applied to one input of NAND gate 32. The triggering signal is applied to one input of NAND gate 34 and to an input of normal phase counter 48.
The output of the NAND gate 32 is coupled to a chain 35 of inverter delay elements 361, 362 . . . 36N, each introducing a delay τ2. The output of NAND gate 34 is applied to a chain 37 of inverter delay elements 381, 382 . . . 38N, each introducing a delay τ1. It should be noted that the NAND gates 32, 34 also act as delay elements, introducing respective delays τ2 and τ1, typically 10 ps˜40 ps.
An arbiter 40 comprising respective D flip-flops 42 is arranged between the chains 35 and 37. The chains 37 and D flip-flops 42 form an N-stage fine resolution Vernier TDC core 54.
The Q outputs of the D flip-flops 42 are coupled to register bank and encoder 46, which provides the output representing the time difference between the leading and triggering signals as a thermometer code. It will be noted that the second input to the NAND gate 32 is taken from a point part-way down the chain 35, in this example, after the second inverter delay element 362. The second input to the NAND gate 34 is decoupled from the output of the chain 37, and acts as a fine-resolution enable input as will be described in more detail below.
In this exemplary embodiment the first three delay elements, NAND gate 32 and inverters 361 and 362 form a looped delay line in the form of a ring structure with a 3τ2 delay. The objective is to determine the delay between the leading signal and the triggering signal, given that the delay is likely to be less than the clock period of the master clock (REF). As shown in
In
The remaining task is to find the value of the residual interval TR. This is achieved by the N-stage Vernier core 54. As the normal-phase counter 48 increments the enable signal input is asserted on the fine gear enable input of the NAND gate 34. The triggering signal propagates along the chain 37 consisting of delay elements 34, 381 . . . 38N, each with a delay τ1. As the leading signal re-enters the chain 37 after each pass through the three delay elements 32, 361 and 362, corresponding together to the sub-interval TNor, coincidence of the edge of the leading signal and the triggering signal as detected by the flip-flops 42 will give the fraction of the period TNor in which the triggering signal occurs, or in other words TR.
The contents of the register 46 at the instant of coincidence give TR in a similar manner to a conventional Vernier TDC core except that in this case the reference point is the start of an interval TNor, rather than an edge of the master clock pulse, namely the leading signal. The total time Ttot is then given by the expression ΔTtot=TNor×m+TR, where m is the count in counter 48, namely the number of times the leading edge has looped through the phase regulator 50.
The value of N should be picked so as to allow the fine resolution Vernier TDC to just cover the normal-length sub-interval, TNOR. That means:
where Tres is the desired resolution and Δτ is the difference in delays τ2−τ1, of the slow and fast chains 35, 37.
For instance, if TNOR is set to be 60 ps and the desired resolution equals 5 ps, N should be 12. The output of the Vernier TDC (QR) is:
QR=TR/Δτ
where the value of QR is between 0 and N.
The total delay ΔTot is then given by the expression;
ΔT
Tot
=M·N·Δτ+Q
R·Δτ=(M·N+QR)·Δτ
This basic concept is illustrated in
As previously noted, the count in the normal-phase counter 48 gives a coarse measure determined by the interval TNOR of the time interval ΔTtot. The interval TNOR is determined by the length of the phase regulator 50. The fine resolution TDC core 54 provides the fractional interval TR, which is represented by a binary number output by the register bank and encoder 46. The evaluator 52 collates the information from the three sources 48, 50, 54 and produces a final output representing the total time Ttot between the leading and triggering signals in the form of an output word QFin.
An alternative embodiment, which offers a 3-level switchable coarse/moderate/fine resolution, is shown in
The phase regulator 150 comprises a separate arbiter array 160 comprising a chain of D flip-flops 162 and a sub-set of delay elements 1361 . . . 136N of the delay chain 135. The last delay element 136N of the subset is followed by a NAND gate 180, which also serves as a delay element, that receives at its inputs the output of the last delay element 136N and the reference-retimed-by DCO (RRD) signal from pre-logic module 130 (described below) for achieving moderate resolution. In the moderate resolution mode the period TNOR is separated into five regions. The leading signal is applied to the phase regulator 150, which forms a 5-stage 16 ps resolution ring structure, and loops through in the same manner as shown in
In addition this embodiment comprises a 40-stage 2 ps resolution Vernier TDC core 154 comprising delay chains 135, 137 and flip-flops 142. The respective delay chains have incremental delays τ2 and τ1.
The normal-phase counter 148 offers an 80 ps resolution defined by the length of the phase regulator 150 comprising NAND gate 132 and delay elements 1361 . . . 136N. In this mode the measured time interval is determined by the count in the normal-phase counter 148, which is output as an 8-bit word, M.
The core circuit comprising NAND gate 132 and delay elements 1361 . . . 136N acts as a ring oscillator TDC giving a resolution of 16 ps, namely the delay introduced by each stage. This additional interval, namely the location within TNOR to a resolution equal to the delay of each stage of the delay chain, is output as a 5-bit word QM. Finally, with the 40-stage Vernier TDC core 154 enabled by fine gear enable input to NAND gate 134, the embodiment shown in
In this embodiment the rising edge of the leading signal (REF) enables the NAND gate 132, launching the run of the leading signal along the ring oscillator 132, 1361 . . . 136N.
The other input terminal of NAND gate 132 is high already. The leading signal starts travelling in the loop of the ring oscillator and it triggers the counting of the normal-phase counter 148 each time it completes a rotation (passes the last stage of the loop). The propagation along the ring will not stop until the triggering signal (RRD) appears. The counter 148 can tell how many rotations (M) of the leading signal has experienced around this ring structure. The time period of a single rotation around the ring is actually the normal-length phase (TNor), which is set to be 80 ps in this case. The number of the stages of the phase regulator can be 3 or 5 or 7 (odd) to make ring oscillator work correctly and efficiently. In this non-limiting example, the number of delay stages of the ring oscillator (Nring) is set to 5. The propagation delay of each stage of the inverter in the phase regulator (Δt_ring) can be found from the expression:
In this case the delay τ2 equals to Δtring.
The Vernier core 154 is not used during most of the phase detection operation, and is only used to measure the last fractional piece, TR. The arrival of the triggering signal (RRD) is used not only to start the run of the RRD signal along the fast path delay chain 137 but also to activate the sixth stage of the inverter in the slow path delay chain 135. The signal RRD controls NAND gate 180. At this point the triggering signal starts chasing the leading signal, and the position where the triggering signal just catches up with the leading signal is indicated by the transition of the arbiters' output QR. The number of stages of the Vernier TDC core (N_core) 154 is determined by the desired normal-length phase and the desired resolution:
The slow-path 135 inverter delay (τ2) and the fast-path 137 inverter delay (τ1) should be equal to 16 ps and 14 ps respectively. The final TDC output QFin can be determined by acquired the M, N=40 and QR.
Compared to the Vernier Ring TDC solution where two arrays of arbiters are needed for odd-rotation and even-rotation respectively, this solution only needs one array of arbiters due to the ring-less structure of the fast path. This means that the complexity of a 40-stage Vernier core in this solution is actually equivalent to that of a 20-stage Vernier ring solution.
Because the completion of the odd rotation corresponds to the falling edge of the input signal of the normal-phase counter and even rotation corresponds to the rising edge, the phase counter 148 should be a both-edge triggered counter to record each rotation of the signal. According to the phase detection range of 12.5 ns and 80 ps for TNor, the phase counter 148 may record 156 rotations maximum. Thus, an 8 bit normal-phase Counter, which has a maximum count of 256, is sufficient.
A block diagram of this embodiment as well as a timing chart illustrating the operation are shown in
Q
Fin
=M·40+Q
R
Usually a 40/6 bit thermometer-to-binary encoder is employed to convert QR from thermometer code to binary code. The complexity of the thermometer-to-binary encoder increases exponentially with the digit number of thermometer code; although it is already much simpler than that of a priority type decoder, which is commonly used in a Vernier Ring TDC due to the possibility of the presence of multiple fake transitions. However, a 40/6 bit thermometer-to-binary encoder is still viewed as a complicated conversion and deserving of further simplification into an 8/3 bit simple encoder by applying the coordinated-determination device in the evaluator.
As shown in
By reducing the processed bit number by 5 times (from 40 bits in QR<1:40>to 8 bits in Q′R<1:8>) the coordinated-determination device 197 not only facilitates the simplification of logic circuitry in the evaluator but also removes the possibility of the error due to the appearance of the fake transitions in other sections.
The multiplication arithmetic (M·Ncore) is implemented by an adder 194 that adds the output of 5-bit shifter 198 and 3-bit shifter 199. Because the number 40 is expressed as 101000 in binary format, and M is shifted by 3 bits and 5 bits respectively, and the two shifted numbers are added, the result is a 13-bit binary number for M·40. Finally, QFin will be determined by one more addition in adder 195 that adds M·40 and QR to give a total of 14 bits.
A still further embodiment is illustrated in
In the embodiment shown in
The separate Vernier TDC core 254 comprises delay chain 235 consisting of NAND gate 232 and inverter delay elements 2361 . . . 236N, and delay chain 237 NAND gate 234 and inverter delay elements 2861 . . . 286N. Arbiter array 240 comprises flip-flops 242.
As in the previous embodiments the pre-logic module generates the leading and triggering signals. The leading signal is applied to the phase regulator 250, and the number of loops that the leading signal passes through the chain 255 is counted by the normal-phase counter 248. The triggering signal is applied to the arbiter array 260 and to the input of the NAND gate 234 forming part of the 40-stage Vernier TDC core 254.
The normal-phase counter offers a resolution of 80 ps, namely the length of each cycle of the chain 255. The arbiter array acts as typical TDC and offers a resolution equal to the delay introduced by each stage, namely 16 ps. As in the
The output of the phase regulator 250 is applied to one input of the NAND gate 232 of the Vernier TDC core 254. The second input of the NAND gate 232 receives the leading signal from the pre-logic module 230. The triggering signal is also applied to an input of NAND gate 234, whose second input is an enable input.
The output of the chain 255 is applied to the input of chain 235. When an enable signal is asserted on the enable input of the NAND gate 234, the Vernier core 254 is activated and a 40-bit output with 2 ps resolution appears at the output of the arbiter array 240. The 40-bit word is taken from the Q-outputs of each flip-flop 242.
Because the phase regulator 250 is decoupled from the Vernier TDC core, this solution is easier to implement and offers a more flexible management of the device parameters. Embodiments of the invention offer a novel phase-scaled Vernier time-to-digital converter (TDC) architecture with a coarse/moderate/fine (80 ps/16 ps/2 ps) time resolution function is presented to achieve both large phase (time) detection range (32.7 ns in 14-bit) and fine time resolution (2 ps) as well as compact size and ultra-low power consumption simultaneously. The phase noise (caused by TDC) can also be improved allowing higher reference frequency compared to other types of TDC architectures. A phase-regulator has been created and embedded into a traditional Vernier TDC core circuitry for the purpose of separating a new-defined mandatory phase length (no longer than the normal-length phase, 80 ps) from the random phase (time) difference (up to 32 ns) to be measured. The mandatory phase length will be the only part for fine-resolution (2 ps) measurement and the rest of the phase length will be counted in coarse resolution (80 ps). The required number of stages of the traditional Vernier TDC core can be remarkably reduced from 6250 to 40 at a fixed 2 ps time resolution. Furthermore, compared to a typical Vernier ring TDC, the proposed architecture being combined with a reverse-triggered pre-logic unit and the coordinated-determination scheme facilitates a much simpler and faster determination procedure, which allows several times reduction of the power consumption as well as the raise of the reference frequency in order to achieve a 2-3 dB improvement of the phase noise performance.
It should be appreciated by those skilled in the art that any block diagrams herein represent conceptual views of illustrative circuitry embodying the principles of the invention. For example, a processor may be provided through the use of dedicated hardware as well as hardware capable of executing software in association with appropriate software. When provided by a processor, the functions may be provided by a single dedicated processor, by a single shared processor, or by a plurality of individual processors, some of which may be shared. Moreover, explicit use of the term “processor” should not be construed to refer exclusively to hardware capable of executing software, and may implicitly include, without limitation, digital signal processor (DSP) hardware, network processor, application specific integrated circuit (ASIC), field programmable gate array (FPGA), read only memory (ROM) for storing software, random access memory (RAM), and non volatile storage. Other hardware, conventional and/or custom, may also be included. The functional blocks or modules illustrated herein may in practice be implemented in hardware or software running on a suitable processor.
This application claims the benefit under 35 USC 119(e) of U.S. Provisional Application No. 62/398,693, filed Sep. 23, 2016, the contents of which are herein incorporated by reference.
Number | Date | Country | |
---|---|---|---|
62398693 | Sep 2016 | US |