The present invention relates to a method for simple measurement of the phase shift/the time offset between digital signals having the same frequency. Moreover, the present invention relates to a circuit for simple measurement of the phase shift/the time offset between digital signals having the same frequency.
Present-day electronic signal processing very often requires precise temporal control of individual processing steps, or the accurate measurement or generation of small time differences within an integrated circuit. In many cases, for this purpose two or more digital clock signals having same period duration T0, but which are phase-shifted relative to one another in a defined manner, are generated. This is illustrated below with reference to
In addition, the task of verifying the correct function, i.e., the phase shift, and maintaining the specified tolerances under production conditions with the aid of automatic test equipment (ATE) must always be addressed in the design of such systems.
The following problems are often particularly difficult to solve:
Most current publications concentrate on circuits that are integrated into the chip, via which the delay of certain signal paths in digital circuits may be measured. The intent of these measurements is to detect manufacturing- or age-related defects by their effect on the delay of the signal path in question. This procedure is intended as a supplement to the other customary defect-oriented methods such as SCAN or IDDQ. Representatives of such are Gibran L. Jaya et al., “A High-Resolution On-Chip Propagation Delay Measurement Scheme,” IEEE International SoC Design Conference, Nov. 2-3, 2015, pp. 143-144; Bishnu Prasad Das, Hidetoshi Onodera, “On-Chip Measurement of Rise/Fall Gate Delay Using Reconfigurable Ring Oscillator,” IEEE Transactions on Circuits and Systems II: Express Briefs, Volume 61, Issue 3, 2014, pp. 183-187; Songwei Pei et al., “A Low Overhead On-Chip Path Delay Measurement Circuit,” IEEE Asian Test Symposium, Nov. 23-26, 2009, pp. 145-150; Kentaroh Katoh et al., “A Low Area On-Chip Delay Measurement System Using Embedded Delay Measurement Circuit,” IEEE Asian Test Symposium, Dec. 1-2, 2010, pp. 343-348. Delay chains, oscillators, or even PLLs are typically utilized for the time measurement in order to obtain from the time signals or delays thus generated a basis of comparison for the actual measurement, or to map short time intervals onto much longer intervals with the aid of subsampling.
Another approach presented in Antony Yao, Yao-Huang Kao, “Measurement of Time Delay for a Transmission Line in Frequency Domain,” IEEE Conference on Precision Electromagnetic Measurements, May 14-19, 2000, pp. 88-89, is intended for the measurement of signal propagation times in a transmission line. In this method, a known frequency-modulated signal is fed into a transmission line. The output of the transmission line as well as a version of the signal that is phase-shifted by 90° are mixed, subsequently filtered using a low pass filter, and evaluated with the aid of a spectrum analyzer. The signal propagation time in the transmission line may be easily deduced from the obtained results.
However, the currently published circuitry-based approaches and methods require a great deal of additional integrated hardware or costly laboratory equipment (see the reference in the preceding paragraph).
According to the present invention, a method for measuring the phase shift between a first clock signal and a second clock signal is provided, the clock signals having the same frequency.
The method according to an example embodiment of the present invention for measuring the phase shift between a first clock signal and a second clock signal includes the following steps:
The method allows a very simple measurement of the phase shift solely by measuring an output signal of a low pass filter.
It is also possible for the mixer to include an XOR gate, with step d) including feeding the output signal of the XOR gate into the input of the low pass filter. An XOR gate is a simple, reliable, and inexpensive component with which the mixer and thus the method may be efficiently implemented.
In one particular specific embodiment of the method in accordance with the present invention, it is provided that step a-1) includes feeding the first clock signal into the first input of the XOR gate, and step a-2) includes feeding the second clock signal into the second input of the XOR gate. The method includes the following further step:
With regard to the terms “first input” and “second input” of the XOR gate used above, it is noted that the two inputs of an XOR gate are basically equivalent and may be interchanged. The terms “first input” and “second input” are used here solely to distinguish between the inputs; i.e., the “first input” is an arbitrary input of the XOR gate, and the “second input” is the other input of the gate. The same also applies below for the AND gate and the OR gate.
Alternatively, it is advantageously provided that the method in accordance with an example embodiment of the present invention uses a mixer that includes a first edge-controlled flip-flop and a second edge-controlled flip-flop as well as an AND gate.
Step a-1) includes feeding the first clock signal into the dynamic input of the first flip-flop, and step a-2) includes feeding the second clock signal into the dynamic input of the second flip-flop. In addition, the method includes the following further steps:
This specific embodiment of the method of the present invention may have the advantage that it is independent of the duty cycles of the input signals.
In one particular specific embodiment of the method of the present invention, the mixer also includes an OR gate and an inverter, and step c-1) includes feeding the output signal of the AND gate into the first input of the OR gate, and feeding the output signal of the OR gate into the reset input of the first flip-flop. Step c-2) includes feeding the output signal of the AND gate into the first input of the OR gate, and feeding the output signal of the OR gate into the reset input of the second flip-flop. In this specific embodiment the method includes the following further steps:
The start and the end of the measurement of the phase shift may be precisely controlled in this way.
In one preferred specific embodiment of the method of the present invention, the following further step is provided:
A further aspect of the present invention relates to a circuit for measuring the phase shift between a first clock signal and a second clock signal. In accordance with an example embodiment of the present invention, the circuit includes a mixer and a low pass filter. The mixer includes a first input for feeding in the first clock signal, and a second input for feeding in the second clock signal. In addition, the output of the mixer is connected to the input of the low pass filter. The circuit allows a very simple measurement of the phase shift solely by measuring its output signal.
It is also possible for the mixer to include an XOR gate in the circuit, the output of the XOR gate being connected to the input of the low pass filter. An XOR gate is a simple, reliable, and inexpensive component with which the mixer may be efficiently implemented.
In one particular specific embodiment of the circuit according to the present invention, it is provided that the first input of the mixer is the first input of the XOR gate, and the second input of the mixer is the second input of the XOR gate. This specific embodiment is a particularly simple variant of the circuit according to the present invention that is suited in particular for incoming clock signals each having the duty cycle ½.
Alternatively, it is advantageously provided in accordance with an example embodiment of the present invention that the mixer also includes a first edge-controlled flip-flop and a second edge-controlled flip-flop as well as an AND gate. The first input of the mixer is the dynamic input of the first flip-flop, and the second input of the mixer is the dynamic input of the second flip-flop. In addition, the output of the first flip-flop is connected to the first input of the XOR gate and to the first input of the AND gate, and the output of the second flip-flop is connected to the second input of the XOR gate and to the second input of the AND gate. The mixer includes a connection between the output of the AND gate and the reset input of the first flip-flop. The mixer also includes a connection between the output of the AND gate and the reset input of the second flip-flop. This specific embodiment of the circuit has the advantage that the phase shift may thus be measured independently of the duty cycles of the input signals.
In one particular specific embodiment of the circuit of the present invention, the mixer also includes an OR gate and an inverter. The connection between the output of the AND gate and the reset input of the first flip-flop and to the reset input of the second flip-flop extends via the OR gate. In particular, the output of the AND gate is connected to the first input of the OR gate. The output of the OR gate in turn is connected to the reset input of the first flip-flop and also to the reset input of the second flip-flop. The mixer also includes a third input, the third input of the mixer being connected to the data input of the first flip-flop, to the data input of the second flip-flop, and to the input of the inverter. The output of the inverter is connected to the second input of the OR gate. The start and the end of the measurement of the phase shift may be controlled very precisely in this way.
According to one preferred specific embodiment of the circuit according to the present invention, it is provided that the circuit is an integrated circuit. The circuit may be implemented very easily in common electronic devices such as PCs, tablets, smart phones, and the like.
The circuit according to the present invention advantageously includes a low pass filter that is designed as a passive low pass filter. The passive low pass filter may include a resistor and a capacitor. This allows a simple and cost-effective implementation of a low pass filter.
According to one preferred specific embodiment of the circuit according to the present invention, it is provided that the XOR gate is a highly symmetrical XOR gate. This allows particularly reliable and precise measurements of the phase shift.
Advantageous refinements of the present invention are disclosed herein. The advantages of the present invention over the concepts mentioned at the outset are in particular the following:
The approach according to the present invention is thus suited in particular for the integration into integrated circuits.
Exemplary embodiments of the present invention are explained in greater detail based on the figures and the following description.
Only digital signals are considered in the following discussion. To maintain clarity in the figures, in the subsequent illustrations of the digital signals the coordinate axes and their descriptions are omitted; it is clear that in each case they may be supplemented, as illustrated in
It is noted that it is generally sufficient to ascertain absolute time offset |ΔT|, since typically only the phase shift between the signals is important, not for which of signals CLK1 and CLK2 the start of a period occurs “earlier.” Since the signals are periodic, establishing specific start t0 and end t0+ΔT of a period is arbitrary anyway, and only the time difference between the start and the end must correspond to period duration T0. For the same reason, it ultimately makes no difference whether a time offset is expressed as |ΔT| or |T0−ΔT|; it is usually expressed here as min{|ΔT|, |T0−ΔT|}.
The method provided here in accordance with the present invention is also used for mixing two clock signals having the same frequency. The method is schematically illustrated in
Since the duty cycles of both signals is ½, a signal s having twice the frequency of signals CLK1 and CLK2 is obtained at the mixer output, i.e., at node y. This is schematically illustrated in
Consequently, output signal y of mixer 200a is initially fed into a low pass filter 300 (cf.
The relationship between the signal swing at the output of low pass filter 300 and the (one-half) duty cycle of signal s at the output of mixer 200a are shown in
Thus, for measuring (absolute) time offset |ΔT|, it is necessary only to measure direct voltage Vout at the low pass output, using a standard voltmeter or multimeter. The time offset between the two signals may then be ascertained by computation from measured and known variables. In particular, it is apparent from
The absolute value of time offset |ΔT| may thus be expressed by
where T0 is the period duration, VDD is the operating voltage of the mixer, and Vout is the direct voltage at the output of the low pass filter.
An XOR gate is the simplest way to implement such a mixer 200a. This gate supplies a logical 1 at the output when the signals at the inputs are different, exactly as illustrated in
Low pass filter 300 may be easily implemented, for example, by the combination of resistor R and capacitor C shown in
However, in this simple implementation of a mixer with the aid of an XOR gate, it should be noted that the duty cycles of signals CLK1 and CLK2 to be compared influence the result. In other words, the arrangements and results described in conjunction with
The phenomenon of the influence of the duty cycles of signals CLK1 and CLK2 to be compared on the transfer function when the measuring system according to
With the aid of low pass filters, as described above the duty cycle of the signal illustrated in
For an accurate measurement of the time offset between CLK1 and CLK2 that is independent of the duty cycle, the method must be modified as illustrated in
The transfer function of such a circuit is illustrated in
The modification of the method described in
where once again T0 is the period duration, VDD is the operating voltage of the mixer, and Vout is the direct voltage at the output of the low pass filter.
Of course, the modified method described above for determining the absolute time offset of two digital clock signals having the same frequency also requires a different mixer than the XOR gate used in the simple method according to
For implementing the circuitry-based method illustrated in
The circuit illustrated in ”. Outputs Q of the flip-flops are connected to an input of an XOR gate 210 via node x1 or x2, respectively, and also to an input of an AND gate 220.
When the circuit is active, i.e., en=1 (where “en” stands for “enable”), the outputs of flip-flops FF1 and FF1 at the respective rising edges of CLK1 or CLK2 accept the piece of data from respective data inputs D of the flip-flops at outputs Q. The outputs are set, i.e., are logical 1's.
Flip-flops FF1 and FF2 are reset in each case with the aid of a combinational circuit made up of AND gate 220, an OR gate 230, and an inverter 240. This takes place either as soon as both flip-flops are set, or if en=0. As a result of this design, various logical signal values are present at the inputs of XOR gate 210 only for the exact duration of time offset |ΔT| between CLK1 and CLK2. This is totally independent of the duty cycles of signals CLK1 and CLK2.
The mixing of the signals on nodes x1 and x2 is carried out using XOR gate 210. The mixed product at output 204 of XOR gate 210 (i.e., the signal at node y) is filtered using a passive low pass filter 300 made up of a resistor R and a capacitor C (also see the description for
At the start of the measurement, signal CLK2 initially supplies a rising edge, so that output Q of second flip-flop FF2 switches, i.e., a logical 1 is set there, which is then present at the first input of XOR gate 210 and likewise at the first input of AND gate 220 (node x2). However, signal CLK1 is still at a logical 0, so that the Q output of first flip-flop FF1 still supplies a 0. The XOR gate thus switches; i.e., at its output 204 and thus at node y a 1 is supplied (lowest signal in the figure), which is then passed on to low pass filter 300. However, the AND gate at its output remains at a 0, as the result of which, via node z, a 0 is also present at reset inputs RST of both flip-flops (signal denoted by reference symbol RST in the figure). The duration of the above-described state is denoted in the figure by the left crosshatched highlight.
As soon as first clock signal CLK1 also supplies a 1, i.e., beginning with the first rising edge of CLK1, a 1 is also set at the Q output of first flip-flop FF1, and the 1 is then present, via node x1, at the second input of XOR gate 210 and at the same time at the second input of AND gate 220. Thus, at that moment a logical 1 is set on both nodes x1 and x2 (the circuit is in this state for only a very short time, characterized here by the duration of the first pulse of signal x1 (see below)). At its output 204, XOR gate 210 thus switches a 0, which is then transferred to the low pass filter via node y, and at its output AND gate 220 switches a 1, which is then relayed to the reset inputs of the two flip-flops via OR gate 230 and nodes z1 and z. As a result, at their respective Q outputs both flip-flops now switch a 0, which (via nodes x1 and x2) is then present at both inputs of XOR gate 210 and of AND gate 220, so that XOR gate 210 as well as AND gate 220 switch to 0 at their respective output. Thus, the signal at node y is set to 0 and passed on to low pass filter 300. The reset inputs of the flip-flops are likewise set to 0 via nodes z1, z and OR gate 230. Thus, in summary, nodes x1, x2, y and the reset inputs of the flip-flops are set to 0 (state prior to the second crosshatched strip in the figure, viewed starting from the left).
This state does not change, even if signals CLK1 and CLK2 drop back to 0, since this does not affect the state of the Q outputs of the flip-flops. Nodes x1, x2, y and the reset inputs of the flip-flops thus continue to remain at 0 (states of the circuit over the duration of the second crosshatched strip, viewed starting from the left, to the start of the third crosshatched strip in the figure). This corresponds to the original state. The above-described procedure now repeats upon reaching the second rising edge of second signal CLK2.
As is apparent in the figure from the signal at node y, for each period T0 this node is set to 1 for the exact duration of phase shift ΔT. The signal of node y is then fed into the low pass filter, which, as described above, then filters out the constant component of the signal, which may then be measured with a voltmeter, and after appropriate normalization (see above) corresponds precisely to value |ΔT|/T0, which via equation (2) described above may be immediately converted into absolute time offset |ΔT| of incoming clock signals CLK1 and CLK2.
When the above-described circuit is used, for each period small pulse widths result for the signals at node z (i.e., at reset inputs RST of the flip-flops) and x1, as well as a temporal overhang of the signal pulse at node x2 beyond the end of the signal pulse at node y. These small pulse widths as well as the stated temporal overhang of the signal pulse at node x2 are determined by the signal propagation time through the chain made up of the AND gate and the OR gate. In particular, the pulse width is approximately equal to the sum of all delays in the signal path, from inputs RST of the flip-flops to the output of the OR gate. However, the overlappings of x1 and x2 determined by the propagation time have no effect due to the behavior of the XOR gate, in which a logical 1 appears at its output only when its two inputs are different (i.e., when a logical 0 is present at one input of the XOR gate, and at the same time a logical 1 is present at the other input of the XOR gate). The accuracy is affected mainly by manufacturing- or design-related differences in the propagation times due to the flip-flops (clock to output delay) and propagation time differences between the two XOR inputs. This is the reason for the symmetrical design in the arrangement of the flip-flops. Also for this reason, a symmetrical design of the internal structure of the XOR gate is advantageous (see the discussion for
As described above, with regard to the temporal sequences of the signal processing, a highly symmetrical XOR gate is advantageous for implementation of the circuit shown above using circuitry techniques.
If the circuit shown in
Number | Date | Country | Kind |
---|---|---|---|
10 2019 216 148.0 | Oct 2019 | DE | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/EP2020/079334 | 10/19/2020 | WO |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2021/078675 | 4/29/2021 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
6154076 | Hastings | Nov 2000 | A |
20020180415 | Roth | Dec 2002 | A1 |
20020180472 | Kilian | Dec 2002 | A1 |
20150153174 | Kim | Jun 2015 | A1 |
20170279439 | Iversen | Sep 2017 | A1 |
20200209301 | Karin | Jul 2020 | A1 |
Entry |
---|
International Search Report for PCT/EP2020/079334, Issued Jan. 28, 2021. |
Bishnu Prasad Das et al., “On-Chip Measurement of Rise/Fall Gate Delay Using Reconfigurable Ring Oscillator,” IEEE Transactions On Circuits and Systems II: Express Briefs, vol. 61, No. 3, 2014, pp. 183-187. <https://vdocuments.net/on-chip-measurement-of-risefall-gate-delay-using-reconfigurable-ring-oscillator.html> Mar. 31, 2022. |
Pei et al., “A Low Overhead On-Chip Path Delay Measurement Circuit,” IEEE Asian Test Symposium, 2009, pp. 145-150. <https://ur.booksc.me/book/30840092/2d1c63> Mar. 31, 2022. |
Yao et al., “Measurement of Time Delay for a Transmission Line in Frequency Domain,” IEEE Conference On Precision Electromagnetic Measurements, 2000, pp. 88-89. <https://in.booksc.eu/book/32075816/927668> Mar. 31, 2022. |
Jaya et al., “A High-Resolution On-Chip Propagation Delay Measurement Scheme,” IEEE International SOC Design Conference, 2015, pp. 143-144. |
Katoh et al., “A Low Area On-Chip Delay Measurement System Using Embedded Delay Measurement Circuit,” 19th IEEE Asian Test Symposium, 2010, pp. 343-348. |
Number | Date | Country | |
---|---|---|---|
20220381822 A1 | Dec 2022 | US |