Clock screening by programmable counter based clock interface and time to digital converter with high resolution and wide operating range
阅读说明:本技术 通过基于可编程计数器的时钟接口和具有高分辨率和宽操作范围的时间数字转换器进行时钟筛选 (Clock screening by programmable counter based clock interface and time to digital converter with high resolution and wide operating range ) 是由 吴争争 黄德平 J·M·辛里奇斯 M·佩德拉利-诺伊 于 2019-01-24 设计创作,主要内容包括:公开了一种分级时间数字转换器(110),TDC,其包括两个环形振荡器(205,210),该两个环形振荡器(205,210)用于确定两个时钟边沿之间的时间差。在一些实现方式中,TDC包括慢振荡器(205),其被配置为响应于第一时钟边沿而振荡慢振荡器输出信号;粗略计数器(220),其被配置为响应于慢振荡器输出信号的周期而对粗略计数进行计数;快振荡器(210),其被配置为响应于第二时钟边沿而振荡快振荡器输出信号;以及精细计数器(225),其被配置为响应于快振荡器输出信号的周期而对精细计数进行计数,其中快振荡器输出信号的频率大于慢振荡器输出信号的频率。(A hierarchical time-to-digital converter (110), TDC, is disclosed that includes two ring oscillators (205, 210), the two ring oscillators (205, 210) being used to determine a time difference between two clock edges. In some implementations, the TDC includes a slow oscillator (205) configured to oscillate a slow oscillator output signal in response to a first clock edge; a coarse counter (220) configured to count a coarse count in response to a period of the slow oscillator output signal; a fast oscillator (210) configured to oscillate a fast oscillator output signal in response to a second clock edge; and a fine counter (225) configured to count the fine counts in response to a period of the fast oscillator output signal, wherein a frequency of the fast oscillator output signal is greater than a frequency of the slow oscillator output signal.)
1. A time-to-digital converter for measuring time between a first clock edge and a second clock edge, comprising:
a slow oscillator configured to oscillate a slow oscillator output signal in response to the first clock edge;
a coarse counter configured to count a coarse count in response to a period of the slow oscillator output signal;
a fast oscillator configured to oscillate a fast oscillator output signal in response to the second clock edge; and
a fine counter configured to count a fine count in response to a period of the fast oscillator output signal, wherein a frequency of the fast oscillator output signal is greater than a frequency of the slow oscillator output signal.
2. The time-to-digital converter of claim 1, further comprising:
a phase detector configured to latch the coarse counter in response to detecting that the phase of the slow oscillator output signal leads the phase of the fast oscillator output signal.
3. The time-to-digital converter of claim 2, wherein the phase detector is further configured to latch the fine counter in response to the detecting.
4. A time to digital converter as recited in claim 1, wherein said fast oscillator is a first ring oscillator, and wherein said slow oscillator is a second ring oscillator.
5. A time to digital converter as recited in claim 4 wherein said first ring oscillator comprises a first set of at least three inverters and wherein said second ring oscillator comprises a second set of at least three inverters.
6. The time-to-digital converter of claim 1, further comprising:
a first current source configured to sink a first current before the first clock edge and not sink the first current after the first clock edge, wherein the first current is a replica of an operating current drawn by the slow oscillator; and
A second current source configured to sink a second current before the second clock edge and not to sink the second current after the second clock edge, wherein the second current is a replica of an operating current drawn by the fast oscillator.
7. The time-to-digital converter of claim 1, further comprising:
a clock interface configured to select from a plurality of clock signals to generate the first clock edge and the second clock edge.
8. The time to digital converter of claim 7, wherein the clock interface comprises a down converter configured to down convert a selected clock signal from the plurality of clock signals to generate the second clock edge.
9. The time to digital converter of claim 8, wherein the clock interface further comprises decision logic configured to enable clocking of a first selected flip-flop from a plurality of flip-flops by the first clock edge and to enable clocking of a second selected flip-flop from the plurality of flip-flops by the second clock edge.
10. The time to digital converter of claim 7, further comprising tuning logic configured to tune a first delay circuit for delaying a first clock signal having the first clock edge in response to a series of clock measurements.
11. A method, comprising:
oscillating a slow oscillator output signal in response to a first clock edge;
oscillating a fast oscillator output signal in response to a second clock edge subsequent to the first clock edge, wherein a frequency of the fast oscillator output signal is greater than a frequency of the slow oscillator output signal;
counting cycles of the slow oscillator output signal to count a coarse count;
counting cycles of the fast oscillator output signal to count fast counts; and
measuring a delay between a first clock edge and the second clock edge in response to a function of the coarse count and the fine count to form a measure of the delay.
12. The method of claim 11, further comprising:
measuring a cycle jitter of a clock signal having the first clock edge and the second clock edge in response to the measuring of the delay.
13. The method of claim 11, further comprising:
measuring K cycle period jitter of a clock signal having the first clock edge and the second clock edge in response to the measuring of the delay.
14. The method of claim 11, wherein the first clock edge is a rising edge of a clock signal and the second clock edge is a falling edge of the clock signal, the method further comprising: measuring a duty cycle of the clock signal in response to the measurement of the delay.
15. The method of claim 11, wherein the first clock edge is a clock edge of a reference clock signal, and wherein the second clock edge is a clock edge of a phase-locked loop (PLL) clock signal, the method further comprising: measuring a time internal error of the PLL clock signal in response to the measuring of the delay.
16. The method of claim 11, wherein the first clock edge is an edge of an early clock signal, and wherein the second clock edge is an edge of a late clock signal, the method further comprising: in response to the measurement of the delay, measuring a clock skew between the early clock signal and the late clock signal.
17. A digital phase locked loop, comprising:
an accumulator for determining a reference phase from a reference clock signal;
a loop filter configured to filter a phase error between the reference phase and a variable phase to generate a control word;
a digitally controlled oscillator for oscillating a clock output signal in response to the control word; and
a time-to-digital converter configured to measure a delay between a first clock edge of the clock output signal and a second clock edge of the reference clock signal to generate the variable phase, wherein the time-to-digital converter comprises a first ring oscillator and a second ring oscillator, the first ring oscillator configured to oscillate a first oscillator output signal in response to the first clock edge; the second ring oscillator is configured to oscillate a second oscillator output signal in response to the second clock edge, and wherein the time-to-digital converter is configured to measure the delay in response to a period of the first oscillator output signal and in response to a period of the second oscillator output signal.
18. The digital phase locked loop of claim 17 wherein the first ring oscillator comprises three inverters.
19. The digital phase locked loop of claim 17, wherein the second ring oscillator comprises three inverters.
20. The digital phase locked loop of claim 17, wherein the time-to-digital converter further comprises a phase detector for detecting when a phase of the first oscillator output signal leads a phase of the second oscillator output signal.
Technical Field
The present application relates to clock measurement, and more particularly to hierarchical (sub-ranging) time-to-digital clock measurement.
Background
Modern devices such as smartphones and tablets require very stringent clock performance standards for their various subsystems such as digital cores, data converters and frequency synthesizers. For example, the clock performance of the digital core must meet low cycle jitter and low duty cycle error. Also, the data converter requires a clock signal with low absolute jitter (time internal error (TIE)). In addition, frequency synthesizers require clock signals with low phase noise and reduced fractional spurs. Emerging self-driving automotive applications also require stringent clock performance.
To ensure that such stringent clock performance standards are maintained, modern devices often incorporate on-chip clock screening for automatic monitoring purposes or for immediate monitoring purposes. However, conventional clock screening techniques do not address all of the various clock measurement modes, such as cycle jitter, K-cycle jitter, TIE jitter, duty cycle variations, clock skew, and the like. One difficulty that hinders the conventional approach from providing a circuit with uniform clock performance is as follows: this universal clock performance screening requires high resolution, wide input frequency range, and high robustness at the same time. In an attempt to meet these different requirements, existing designs typically employ delay cells to implement time-to-digital (TDC) converters for clock jitter and clock skew measurements. However, meeting high resolution and wide input frequency range requires the use of a large number of delay cells of a conventional flash TDC or Vernier TDC architecture, which occupies a large chip area and increases power consumption. Moreover, such multiple delay cells are prone to handle variations, thereby reducing test robustness and producing erroneous clock screening results.
Accordingly, there is a need in the art for a clock screening circuit that includes a time-to-digital converter that is insensitive to process variations and also includes a clock interface that supports multiple modes for screening various clock performance metrics.
Disclosure of Invention
To provide increased accuracy and frequency input range, a hierarchical time-to-digital converter (TDC) is disclosed that measures a time difference between a first clock edge and a second edge of a clock signal using a fine count and a coarse count. The TDC includes a slow oscillator that begins oscillating a slow oscillator output signal in response to a first clock edge. The coarse counter counts a coarse count in response to the slow oscillator output signal. The TDC also includes a fast oscillator that begins oscillating the fast oscillator output signal in response to a second clock edge, which may arrive later or earlier than the first clock edge. The fine counter counts the fine count in response to the fast oscillator output signal. The TDC may be integrated into a clock measurement circuit that may make a wide variety of clock measurements, such as cycle jitter measurements, K-cycle jitter measurements, duty cycle measurements, Time Internal Error (TIE) measurements, and clock skew measurements. These and other advantageous features will be better appreciated from the following detailed description.
Drawings
Fig. 1 is a block diagram of a clock measurement circuit according to one aspect of the present disclosure.
Fig. 2A is a circuit diagram of a time-to-digital converter (TDC) according to one aspect of the present disclosure.
Figure 2B is a timing diagram of the slow oscillator output signal, the fast oscillator output signal, and the latch command of the TDC of figure 2A.
Figure 3 is a circuit diagram of a stabilized power architecture of the TDC of figure 2A.
Fig. 4A is a circuit diagram for a clock interface circuit according to one aspect of the present disclosure.
Fig. 4B is a timing diagram of a PLL clock signal and two clock edges selected from the PLL clock signal by the clock interface circuit of fig. 4B.
Figure 5A is a graph of ideal TDC output as a function of TDC input.
Figure 5B is a graph of actual TDC output as a function of TDC input.
Figure 6 is a circuit diagram of a TDC including a tunable digital-to-time converter (DTC) for improved linearity according to one aspect of the present disclosure.
Figure 7 illustrates three example histograms recorded by the TDC of figure 6.
Figure 8 is a block diagram of an all-digital phase-locked loop (PLL) including a TDC in accordance with one aspect of the present disclosure.
The implementations of the present disclosure and their advantages are best understood by referring to the following detailed description. It should be appreciated that like reference numerals are used to identify like elements illustrated in one or more of the figures.
Detailed Description
Turning now to the drawings, FIG. 1 shows a clock measurement circuit 100 (which may also be referred to as a built-in self test (BIST) circuit). The
One of the clock edges selected by clock interface 105 will lead the remaining selected clock edges. The delay between these two selected clock edges is measured by a time-to-digital converter (TDC) 110. As further explained herein, the TDC110 is formed using a hierarchical architecture that includes a pair of ring oscillators (not shown in fig. 1), each including at least three inverters. Thus, the TDC110 is compact, but achieves high resolution over a wide input frequency range. The controller 115 controls the clock interface 105 and the TDC110 and their interaction. The output of the TDC110 is a digital bit corresponding to a measurement of the delay between two clock edges. The processing of such digits into various clock measurements is known to those of ordinary skill in the clock measurement art and will not be discussed herein. It should be appreciated, however, that a post-processing controller (not shown) may receive the digital output from the TDC110 and process it into a desired measurement such as clock skew, cycle jitter, etc.
Figure 2A shows the TDC110 in more detail. As discussed above, the clock interface 105 of fig. 1 has selected two clock edges from the clock signal it receives as a function of the desired clock measurement. The clock edge type (rising or falling) also depends on the desired clock measurement. For example, a period jitter measurement or a K-period jitter measurement may include selecting two rising clock edges such as shown in fig. 2A. Alternatively, two falling clock edges may be selected for such measurement. The selected clock signal edge that leads the remaining selected clock edges is represented in FIG. 2A as the CLK early signal, while the lagging selected clock signal edge is represented as CLK late. The rising edge of the CLK-early signal triggers the
The slow oscillator output signal clocks the
Fig. 2B shows an example timing diagram of a slow oscillator output signal (which is referred to as OSC slow) and a fast oscillator output signal (which is referred to as OSC fast). The delay Δ t (fig. 2A) between the CLK early signal and the CLK late signal is equal to the sum of the coarse delay (Δ tcoarse) and the fine delay (Δ tfine). To distinguish between the periods of the slow and fast oscillator signals, the period of the slow oscillator output signal is denoted herein as Tslow, while the period of the fast oscillator output signal is denoted herein as Tfast. In fig. 2B, the slow oscillator output signal oscillates through two Tslow periods before the rising edge of the fast oscillator output signal plus a fraction of another Tslow period. The total delay deltat is equal to two Tslow periods plus this additional part of the Tslow period. The coarse count Ncoarse is equal to an integer number of Tslow periods between the CLK early edge and the CLK late edge. Thus, it can be seen that the delay Δ t is equal to Ncoarse Tslow + Nfine (Tslow-Tfast). Note that in an alternative implementation,
Prior to the clock measurement, controller 115 may calibrate the desired ratio between Tslow and Tfast, such as by comparison to a reference clock signal. For example, the controller 115 may count the number of oscillation cycles of the
The time measurement made by the
As discussed with respect to fig. 2, the
Fig. 4A shows the clock interface 105 in more detail. Down counter 405 responds to the enable signal by updating a Q signal bus (counter signal, typically represented in binary) that is clocked by the selected clock signal. As discussed with respect to fig. 1, the clock interface 105 may select from among a plurality of clock signals depending on a clock measurement mode. For example, the clock interface 105 may include a clock multiplexer (not shown) that selects the appropriate clock signal to clock the flip-flops in the down counter 405. In a K-cycle jitter measurement, clock edges that are K cycles apart are tracked by the down counter 405 and detected by the decision logic 412 for selection so that the time delay Δ t between them can be measured by the
In addition to flip-flops 420 and 425, decision logic 412 may assert enable signals to output flip-flops 415 and 430. The enabling of a given one of the flip-flops is dependent on the clock measurement. For example, in duty cycle measurement of the PLL clock signal, decision logic 412 may enable output flip-flops 415 and 420. The output flip-flop 420 is clocked by the rising edge of the PLL clock signal. In such duty cycle measurements, the down counter 405 may be bypassed or the down counter 405 may be included, with only one of its flip-flops selected. Thus, the output flip-flop 420 will register a binary one value in response to the rising edge of the PLL clock signal. The TDC 110 (fig. 1) receives the asserted output from the output flip-flop (flip-flow)420 as a first clock edge. The falling edge of the PLL clock signal clocks the output flip-flop 415, so the output flip-flop 415 will assert its output in response to the falling edge of the PLL clock signal, which occurs after the rising edge that clocks the output flip-flop 420. The
In jitter measurement (period or K-period jitter measurement), the output flip-flop 420 is triggered by the first edge of the selected clock signal. In a K-cycle jitter measurement, the down counter 405 and decision logic 412 may select a rising edge K cycles after being asserted by the output flip-flop (flip-flow) 405. For example, as shown in the timing diagram of fig. 4B, a rising edge of the PLL clock signal at time t1 may trigger the output flip-flop 420. The delay controlled by the down counter 405 and the decision logic 412 in the K-cycle jitter measurement depends on an integer number K of clock cycles. In a K-cycle measurement of K-4, the down counter 405 is configured to select a rising edge at time t2 four clock cycles after time t 1. The
The hierarchical measurement by the
However, such a linear relationship between the input and output of the
To avoid discontinuities in the desired linear relationship between the input and output of the
As the name implies, the histogram based fine quantizer level detector and DTC tuning logic 605 observes the output of the TDC110 through a series of measurements, such that the resulting histogram reveals whether the fine quantizer output of the TDC110 occurs within the desired ratio _ c2f/2 range for the corresponding coarse quantizer interval. For example, the fine quantizer range within the coarse quantizer interval may be divided into 3 regions: a start interval ranging from 0 to.3 ratio _ c2f, a center interval ranging from 0.3 ratio _ c2f to 0.7 ratio _ c2f, and a final interval ranging from 0.7 ratio _ c2f to ratio _ c2 f. It will be appreciated that each coarse quantizer increment or count may be divided into such fine quantizer intervals. Also, note that the boundary values of the fine quantizer interval may differ from the example just given. Additionally, in some implementations, the number of such fine quantizer intervals may be greater than 3. Regardless of the exact boundaries between the fine quantizer intervals in each coarse quantizer increment, there will be one or more center intervals that define the expected values of the fine quantizer levels.
For three histograms of fine quantizer counts, fig. 7 shows some representative fine quantizer intervals for coarse quantizer increments. In each histogram, the starting and final intervals of coarse quantizer increments are designated as undesired regions, while the center interval of the same coarse quantizer increment is designated as the desired region. Each histogram is obtained from a series of repeated clock measurements. In the first histogram 700, the fine quantizer counts all occur in the desired region. As shown in fig. 7, there may be no reason to tune the DTC 610 of fig. 6 that gives such histogram results, because the output of the TDC110 is avoiding discontinuities in its input-output relationship.
The
Although the
It will be appreciated by those of ordinary skill in the art that various modifications and applications may be made to the staged TDC discussed herein. Thus, it should be appreciated that many modifications, substitutions, and variations may be made in the materials, apparatus, configurations, and methods of use of the devices of the present disclosure without departing from the scope of the disclosure. In view of this, because the particular implementations illustrated and described herein are by way of example only, the scope of the present disclosure should not be limited by their scope, but rather should be fully commensurate with the scope of the appended claims and their functional equivalents.
- 上一篇:一种医用注射器针头装配设备
- 下一篇:半导体装置