METHOD AND CIRCUIT FOR SIMPLE MEASUREMENT OF THE PHASE SHIFT BETWEEN TWO DIGITAL CLOCK SIGNALS HAVING THE SAME FREQUENCY
20220381822 · 2022-12-01
Inventors
Cpc classification
G01R25/005
PHYSICS
G01R31/31727
PHYSICS
H03K19/21
ELECTRICITY
H03K5/06
ELECTRICITY
International classification
Abstract
A method for simple measurement of phase shift between a first clock signal and a second clock signal is described, each clock signal having a period T.sub.0. The method includes: feeding the first clock signal into a first input of a mixer; feeding the second clock signal into a second input of the mixer; feeding the output signal of the mixer into a low pass filter; and measuring the output signal of the low pass filter, with the aid of an output voltage that is normalized to operating voltage of the mixer. A circuit for implementing the method 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. The output of the mixer is connected to the input of the low pass filter.
Claims
1-14. (canceled)
15. A method for measuring a phase shift between a first clock signal and a second clock signal, the first clock signal and the second clock signal having the same frequency, the method comprising the following steps: a-1) feeding the first clock signal into a first input of a mixer; a-2) feeding the second clock signal into a second input of the mixer ; d) feeding an output signal of the mixer into a low pass filter; and e) measuring the output signal of the low pass filter.
16. The method as recited in claim 15, wherein the mixer includes an XOR gate, and step d) includes feeding an output signal of the XOR gate into an input of the low pass filter.
17. The method as recited in claim 16, wherein step a-1) includes feeding the first clock signal into a first input of the XOR gate, step a-2) includes feeding the second clock signal into a second input of the XOR gate, and the method further includes the following step: f) normalizing the output signal of the low pass filter to a period duration of the first and second clock signals and an operating voltage of the mixer, the output signal of the low pass filter being multiplied by one-half the period duration and divided by the operating voltage of the mixer.
18. The method as recited in claim 16, wherein the mixer includes a first edge-controlled flip-flop, a second edge-controlled flip-flop, and an AND gate, step a-1) includes feeding the first clock signal into a dynamic input of the first flip-flop; step a-2) includes feeding the second clock signal into a dynamic input of the second flip-flop; and the method further comprises the following steps: b-1) feeding an output signal of the first flip-flop into a first input of the XOR gate and into a first input of the AND gate; b-2) feeding an output signal of the second flip-flop into a second input of the XOR gate and into a second input of the AND gate; c-1) relaying an output signal of the AND gate to a reset input of the first flip-flop; and c-2) relaying the output signal of the AND gate to a reset input of the second flip-flop.
19. The method as recited in claim 18, wherein the mixer also includes an OR gate and an inverter, step c-1) includes feeding the output signal of the AND gate into a first input of the OR gate and feeding an 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; and wherein the method further includes the following steps: feeding a constant activation signal into a data input of the first flip-flop, a data input of the second flip-flop, and an input of the inverter; feeding an output signal of the inverter into a second input of the OR gate.
20. The method as recited claim 19, further comprising the following step: f′) normalizing the output signal of the low pass filter to the period duration of the first and second clock signals and the operating voltage of the mixer.
21. The method as recited in claim 20, wherein in step f) either: (i) the output voltage of the low pass filter being multiplied by the period duration and divided by the operating voltage of the mixer when the output voltage of the low pass filter is less than one-half the operating voltage of the mixer, or (ii) a difference between the operating voltage of the mixer and the output voltage of the low pass filter being multiplied by the period duration and divided by the operating voltage of the mixer when the output voltage of the low pass filter is greater than one-half the operating voltage of the mixer or is equal to one-half the operating voltage of the mixer.
22. A circuit for measuring the phase shift between a first clock signal and a second clock signal, comprising: a mixer; and a low pass filter; wherein the mixer includes a first input configured to feed in the first clock signal and a second input configured to feed in the second clock signal, and an output of the mixer is connected to the input of the low pass filter.
23. The circuit as recited in claim 22, wherein the mixer includes an XOR gate, and an output of the XOR gate is connected to the input of the low pass filter.
24. The circuit as recited in claim 23, wherein the first input of the mixer is a first input of the XOR gate, and the second input of the mixer is a second input of the XOR gate.
25. The circuit as recited in claim 23, wherein the mixer further includes a first edge-controlled flip-flop, a second edge-controlled flip-flop, and an AND gate, the first input of the mixer is a dynamic input of the first flip-flop, the second input of the mixer is a dynamic input of the second flip-flop, an output of the first flip-flop is connected to a first input of the XOR gate and to a first input of the AND gate, the output of the second flip-flop is connected to a second input of the XOR gate and to a second input of the AND gate, the mixer includes a connection between an output of the AND gate and a reset input of the first flip-flop, and the mixer includes a connection between the output of the AND gate and a reset input of the second flip-flop.
26. The circuit as recited in claim 25, wherein the mixer further 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, the output of the AND gate is connected to a first input of the OR gate, and an output of the OR gate is connected to the reset input of the first flip-flop and to the reset input of the second flip-flop, the mixer includes a third input, the third input of the mixer being connected to a data input of the first flip-flop, to a data input of the second flip-flop, and to an input of the inverter, and an output of the inverter is connected to a second input of the OR gate.
27. The circuit as recited in claim 22, wherein the circuit is an integrated circuit.
28. The circuit as recited in claim 22, wherein the low pass filter is a passive low pass filter and includes a resistor and a capacitor.
29. The circuit as recited in claim 23, wherein the XOR gate is a highly symmetrical XOR gate.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Exemplary embodiments of the present invention are explained in greater detail based on the figures and the following description.
[0051]
[0052]
[0053]
[0054]
[0055]
[0056]
[0057]
[0058]
[0059]
[0060]
[0061]
DETAILED DESCRIPTION OF EXAMPLE EMBODIMENTS
[0062]
[0063]
[0064] 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
[0065]
[0066] 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 CLK.sub.1 and CLK.sub.2 the start of a period occurs “earlier.” Since the signals are periodic, establishing specific start t.sub.0 and end t.sub.0+ΔT of a period is arbitrary anyway, and only the time difference between the start and the end must correspond to period duration T.sub.0. For the same reason, it ultimately makes no difference whether a time offset is expressed as |ΔT| or |T.sub.0−ΔT|; it is usually expressed here as min{|ΔT|, |T.sub.0−ΔT|}.
[0067] 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
[0068] Since the duty cycles of both signals is ½, a signal s having twice the frequency of signals CLK.sub.1 and CLK.sub.2 is obtained at the mixer output, i.e., at node y. This is schematically illustrated in
[0069] Consequently, output signal y of mixer 200a is initially fed into a low pass filter 300 (cf.
[0070] 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
[0071] Thus, for measuring (absolute) time offset |ΔT|, it is necessary only to measure direct voltage V.sub.out 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
[0072] The absolute value of time offset |ΔT| may thus be expressed by
where T.sub.0 is the period duration, V.sub.DD is the operating voltage of the mixer, and V.sub.out is the direct voltage at the output of the low pass filter.
[0073] 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
[0074] Low pass filter 300 may be easily implemented, for example, by the combination of resistor R and capacitor C shown in
[0075] 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 CLK.sub.1 and CLK.sub.2 to be compared influence the result. In other words, the arrangements and results described in conjunction with
[0076] The phenomenon of the influence of the duty cycles of signals CLK.sub.1 and CLK.sub.2 to be compared on the transfer function when the measuring system according to
[0077] With the aid of low pass filters, as described above the duty cycle of the signal illustrated in
[0078] For an accurate measurement of the time offset between CLK.sub.1 and CLK.sub.2 that is independent of the duty cycle, the method must be modified as illustrated in
[0079] The transfer function of such a circuit is illustrated in
[0080]
[0081] The modification of the method described in
where once again T.sub.0 is the period duration, V.sub.DD is the operating voltage of the mixer, and V.sub.out is the direct voltage at the output of the low pass filter.
[0082] 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
[0083] For implementing the circuitry-based method illustrated in
[0084] The circuit illustrated in ”. Outputs Q of the flip-flops are connected to an input of an XOR gate 210 via node x.sub.1 or x.sub.2, respectively, and also to an input of an AND gate 220.
[0085] 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 CLK.sub.1 or CLK.sub.2 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.
[0086] 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 CLK.sub.1 and CLK.sub.2. This is totally independent of the duty cycles of signals CLK.sub.1 and CLK.sub.2.
[0087] The mixing of the signals on nodes x.sub.1 and x.sub.2 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
[0088]
[0089] At the start of the measurement, signal CLK.sub.2 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 x.sub.2). However, signal CLK.sub.1 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.
[0090] As soon as first clock signal CLK.sub.1 also supplies a 1, i.e., beginning with the first rising edge of CLK.sub.1, a 1 is also set at the Q output of first flip-flop FF1, and the 1 is then present, via node x.sub.1, 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 x.sub.1 and x.sub.2 (the circuit is in this state for only a very short time, characterized here by the duration of the first pulse of signal x.sub.1 (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 z.sub.1 and z. As a result, at their respective Q outputs both flip-flops now switch a 0, which (via nodes x.sub.1 and x.sub.2) 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 z.sub.1, z and OR gate 230. Thus, in summary, nodes x.sub.1, x.sub.2, 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).
[0091] This state does not change, even if signals CLK.sub.1 and CLK.sub.2 drop back to 0, since this does not affect the state of the Q outputs of the flip-flops. Nodes x.sub.1, x.sub.2, 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 CLK.sub.2.
[0092] As is apparent in the figure from the signal at node y, for each period T.sub.0 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|/T.sub.0, which via equation (2) described above may be immediately converted into absolute time offset |ΔT| of incoming clock signals CLK.sub.1 and CLK.sub.2.
[0093] 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 x.sub.1, as well as a temporal overhang of the signal pulse at node x.sub.2 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 x.sub.2 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 x.sub.1 and x.sub.2 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
[0094] 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.
[0095] If the circuit shown in