The present invention is related to signal processing and, specifically, to signal measurement devices used in automatic test equipments.
Time-to-digital converters (TDC) in automatic test equipment applications time stamp selected events from the device under test (DUT), i.e. measure the arrival time relative to a tester clock. A time stamper is also known as a continuous time interval analyzer.
Time stamp measurements have a large number of applications in test, each with different requirements. Jitter measurements of high-speed serial interfaces necessitate a high resolution of about 1% of a bit period, i.e. 3 ps at 3 Gbps and can be made using time stamps. The signal may have an arbitrary phase relative to the tester clock. Skew measurements between clock and data of source-synchronous busses necessitate a high resolution of about 1% of bit period combined with a highest possible sample rate to obtain high coverage of sporadic timing violations. Clock-to-output measurements of slow digital outputs necessitate a very large dynamic range at moderate resolution. I/Q phase imbalance measurements can necessitate 1 ps resolution in a dynamic range of 1 ps. Dynamic PLL measurements necessitate sample rates in the order of 100 Msa/s (mega samples per second) to follow the loop dynamics. Write-precompensation tests of DVD and HDD channels necessitate fast and accurate time measurements.
A fully digital time-to-digital converter is disclosed in “Fully Digital Time-to-Digital Converter for ATE with Autonomous Calibration”, Jochen Rivoir, International Test Conference 2006, paper 6.3.
A vernier delay line is described, which is a fast “flash” version of a vernier oscillator TDC, which is also known as a component-invariant delay line. In a vernier delay line, two delay line branches with slightly different average gate delays achieve an average sub-gate delay resolution. The measured event injects a pulse into this slow delay line with average buffer delays, the next coarse clock edge is injected into the fast delay line with different average buffer delays. Starting with an initial time difference, each stage reduces the difference by a nominal delta value until the time difference becomes negative after a number of c stages. Flip-flops in each stage act as phase arbiters between the two racing pulses. A positive phase difference is captured as “1” and a negative phase difference is captured as a logical “0”, where the negative phase difference happens in a stage c at a first time. A priority encoder is connected to the output of each phase arbiter and the priority encoder outputs the first stage capturing a “0” value. Vernier delay differences of between the delays in one stage of about 1 ps are possible with modern CMOS processes. A fine time range TR which equals one coarse clock period necessitates
stages. When using a parallel read-out, the propagation time through S buffers with a delay Ts limits the sample rate to
However, unavoidable gate delay mismatches lead to non-linearities and even significantly non-monotonic behavior. To address this issue, a statistical linearity calibration is implemented, which uses a large number of events that are uniformly distributed across one coarse clock period, i.e. the time range of the vernier delay line interpolator. On average, the number of captured “1” in a given vernier stage is proportional to its accumulated vernier delay and, thus, can be used to calibrate the vernier delay line (VDL). A (free running) ring oscillator can generate events that are uncorrelated to the coarse clock to a sufficient degree and, thus, uniformly distributed.
In high-resolution designs, the chain of accumulated vervier delays can easily be non-monotonic. This means that from one stage to the next, the accumulated venier delay can remain the same or can even decrease. On average, an accumulated venier delay increases, for example, by 1 ps per stage, but varies from −3 ps to +5 ps between subsequent stages. For non-monotonic accumulated venier delays Tk, there can be multiple stage changes between neighboring flip-flops. Finding the stage with the closest accumulated venier delay using real-time hardware necessitates knowing all accumulated delays. Therefore, typical flash convertees, such as the venier delay line TDC uses a simple priority encoder to identify the stage number c of the first flip-flop that captures a “0”. Thus, stages whose Tk is smaller than those of previous stages are ignored.
The statistical linearity calibration is based on a code density calibration. Specifically, a probability pc of hitting code c is proportional to the time window that leads to code c, i.e. the increase of Gc from the previous stage c-1. For N events, code c can be expected, {circumflex over (n)}c times
The actual count nc can be used for an estimate {tilde over (D)}c of the monotonic increase Dc
Iterating
D
c
=G
c
−G
c-1
yields the estimated accumulated vernier delays {tilde over (G)}c
A mission-mode measurement with code c will return the calibrated measured time interval {tilde over (t)} as the mean of the two adjacent growing delays.
While this concept is advantageous for several applications due to the easy-to-implement and fast-to-implement calibration process, nevertheless, there exists a situation in which the accuracy of the measurements is not fully optimum.
According to an embodiment, an apparatus for estimating data relating to a time difference between two events may have: a delay line having a plurality of stages, each stage having a first delay in a first part and a second delay in a second part, the first delay and the second delay being different from each other, and each stage (having a phase arbiter indicating by an indication signal having one of two different states, whether a first event of the two events in the first part precedes or succeeds a second event of the two events in the second part; and a summation device for summing over the indication signals of the plurality of stages to obtain a sum value indicating an estimate of the time difference.
According to another embodiment, a method of estimating data relating to a time difference between two events using a delay line having a plurality of stages, each stage having a first delay in a first part and a second delay in a second part, the first delay and the second delay being different from each other and each stage having a phase arbiter indicating by an indication signal having one of two different states, whether a first event of the two events in the first part precedes or succeeds a second event of the two events in the second part, may have the step of: summing, over the indication signals of the plurality of stages, to obtain a sum value indicating a time difference estimate.
According to another embodiment, a method of calibrating a delay line having a plurality of stages, each stage having a first delay in a first part and a second delay in a second part, the first delay and the second delay being different from each other and each stage having a phase arbiter indicating by an indication signal having one of two different states, whether a first event of two events in the first part precedes or succeeds a second event of the two events in the second part, may have the steps of: connecting a source of calibration events to a first input connected to the first part of a first stage of the plurality of stages, the source of calibration events being such that the calibration events are distributed over a full measurement range of the delay line; in response to a calibration event, summing over the indication signals of the plurality of stages to obtain a calibration sum value; repeating the step of summing for a number of calibration events, which is higher 2N, N being the number of all stages of the delay line, so that more than 2N calibration count values are obtained; and for each calibration sum value, determining a number of occurrences of the calibration sum value in all calibration count values and storing a calibration value for the calibration sum value, which depends on the number of occurrences in a calibration storage.
According to another embodiment, an apparatus for calibrating a delay line having a plurality of stages, each stage having a first delay in a first part and a second delay in a second part, the first delay and the second delay being different from each other and each stage having a phase arbiter indicating by an indication signal having one of two different states, whether a first event of two events in the first part precedes or succeeds a second event of the two events in the second part, may have: a connector for connecting a source of calibration events to a first input connected to the first part of a first stage of the plurality of stages, the source of calibration events being such that the calibration events are distributed over a full measurement range of the delay line; a summation device for summing over the indication signals of the plurality of stages to obtain a calibration sum value, in response to a calibration event; a controller for repeating the step of summing for a number of calibration events, which is higher than 2N, N being the number of all stages of the delay line, so that more than 2N calibration count values are obtained; and a processor for determining, for each calibration sum value, a number of occurrences of the calibration sum value in the more than 2N calibration count values and storing a calibration value for the calibration sum value, which depends on the number of occurrences in a calibration storage.
Another embodiment may have a computer program having a program code for performing when running on a computer, the inventive methods.
The present invention is based on the finding that a delay line read-out based on the priority encoder wastes information from stages having a non-monotonic accumulated vernier delay. Specifically, a stage having an accumulated delay smaller than the accumulated delay of a preceding stage is “in the shadow” of the accumulated delay of the preceding stage. This means that due to the priority encoder attached to the phase arbiters of the different stages, this “shadoomed” stage will never be used during an actual measurement, since the priority encoder makes sure that this stage will never occur as a “winning” stage having, for example, a first “0” indication signal. Consequently, this “shadowed” state does not receive any calibration values, since these calibration values are never used for calculating an actual time difference between two events, i.e. between an edge of a measurement signal to be measured and a clock edge of a reference clock as the two different events.
Thus, the conventional priority encoder effectively cuts out any stages of the delay line, which do not show a monotonic behavior. Thus, even though one has, for example, created the vernier delay line having a certain number of stages, the actual number of stages contributing to the accuracy of the measurement is substantially lower than the real number of stages existing in hardware. This discrepancy between the stages actually used and the actually manufactured stages increases more and more when the requirements for speed and fine resolution grow, or when the manufacturing tolerances increase.
Furthermore, the priority encoder urges the designer to implement a serial ordering of stage's of a vernier delay line without branching to obtain a monotonous increase of accumulated delays. As the resolution of the time measurement is determined by the number of stages (divided by the full measurement range), high resolution implementations necessitate a high number of stages, i.e. a long chain of stages which leads to a reduced re-trigger rate, because of the long propagation delay through the vernier delay line.
In addition, due to the difference between the stages actually used and actually manufactured stages there exists an uncontrollable accuracy problem of the device, since the accuracy of the device will be poor in regions where there are several “shadowed” stages, and the measurement accuracy will be high in other regions of the device having no or only a small number of shadowed stages. Since, however, specifications are so that the poorest resolution portion determines the overall resolution specification of the device, producing devices having a very high-resolution specification will result in a high number of devices, which fail the final quality test. This enhances the cost of the manufacturing process per useful device to a high degree.
All these problems are addressed by replacing the priority read-out by a summation read-out. Thus, all stages having an accumulated vernier delay below the actual time difference are used for measurement, since the dogma of having a monotonic vernier delay line is abandoned. Instead, summing over the indication signal outputs of the phase arbiters will use each and every stage for measurement without any limitations regarding the monotonicity requirement. Instead, each stage is addressed in the calibration process and is used in the measurement process. Thus, the read-out based on a sum value might be considered to provide a kind of “re-sorting” of the stages in a monotonous order, although, in fact, the actual hardware delay line is still non-monotonous.
In accordance with embodiments of the present invention, a statistical linearity calibration is performed, but with a sum read-out instead of a priority read-out. This calibration process advantageously allows using each and every stage be it a monotonic stage or not in the measurement so that each stage contributes to the resolution.
The present invention results not only in an increased production yield and improved circuit characteristics at lower costs, but also allows a completely flexible design, since the summation device does not care about any orders of stages, but provides a count value, which is independent of the order of the stages contributing to this count value. Therefore, the present invention allows flexibility of design using branched delay lines or any other configuration of delay stages as long as each phase arbiter provides its indication signal to the summation device. Since, by nature, each stage will have a certain actual delay difference and since all these stages will be used in accordance with the present invention, the resolution of the vernier delay line does not depend on the number of stages in which a clock edge or a measurement edge has to propagate, but depends on a number of stages having distributed delay differences between the first part having a first delay and the second part having a second delay of a delay line stage.
Principally, a delay line having a comparably small number of sequentially-arranged stages, but having a substantial amount of parallel stages can be implemented, which has a heavily reduced propagation delay of a signal edge through the whole delay line so that a re-trigger rate can be considerably enhanced without a penalty in terms of semiconductor area, etc.
Embodiments of the present invention will be detailed subsequently referring to the appended drawings, in which:
a illustrates a diagram representing a non-monotonic accumulative time difference versus stage number of a delay line;
b illustrates a priority encoder read-out compared to a summation read-out for the example in
c illustrates the calculations performed by a processor for calculating a time stamp value in an embodiment;
The two events are input into a delay line 100. In particular, the delay line comprises a plurality of sequentially-arranged stages 101 to 104.
Each stage includes a first delay such as D1S in a first part, which is the upper part of the stage in
Depending on the specific implementation, the inventive apparatus additionally includes a calibration storage 300 for storing calibration values associated with different sum values. Furthermore, an embodiment additionally comprises a processor 400 for processing a test sum value obtained in a test measurement and the calibration values stored in the calibration storage to obtain the data relating to the time difference which are output at the processor output 401.
The data relating to the time difference can, in addition to the actual sum value at line 201, a time difference estimate as, for example, calculated in accordance with the equations in
The
Before the inventive calibration mode is discussed in connection with
A similar procedure is applied in accordance with the present invention, but with the important difference that instead of a priority encoder output, a sum encoder output is used for calibration purposes as well as test measurement purposes.
Subsequently, the flow chart in
The source for calibration events is a noisy or tittering device producing events equally distributed over the measurement range of the inventive device. The statistical properties of the calibration event source need not be equally distributed in any case. In a non-equally distributed case, the statistical properties should be known and would result in a correction factor for the calibration values. Then, the number of counted occurrences for a certain sum value would correspond to a calibration value over a factor which would be different from a factor for a different sum value. These factors would depend on the specific statistical properties of the calibration source.
Alternatively, an event source and a coarse clock having a small frequency offset to each other can be used. Although both clocks are correlated to each other, the differences of corresponding clock edges over time are equally distributed and can, therefore, be used for calibration purposes.
Now, a measurement is triggered. Then, after the necessitated measurement delay, the test sum value is input into the processor 201 and intermediately stored. Then, a re-trigger impulse is provided (not shown in
Then, in a step 24, the number of occurrences of a respective calibration sum value is determined for each calibration sum value bin. Specifically, in the
The lower portion of
Subsequently, the steps performed in a test mode embodiment are discussed in the context of
Although the delay line 100 has been discussed so that a logical “1” indicates that the first even precedes the second event so that the summation device 200 sums over all lines to find a sum value constituted by “1” outputs which would result in a sum output of “2” in the
Subsequently,
Contrary thereto, the present invention results in a test sum value 6 and since, in accordance with the present invention no stages are shadowed, the actual maximum error of the measured time difference estimate is equal to half of the amount labeled as “accuracy with invention” in the worse case scenario in which the test event difference is close to the accumulated time difference of stage 7 or stage 8.
A further difference between the inventive procedure compared to the conventional procedure is that in accordance with the invention, for each stage, a calibration value is obtained. However, the calibration is not associated to a specific stage, but is associated to a specific count value, which is composed of contributions from different stages. Contrary thereto, a conventional calibration value is associated with an actual stage and for shadowed stages 5, 6, 7 and 8, any calibration values do not, at all, exist when the statistical calibration method is implemented in connection with the priority encoder.
c indicates the differences of calculating the actual time difference estimate {tilde over (t)}. While, conventionally, the calibration values for the first three stages and the half of the calibration value for the fourth stage are accumulated, the situation is different in the invention. In the invention, the calibration values are not associated with the specific stage number, but are associated with a specific count value. This can be seen from the table in
Furthermore, in contrast to the convention, the sum extends from 0 to c-1, while the sum in the conventional procedure extends between 1 and c-1.
The count value for the
Since, however, all stages contribute to the measurement accuracy in accordance with the present invention, many different flexible constructions of the delay line can be applied, which is discussed in connection with
In this embodiment, the propagation delay through the delay line is reduced. This allows a faster sample rate of time measurements.
Advantages of the
It is to be emphasized that due to the fact that a summation device is used in contrast to the priority encoder, the arrangement of the stages is not used for any calculation. Thus, the conventional requirement that all stages have to be sequential to each other does not exist any more in the present invention, so that any available arrangement can be used. A specific arrangement is the three or more branches arrangement of
Regarding the delay difference between the delay of the first part and the delay of the second part, it is advantageous that all stages have a nominal value, which is equal over the whole circuit. This requirement, however, is only for semiconductor processing or design reasons. Since any monotonous behavior does not count any more in the present invention, even a random distribution of delay differences is useful. This is verified by
Depending on certain implementation requirements of the inventive methods, the inventive methods can be implemented in hardware or in software. The implementation can be performed using a digital storage medium, in particular, a disc, a DVD or a CD having electronically-readable control signals stored thereon, which co-operate with programmable computer systems such that the inventive methods are performed. Generally, the present invention is therefore a computer program product with a program code stored on a machine-readable carrier, the program code being operated for performing the inventive methods when the computer program product runs on a computer. In other words, the inventive methods are, therefore, a computer program having a program code for performing at least one of the inventive methods when the computer program runs on a computer.
While this invention has been described in terms of several advantageous embodiments, there are alterations, permutations, and equivalents which fall within the scope of this invention. It should also be noted that there are many alternative ways of implementing the methods and compositions of the present invention. It is therefore intended that the following appended claims be interpreted as including all such alterations, permutations, and equivalents as fall within the true spirit and scope of the present invention.
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/EP08/05005 | 6/20/2008 | WO | 00 | 3/1/2011 |