Circuit and method for determining delay of delay circuit

The method and circuit enhance delay measurement accuracy in circuits by using a feedback loop to generate pulses and iteratively adjust delay settings, addressing limitations of traditional methods and achieving precise delay calculations.

JP2024123294APending Publication Date: 2024-09-11RENESAS ELECTRONICS AMERICA INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2024024910
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-27
Filing Date
2024-02-21
Publication Date
2024-09-11

AI Technical Summary

Technical Problem

Traditional delay measurement methods in delay circuits face limitations due to the need for fast clocks, which affect accuracy and resolution, and are prone to measurement errors from input and output events, while indirect methods are limited by voltage ramps and measurement elements.

Method used

A method and circuit that utilize a feedback loop to generate consecutive output pulses, allowing for the calculation of delay by measuring periods at different delay settings, and iteratively adjusting to achieve high accuracy by reducing measurement errors.

Benefits of technology

Improves delay measurement accuracy by minimizing errors from clock period resolution and event timing, enabling precise determination of circuit delays through iterative adjustment and correction factors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024123294000001_ABST
    Figure 2024123294000001_ABST
Patent Text Reader

Abstract

To provide a circuit and corresponding method for determining a delay.SOLUTION: The circuit includes a delay circuit, a feedback circuit and a circuit referred to as a controller or a driver circuit and formed with a sensor circuit and an adjuster circuit. The delay circuit receives an input signal having an input edge and provides an output signal having an output edge. The input edge and the output edge are separated by a delay. The feedback circuit causes the delay circuit to generate a series of consecutive output pulses. The controller sets the delay to a first delay value and measures a first period of output pulses; sets the delay to a second delay value and measures a second period of output pulses. The controller then calculates the delay based on a difference between the first period and the second period.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a circuit and corresponding method for determining the delay of a delay circuit. [Background technology]

[0002] Conventional delay measurement involves some method of directly or indirectly measuring the time between a trigger input event of a delay element and an output event of the delay element.

[0003] Direct time measurement requires a time measurement mechanism that has a time step that is smaller than the delay of the circuit being measured. This requires a very fast clock which limits its accuracy and resolution. Direct time measurement suffers from any time errors in the input trigger events or output events of the circuit being measured. Also, since only integer periods are counted, there is a measurement error due to the resolution of the known clock period that the circuit under test is being measured against. This gives an error of + / - 1 period of the known clock.

[0004] Indirect time measurements can be made by implementing a circuit that is triggered by the input of the circuit being measured as well as the output of the circuit being measured. An example of this might be a circuit that uses a fixed current into a capacitor to start a voltage ramp on an input event and stop the voltage ramp on an output event, then measures the resulting voltage change. This allows the voltage measurement to be made at a slower rate than the delay itself. Indirect time measurements are limited by the errors in the voltage ramp and voltage measurement elements. Summary of the Invention [Problem to be solved by the invention]

[0005] It is an objective of the present disclosure to address one or more of the limitations set forth above. [Means for solving the problem]

[0006] According to a first aspect of the present disclosure, there is provided a method for determining a delay of a delay circuit, the method comprising: providing a delay circuit configured to receive an input signal having an input edge and to provide an output signal having an output edge, the input edge and the output edge being separated by a delay; coupling the delay circuit to a feedback circuit to cause the delay circuit to generate a series of successive output pulses; setting a delay to a first delay value and measuring a first period of the output pulse; setting the delay to a second delay value and measuring a second period of the output pulse; calculating a delay based on a difference between the first period and the second period; Includes.

[0007] For example, the delay may be the duration between the end of an input pulse and the start of an output pulse.

[0008] Optionally, the feedback circuit is configured to generate a feedback signal as an input to the feedback circuit, the feedback signal having a feedback pulse having a first edge and a second edge that results in a series of consecutive output pulses, the first edge of the feedback pulse having an opposite polarity compared to the input edge.

[0009] Optionally, measuring the first and second periods of the output pulses includes setting a target number of output pulses, counting a first reference number of counts for the target number of output pulses at a first delay value, and counting a second reference number of counts for the target number of output pulses at a second delay value.

[0010] Optionally, the first delay value is a minimum delay value and the second delay value is a delay value selected between the minimum delay value and a maximum delay value or equal to the maximum delay value.

[0011] For example, if the second delay value is the maximum delay value, the delay is the full-scale delay of the delay circuit.

[0012] Optionally, the method comprises comparing the calculated delay with a target value to obtain a difference measurement.

[0013] Optionally, the method includes iteratively adjusting the delay to reduce the differential measurement, for example the steps of adjusting the delay, performing a set of measurements to obtain an updated value of the full-scale delay, and comparing the updated value to a target value may be iteratively repeated to reduce the differential measurement.

[0014] Optionally, the method comprises calculating a correction factor to obtain a corrected delay value, and setting the delay to the corrected delay value.

[0015] According to a second aspect of the present disclosure, there is provided a circuit including: a delay circuit configured to receive an input signal having an input edge and to provide an output signal having an output edge, the input edge and the output edge being separated by a delay; a feedback circuit adapted to cause the delay circuit to generate a series of successive output pulses; and a controller configured to set the delay to a first delay value, measure a first period of an output pulse, set the delay to a second delay value, measure a second period of an output pulse, and calculate the delay based on a difference between the first period and the second period.

[0016] Optionally, the controller is configured to set a target number of output pulses, counting a first reference number of counts for the target number of output pulses at a first delay value, and counting a second reference number of counts for the target number of output pulses at a second delay value.

[0017] Optionally, the controller comprises an adjustment circuit and a sensor circuit, the adjustment circuit configured to set the delay to a first or second delay value and start the sensor circuit to count a first reference number of counts for the first delay or a second reference number of counts for the second delay.

[0018] Optionally, the sensor circuit comprises a reference counter and a delay counter coupled to the counter controller, the delay counter configured to count a target number of output pulses, and the reference counter configured to provide the first and second reference count numbers.

[0019] Optionally, the delay counter is configured to count a target number of output pulses and send a termination signal to the counter controller, and upon receiving the termination signal, the counter controller is configured to generate a stop signal to stop the reference counter and send a reference count number from the reference counter to the adjustment circuit.

[0020] Optionally, the adjustment circuit comprises a calculator configured to calculate a first period of the output signal using a first reference count number, calculate a second period of the output signal using a second reference count number, and calculate a difference between the first period and the second period.

[0021] Optionally, the first delay value is a minimum delay value and the second delay value is a delay value between the minimum delay value and a maximum delay value or equal to the maximum delay value.

[0022] Optionally, the calculator is configured to compare the calculated delay with a target value to obtain a difference measurement.

[0023] Optionally, the adjustment circuit is configured to generate an adjustment signal for adjusting the delay, and to iteratively adjust the delay to reduce the difference measurement.

[0024] Optionally, the adjustment circuit is configured to calculate a correction factor to obtain a corrected delay value, and to set the delay to the corrected delay value.

[0025] Optionally, the feedback circuit is configured to provide a feedback signal based on the output signal, the circuit comprising a selector configured to select the input signal between the external signal and the feedback signal, for example the selector may include a multiplexer or a switch.

[0026] Optionally, the feedback circuit comprises a memory device coupled in a feedback loop to the delay circuit.

[0027] Optionally, the feedback circuit comprises a flip-flop having a reset input coupled to the selector via a first delay, a clock input coupled to the output of the delay circuit via a second delay, and an output coupled to the selector.

[0028] Optionally, the circuit comprises a fractional divider configured to provide an external signal to the selector.

[0029] The options discussed with respect to the first aspect of the present disclosure are also common to the second aspect of the present disclosure. [Brief description of the drawings]

[0030] The present disclosure is explained in further detail below, by way of example, with reference to the accompanying drawings, in which: [Figure 1] FIG. 1 is a flow chart of a method for determining the delay of a delay circuit. [Diagram 2] FIG. 2 is a diagram of a circuit for implementing the method of FIG. [Diagram 3] FIG. 3 is a diagram of an exemplary feedback circuit. [Figure 4] FIG. 4 is a timing diagram illustrating the operation of the feedback circuit of FIG. [Diagram 5]FIG. 5 is an exemplary implementation of the circuit of FIG. [Figure 6] FIG. 6 is a diagram of a fractional divider combined with the circuit of FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0031] FIG. 1 is a flow chart of a method for determining the delay of a delay circuit.

[0032] At step 110, a delay circuit is provided. The delay circuit is configured to receive an input signal having an input edge and to provide an output signal having an output edge. The input edge and the output edge are separated by a delay. The edge may occur when the signal changes state from low to high (logic 0 to logic 1) or from high to low (logic 1 to logic 0). For example, the delay may be the duration between the end of the input pulse and the start of the output pulse. The delay may be a programmable delay.

[0033] In step 120, the delay circuit is coupled to a feedback circuit, causing the delay circuit to generate a series of consecutive output pulses. The feedback circuit may be configured to generate a feedback signal as an input to the feedback circuit. The feedback signal has a feedback pulse having a first edge and a second edge that causes the series of consecutive output pulses. The first edge of the feedback pulse has an opposite polarity compared to the input edge. For example, if the input edge is a falling edge, the first edge of the feedback signal is a rising edge, and vice versa.

[0034] In step 130, the delay is set to a first delay value and a first period of the output pulse is measured. In step 140, the delay is set to a second delay value and a second period of the output pulse is measured. In step 150, a delay is calculated based on the difference between the first period and the second period.

[0035] For example, measuring the first and second periods of the output pulses may include setting a target number of output pulses, counting a first reference number of counts for the target number of output pulses at a first delay value, and counting a second reference number of counts for the target number of output pulses at a second delay value. Thus, the periods and delays may be provided in units of reference counts from a reference counter.

[0036] FIG. 2 is a diagram of a circuit for implementing the method of FIG. 1. The circuit 200 includes a delay circuit 210 having an input coupled to a multiplexer 220 and an output coupled to a sensor circuit 230. It will be understood that the multiplexer 220 may be replaced by a switch or a switch circuit for performing an input signal selection function. The delay circuit 210 may be a programmable delay circuit. A feedback circuit 240 is coupled to the delay circuit 210 in a feedback loop between the output of the delay circuit and the multiplexer 220. The feedback circuit 240 is adapted to generate a feedback signal that, when received by the delay circuit 210, causes the delay circuit 210 to generate a series of consecutive output pulses. An adjustment circuit, also referred to as a calibration circuit 250, is coupled to the multiplexer 220, the delay circuit 210, and the sensor circuit 230. The sensor circuit 230 and the adjustment circuit 250 together form a circuit that may be referred to as a controller or driver circuit.

[0037] The delay circuit 210 may be a circuit adapted to provide a programmable delay that may be set between a minimum and a maximum delay value. The delay circuit 210 may be implemented in different ways and may, for example, include a ramp generator for generating the delay. In this example, the delay may be changed by changing the slope of a ramp signal.

[0038] The feedback circuit 240 enables the delay circuit 210 to generate a repeating series of pulses at a given frequency associated with a corresponding period T. Multiple successive delays can then be measured by the sensor circuit 230, thus improving the accuracy of the delay measurement.

[0039] In operation, the multiplexer 220 receives an external signal (Normal_delay_in), a feedback signal (FB_out) from the feedback circuit 240, and a selection signal (FB_select) from the adjustment circuit 250 to pass either the external signal or the feedback signal. Thus, the input signal received by the delay circuit 210 is either the external signal or the feedback signal. When the feedback signal is selected, the delay circuit 210 generates a series of consecutive output pulses. The number of pulses in the series is counted by the sensor circuit 230.

[0040] Adjustment circuit 250 generates a signal (Delay_value) that sets the delay of delay circuit 210 to a target value and a signal (Delay_tune) that adjusts the delay. Depending on the implementation of delay circuit 210, the signals Delay_value and Delay_tune may be received by a ramp generator to set and adjust the delay.

[0041] For example, the adjustment circuit 250 can be used to set the delay to a first delay value and initiate the sensor circuit 230 to perform a series of measurements. A target number of output pulses N is set and the sensor circuit is used to count a first reference number of counts for the target number of output pulses N at the first delay value. The sensor circuit is then used to count a second reference number of counts for the target number of output pulses N at a second delay value.

[0042] The conditioning circuit 250 receives the reference counts from the sensor circuit 230 and performs various calculations. For example, the conditioning circuit may use a first reference count to calculate a first period T1 of the output signal and a second reference count to calculate a second period T2 of the output signal. The conditioning circuit may then be used to calculate a difference T1-T2 to obtain the difference between the first programmable delay and the second programmable delay.

[0043] When the first programmable delay is set to a minimum delay and the second programmable delay is set to a maximum delay, the difference T1-T2 defines a full-scale delay of the delay circuit. The full-scale delay can be compared to a target full-scale delay. The tuning circuit is also configured to generate a signal (Delay_tune) for tuning the delay. Several sets of measurements can be performed iteratively to calibrate the delay circuit.

[0044] For example, a first set of measurements is performed with the Delay_tune signal set to a first value, e.g., "1 / 2", to obtain a first value of T1-T2. If the first value T1-T2 is less than the target full-scale delay, the delay tune signal is increased, e.g., from "1 / 2" to "2", and a second set of measurements is performed to obtain a second value of T1-T2. If the second value T1-T2 is less than the target full-scale delay, the delay tune signal is further increased. Similarly, if the second value T1-T2 is greater than the target full-scale delay, the delay tune signal is decreased.

[0045] By iteratively adjusting the delay tuning signal, the full-scale delay converges towards its target value, or a correction factor may be calculated to obtain a corrected delay value, and the delay is then set to the corrected delay value.

[0046] 3 is a diagram of an exemplary feedback circuit for use in the circuit of FIG. 2. The feedback circuit 300 includes a memory device such as a D flip-flop 310 coupled to a first delay (FB delay) 320 and a second delay (FB reset delay) 330. The first delay 320 has an input for receiving an output (Delay_out) from the delay circuit 210 and an output for providing a clock signal (FB_clock). The D flip-flop 310 has a data input D for receiving a logic signal, a clock input for receiving a clock signal (FB_clk) from the first delay 320, a reset input for receiving a reset signal (FB_reset) from the second delay 330, and an output Q coupled to the second delay 330 in a feedback loop. The output Q provides a feedback signal (FB_out) to the multiplexer 220 and the second delay 330.

[0047] The output of the delay circuit is received by 320. The rising edge is first delayed by the first delay 320. The first delay 320 sets the minimum period of oscillation. The data input of the dynamic flip-flop (DFF) 310 is logic "1", so the rising edge of the clock input of the DFF forces the Q output of the DFF to logic "1". The second delay 330 is a delay in the reset path of the DFF that clears the DFF back to logic "0", effectively creating a one-shot active high pulse of the width of the second delay 330 every time the DFF 310 is clocked. Simple logic can be added to initiate the sequence. For example, an OR gate may be added at the output of the first delay 320. In this case, the OR gate has a first input for receiving the signal FB_clk, a second input for receiving the initialization signal, and an output coupled to the clock input of 310.

[0048] Figure 4 is a timing diagram illustrating the operation of the feedback circuit of Figure 3 coupled to the delay circuit of Figure 2. Figure 4 shows an input delay signal (Delay_in) 410 provided by the multiplexer 220, an output delay signal (Delay_out) 420 provided by the delay circuit 210, a clock signal (FB_clock) 430 provided by the first delay 320, an output signal (FB_out) 440 provided by the D flip-flop 310, and a reset signal (FB_reset) 450 provided by the second delay 330. The arrows represent causal relationships triggered by rising or falling edges of the logic signals.

[0049] In operation, delay circuit 210 receives input signal 410 having an input edge shown at time t1. When the circuit is operated, multiple input pulses are formed with duration T. Circuit 210 then outputs signal 420 having multiple output pulses with the same duration T. The pulses are defined by the on-time of the signal when the signal is high (logic 1). The duration T is the same for signals 410, 420, 430, 440, and 450.

[0050] The feedback circuit 240 generates a feedback signal 440 having multiple feedback pulses with the same period T. This causes the delay circuit 210 to generate multiple successive output pulses.

[0051] At time t1, the input signal 410 goes low, and at time t2, the output signal 420 goes from low to high. The duration Δ between times t1 and t2 represents the delay of the delay circuit. Thus, the delay circuit 210 starts its delay when its input goes to logic "0" and its output transitions to logic "1" after said delay.

[0052] At time t3, clock signal 430 goes high. This triggers the generation of a feedback output pulse (440 goes from low to high) at time t4. Then, at time t5, a new input pulse is generated (410 goes from low to high), and at time t6, a reset pulse is generated (450 goes from low to high). Thus, at time t4, the rising edge of output signal (FB_out) 440 causes a rising edge of signal 410 at time t5.

[0053] At time t7, feedback signal 440 goes low. This triggers 410 to go low at time t8. Thus, at time t7, a falling edge of output signal (FB_out) 440 causes a falling edge of signal 410 at time t8. A new cycle of pulses then begins again.

[0054] When the delay circuit 210 transitions from logic "0" to logic "1" (see time t2), the feedback circuit 240 sends an active high pulse to the delay circuit 210 (see time t4), which resets the delay circuit and causes its output to transition back to logic "0" (see time t6) just after the input (Delay_in) goes from "0" to logic "1" (time t5).

[0055] When the active high pulse from feedback circuit 240 returns to logic "0" (see time t7), delay circuit 210 begins its delay (time t8) until its output becomes logic "1", restarting the process.

[0056] Thus, the feedback signal 440 is formed on a succession of feedback pulses. The feedback pulses have a first edge (see time t4) and a second edge (see time t7) that give rise to a series of successive output pulses. The first edge of the feedback pulse has an opposite polarity compared to the input edge of the input signal 410 (see time t1).

[0057] It will be appreciated that the polarity of the signals shown in FIG. 4 (low to high on the rising edge, high to low on the falling edge) may be reversed.

[0058] The period T of the repeating pulse is also called the oscillation period and includes the delay of the circuit under test and an additional delay. All delays are constant except for the delay Δ between times t1 and t2. By varying the delay Δ, the period T also varies. The oscillation period T is equal to the sum of several delays including the delay through the multiplexer 220, the delay of the delay circuit 210, the input delay of the first delay 320, and the delay of the second delay 330 (corresponding to the time the output of the feedback circuit is high). By measuring the period T and subtracting the fixed delay, the delay of the circuit under test 210 can be obtained.

[0059] The frequency measurement can be performed by counting the number of clock periods of a known clock for a fixed number of periods of the circuit under test. By measuring the period of many repetitive pulses, the accuracy of the measurement is improved.

[0060] The time error of any edge of the internal period does not affect the measurement, only the time error of the first and last edges affects the measurement error. For example, by measuring 1000 periods, the error of the first edge and the last edge will be only 1 in 1000 each, and therefore each will be reduced by a factor of 1000.

[0061] As with the direct measurement approach, there is still an error due to integer counting of the known + / - 1 clock period of the known clock, but that error is now reduced due to measuring multiple periods of the circuit under test. By measuring 1000 periods, the known clock period integer count error is just + / - 1 for the full 1000 periods of the circuit under test, and is therefore reduced by a factor of 1000.

[0062] Using a two-pass test and then taking the difference between these two measurements can be used to isolate the delay of the circuit under test as long as the other delays are the same for the two passes. The only delay in the circuit that is affected by the programming value is the delay of the circuit under test. In the case of programmable delays, a two-pass test is accomplished by measuring the repeating pulse period with two different programmable delay values.

[0063] An example of the programmable delay calculation is shown below:

[0064] The measurement period for a programmable delay value X, designated T(X), and the measurement period for a programmable delay value Y, designated T(Y), are expressed as follows: T(X)= fixed_delay_multiplexer + fixed_delay_circuit_under_test + programmable_delay_circuit_under_test(X) + fixed_delay_feedback_circuit T(Y)= fixed_delay_multiplexer + fixed_delay_circuit_under_test + programmable_delay_circuit_under_test(Y) + fixed_delay_feedback_circuit As a result, the difference between the two measured periods is: T(X)-T(Y)= programmable_delay_circuit_under_test(Y) - programmable_delay_circuit_under_test(X) By setting Y = MAX and X = MIN, the difference between the two-pass measurements will be the full-scale delay of the circuit under test. T(MIN)-T(MAX)=Δ(MIN)Δ(MAX), so that if Δ(MIN)=0, then T(MAX)-T(MIN)= Δ(MAX) For example, MIN=0 and MAX=100.

[0065] The average unit Delay may be expressed as T(MAX)-T(MIN) / number of delay value units.

[0066] More generally, T(MIN)-T(Z)=Δ(MIN)Δ(Z), and if Δ(MIN)=0, then T(Z)-T(MIN)=Δ(Z), where Z may be chosen to take any value between (and equal to) the minimum delay MIN and the maximum delay MAX, such that MIN≦Z≦MAX. It is therefore possible to calculate each unit delay individually.

[0067] Figure 5 is an example implementation of the circuit of Figure 2. The circuit 500 includes a delay circuit 510 having an input coupled to a multiplexer 520 and an output coupled to a sensor circuit 530. A feedback circuit 540 is coupled to the delay circuit 510 in a feedback loop between the output of the delay circuit and the multiplexer 520. The adjustment circuit 540 is provided to adjust the delay circuit 510.

[0068] In this example, the feedback circuit 540 is implemented as in Figure 3. The sensor circuit 530 includes a first counter, also referred to as a delay counter 532, and a second counter, also referred to as a reference counter 534. A controller, also referred to as a counter control logic 536, is provided to control the first and second counters. The reference counter 534 is coupled to a reference clock generator 538 that provides a reference clock signal Ref_clk.

[0069] An adjustment circuit, also referred to as calibration control logic 550 , is coupled to the first and second counters 532 , 534 , the controller 536 , the delay circuit 510 , and the multiplexer 520 .

[0070] The adjustment circuit 550 is configured to generate several signals. The adjustment circuit 550 generates a selection signal FB_select and sends it to the multiplexer 520. When the FB_select changes state, for example from low to high, the output signal FB_out generated by the feedback circuit 540 is selected by the multiplexer 520.

[0071] The adjustment circuit 550 is also configured to generate a signal Delay_value for setting the delay of the delay circuit 510 to a target value. For example, the Delay_value signal may be used to set the delay to a minimum or maximum delay value.

[0072] The conditioning circuit 550 is also configured to generate and send a signal Initiate_count to the controller 536. When the controller 536 receives the Initiate_count signal, the controller 536 resets the first and second counters 532 and 534 and performs a measurement of the output of the delay circuit 510.

[0073] The circuitry 550 may be implemented in a variety of different ways. For example, the circuitry 550 may be a logic circuit or a processor configured to execute software code. The control logic 550 may be a digital state machine in which the logic moves from one state to another based on inputs. The digital state machine may be implemented using logic gates, or a processor and a software state machine.

[0074] In operation, the adjustment circuit 550 sets the delay of the delay circuit 510 to a target value using the Delay_value signal. The delay can include fixed and programmable delays. The delay is set to a first value. In this example, the first value is a minimum value, and the adjustment circuit 550 sends a selection signal (FB_select) to the multiplexer 520 to select the signal (FB_out) from the feedback circuit 540. The delay circuit 510 then provides a series of consecutive output pulses having a first duration T1. The adjustment circuit 550 also sends a command signal (Initate_count) to the controller 536 to start the measurement. The controller 536 sends a start signal (Start_counters) to both the delay counter 532 and the reference counter 534 to clear their old counts and start new counts.

[0075] The delay counter 532 counts a certain number of output pulses from the output signal Delay_out and generates an end signal (Delay_count_done) to stop counting. For example, the number of output pulses counted by the delay counter 532 may be a predefined or target number N. For example, N may be set to 1000.

[0076] The controller 536 receives a finish signal (Delay_count_done) from the delay counter 532 and generates a stop signal (Stop_ref_counter) to stop the reference counter 534, causing it to stop counting.

[0077] Upon receiving the Delay_count_done signal, the adjustment circuit 550 loads the count values ​​Ref_count and Delay_count from the reference counter 534 and the delay counter 532, respectively.

[0078] The adjustment circuit 550 then sets the delay to a second value, which in this example is the maximum value, and the delay circuit 510 then provides a series of consecutive output pulses having a second duration T2.

[0079] The adjustment circuit 550 sends an Initiate_count signal to the controller 536 to reset the first and second counters 532 and 534 to perform another measurement of the output of the delay circuit 510, now using the second delay value. The controller 536 sends a Start_counter signal to both the delay counter 532 and the reference counter 534 to clear their old counts and start new counts.

[0080] After counting a certain number of Delay_out, the delay counter 532 generates a Delay_count_done signal and stops counting. The controller 536 senses the Delay_count_done signal and generates a Stop_ref_counter to cause the reference counter 534 to stop counting. The adjustment circuit 550 senses the Delay_count_done signal and loads the counts of the count values ​​Ref_count and Delay_count from the two counters respectively.

[0081] The adjustment circuit 550 then uses the two count numbers Ref_count_min and Ref_count_max obtained from the reference counter 534 along with the minimum and maximum Delay_value measurements, respectively, to calculate a first period T1 and a second period T2 of the output signal.

[0082] The adjustment circuit 550 calculates the difference between the first period T1 and the second period T2 to obtain the difference between the first programmable delay and the second programmable delay.

[0083] The difference between the first programmable delay and the second programmable delay defines the full-scale delay of the delay circuit, also called the full-scale range. The full-scale delay is then compared to a target full-scale delay. The difference between the full-scale delay and the target value is then reduced.

[0084] If the full-scale range of delay circuit 510 is too high, adjustment circuit 550 reduces the Delay_tune value to reduce the full-scale range. Similarly, if the full-scale range of delay circuit 510 is too low, adjustment circuit 550 increases the Delay_tune value to increase the full-scale range. The full-scale range is iteratively adjusted until Delay_tune reaches its best resolution.

[0085] Different calibration procedures can be envisaged: Below is the procedure for calibrating the full-scale range of the delay circuit to be equal to the period of the target clock, defined as Tgoal.

[0086] The following terms are defined as follows: Tref_clock is the period of the reference clock generated by 538. Tref_clock = M * Tgoal. N is the number of consecutive periods of the Delay_out signal counted by the delay counter 532 . RCmax is the final count value of the reference counter 534 when the "Delay_value" is set to its maximum. RCmin is the final count value of the reference counter 543 when the "Delay_value" is set to the minimum. Dfixed is a constant fixed delay between times t2 and t8. It is independent of the Delay_tune and Delay_value signals. Delay_circuitmax is the delay of delay circuit 510 when Delay_value is set to its maximum. Delay_circuitmin is the delay of delay circuit 510 when Delay_value is set to the minimum. Target_fullscale_count is the target full scale count of RCmax-RCmin used to identify the optimal calibration delta count.

[0087] During measurement, the reference counter 532 counts for the same amount of time as the Delay_counter 532. This is not the same number of counts, but the same amount of time.

[0088] The following relationships apply: N *(Delay_circuitmax + Dfixed)= RCmax * Tref_clock N *(Delay_circuitmin + Dfixed)= RCmin * Tref_clock.

[0089] When the target full scale is reached, Delay_circuitmax-Delay_circuitmin = Tgoal.

[0090] The calculation of Target_fullscale_count is as follows: N * [(Delay_circuitmax + Dfixed)-N * (Delay_circuitmin + Dfixed) = RCmin * Tref_clock-RCmin * Tref_clock N * [(Delay_circuitmax + Dfixed) - (Delay_circuitmin + Dfixed)] = Tref_clock * [RCmax - RCmin] N *[Delay_circuitmax - Delay_circuitmin] = M * Tgoal * [RCmax - RCmin] Set Delay_circuitmax-Delay_circuitmin = Tgoal and reduce the equation to: N = M * [RCmax - RCmin] N = M * Target_fullscale_count Target_fullscale_count = N / M.

[0091] For a full-scale calibration procedure, the following steps can be performed: 1. Set "FB_select" to select the "FB_out" path 2. Set "Delay_tune" to half the maximum value 3. Set "Delay_value" to the minimum value 4. Generate "Initiate_count" to clear the counter and start a new count 5. Wait for "Delay_count_done" 6. Store the "Ref_count" value as RCmin 7. Set "Delay_value" to the maximum value 8. Generate "Initiate_count" to clear the counter and start a new count 9. Wait for "Delay_count_done" 10. Store the value of "Ref_count" as RCax 11. Calculate the full-scale count of the "reference counter" as RCmax-RCmin 12. Compare RCmax-RCmin with Target_fullscale_count to determine if Delay_tune needs to be increased or decreased, and set Delay_tune to 3 / 4 or 1 / 4 of the midpoint between the current value and the upper or lower range. This is a binary search algorithm. 13. If "Delay_tune" is not at the minimum resolution setting (least significant bit of binary search), go back to step 3. 14 When "Delay_tune" is at its minimum resolution setting (least significant bit of binary search), the calibration is finished, so set "FB_select" to select the "Normal_delay_in" path. The full-scale delay of the "Delay circuit" (Delay_circuitmax - Delay_circuitmin) is now as close as possible to the period of the target clock (Tgoal).

[0092] Alternatively, the full-scale correction factor can be calculated by performing the following steps: 1. Set "FB_select" to select the "FB_out" path 2. Set "Delay_tune" to the nominal value 3. Set "Delay_value" to the minimum value 4. Generate "Initiate_count" to clear the counter and start a new count 5. Wait for "Delay_count_done" 6. Store the "Ref_count" value as RCmin 7. Set "Delay_value" to the maximum value 8. Generate "Initiate_count" to clear the counter and start a new count 9. Wait for "Delay_count_done" 10. Store the value of "Ref_count" as RCax 11. Calculate the full-scale count of the "reference counter" as RCmax-RCmin 12. Calculate the "fullscale_correction_coeficient" for the target period to the actual "Delay Circuit" full scale. (Target_fullscale_count / RCmax - RCmin) 13. Select the "Normal_delay_in" path in "FB_select" 14. The normal mode “Delay_value” is multiplied by “fullscale_correction_coeficient” to compensate the actual delay of the “Delay Circuit” with respect to the ideal full-scale delay of Tgoal.

[0093] The proposed circuits and methods can be used in a variety of applications. For example, the circuits described with respect to Figures 2-5 can be used with a fractional clock divider to correct or reduce its jitter. This can be achieved by ensuring that the full scale of the programmable delay is equal to one period of the fractional divider's input clock.

[0094] Figure 6 is a diagram of a fractional divider coupled to the circuit of Figure 2. The fractional divider 660 is coupled to the circuit 200 as described in Figure 2. In operation, the fractional divider 660 generates a signal (Normal_delay_in) for the multiplexer 220.

[0095] For example, the full-scale measurement can be used as an input to a circuit that adjusts the full-scale delay until it is accurate, thus calibrating the programmable delay.

[0096] A fractional divider includes, at a minimum, an integer divider that can divide by the number X, not just X+1. To generate an X + a fractional division value, the divider alternates between dividing by X and dividing by X + 1, dividing on average by X + the fraction.

[0097] For example, for a division of 10.25, the divider has a division value pattern of 10, 10, 10, 11, then repeats. For a total of 4 cycles, the divider will divide by 41, with an average division value of 10.25. The individual periods of the divider are not evenly spaced, which is undesirable.

[0098] By adding a fraction to an accumulator and using the accumulated fraction to control a programmable delay, after the divider the divider output can be time-corrected at equal intervals, rather than just averaged.

[0099] For the first division, the divider divides by 10 and the delay delays by 0.25, for the second division, the divider divides by 10 and the delay delays by 0.50, for the third division, the divider divides by 10 and the delay delays by 0.75, for the fourth division, the divider divides by 11 and the delay delays by 0.00 (rollover). The resulting periods are: 10 + 0.25,(10 + 10) + 0.50,(10 + 10 + 10) + 0.75,(10 + 10 + 10 + 11) + 0.00. Here, the periods 10.25, 20.50, 30.75, 41 are equally spaced by 10.25 between each output. Thus, jitter is corrected.

[0100] In the example of FIG. 6, the Normal_delay_in signal provides the values ​​{10, 10, 10, 11} and the Normal_delay_out signal provides the values ​​{10.25, 20.50, 30.75, 41}.

[0101] Thus, those skilled in the art will appreciate that modifications of the disclosed arrangements are possible without departing from the present disclosure. Thus, the above description of specific embodiments is by way of example only and not for purposes of limitation. As will be apparent to those skilled in the art, minor modifications can be made without substantially altering the operation as described.

Claims

1. 1. A method for determining a delay of a delay circuit, the method comprising: a delay circuit configured to receive an input signal having an input edge and to provide an output signal having an output edge, the input edge and the output edge being separated by a delay; coupling a delay circuit to a feedback circuit and causing said delay circuit to generate a series of successive output pulses; setting the delay to a first delay value and measuring a first period of an output pulse; setting the delay to a second delay value and measuring a second period of the output pulse; calculating a delay based on a difference between the first period and the second period; The method includes:

2. 2. The method of claim 1, wherein the feedback circuit is configured to generate a feedback signal as an input to the feedback circuit, the feedback signal having a feedback pulse having a first edge and a second edge that cause the series of consecutive output pulses, the first edge of the feedback pulse having an opposite polarity compared to the input edge.

3. Measuring the first and second periods of an output pulse includes: Setting a target number of output pulses; Counting a first reference count number for a target number of output pulses at the first delay value; Counting a second reference count number for a target number of output pulses at the second delay value; The method of claim 1 , comprising:

4. 2. The method of claim 1, wherein the first delay value is a minimum delay value and the second delay value is a delay value selected between the minimum delay value and a maximum delay value or a delay value equal to the maximum delay value.

5. The method of claim 4 , comprising comparing the calculated delay with a target value to obtain a difference measurement.

6. 5. The method of claim 4, comprising iteratively adjusting the delay to reduce the difference measurement, or calculating a correction factor to obtain a corrected delay value and setting the delay to the corrected delay value.

7. a delay circuit configured to receive an input signal having an input edge and to provide an output signal having an output edge, the input edge and the output edge being separated by a delay; a feedback circuit adapted to cause the delay circuit to generate a series of successive output pulses; and a controller configured to: set the delay to a first delay value, measure a first period of the output pulse, set the delay to a second delay value, measure a second period of the output pulse, and calculate the delay based on a difference between the first period and the second period. The circuit includes:

8. 8. The circuit of claim 7, wherein the controller is configured to set a target number of output pulses, and counts a first reference number of counts for the target number of output pulses at the first delay value and counts a second reference number of counts for the target number of output pulses at the second delay value.

9. 9. The circuit of claim 8, wherein the controller comprises an adjustment circuit and a sensor circuit, the adjustment circuit configured to set the delay to the first or second delay value and activate the sensor circuit to count a first reference number of counts for the first delay or a second reference number of counts for the second delay.

10. 10. The circuit of claim 9, wherein the sensor circuit comprises a reference counter and a delay counter coupled to a counter controller, the delay counter configured to count the target number of output pulses, and the reference counter configured to provide the first and second reference count numbers.

11. 11. The circuit of claim 10, wherein the delay counter is configured to count the target number of output pulses and send a termination signal to the counter controller, and upon receiving the termination signal, the counter controller is configured to generate a stop signal to stop the reference counter and transmit the reference count number from the reference counter to the adjustment circuit.

12. 10. The circuit of claim 9, wherein the adjustment circuit comprises a calculator configured to calculate the first period of the output signal using the first reference count, calculate the second period of the output signal using the second reference count, and calculate a difference between the first period and the second period.

13. 8. The circuit of claim 7, wherein the first delay value is a minimum delay value and the second delay value is a delay value selected between the minimum delay value and a maximum delay value or a delay value equal to the maximum delay value.

14. The circuit of claim 13 , wherein the calculator is configured to compare the calculated delay with a target value to obtain a difference measurement.

15. The circuit of claim 14 , wherein the adjustment circuit is configured to generate an adjustment signal to adjust the delay and to iteratively adjust the delay to reduce the difference measurement.

16. The circuit of claim 14 , wherein the adjustment circuit is configured to calculate a correction factor to obtain a corrected delay value and to set the delay to the corrected delay value.

17. 8. The circuit of claim 7, wherein the feedback circuit is configured to provide a feedback signal based on the output signal, the circuit comprising a selector configured to select the input signal between an external signal and the feedback signal.

18. 20. The circuit of claim 17, wherein the feedback circuit comprises a memory device coupled to the delay circuit in a feedback loop.

19. 20. The circuit of claim 18, wherein the feedback circuit comprises a flip-flop having a reset input coupled to the selector through a first delay, a clock input coupled to the output of the delay circuit through a second delay, and an output coupled to the selector.

20. 20. The circuit of claim 17, comprising a fractional divider configured to provide the external signal to the selector.