Method and apparatus for estimating a phase relation between binary signals
11169191 · 2021-11-09
Inventors
Cpc classification
G01R25/005
PHYSICS
G11C7/222
PHYSICS
International classification
Abstract
Techniques for estimating a phase relation between a first binary signal and a second binary signal, in particular to a clock-to-data phase detection in double-data-rate signals. The binary signals may include both rising and falling signal edges. Techniques may include determining a first and second signal edge for the first binary signal and comparing the signal edges of the first binary signal to one or more signal edges of the second binary signal, then performing one or more calculations based on the comparisons. The phase relation between the first binary signal and the second binary signal may be determined based on the one or more calculations.
Claims
1. A method for estimating a phase relation between a first binary signal, bs1, and a second binary signal, bs2, wherein both binary signals comprise over the course of time rising and falling signal edges at edge times, the method comprising the steps of: receiving, by a determination unit, the first binary signal via a first signal line; receiving, by the determination unit, the second binary signal via a second signal line; determining, by the determination unit, a first edge time, t1(bs1), and a subsequent second edge time, t2(bs1), of the first binary signal, bs1, and determining a third edge time, t1(bs2) of the second binary signal, bs2; generating, by the determination unit, a triplet of edge times and providing the generated triplet to a phase estimation unit; estimating, by the phase estimation unit, the phase relation between the first binary signal, bs1, and the second binary signal, bs2, based upon the first, second and third edge times; and outputting, by the phase estimation unit, a binary signal carrying a sequence of bits indicating the detected phase relation between the first binary signal and the second binary signal to improve data transfers within a computer and its memory.
2. The method according to claim 1 wherein the first binary signal, bs.sub.1, comprises a clock signal received via a clock signal line.
3. The method according to claim 1 wherein the second binary signal, bs.sub.2, comprises a data signal received via a data signal line.
4. The method according to claim 1 wherein estimating the phase relation between the first binary signal, bs.sub.1, and the second binary signal, bs.sub.2, comprises a substep of: calculating the absolute value of the difference between the first edge time, t.sub.1.sup.(bs1), and the third edge time, t.sub.1.sup.(bs2), to provide a numerator value.
5. The method according to claim 4 wherein estimating the phase relation between the first binary signal, bs.sub.1, and the second binary signal, bs.sub.2, comprises a substep of: calculating a difference between the second edge time, t.sub.2.sup.(bs1) and the first edge time, t.sub.1.sup.(bs1), and to multiply the calculated difference with a predetermined factor to provide a denominator value.
6. The method according to claim 5 wherein estimating the phase detection between the first binary signal, bs.sub.1, and the second binary signal, bs.sub.2, comprises substep of: calculating a quotient, ϕ, between a numerator value and a denominator value to provide the estimated phase relation between both binary signals.
7. The method according to claim 6 wherein estimating the phase relation between the first binary signal, bs.sub.1, and the second binary signal, bs.sub.2, comprises determining whether a calculated quotient, ϕ, comprises an even value.
8. The method according to claim 7 wherein the calculation steps during estimation of the phase relation between the first binary signal, bs.sub.1, and the second binary signal, bs.sub.2, are repeated for a predetermined repetition number, R, to generate a set of calculated quotients, ϕ, comprising at least two calculated quotients.
9. The method according to claim 8 wherein if a predetermined number N of consecutive quotients having an even value is determined within the generated set of quotients, the binary signals are classified as being in-phase, and wherein if a predetermined number N of consecutive quotients having an uneven number value is determined within the generated set of quotients, the binary signals are classified as being out-of-phase.
10. The method according to claim 7 wherein determining whether the calculated quotient, ϕ, comprises an even value is performed by a modulo 2 operation.
11. The method according to claim 1 wherein the estimated phase difference between the first binary signal, bs.sub.1, and the second binary signal, bs.sub.2, is used to differentiate between a read frame and a write frame in decode results of a double data rate protocol decoder of a measurement device.
12. The method according to claim 1, wherein edge times of the first and secondary binary signals having an overlap in time below a predetermined minimum overlap time are discarded.
13. An apparatus for estimation of a phase relation between a first binary signal, bs1, and a second binary signal, bs2, wherein both binary signals comprise over the course of time rising and falling signal edges at edge times, the apparatus comprising one or more processing units implemented in circuitry, the one or more processing units comprising a determination unit and a phase estimation unit, wherein the determination unit is connected to a first signal line and a second signal line, and the determination unit is configured to receive the first binary signal via the first signal line, to receive the second binary signal via the second signal line, to determine a first edge time, t1(bs1), and a subsequent second edge time, t2(bs1), of the first binary signal, bs1, to determine a third edge time, t1(bs2), of the second binary signal, bs2, to generate a triplet of edge times, and to provide the generated triplet to the phase estimation unit; and the phase estimation unit is configured to estimate the phase relation between the first binary signal, bs1, and the second binary signal, bs2, based upon remaining not discarded first, second and third edge times, and to output a binary signal carrying a sequence of bits indicating the detected phase relation between the first binary signal and the second binary signal to improve data transfers within a computer and its memory.
14. The apparatus according to claim 13 wherein the phase estimation unit is configured to calculate the absolute value of the difference between the first edge time, t.sub.1.sup.(bs1), and the third edge time, t.sub.1.sup.(bs2), to provide a numerator value, to calculate a difference between the second edge time, t.sub.2.sup.(bs1), and the first edge time, t.sub.1.sup.(bs1), and multiplying the calculated difference with a predetermined factor to provide a denominator value, to calculate a quotient, ϕ, between the numerator value and the denominator value to provide the estimated phase relation between both binary signals and to determine whether the calculated quotient comprises an even value or not.
15. The apparatus according to claim 14 wherein the phase estimation unit is configured to repeat the calculation substeps for a predetermined repetition number, R, to generate a set of calculated quotients comprising at least two calculated quotients.
16. The apparatus according to claim 14 wherein if the number N of consecutive quotients with an even value within the generated set does reach a predetermined threshold, the binary signals are classified as being in-phase and wherein if the number N of consecutive quotients with an uneven value within the generated set reaches a predetermined threshold, the binary signals are classified as being out-of-phase.
17. A measurement device comprising an apparatus for estimation of a phase relation between a first binary signal, bs.sub.1, and a second binary signal, bs.sub.2, wherein both binary signals comprise over the course of time rising and falling signal edges at edge times, the estimation apparatus comprising one or more processing units implemented in circuitry, the one or more processing units comprising a determination unit and a phase estimation unit, wherein the determination unit is connected to a first signal line and a second signal line, and the determination unit is configured to receive the first binary signal via the first signal line, to receive the second binary signal via the second signal line to determine a first edge time, t.sub.1.sup.(bs1), and a subsequent second edge time, t.sub.2.sup.(bs1), of the first binary signal, bs.sub.1, to determine a third edge time, t.sub.1.sup.(bs2), of the second binary signal, bs.sub.2, to generate a triplet of edge times, and to provide the generated triplet to the phase estimation unit; the phase estimation unit is configured to estimate the phase relation between the first binary signal, bs.sub.1, and the second binary signal, bs.sub.2, based upon the first, second and third edge times, and to output a binary signal carrying a sequence of bits indicating the detected phase relation between the first binary signal and the second binary signal; said measurement device further comprising a double data rate, DDR, protocol decoder, wherein the binary signal output by the phase estimation unit of said estimation apparatus is used to differentiate between a read frame and a write frame in decode results of the double data rate, DDR, protocol decoder of said measurement device.
Description
BRIEF DESCRIPTION OF FIGURES
(1) In the following, possible embodiments of the different aspects of the present invention are described in more detail with reference to the enclosed figures.
(2)
(3)
(4)
(5)
(6)
(7)
(8)
DETAILED DESCRIPTION
(9) As can be seen in the flowchart of
(10) In a first step S1, a first edge time t1.sup.(bs1) and a subsequent second edge time t2.sup.(bs1) of the first binary signal bs1 is determined. The first binary signal can for instance comprise a clock signal. Further, in step S1, a third edge time t1.sup.(bs2) of a second binary signal bs2 is determined. The second binary signal can comprise in a possible embodiment a data signal.
(11) In a further step S2, the phase relation between the first binary signal bs1 and the second binary signal bs2 is estimated based upon the first, second and third edge times.
(12) In a possible embodiment, the first binary signal bs1 comprises a clock signal CLK and the second binary signal bs2 comprises a data signal. Accordingly, the method illustrated in
(13) If the first binary signal bs1 comprises a clock signal CLK and the second binary signal bs2 comprises a data signal, the decision rule can be as follows:
(14) If the difference between a first edge time of a clock signal CLK and the third edge time of the second binary signal (data signal) is an even multiple of a clock signal half-period, the events are in-phase, otherwise they are out-of-phase.
(15) In a possible implementation, if there are enough decisions to reach a 95% confidence interval, a final call can be made on whether the clock and data signals are in-phase or out-of-phase. Accordingly, the decision whether two binary signals are in-phase or out-of-phase is derived from a triplet of timestamps or edge times at signal transitions of the two binary signals.
(16)
(17) In a first substep S21, an absolute value of the difference between the first edge time t1.sup.(bs1) and the third edge time t1.sup.(bs2) is calculated to provide a numerator value.
(18) In a further substep S22, the difference between the second edge time t2.sup.(bs1) and the first edge time t1.sup.(bs1) is calculated and multiplied with a predetermined factor to provide a denominator value. The factor is configurable and comprises in a preferred embodiment a value of 0.5.
(19) In a further substep S23, a quotient ϕ between the numerator value and the denominator value is calculated to provide an estimated phase relation between both binary signals.
(20) Finally, in substep S24, it can be determined whether the calculated quotient comprises an even value or not.
(21) The determination whether the calculated quotient ϕ comprises an even value or not can be performed in a possible embodiment by a modulo 2 operation.
(22) In a possible embodiment, the calculation substeps as illustrated in
(23) If a predetermined number N of consecutive quotients having an even value is determined within the generated set of quotients, binary signals bs1, bs2 are classified as being in-phase. In contrast, if a predetermined number of consecutive quotients having an uneven number value is determined within the generated set of quotients, the binary signals bs1, bs2 are classified as being out-of-phase. The predetermined number N required to determine whether the two binary signals bs1, bs2 are classified as being either in-phase or out-of-phase is configurable in a preferred embodiment. In a possible embodiment, the estimated phase difference between the first binary signal bs1 (e.g. clock signals) and the second binary signal bs2 (e.g. data signal) is used to differentiate between a read frame and a write frame in decode results of a double-data-rate, DDR, protocol decoder of a measurement device. The double-data-rate protocol decoder can comprise a double-data-rate 3 protocol decoder which may be used in a oscilloscope application suite. In this use case, the method as illustrated in the flow charts of
(24) In a possible embodiment, the phase relations ϕ between the two binary signals bs1, bs2 are calculated as follows:
(25)
(26) Depending on the calculated quotient, it can be decided whether the signal is in-phase or out-of-phase as follows:
(27)
(28)
(29) The determination unit 2 is adapted to determine a first edge time t1.sup.(bs1) and a subsequent second edge time t2.sup.(bs1) of the first binary signal bs1 and to determine a third edge time t1.sup.(bs2) of a second binary signal bs2. The first binary signal bs1 can comprise for instance a clock signal CLK received via a clock signal line. The second binary signal bs2 can comprise in a possible embodiment a data signal received via a separate data signal line. In a further possible embodiment, more than one data signal can be applied as additional second binary signals to the input of the phase estimation apparatus 1. The determination unit 2 determines a first edge time, (first signal transition time) and a subsequent second edge time (second signal transition time) of the first binary signal bs1, e.g. the clock signal CLK. The determination unit 2 further determines a third edge time (third signal transition time) of the second binary signal bs2, i.e. the data signal. Accordingly, the determination unit 2 generates in a possible embodiment a triplet of edge times or timestamps applied to the following phase estimation unit 3.
(30) A discarding unit (not shown) can be provided in a possible embodiment adapted to discard edge times (timestamps) of the first and second binary signals having an overlap in time below a predetermined minimum overlap time. In a possible embodiment, the minimum overlap time is configurable. The not discarded edge times are supplied to the following phase estimation unit 3 of the phase estimation apparatus 1.
(31) In a possible embodiment, the phase estimation unit 3 is adapted to perform the calculation substeps as illustrated in the flowchart of
(32) if ϕ mod2=0, the calculated quotient comprises an even value, whereas
(33) if ϕ mod2≠0, the calculated quotient comprises a not even value.
(34) The phase estimation unit 3 is adapted to repeat the calculation substeps as illustrated in
(35)
(36)
(37)
Further, applying the modulo 2 operation given by formula (2) ϕ mod2=0 mod2=0. Since the modulo 2 operation provides a value of 0, the two binary signals bs1, bs2 are classified as being in-phase.
(38)
(39)
Performing the modulo 2 operation provides a value as follows: φ mod2=1 mod2=1≠0 Accordingly, the two binary signals bs1, bs2 are classified as being out-of-phase.
(40)
(41) The phase estimation apparatus 1 allows to classify the binary signals bs1, bs2 as in-phase or out-of-phase very fast and can be implemented without requiring high complexity. Phase estimation can be performed even at very high signal rates in a robust and reliable manner even for noisy signals. The binary signals bs1, bs2 can comprise a very high frequency exceeding e.g. 100 MHz. The applied data signals can comprise double-data-rate DDR signals. The method and apparatus 1 according to the present invention can be used for any kinds of binary signals, e.g. also for a phase detection between two data signals and for a phase detection between two clock signals. In a possible embodiment, the steps of method illustrated in
(42) In a possible embodiment the output signal of the phase estimation apparatus 1 comprises also a binary signal bs carrying a sequence of bits indicating the detected phase information by to different logical values and corresponding signal levels, e.g. a high signal level for “in phase” and a low signal level value for “out of phase”. This binary output signal can be applied as a binary signal to another phase estimation apparatus 1′ to be compared with another binary signal. Accordingly it is possible to connect several phase estimation apparatuses 1 as shown in the block diagram of