Time-to-digital converter, delay measurement method and digital phase-locked loop
Through a hierarchical time-digital converter and a robust power architecture, the contradiction between high resolution and wide frequency range in traditional clock screening technology is solved, and high accuracy and robust clock performance screening is achieved, which is suitable for the demanding clock performance requirements of modern equipment. .
Patent Information
- Application Number
- CN202411316223.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2018-02-23
- Filing Date
- 2019-01-24
- Publication Date
- 2024-12-17
AI Technical Summary
Traditional clock screening technology cannot meet the high resolution, wide input frequency range and high robustness at the same time, resulting in inaccurate clock performance screening results, occupying a large amount of chip area and increasing power consumption.
The time-digital converter (TDC) is used to measure the time difference of the clock signal through fine counting and coarse counting. Combined with slow oscillator and fast oscillator, it supports measurement modes of a variety of clock performance indicators, including periodic jitter, K-period jitter, and occupation. The empty ratio and clock skew are designed, and a robust power architecture and a tunable digital time converter are designed.
It realizes clock measurements with high resolution and wide input frequency range in compact areas, improves the accuracy and robustness of clock performance screening, reduces system errors and discontinuities, and adapts to changes in frequency input range.
Smart Images

Figure CN119148493A_ABST
Abstract
Description
[0001] This application is a divisional application of an invention patent application with an application date of January 24, 2019, a priority date of February 23, 2018, an application number of 201980014849.5, and an invention name of “Time-to-digital converter, delay measurement method and digital phase-locked loop”.
[0002] Priority claim
[0003] This patent application claims priority to application number 15 / 904,124, entitled “Clock Screening via Programmable Counter-Based Clock Interface and Time-to-Digital Converter with High Resolution and Wide Operating Range,” filed on February 23, 2018, and assigned to the assignee of the present application, and is expressly incorporated herein by reference. Technical Field
[0004] The present application relates to clock measurement, and more particularly to sub-ranging time digital clock measurement. Background Art
[0005] 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 period jitter and low duty cycle error. Similarly, data converters require clock signals 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 car applications also require stringent clock performance.
[0006] To ensure that such demanding clock performance standards are maintained, modern devices typically incorporate on-chip clock screening for either automated or real-time monitoring purposes. However, conventional clock screening techniques are unable to address all of the various clock measurement modes, such as period jitter, K-period jitter, TIE jitter, duty cycle variation, clock skew, and the like. One difficulty that prevents conventional approaches from providing a uniform clock performance circuit is as follows: Such 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 a time-to-digital (TDC) converter 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 using conventional flash TDC or Vernier TDC architectures, which consumes a large amount of chip area and increases power consumption. Moreover, such multiple delay cells are prone to processing variations, thereby reducing test robustness and producing erroneous clock screening results.
[0007] Therefore, 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 indicators. Summary of the invention
[0008] In order to provide increased accuracy and frequency input range, a hierarchical time digital converter (TDC) is disclosed that measures the 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 the 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 can be integrated into a clock measurement circuit that can perform a wide variety of clock measurements, such as period jitter measurement, K period jitter measurement, duty cycle measurement, time internal error (TIE) measurement, and clock skew measurement. These and other advantageous features can be better appreciated through the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 is a block diagram of a clock measurement circuit according to one aspect of the present disclosure.
[0010] Figure 2A is a circuit diagram of a time-to-digital converter (TDC) according to one aspect of the present disclosure.
[0011] Figure 2B yes Figure 2A Timing diagram of the slow oscillator output signal, fast oscillator output signal and latch command of the TDC.
[0012] Figure 3 yes Figure 2A Circuit diagram of the stable power architecture of the TDC.
[0013] Figure 4A is a circuit diagram for a clock interface circuit according to one aspect of the present disclosure.
[0014] Figure 4B is the PLL clock signal and is passed through Figure 4B Timing diagram of the clock interface circuit selecting two clock edges from the PLL clock signal.
[0015] Figure 5A is a graph of the ideal TDC output versus TDC input.
[0016] Figure 5B is a graph of actual TDC output versus TDC input.
[0017] 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.
[0018] Figure 7 Picture shows Figure 6 Three example histograms recorded by the TDC.
[0019] Figure 8 is a block diagram of a fully digital phase-locked loop (PLL) including a TDC according to one aspect of the present disclosure.
[0020] 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 accompanying drawings. DETAILED DESCRIPTION
[0021] Now, turning to the attached figure, Figure 1 A clock measurement circuit 100 (which may also be referred to as a built-in self-test (BIST) circuit) is shown. The clock measurement circuit 100 includes a clock interface 105 that supports multiple clock screening operation modes, such as period jitter measurement, K period jitter measurement, duty cycle measurement, clock skew, and time internal error (TIE) measurement. The clock interface 105 is quite advantageous because the traditional need for multiple clock measurement circuits for such different clock test modes is eliminated. Depending on the measurement mode, the clock interface 105 will select two clock edges from one or more input clock signals. For example, the clock interface 105 can select a phase-locked loop (PLL) clock signal to perform period jitter measurement, duty cycle measurement, and K period jitter measurement, as will be further explained herein. It should be appreciated that the PLL clock signal can be replaced by other clock signals being measured, such as a delay locked loop (DLL) clock signal or other suitable clock source. In clock skew measurement, the clock interface 105 selects a first clock edge of a clock signal such as received from a clock tree output node and a second clock edge of another clock signal such as received from another clock tree output node. The first clock edge or the second clock edge may be earlier than the remaining clock edge of the first clock edge and the second clock edge. Therefore, depending on whether the first clock edge is earlier or later than the second clock edge, the resulting time digital measurement may measure a positive time difference or a negative time difference between the two clock edges. To perform the TIE measurement, the clock interface 105 selects an edge of a clock signal such as a PLL clock signal and an edge of a reference clock signal (Ref CLK) such as a crystal oscillator signal.
[0022] One of the clock edges selected by the clock interface 105 will lead the remaining selected clock edge. The delay between the two selected clock edges is measured by a time-to-digital converter (TDC) 110. As further explained herein, the TDC 110 is formed using a hierarchical architecture that includes a pair of ring oscillators ( Figure 1 100 and 106. In the embodiment of the present invention, the TDC 110 is a clock interface 105 (not shown), each ring oscillator includes at least three inverters. Therefore, the TDC 110 is compact but achieves high resolution over a wide range of input frequencies. The controller 115 controls the clock interface 105 and the TDC 110 and their interaction. The output of the TDC 110 is a digital bit corresponding to the measurement of the delay between two clock edges. It is known to those of ordinary skill in the art of clock measurement to process such digital bits into various clock measurements, so this will not be discussed herein. However, it should be appreciated that a post-processing controller (not shown) may receive the digital output from the TDC 110 and process it into a desired measurement result such as clock skew, period jitter, etc.
[0023] Figure 2A The TDC 110 is shown in more detail. As discussed above, Figure 1 The clock interface 105 has selected two clock edges from the clock signal it receives based on 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 a period jitter measurement such as Figure 2A The two rising clock edges shown. Alternatively, two falling clock edges can be selected for this measurement. The selected clock signal edge that leads the remaining selected clock edges is Figure 2A denoted as CLK early signal, and the delayed selected clock signal edge is denoted as CLK late. The rising edge of the CLK early signal triggers the slow oscillator 205 to begin oscillating, such as in response to assertion of the enable signal En1 at the rising edge. As the name implies, the slow oscillator 205 oscillates more slowly than the fast oscillator 210, which is triggered to oscillate by the rising edge of the CLK late signal (such as by the corresponding assertion of the enable signal En2). Depending on the delay (Δt) between the CLK early edge and the CLK late edge, the slow oscillator 205 oscillates the slow oscillator output signal for a certain number of oscillation cycles before triggering the fast oscillator 210 to oscillate its fast oscillator output signal.
[0024] The slow oscillator output signal clocks the coarse counter 220 to begin counting cycles of the slow oscillator output signal, while the fast oscillator output signal clocks the fine counter 225 to begin counting cycles of the fast oscillator output signal. When the fast oscillator 210 begins to oscillate, the first cycle of the fast oscillator output signal typically lags in phase behind the slow oscillator output signal from the slow oscillator 205. The fast oscillator output signal will then take a certain number of oscillation cycles before the slow oscillator output signal lags behind the fast oscillator output signal. The phase detector 215 detects when the fast oscillator output signal catches up and begins to lead the slow oscillator output signal in phase, and triggers the coarse counter 220 and the fine counter 225 to latch their counts. The latched count of the fine counter 225 may be designated as Nfine.
[0025] Figure 2B 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) is shown. The delay Δt ( Figure 2A ) is equal to the sum of the coarse delay (Δtcoarse) and the fine delay (Δtfine). In order to distinguish the periods of the slow oscillator signal and the fast oscillator signal, the period of the slow oscillator output signal is denoted as Tslow in this article, and the period of the fast oscillator output signal is denoted as Tfast in this article. Figure 2B , the slow oscillator output signal oscillates through two Tslow cycles plus a fraction of another Tslow cycle before the rising edge of the fast oscillator output signal. The total delay Δt is equal to two Tslow cycles plus this additional portion of the Tslow cycle. The coarse count Ncoarse is equal to the integer number of Tslow cycles between the early edge of CLK and the late edge of CLK. Therefore, it can be seen that the delay Δt is equal to Ncoarse*Tslow+Nfine*(Tslow-Tfast). Note that in an alternative implementation, the coarse counter 220 can be latched in response to the late edge of CLK. In this implementation, Ncoarse is equal to the count latched by the coarse counter 220. As Figure 2B As shown, if the coarse counter 220 is latched together with the fine counter 215, the TDC 110 can adjust the count latched by the coarse counter 220 accordingly to obtain Ncoarse. If the delay Δt processed by the TDC 110 is negative, the fast oscillator 210 starts earlier than the slow oscillator 205. Then, the same as in Figure 2B The counts from the coarse counter 220 and the fine counter 225 are collected in a manner similar to that shown to resolve negative time differences relative to the TDC input Δt. Figure 2BIn the counter latching method, the sign of the difference between the counter 220 and the counter 225 after latching indicates the polarity of the input Δt.
[0026] Prior to clock measurement, the controller 115 may calibrate the desired ratio between Tslow and Tfast, such as by comparing with a reference clock signal. For example, the controller 115 may count the number of oscillation cycles of the slow oscillator 205 and the fast oscillator 210 in one or more reference clock cycles. The controller 115 will then adjust the frequency tuning word of the slow oscillator 205 and / or the frequency tuning word of the fast oscillator 210 to enforce the desired relationship between Tslow and Tfast and their absolute values.
[0027] The time measurements made by TDC 110 should be robust to voltage variations of its supply voltage. Variations from the chip supply or from the current drawn by slow oscillator 205 and fast oscillator 210 may cause the supply voltage of TDC 110 to fluctuate, which affects the accuracy of the desired clock measurement. Figure 3 A robust power supply scheme for TDC 110 is shown. Oscillator power domain 315 supplies power to slow oscillator 205 and fast oscillator 210 based on oscillator supply voltage Vreg_out from linear regulator 305, which is isolated from chip power and smoothed by decoupling capacitor Cdecap. Linear regulator 305 converts its own regulator supply voltage Vdd_IP to supply and regulate oscillator supply voltage Vreg_out. However, regulator supply voltage Vdd_IP is affected by package and chip parasitics 310 as represented by parasitic inductance Lpar and parasitic capacitance Rpar. In order to prevent package and chip parasitics 310 from causing oscillator supply voltage Vreg_out to drop suddenly when slow oscillator 205 and fast oscillator 210 begin to oscillate, oscillator power domain 315 includes virtual current source loads 320 and 315. Virtual current source load 320 is configured to draw the same current as that drawn by slow oscillator 205. Note that the slow oscillator 205 may include as few as three inverters 330 arranged to form a ring oscillator. This is quite advantageous compared to the typically greater number of delay circuits required for conventional TDC designs. Likewise, the fast oscillator 210 is formed using three inverters 335 arranged to form a ring oscillator. The virtual current source load 325 is configured to draw the same current as that drawn by the fast oscillator 210.
[0028] As discussed with respect to FIG. 2 , TDC 110 measures the time delay Δt between two clock edges. Figure 3 In the example, the two clock edges are denoted as Clk1 and Clk2. Figure 32, these two clock edges are shown as directly driving their corresponding oscillators (fast or slow) without the intermediate enable signals En1 and En2 discussed with respect to FIG. 2. The rising edge of the Clk1 signal causes the slow oscillator 205 to start oscillating and draw its operating current. Before the rising edge arrives, the virtual current source load 320 absorbs a replica of the operating current. The virtual current source load 320 is configured to stop absorbing the replica operating current in response to the rising edge of the Clk1 signal. Therefore, because there is no need for a sudden current to trigger the slow oscillator 205, triggering the slow oscillator 205 will not interfere with the oscillator supply voltage. Similarly, the virtual current source load 235 absorbs a replica of the operating current drawn by the fast oscillator 210, and is configured to stop absorbing the replica operating current in response to the rising edge of the Clk2 signal. Therefore, triggering the fast oscillator 210 will not cause a sudden current to be required that can interfere with the oscillator supply voltage Vreg_out. In this manner, the clock measurements described herein may be robust to supply voltage variations such as those caused by package and chip parasitics 310 .
[0029] Figure 4A The clock interface 105 is shown in more detail. The down counter 405 responds to the enable signal by updating the Q signal bus (usually a counter signal represented in binary) clocked by the selected clock signal. Figure 1 As discussed, the clock interface 105 may select from a plurality of clock signals depending on the 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 circuit 412 for selection so that the time delay Δt between them can be measured by the TDC 110. A series of K flip-flops within the down counter 405 form a binary counter in which the Q signal bus reports a count value in response to a selected clock signal. The decision logic circuit 412 detects the Q signal and asserts an enable signal and a D input signal to the flip-flops 420 and 425 to generate clock edges that are K cycles apart. This process repeats itself periodically when the down counter 405 is set to flip and run continuously. Figure 4A In FIG. 4 , it is assumed that the clock multiplexer selects the PLL clock signal (pll_clk) so that the down counter 405 is clocked by the PLL clock signal, but it should be appreciated that the selected clock signal may be different in alternative implementations, depending on the clock measurement mode.
[0030] In addition to flip-flops 420 and 425, decision logic circuit 412 may assert enable signals to output flip-flops 415 and 430. The enabling of a given one of these flip-flops depends on the clock measurement. For example, in a duty cycle measurement of a PLL clock signal, decision logic 412 may enable output flip-flops 415 and 420. Output flip-flop 420 is clocked by the rising edge of the PLL clock signal. In such a duty cycle measurement, down counter 405 may be bypassed or included with only one of its flip-flops selected. Thus, output flip-flop 420 will register a binary one value in response to a rising edge of the PLL clock signal. TDC 110( Figure 1 ) receives the asserted output from the output flip-flow 420 as the first clock edge. The falling edge of the PLL clock signal clocks the output flip-flow 415, so the output flip-flow 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-flow 420. The TDC 110 receives the asserted output from the output flip-flow 415 as the second clock edge. In this duty cycle measurement, the delay ΔT between the two clock edges is equal to the on-time or pulse width of the PLL output clock signal. The duty cycle measurement is accomplished by forming a ratio between the pulse width and the period of the PLL clock signal.
[0031] In jitter measurement (cycle or K-cycle jitter measurement), the output flip-flow 420 is triggered by the first edge of the selected clock signal. In K-cycle jitter measurement, the down counter 405 and the decision logic circuit 412 can select the rising edge within K cycles after the output flip-flow 405 is asserted. For example, Figure 4BAs shown in the timing diagram of , the 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 circuit 412 in the K-cycle jitter measurement depends on an integer number of clock cycles. In the K-cycle measurement with K=4, the down counter 405 is configured to select the rising edge at time t2 within four clock cycles after time t1. Then, the TDC 110 will measure the delay between time t1 and t2 to perform this K-cycle jitter measurement. In contrast, in the period jitter measurement, the output flip-flop 425 is enabled to capture the first rising edge after time t1. In the TIE measurement mode, the reference clock signal (ref_clk) clocks the output flip-flop 430 to capture the rising edge of the reference clock signal. Then, the output flip-flop 425 will capture the appropriate edge of the PLL clock signal to complete the selection of the two clock edges of the TDC 110 in the TIE measurement. In the clock skew measurement, a similar output flip-flop (not shown) is enabled to capture the appropriate edge. Therefore, it should be appreciated that output flip-flops 415-430 are merely representative of output flip-flops that may be included in clock interface 105. An output clock multiplexer (not shown) will then select the output signal from the appropriate output flip-flops to present the two selected clock edges to TDC 110.
[0032] The hierarchical measurements made by TDC 110 solve the conflicting prior art problem of providing increased resolution over a wide input frequency range while maintaining a compact footprint and low circuit complexity. However, the accuracy of its measurements depends on the proper relationship between the period of fast oscillator 210, the period of slow oscillator 205, and the TDC input pattern. For an implementation in which the period of the fast oscillator output signal is five times faster than the period of the slow oscillator signal, the ideal relationship results in a linear relationship between the input and output of TDC 110, such as Figure 5A As shown. Rough counter 220 ( Figure 2A ) will increment a single coarse quantizer integer step size within which the fine counter 225 ( Figure 2A ) will count five times. Since the slow oscillator output signal and the fast oscillator output signal are perfectly combined with knowledge of the exact period, the final output of the TDC 110 (which is designated as the sum of the coarse quantizer and the fine quantizer) is linear over the input range of 0 to 20.
[0033] However, due to system errors and non-idealities, such a linear relationship between the input and output of TDC 110 is difficult to achieve. For example, for one implementation, Figure 5BThe nonlinear relationship between input and output is shown, where ideally, the period of the fast oscillator output signal is exactly 1 / 20 of the period of the slow oscillator output signal. However, due to non-ideality, the periods of the slow oscillator 205 and the fast oscillator 210 obtained after calibration have a finite error compared to their ideal values. In a commonly encountered situation, starting from an input level of zero, the output of the TDC 110 (at Figure 5B The output of the TDC 110 is a function of the time difference between the coarse and fine quantizers. The TDC 110 output ... Figure 5B In contrast, if the input to be measured occurs in the middle of a coarse quantizer increment (such as for an input range of approximately 85 to 95, as Figure 5B ), the desired linear relationship between input and output is preserved.
[0034] To avoid discontinuities in the desired linear relationship between the input and output of TDC 110, the Figure 6 The TDC 110 is configured as shown. The functions of the slow oscillator 205, the fast oscillator 210, the phase detector 215, the coarse counter 220 and the fine counter 220 are as described with reference to FIG. Figure 2A and Figure 3 discussed. However, a selected clock edge (which is designated as CK_in1) that triggers the slow oscillator 205 is selectively delayed in a delay circuit, which may also be designated as a digital to time converter (DTC) 610. The histogram-based fine quantizer level detector and DTC tuning logic circuit 605 tunes the DTC 610 using a first tuning code (Tune Code1) based on the fine quantizer output from the fine quantizer 225 and the ratio (ratio_c2f) between the fine quantizer step size and the coarse quantizer step size. The ratio may be known from the calibration of the slow oscillator 205 and the fast oscillator 210 discussed previously. The maximum fine quantizer value or output is equal to the ratio ratio_c2f. Therefore, the ideal region for the TDC input is when the fine quantizer 220 counts to approximately half of the ratio_c2f. Referring again to Figure 5B , this fine quantizer level produces an input-output relationship of the TDC 110 that avoids discontinuous regions.
[0035] As the name implies, the histogram-based fine quantizer level detector and DTC tuning logic circuit 605 observe the output of TDC 110 through a series of measurements, so that the resulting histogram reveals whether the fine quantizer output of TDC 110 occurs within the expected ratio_c2f / 2 range of the corresponding coarse quantizer interval. For example, the fine quantizer range within the coarse quantizer interval can be divided into 3 areas: the starting interval ranging from 0 to .3*ratio_c2f, the central interval ranging from 0.3*ratio_c2f to 0.7*ratio_c2f, and the final interval ranging from 0.7*ratio_c2f to ratio_c2f. It should be appreciated that each coarse quantizer increment or count can be divided into such a fine quantizer interval. Moreover, it is noted that the boundary values of the fine quantizer interval may be different from the example just given. In addition, in some implementations, the number of such fine quantizer intervals can 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 central intervals that define the expected values of the fine quantizer levels.
[0036] For the three histograms of fine quantizer counts, Figure 7 Some representative fine quantizer intervals of coarse quantizer increments are shown. In each histogram, the beginning interval and the final interval of the coarse quantizer increment are designated as the undesirable region, 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. Figure 7 As shown, since the output of TDC 110 is avoiding discontinuities in its input-output relationship, there may be no reason to consider the output of the TDC 110 given this histogram result. Figure 6 DTC 610 is tuned.
[0037] A histogram 705 for the fine quantizer counts results in all counts being in an initial undesired region. In response to such a histogram result, the histogram-based fine quantizer level detector and DTC tuning logic circuit 605 can adjust the first tuning code so that the DTC 610 sufficiently adjusts the delay of the first clock edge so that subsequent histogram measurements are made with fine quantizer counts made in the desired region. This increase in time difference at the TDC input is suitable for converting the fine quantizer counts from an initial undesired range to a desired range. Conversely, the histogram 710 results in the fine quantizer counts occurring within a final undesired range so that the histogram-based fine quantizer level detector and DTC tuning logic circuit 605 can adjust the first tuning code so that the DTC 610 achieves a reduction in time difference at the TDC input. This reduction moves the resulting fine quantizer counts into the desired region. Referring again to Figure 6 Note that the histogram-based fine quantizer level detector and DTC tuning logic circuit 605 can also tune the DTC 615 to adaptively delay the second clock edge (which is referred to as CK_in2) through the second tuning signal Tune code2. This additional tuning is optional.
[0038] Although TDC 110 has been discussed herein with respect to clock measurement applications, it should be appreciated that the increased resolution and wide input range of TDC 110 may be advantageously utilized in other circuits requiring such wide range and accurate digital measurements of time. Figure 8 The illustrated digital phase-locked loop 800 may include a TDC 110 to compare an output clock signal CKV with a reference clock signal FREF to provide a variable phase output, which is a digital word representing the phase difference between corresponding edges of the output clock signal CKV and the reference clock signal. An accumulator 805 generates a reference phase in response to a frequency control word (FCW) and a reference clock signal. A loop filter 810 filters a phase error equal to the difference between the reference phase and the variable phase to generate a digital control word that controls the oscillation frequency of a digitally controlled oscillator (DCO) 815, thereby controlling the frequency of the output clock signal CKV. Because the general jitter is much smaller than the coarse quantizer increment, the DTC adjustment of the TDC 110 in the digital PLL 800 works well. The accidental output of the TDC 110 affected by the systematic error is filtered out by the loop filter 800. Since the relative phase between the reference clock signal and the DCO clock signal (not shown) is finally adjusted, once lock is obtained, the loop feedback in the digital PLL 800 compensates for the error due to the adjustment of the DCO clock signal (not shown). Figure 6 and Figure 7Phase detection offset caused by the discussed DTC adjustment. Because the digital PLL 800 does not need to rely on oversampling and noise shaping, its bandwidth is advantageously higher, thereby helping to filter DCO noise and facilitating fast settling and tracking.
[0039] It will be appreciated by those skilled in the art that a variety of modifications and applications may be made to the hierarchical TDC discussed herein. It will therefore be appreciated that many modifications, substitutions and variations may be made to the materials, devices, configurations and methods of use of the apparatus of the present disclosure without departing from the scope of the present disclosure. In view of this, because the specific implementations illustrated and described herein are by way of example only, the scope of the present disclosure should not be limited to their scope, but rather should be fully commensurate with the scope of the appended claims and their functional equivalents.
Claims
1. A time-to-digital converter for measuring the 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 said 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; a fine counter configured to count a fine count in response to a period of the fast oscillator output signal, wherein the frequency of the fast oscillator output signal is greater than the frequency of the slow oscillator output signal; a first current source coupled to a power supply node for the slow oscillator and configured to selectively sink a first current from the power supply node for the slow oscillator; as well as A second current source is coupled to a power supply node for the fast oscillator and is configured to selectively sink a second current from the power supply node for the fast oscillator.
2. The time-to-digital converter according to claim 1, further comprising: A phase detector is configured to latch the coarse counter in response to detecting that a phase of the slow oscillator output signal leads a 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 detection. 4 . The time-to-digital converter of claim 1 , wherein the first ring oscillator comprises a first set of at least three inverters, and wherein the second ring oscillator comprises a second set of at least three inverters. 5 . The time-to-digital converter of claim 1 , wherein the first current source is further configured to sink the first current before the first clock edge.
6. The time-to-digital converter of claim 1, wherein the first current is a replica of the current drawn by the slow oscillator. 7 . The time-to-digital converter of claim 1 , wherein the second current source is further configured to sink the second current before the second clock edge.
8. The time-to-digital converter of claim 1, wherein the second current is a replica of the current drawn by the fast oscillator.
9. The time-to-digital converter of claim 1, further comprising a tuning logic circuit 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.
10. A method comprising: sinking a first current through a first current source before a first clock edge; turning off the first current source in response to the first clock edge; oscillating a slow oscillator output signal in response to said first clock edge; sinking a second current through a second current source prior to a second clock edge following the first clock edge; turning off the second current source in response to the second clock edge; oscillating a fast oscillator output signal in response to the second clock edge, wherein a frequency of the fast oscillator output signal is greater than a frequency of the slow oscillator output signal; counting the cycles of the slow oscillator output signal to count a coarse count; counting the cycles of the fast oscillator output signal to count fine counts; as well as Responsive to a function of the coarse count and the fine count, a delay between the first clock edge and the second clock edge is measured to form a measure of the delay.
11. The method according to claim 10, further comprising: Responsive to the measuring of the delay, a period jitter of a clock signal having the first clock edge and the second clock edge is measured.
12. The method according to claim 10, further comprising: Responsive to the measuring of the delay, a K-cycle period jitter of a clock signal having the first clock edge and the second clock edge is measured.
13. The method of claim 10, 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: Responsive to the measuring of the delay, a duty cycle of the clock signal is measured.
14. The method of claim 10, 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: Responsive to the measuring of the delay, a temporal internal error of the PLL clock signal is measured.
15. The method of claim 10, 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: Responsive to the measuring of the delay, a clock skew between the early clock signal and the late clock signal is measured.
16. The method of claim 10, wherein the first current is a replica of a current drawn by the slow oscillator.
17. The method of claim 10, wherein the second current is a replica of a current drawn by the fast oscillator.
Citation Information
Cited By
Adaptive clock duty cycle controller
CN117940854A
Digital clock jitter measuring circuit and measuring method
CN120722173A
