A kind of time interval measurement method based on multiple repairing weld
Technical field
The present invention relates to IC design technical fields, specifically, more particularly to it is a kind of based on multiple repairing weld when
Between interval measurement method.
Background technique
As high-acruracy survey is in the extensive use of every field, status is also higher and higher.Either traditional time
High-acruracy survey requires that time-to-digit converter has still in recent years based on the Design of Digital System of time-to-digit converter
There is higher resolution ratio to reach higher measurement accuracy.Time-to-digit converter utilizes the delay effect of logic circuit unit,
By being exported to the time interval between two input signals according to certain accuracy quantification, the conversion of realization time to number,
Reach to the high-precision measurement of time interval.High-resolution time-to-digit converter application range mainly includes high-energy physics,
Medicine, mapping, national defence, the fields such as integrated circuit.Different application fields is when selecting time-to-digit converter firstly the need of true
Fixed is its structure, and the time-to-digit converter of different structure is all different in its static performance index and dynamic performance index
, including resolution ratio, dynamic range, complexity, structure and power consumption, and resolution ratio is one of time-to-digit converter important
Index.
So far, the structure of time-to-digit converter has had counter-type, Flash type, vernier delay chain, vernier
The types such as ring-like.But these structures all be there is a problem that respective, for example the time-to-digit converter of vernier delay chain structure exists
The size of mismatch will limit the value of delay difference, and then resolution limiting in special process bottom sheet, meanwhile, dynamic range with prolong
There are contradictory relations for the length of slow chain.The time-to-digit converter of ring type structure the disadvantage is that temporal resolution by frequency of oscillation
Limitation, while sampling rate is lower.
Summary of the invention
By the research to the prior art, there are aiming at the problem that, the present invention provides a kind of time based on multiple repairing weld
Interval measurement method.
Technical solution of the present invention:
The present invention provides a kind of time interval measurement methods based on multiple repairing weld, include the following steps:
Step 1: two input signal Start signals and Stop signal are separately input to two identical ring retards
Middle propagation;
Step 2: Start and Stop signal being adopted using the sampling clock of a fixed value τ smaller than the ring retard period
Sample;
Step 3: the circle number and signal propagated in ring retard at the end of sampling according to Start signal and Stop signal
The time interval between two input signals is calculated in position in the ring of place.
Further, the ring retard is by an alternative multiple selector and the identical delay cell structure of 16 delays
Enter first delay cell after alternative multiple selector at, the Start signal and Stop signal, output with it is original
The signal of signal inversion exports signal identical with original signal variation tendency, and prolong described after 16 delay cell
Slow ring relaying, which resumes, to be broadcast.The signal of input is set to keep stable in ring retard using two completely identical in structure ring retards
It propagates, ensure that and maintain fixed delay difference between two input signals.
Further, the delay cell in the ring retard is to postpone identical phase inverter.
Further, the identical phase inverter of 16 delays is connected in turn after the alternative multiple selector.
Since signal can export opposite signal after phase inverter, a phase inverter is added in the output of first phase inverter,
And an identical phase inverter is added every the output of a phase inverter, so that all output signals all keep identical
Variation tendency is convenient for subsequent sampling.
Further, the rudimentary algorithm that time interval is calculated described in step 3 is as follows:
T=X16tp+ (P-Q) tp+ (N-M) τ
Wherein, tp is the delay time for transmitting each delay cell of ring retard of two signals;X is the arrival of Stop signal
When, circle number that Start signal is propagated in ring retard;N is after Stop signal arrives, and Start signal is propagated in ring retard
Circle number;M is the circle number that Stop signal is propagated in ring retard;P is to detect that the delay cell of Start signal position is compiled
Number;Q is the delay cell number for detecting Stop signal position.
Compared with the prior art, a kind of time interval measurement method based on multiple repairing weld provided by the invention, and it is existing
Time interval measurement mode is compared in technology, is had the advantage that
1, a kind of time interval measurement method based on multiple repairing weld provided by the invention, it is identical using two structures
Ring retard, 16 identical delay cells of delay, i.e. phase inverter are respectively adopted, the signal of input is made to keep steady in ring retard
Fixed propagation, and keep synchronous, it ensure that and maintain fixed delay difference between two input signals, established for repeated sampling
Basis;After the output every a delay cell phase inverter is added simultaneously, so that signal is during ring retard is propagated, to
The signal of sampling is to maintain identical variation pattern always, convenient for sampling;
2, in previous measurement method, the precision of measurement is usually using the delay of a delay cell as minimum unit.
Measurement method provided by the invention uses the sampling clock less than one fixed value τ of ring retard period to Start signal and Stop
Signal is sampled, and the value of τ is less than the delay of a phase inverter, and in the present invention, the delay cell in ring retard is that delay is equal
Measurement accuracy can be contracted to the smaller amount of delay than a phase inverter by identical phase inverter, measurement method of the invention.
To sum up, technical solution of the present invention keeps the stabilization of signal using two identical ring retards, maintain signal it
Between regular time it is poor, and using be less than one fixed value τ of ring retard period sampling clock, to Start signal and Stop
Signal is sampled, and realizes the high-acruracy survey to time interval.Therefore, measurement method of the invention solves in the prior art
Measurement accuracy it is not high the problems such as.
The present invention can be widely popularized in fields such as high-acruracy surveys based on the above reasons.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to do simply to introduce, it should be apparent that, the accompanying drawings in the following description is this hair
Bright some embodiments for those of ordinary skill in the art without any creative labor, can be with
It obtains other drawings based on these drawings.
Fig. 1 is the idiographic flow schematic diagram of the method for the present invention.
Fig. 2 is measured signal time interval schematic diagram.
Fig. 3 is the Start signal delay ring structure schematic diagram of one embodiment of the present invention.
Fig. 4 is the Stop signal delay ring structure schematic diagram of one embodiment of the present invention.
Fig. 5 is that the signal of one embodiment of the present invention propagates timing diagram in ring retard.
Fig. 6 is the signal sampling schematic diagram of one embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work
It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to
Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product
Or other step or units that equipment is intrinsic.
Continuous simulated time amount is quantified as discrete digital quantity with a certain amount precision by time-to-digit converter, into
And realize the measurement of interval of time, measurement method used by the time-to-digit converter of different structure is different, quantization essence
Degree is also different.The present invention provides a kind of time interval measurement method based on multiple repairing weld, identical prolonged using two
Slow ring propagates signal, and the delay of each delay cell in ring retard is identical, using less than one fixation of ring retard period
The sampling clock of value τ is sampled, and it is poor between the period of sampling clock and the period of ring retard that the height of quantified precision depends on
The size of value τ.Time interval between two measured signal failing edges of same size is measured using the method for the present invention, if arriving first
The signal come is Start signal, and the signal to arrive afterwards is Stop signal, after Start signal arrives, into Start ring retard
It is propagated, while the circle number that signal is propagated in Start ring retard is counted, after Stop signal arrives, prolonged in Stop
Chi Huanzhong is propagated, while being counted to propagation circle number of the signal in Stop ring retard, is exported current Start signal and is being postponed
Propagation circle number in ring, i.e. Start signal lead over the circle number that Stop signal is propagated in ring retard;Input signal is in ring retard
The middle sampling clock for propagating period small τ detects position input signal, therefore measurement accuracy is τ, when Start signal and
Stop signal is propagated in ring retard, when record detects two signals, the two propagation circle number exported respectively, and record two
The position of ring retard where signal, the position of ring retard can count where propagating circle number and two signals by two of record
Calculate the time interval between Start signal and Stop signal.
Embodiment
A kind of measurement method of time interval based on multiple repairing weld of the invention, the detailed process of implementation as shown in Figure 1,
Include the following steps:
Step 1: two input signals are respectively Start signal and Stop signal, as shown in Fig. 2, being separately input to two
It is propagated in identical ring retard, is used for transmission the ring retard of two signals by an alternative multiple selector and 16
Delay cell is constituted, and each delay cell is to postpone identical phase inverter, is illustrated in figure 3 the signal of Start signal delay ring structure
Figure, is illustrated in figure 4 Stop signal delay ring structure schematic diagram, and the identical ring retard of two structures is postponing the signal of input
Stable propagation is kept in ring, and keeps synchronous, be ensure that and is maintained fixed delay difference between two input signals;Simultaneously will
First phase inverter is arranged after alternative multiple selector, and the identical phase inverter of 16 delays is connected to two choosing in turn
After one multiple selector, since signal can export opposite signal after phase inverter, in the defeated of first phase inverter
A phase inverter is added out, and an identical phase inverter is added every the output of a phase inverter, so that signal is prolonging
In slow ring in communication process, signal to be sampled is to maintain identical variation pattern always, and convenient for sampling, input signal exists at this time
The output of communication process signal sequence to be detected is as shown in Figure 5 in ring retard;
Step 2: the Start signal and Stop being believed using the sampling clock of a fixed value τ smaller than the ring retard period
It number is sampled;In order to measure the time interval of two input signals shown in Fig. 2, present embodiment uses the survey of higher precision
Amount method measures, and time interval measurement time diagram is as shown in fig. 6, using a fixed value τ smaller than the ring retard period
Measurement clock Start and Stop signal is sampled, every by primary sampling, the difference between sampling clock and signal will
Reduce a τ, until detect the specific location of signal, at this time the sampling precision of signal can than a phase inverter delay more
It is small, realize high-acruracy survey;
Step 3: the circle number and signal propagated in ring retard at the end of sampling according to Start signal and Stop signal
The time interval between two input signals is calculated in position in the ring retard of place.
The rudimentary algorithm for calculating time interval is as follows:
T=X16tp+ (P-Q) tp+ (N-M) τ
Wherein, tp is the delay time for transmitting each delay cell of ring retard of two signals;X is the arrival of Stop signal
When, circle number that Start signal is propagated in ring retard;N is after Stop signal arrives, and Start signal is propagated in ring retard
Circle number;M is the circle number that Stop signal is propagated in ring retard;P is to detect that the delay cell of Start signal position is compiled
Number;Q is the delay cell number for detecting Stop signal position.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment
The part of detailed description, reference can be made to the related descriptions of other embodiments.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to
So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into
Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.