CN116360235A - TDC realizing device based on SerDes - Google Patents
TDC realizing device based on SerDes Download PDFInfo
- Publication number
- CN116360235A CN116360235A CN202310219013.7A CN202310219013A CN116360235A CN 116360235 A CN116360235 A CN 116360235A CN 202310219013 A CN202310219013 A CN 202310219013A CN 116360235 A CN116360235 A CN 116360235A
- Authority
- CN
- China
- Prior art keywords
- module
- signal
- serdes
- gate signal
- clock
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000005070 sampling Methods 0.000 claims abstract description 38
- 238000005259 measurement Methods 0.000 claims abstract description 22
- 238000000034 method Methods 0.000 claims abstract description 11
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 claims abstract description 4
- 230000000630 rising effect Effects 0.000 claims description 6
- 238000001514 detection method Methods 0.000 claims description 4
- 230000002194 synthesizing effect Effects 0.000 claims description 4
- 230000001360 synchronised effect Effects 0.000 claims description 3
- 230000010363 phase shift Effects 0.000 abstract description 6
- 238000013461 design Methods 0.000 abstract description 3
- 230000002093 peripheral effect Effects 0.000 abstract description 2
- 230000036962 time dependent Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000002059 diagnostic imaging Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 230000005658 nuclear physics Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G04—HOROLOGY
- G04F—TIME-INTERVAL MEASURING
- G04F10/00—Apparatus for measuring unknown time intervals by electric means
- G04F10/005—Time-to-digital converters [TDC]
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Manipulation Of Pulses (AREA)
Abstract
The invention belongs to the field of time interval measurement, and particularly relates to a TDC (time-dependent digital converter) realization device based on SerDes, which comprises a clock module, a gate signal generation module, a SerDes sampling and receiving module and a data decoding module. Based on the characteristics that the SerDes resource in the FPGA can achieve ultra-high data rate and the SerDes sampling output is lower-speed parallel data which can be processed by the FPGA in real time, the device enables the time interval measuring range to be increased to the second level by matching the SerDes sampling module with the data decoding module. In addition, by utilizing the unified standard delay characteristics of the high-performance phase-locked loop and the shift register in the SerDes sampling receiving module, the TDC realizing device has better linear performance, meanwhile, a complex clock circuit in a clock multipath phase shift method is omitted, the design of an FPGA peripheral circuit is simplified, the number of IO ports and the complexity of a system required by the FPGA are reduced, and the application range of the device is widened.
Description
Technical Field
The invention belongs to the field of time interval measurement, and particularly relates to a TDC implementation device based on SerDes.
Background
In many working scenarios of modern science and industry, it is often necessary to make accurate measurements of the time interval between two or more physical events. Such as measuring the difference between the loop and the reference clock in a phase locked loop to avoid clock drift or measuring the time between transmission and reception to find out about the object reflected by the signal or the environmental information through which the signal passes, and in addition, have wide application in the fields of nuclear physics, quantum experiments, medical imaging, etc.
Currently, a number of digital converters (Time-to-Digital Convertor, TDC) are used to measure Time intervals, and the digital converters are deployed in a special TDC chip, a TDC circuit based on a field programmable gate array (Field Programmable Gate Array, FPGA), etc., where the TDC implementation based on the FPGA is the most mainstream, and can also be better adapted to various application scenarios. The traditional FPGA-based TDC mainly realizes high-precision measurement through a data delay chain or clock multipath phase shifting, the data delay chain has extremely high requirements on internal layout and wiring of the FPGA, the delay time of data passing through various delay units is not stable enough, the linearity of the TDC is affected, and meanwhile, the length of the delay chain is wired, so that the measurement range is smaller, and the method is not suitable for large-time interval measurement. The clock multipath phase shift mode is that multipath phase shift is carried out on a sampling clock outside the FPGA through a clock management and clock phase shift module, and the data are sampled by a plurality of clocks after phase shift, so that the sampling rate is equivalently improved, the measurement accuracy is further improved, and the nanosecond level can be achieved generally. The method has a larger measurement range, but a complex clock module is added outside the FPGA, so that the cost is higher.
Disclosure of Invention
The invention aims at: the device for achieving the TDC based on the SerDes solves the problems that an existing TDC is complex in structure, measurement accuracy and measurement range cannot be considered, and therefore the application range is narrow.
A SerDes-based TDC implementation apparatus comprising: the system comprises a clock module, a gate signal generation module, a SerDes sampling receiving module and a data decoding module;
the clock module provides synchronous reference clock signals for the SerDes sampling receiving module and the data decoding module respectively; the gate signal generating module receives the time starting signal and the time ending signal, converts time interval information contained in the two signals into a gate signal with the same gate width as the measured time interval, and outputs the gate signal to the SerDes sampling receiving module;
the SerDes sampling receiving module comprises a phase-locked loop module and a receiver, wherein the phase-locked loop is connected with the clock module and is used for receiving a reference clock signal and performing frequency multiplication and frequency division on the reference clock signal to obtain a working clock signal and sending the working clock signal to the receiver; the receiver is connected with the gate signal generating module and is used for sampling the gate signal, converting the sampled gate signal from high-speed serial data into low-speed parallel data according to the received working clock signal and transmitting the low-speed parallel data to the data decoding module;
the data decoding module is connected with the SerDes sampling receiving module, and performs operation decoding on the received low-speed parallel data output by the SerDes based on the reference clock provided by the clock module to obtain the duration of the gate signal, thereby completing the measurement of the time interval.
Further, the gate signal generating module consists of a start pulse signal receiving circuit, an end pulse signal receiving circuit and a gate signal synthesizing circuit; the start pulse signal receiving circuit receives a time start signal, the end pulse signal receiving circuit receives a time end signal, and the gate signal synthesizing module synthesizes the time start signal and the time end signal according to the width of the gate signal to obtain gate signal output; the time starting signal is the rising edge of the circuit detection starting pulse signal, the time ending signal is the rising edge of the circuit detection ending pulse signal, and the width of the gate signal is the time interval between the rising edges of the starting pulse signal and the ending pulse signal; the gate signal may be considered high-speed serial data.
Further, the decoding method of the data decoding module comprises the following steps:
s1, identifying and counting '0' and '1' in received low-speed parallel data, and counting '1' in the data when '1' starts to appear in the identified low-speed parallel data; stopping counting and outputting a count value when '0' appears in the identified low-speed parallel data; the count value indicates the number of '1's in the received low-speed parallel data, and one '1' indicates that the gate signal lasts for one SerDes sampling clock period;
s2, calculating an input time interval delta t according to the count value obtained in the S1 and a reference clock signal provided by the clock module, and completing measurement of the time interval.
The TDC implementation device based on the SerDes provided by the invention is based on the characteristic that the SerDes resource in the FPGA can reach the ultra-high data rate, the working clock can reach tens of gigahertz, the picosecond time resolution is realized, and the SerDes sampling output is parallel data which can be processed in real time by the lower-speed FPGA, and the time interval measuring range is increased to the second level by matching with a data decoding module insensitive to the storage depth. In addition, due to the unified standard delay characteristics of the high-performance phase-locked loop and the shift register in the SerDes sampling receiving module, the TDC based on SerDes has better linear performance, meanwhile, a complex clock circuit in a clock multipath phase shift method is omitted, the design of an FPGA peripheral circuit is simplified, the number of IO ports and the complexity of a system required by the FPGA are reduced, and the application range of the FPGA is widened.
Compared with the prior art, the invention has the characteristics of simple structure, lower cost, better linear performance and the like, realizes high precision, has a larger measurement range, can greatly simplify the deployment requirement of the TDC, and is beneficial to expanding the application range of the TDC.
Drawings
FIG. 1 is a schematic diagram of a TDC device according to an embodiment;
FIG. 2 is a schematic diagram of a SerDes sampling receiving module in a TDC device according to an embodiment;
FIG. 3 is a flow chart of a data decoding module in the TDC device according to an embodiment;
fig. 4 is a schematic diagram of a time interval measurement process in the TDC apparatus according to the embodiment.
Detailed Description
The following description of the embodiments of the invention is presented in conjunction with the accompanying drawings to facilitate a better understanding of the invention to those skilled in the art. It is to be expressly noted that in the description below, detailed descriptions of known functions and designs are omitted here as perhaps obscuring the present invention.
Fig. 1 is a schematic diagram of a TDC apparatus according to an embodiment. As shown in fig. 1, the TDC implementation device based on SerDes provided in this embodiment includes: the system comprises a clock module, a gate signal generation module, a SerDes sampling receiving module and a data decoding module. The clock module is respectively connected with the SerDes sampling receiving module and the data decoding module and is used for providing synchronous reference clock signals for the SerDes sampling receiving module and the data decoding module. The gate signal generating module, the SerDes sampling receiving module and the data decoding module are sequentially connected in series.
Fig. 2 is a schematic diagram of a SerDes sampling receiving module structure. As shown in fig. 2, the SerDes sampling reception mode includes a phase-locked loop module and a receiver. The phase-locked loop is connected with the clock module and is used for receiving the reference clock signal, performing frequency multiplication and frequency division on the reference clock signal to obtain a working clock signal, and then transmitting the working clock signal to the receiver; the receiver is connected with the gate signal generating module and is used for sampling the gate signal, converting the sampled gate signal from high-speed serial data into low-speed parallel data according to the received working clock signal and sending the low-speed parallel data to the data decoding module. Because the working frequency of the internal clock of the FPGA is limited, usually hundreds of megahertz, serDes is used as a high-speed transmission resource in the FPGA, and a high-speed serial data signal input by an input pin of the FPGA can be converted into a low-speed (less than or equal to 500 MHz) parallel data signal which can be processed in real time in the FPGA, so that the internal processing of the FPGA is facilitated. The sample value is "1" when the input signal is digital high level, and "0" when the input signal is digital low level. The internal clock resource has ultrahigh stability, and the internal shift register has unified standard delay, so that the TDC device based on SerDes has better linear performance. The internal sampling rate of the SerDes sampling receiving module can reach tens of gigahertz, the corresponding time resolution reaches picosecond order, and higher measurement accuracy is realized.
Fig. 3 is a flow chart of the data decoding module in the present invention. As shown in fig. 3, when the low-speed parallel data output by the SerDes sampling receiving module is sent to the data decoding module, the data decoding module identifies the cases of "0" and "1" in the received low-speed parallel data. Counting "1" in the data when it is detected that "1" starts to appear in the data; in the counting process, when '0' appears in the identified low-speed parallel data, the counting is stopped and a count value is output. The count value represents the number of "1" s in the data, and one "1" represents that the gate signal continues for one SerDes sampling clock period, so that the input time interval Δt can be conveniently calculated.
Wherein n is a count value of "1" in the data, T 0 Sampling clock period, f for SerDes s For the SerDes sampling clock frequency,
the error of the measurement result mainly comes from the + -1 error of the counter, the corresponding measurement result has the measurement error of + -T, and the error does not exceed one sampling period of SerDes. Because the number of '1' is only counted, the bit width of the counter can reach hundreds of bits, and the time interval measuring range of the device can be conveniently expanded. The invention realizes picosecond measurement precision by utilizing the SerDes ultra-high sampling frequency, and ensures an ultra-long measurement range by adopting a data decoding mode.
Claims (3)
1. A method and device for realizing TDC based on SerDes comprises the following steps: the system comprises a clock module, a gate signal generation module, a SerDes sampling receiving module and a data decoding module, and is characterized in that:
the clock module provides synchronous reference clock signals for the SerDes sampling receiving module and the data decoding module respectively; the gate signal generating module receives the time starting signal and the time ending signal, converts time interval information contained in the two signals into a gate signal with the same gate width as the measured time interval, and outputs the gate signal to the SerDes sampling receiving module;
the SerDes sampling receiving module comprises a phase-locked loop module and a receiver, wherein the phase-locked loop is connected with the clock module and is used for receiving a reference clock signal and performing frequency multiplication and frequency division on the reference clock signal to obtain a working clock signal and sending the working clock signal to the receiver; the receiver is connected with the gate signal generating module and is used for sampling the gate signal, converting the sampled gate signal from high-speed serial data into low-speed parallel data according to the received working clock signal and transmitting the low-speed parallel data to the data decoding module;
the data decoding module is connected with the SerDes sampling receiving module, and performs operation decoding on the received low-speed parallel data output by the SerDes based on the reference clock provided by the clock module to obtain the duration of the gate signal, thereby completing the measurement of the time interval.
2. The SerDes-based TDC implementation method apparatus according to claim 1, wherein: the gate signal generating module consists of a start pulse signal receiving circuit, an end pulse signal receiving circuit and a gate signal synthesizing circuit; the start pulse signal receiving circuit receives a time start signal, the end pulse signal receiving circuit receives a time end signal, and the gate signal synthesizing module synthesizes the time start signal and the time end signal according to the width of the gate signal to obtain gate signal output; the time starting signal is the rising edge of the circuit detection starting pulse signal, the time ending signal is the rising edge of the circuit detection ending pulse signal, and the width of the gate signal is the time interval between the rising edges of the starting pulse signal and the ending pulse signal; the gate signal may be considered high-speed serial data.
3. The SerDes-based TDC implementation method device according to any one of claims 1-2, wherein: the decoding method of the data decoding module comprises the following steps:
s1, identifying and counting '0' and '1' in received low-speed parallel data, and counting '1' in the data when '1' starts to appear in the identified low-speed parallel data; stopping counting and outputting a count value when '0' appears in the identified low-speed parallel data; the count value indicates the number of '1's in the received low-speed parallel data, and one '1' indicates that the gate signal lasts for one SerDes sampling clock period;
s2, calculating an input time interval delta t according to the count value obtained in the S1 and a reference clock signal provided by the clock module, and completing measurement of the time interval.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310219013.7A CN116360235A (en) | 2023-03-08 | 2023-03-08 | TDC realizing device based on SerDes |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310219013.7A CN116360235A (en) | 2023-03-08 | 2023-03-08 | TDC realizing device based on SerDes |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116360235A true CN116360235A (en) | 2023-06-30 |
Family
ID=86933842
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310219013.7A Pending CN116360235A (en) | 2023-03-08 | 2023-03-08 | TDC realizing device based on SerDes |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116360235A (en) |
-
2023
- 2023-03-08 CN CN202310219013.7A patent/CN116360235A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10108148B1 (en) | Time to digital converter with increased range and sensitivity | |
US20200124709A1 (en) | Circuit, method and related chip for time measurement, system, and device | |
CN108061848B (en) | method and system for measuring additive carry chain delay based on FPGA | |
CN110350892B (en) | Time delay device and method based on DDS clock phase shift technology | |
CN112968690B (en) | High-precision low-jitter delay pulse generator | |
CN112486008B (en) | Resolution-adjustable time measurement statistical system and method based on TDC | |
CN110515292B (en) | TDC circuit based on bidirectional running annular carry chain and measuring method | |
JP5666813B2 (en) | Time width measuring device | |
CN109407501B (en) | Time interval measuring method based on relevant signal processing | |
CN110703583A (en) | Multi-channel high-precision wide-range time-to-digital converter based on SOC (system on chip) | |
CN220207786U (en) | Delay deviation measuring circuit | |
US20150205579A1 (en) | Deterministic fifo buffer | |
US8334716B1 (en) | Digital phase detection circuit and method | |
CN113092858A (en) | High-precision frequency scale comparison system and comparison method based on time-frequency information measurement | |
CN108736885B (en) | Phase-locked loop clock edge triggered clock phase-splitting method | |
CN108768388B (en) | Clock phase splitting method triggered by serial phase-locked loop clock edge | |
CN105187053A (en) | Metastable state eliminating circuit used for TDC | |
CN107561918A (en) | TOA methods of estimation and device are positioned based on FPGA ultra wide bands | |
CN116360235A (en) | TDC realizing device based on SerDes | |
CN113311249B (en) | Signal time interval and pulse width multiplexing measurement method | |
US20230006903A1 (en) | Systems and methods for timing a signal | |
CN111538227A (en) | High-precision time testing method, system and storage medium | |
RU2225012C2 (en) | Phase-meter | |
CN111913422B (en) | Split-phase clock TDC based on ISERDES serial link and measurement method | |
CN114253117B (en) | Photon arrival time measuring method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |