Digital time-to-digital converter
By measuring the same edge time interval between the f1 gate and the f2 gate, and using the preset gate and the reference clock for counting, the accuracy and stability problems of the time-to-digital converter in the existing technology are solved, and high precision and high accuracy are achieved. Frequency time interval measurement.
Patent Information
- Application Number
- CN202410910099.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-09-27
AI Technical Summary
Existing time-to-digital converters have errors, complexity, and stability problems when implementing high-precision time measurement in integrated circuits. In particular, designs based on direct counting methods, vernier methods, and multi-phase clock sampling methods suffer from noise, temperature changes, and non-linearity. It is difficult to achieve high accuracy under linear influence.
By measuring the same edge time interval between gate f1 and gate f2, and using the preset gate and reference clock for counting, the time interval to be measured Δt is indirectly obtained, eliminating the ±1 pulse counting error, and compensating through error analysis to improve measurement accuracy. .
High-precision time interval measurement is achieved, the measurement process is simplified, pulse errors are eliminated, and measurement accuracy is improved by increasing the clock count value and gate width.
Smart Images

Figure CN118707833A
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of time-frequency signal processing and relates to a digital time-to-digital converter. Background Art
[0002] The main function of a time-to-digital converter (TDC) is to accurately measure the time interval or arrival time of an event or signal. Specifically, the functions of TDC include: time measurement, precise synchronization, event correlation analysis, distance measurement, and high-speed counting. In short, as a high-precision time measurement device, TDC covers many fields from scientific research to engineering applications, providing important support for the development and innovation of modern technology.
[0003] Since analog methods are difficult to implement in integrated circuits, the current mainstream is digital time-to-digital converters. TDC based on direct counting method will bring a maximum error of ±1 reference clock cycle; TDC based on vernier method can achieve high measurement accuracy, but it is necessary to minimize the difference between the two clock cycles, which will increase the measurement time and require a high-precision and high-sensitivity coincidence detection circuit, which is difficult to implement; TDC based on tapped delay line method has a high conversion accuracy because the delay line is not absolutely linear, and the delay unit will also reduce the data output stability when the voltage and temperature change, which limits the conversion accuracy; TDC based on multi-phase clock sampling method (MPCS) has high requirements for the precise synchronization phase difference and stability of the clock. The noise and drift of the clock will affect the measurement accuracy. Similar to other TDC designs, MPCS TDC may be affected by nonlinearity and temperature changes, which may require additional calibration and compensation to eliminate. Summary of the invention
[0004] In view of the above-mentioned problems in the prior art of time-to-digital converters, the present invention provides a digital time-to-digital converter, which provides a new idea for measuring time intervals.
[0005] To achieve the above-mentioned purpose and other related purposes, the technical solution adopted by the present invention is: a digital time-to-digital converter, which can indirectly obtain the time interval Δt to be measured by measuring the time interval from the rising edge of the f1 gate to the rising edge of the f2 gate or the time interval from the falling edge of the f1 gate to the falling edge of the f2 gate.
[0006] The preset gate is used to generate a high level pulse width for a certain period of time;
[0007] The signal f1 and the signal f2 are used to convert the start and end time of the time interval to be measured into the time difference from the rising edge of the signal f1 to the rising edge of the signal f2, and the periods of the signal f1 and the signal f2 are the same;
[0008] The f1 gate and f2 gate are generated according to the preset gate states corresponding to the rising edge moments of their respective signals, and are used to extend the counting measurement process and convert the time interval to be measured into the same edge time difference from the f1 gate to the f2 gate;
[0009] The reference clock f s Used to count the width from the rising edge of gate f1 to the falling edge of gate f2.
[0010] Specifically, the steps include:
[0011] 1) Preset the gate signal pulse width for a certain period of time, and generate the f1 and f2 gates to be measured respectively at the rising edge of the signals f1 and f2;
[0012] 2) At the rising edge of the f1 gate, the reference clock f s The signal f1 and f2 start counting respectively. The signal f1 is counted in the entire f1 gate to obtain n1. The length of the f1 gate is an integer multiple of the period of the signal f1. From the rising edge of the f1 gate to the falling edge of the f2 gate, the reference clock f s Count to get n s ;
[0013] 3) Read the level state of gate f1 at the falling edge of gate f2. If the level state is low, Δt = n s T s -n1T1=(n s -n1)T1-n s (T1-T s ); if the level state is high, then Δt=T1-(n1T1-n s T s )=(n s -n1+1)T1-n s (T1-T s ).
[0014] The beneficial effects achieved by the present invention are: the measuring method is simple and easy to implement, and the time interval to be measured Δt is obtained by indirectly measuring the time interval between the same edges of the f1 gate and the f2 gate. s T s -n1T1 or Δt=T1-(n1T1-n s T s ), n1T1 is the length of the f1 gate pulse width, and is an integer multiple of the signal f1 period, which eliminates the counting error of ±1 pulse of the f1 gate pulse width during the measurement process and increases the measurement accuracy. Through error analysis, it can be seen that the Δt measurement is compensated during the measurement process, and the clock count values n1 and n are increased by setting the signal gate. s, and the larger the gate width, the higher the frequency of the reference clock and the higher the measurement accuracy of the time interval. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 The present invention provides a digital time-to-digital converter measurement schematic diagram.
[0016] Figure 2 It is a measurement schematic diagram of the present invention when the level of the f1 gate is read as high at the falling edge of the f2 gate.
[0017] Figure 3 It is a schematic diagram of the measurement error analysis of the present invention. DETAILED DESCRIPTION
[0018] In order to more clearly illustrate the technical implementation scheme of the present invention, the following is a clear and complete description of the implementation details of the technical solution of the present invention in combination with the drawings and specific examples in the embodiments of the present application. Obviously, the embodiments only represent some implementation schemes of the present application, not all of them. Based on the embodiments in the present application, all rights that can be obtained by those skilled in the art from other implementation schemes without creative work belong to the protection scope of the present application.
[0019] The present invention provides a digital time-to-digital converter, such as Figure 1 As shown, Δt represents the time interval to be measured, the periods of signal f1 and signal f2 are the same, and the periods of signal f1 and signal f2 can be selected according to the time interval to be measured Δt and the preset gate width. The periods of signal f1 and signal f2 must be greater than or equal to the time interval to be measured Δt. The START signal and the STOP signal of the time interval to be measured Δt respectively control the output generation moment of signal f1 and signal f2, that is, Δt represents the time interval difference between the rising edge of signal f1 and the rising edge of signal f2.
[0020] exist Figure 1 In the figure, because both gate f1 and gate f2 are generated at the preset gate states corresponding to the rising edge of their respective signals, Δt can be calculated by indirectly measuring the time interval from the falling edge of gate f1 to the falling edge of gate f2 or the time interval from the rising edge of gate f1 to the rising edge of gate f2.
[0021] The following will explain in detail how to calculate Δt from the time interval between the falling edge of gate f1 and the falling edge of gate f2;
[0022] Specifically, Figure 1 For example, the digital time-to-digital converter of the present invention is implemented as follows:
[0023] 1) Preset the gate signal pulse width for a certain period of time, and generate the f1 and f2 gates to be measured respectively at the rising edge of the signals f1 and f2;
[0024] 2) At the rising edge of gate f1, the reference clock fs and signal f1 are counted respectively. During the entire gate f1, the signal f1 is counted to obtain n1, and n1 is an integer multiple of the period of signal f1. From the rising edge of gate f1 to the falling edge of gate f2, the reference clock fs is counted to obtain n s ;
[0025] 3) Read the level state of gate f1 at the falling edge of gate f2. If the level state is low, Δt = n s T s -n1T1=(n s -n1)T1-n s (T1-T s );
[0026] 4) See Figure 2 , read the level state of gate f1 at the falling edge of gate f2, the level state is high, then Δt = T1-(n1T1-n s T s )=(n s -n1+1)T1-n s (T1-T s ).
[0027] The following is an analysis from the error aspect of the method of the present invention. Figure 3 , n s T s is the reference clock f s Count the actual measurement time length from the rising edge of gate f1 to the falling edge of gate f2; n a T s is the reference clock f s Count the actual measurement time length of the entire f1 gate; n b T s is the reference clock f s The actual measurement time length of the time interval Δt to be measured is counted; n1T1 is the time length of the signal f1 counted in the entire f1 gate, and the f1 gate time width is an integer multiple of the signal f1. This feature eliminates the deviation of ±1 pulse count of the signal f1. Among them, Δt1, Δt2 and Δt3 are the reference clock f s The fractional time error generated when counting starts and ends.
[0028] According to the above, if the Δt obtained by the direct counting method TDC is 直接计数法 =n b T s When the method of the present invention is used, Figure 3 , by n s T s =n a Ts +n b T s , n1T1=n a T s -Δt1+Δt2, substitute into the formula Δt=n s T s -n1T1, then Δt 测量值 =n a T s +n b T s -(n a T s -Δt1+Δt2)=n b T s -Δt2+Δt1, the real time interval Δt 真实值 =n b T s -Δt2+Δt3, then the absolute error of the method of the present invention is Δt 测量值 -Δt 真实值 =Δt1-Δt3. By taking Δt1 as the compensation value of Δt3, the method of the present invention can achieve higher measurement accuracy.
[0029] The present invention uses the indirect measurement of the time interval between the same edges of gate f1 and gate f2 to obtain the time interval Δt to be measured. In the formula Δt=n s T s In -n1T1, n1T1 is the length of the f1 gate pulse width and is an integer multiple of the signal f1 period, eliminating the counting error of ±1 pulse of the f1 gate pulse width during the measurement process. On the one hand, by using Δt1 as the compensation value of Δt3, the measurement accuracy is improved. On the other hand, by setting the signal gate, the clock count values n1 and n s , and the larger the gate width is, the higher the frequency of the reference clock is, and the higher the measurement accuracy of the time interval difference is.
[0030] According to the disclosed embodiments, those skilled in the art can implement or apply the present invention. Various modifications of these embodiments are obvious to the technician, and the defined general principles are also applicable to other embodiments without departing from the scope and core idea of the present invention. The above-mentioned embodiments only represent the preferred implementation of the present invention and do not limit the present invention. Any modification, equivalent substitution or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A digital time-to-digital converter, It is characterized in that Including preset gate, signal f 1 , signal f 2 、f 1 Gate, f 2 Gate and reference clock f s ; The preset gate is used to generate a high level pulse width for a certain period of time; The signal f 1 and signal f 2 Used to convert the start and end time of the time interval to be measured into signal f 1 Rising edge to signal f 2 The time difference of the rising edge of the signal f 1 and signal f 2 The cycle is the same; The f 1 Gate and f 2 The gate is generated according to the preset gate state corresponding to the rising edge of each signal, which is used to extend the counting measurement process and convert the time interval to be measured into f 1 Gate to f 2 The time difference of the same edge of the gate; The reference clock f s For f 1 Gate rising edge to f 2 The width of the falling edge of the gate is counted.
2. A digital time-to-digital converter as claimed in claim 1, It is characterized in that The steps include: 1) Preset the gate signal pulse width for a certain period of time. 1 and f 2 The rising edge of 1 and f 2 Gate; 2) In f 1 The rising edge of the gate is the reference clock f s and signal f 1 Start counting separately, and in the entire f 1 The gate signal f 1 Count to get n 1 , and f 1 The gate length is the signal f 1 Integer multiples of the period, at f 1 Gate rising edge to f 2 Gate falling edge, reference clock f s Count to get n s ; 3) In f 2 The falling edge of the gate reads f 1 The level state of the gate. If the level state is low, Δt = n s T s -n 1 T 1 =(n s -n 1 )T 1 -n s (T 1 -T s ); if the level state is high, then Δt=T 1 -(n 1 T 1 -n s T s )=(n s -n 1 +1)T 1 -n s (T 1 -T s ).
3. A digital time-to-digital converter as claimed in claim 1, It is characterized in that By measuring the f 1 Gate rising edge to f 2 The time interval between the rising edges of the gate or the f 1 Gate falling edge to f 2 The time interval of the gate falling edge indirectly obtains the time interval to be measured Δt.
Citation Information
Patent Citations
FPGA-based (field programmable gate array based) signal time difference measurement method and FPGA-based time-to-digital converter
CN104199276A
Method and circuit for improving FID signal frequency measurement precision based on quantized time delay method
CN106646282A
Circuit and circuit method for reduction of PFD noise contribution for ADPLL
US8461886B1
