[go: up one dir, main page]

CN118759498A - A fast TDC measurement system and method based on differential carry chain - Google Patents

A fast TDC measurement system and method based on differential carry chain Download PDF

Info

Publication number
CN118759498A
CN118759498A CN202410801793.0A CN202410801793A CN118759498A CN 118759498 A CN118759498 A CN 118759498A CN 202410801793 A CN202410801793 A CN 202410801793A CN 118759498 A CN118759498 A CN 118759498A
Authority
CN
China
Prior art keywords
fast
edge
flip
unit
double
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.)
Granted
Application number
CN202410801793.0A
Other languages
Chinese (zh)
Other versions
CN118759498B (en
Inventor
庞亚军
李威
万岁岁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Numei Tianjin Technology Co ltd
Original Assignee
Numei Tianjin Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Numei Tianjin Technology Co ltd filed Critical Numei Tianjin Technology Co ltd
Priority to CN202410801793.0A priority Critical patent/CN118759498B/en
Publication of CN118759498A publication Critical patent/CN118759498A/en
Application granted granted Critical
Publication of CN118759498B publication Critical patent/CN118759498B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S7/00Details of systems according to groups G01S13/00, G01S15/00, G01S17/00
    • G01S7/48Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S17/00
    • G01S7/483Details of pulse systems
    • G01S7/486Receivers
    • G01S7/4865Time delay measurement, e.g. time-of-flight measurement, time of arrival measurement or determining the exact position of a peak

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Measuring Phase Differences (AREA)

Abstract

本发明公开了一种基于差分进位链的快速TDC测量系统与方法,属于激光雷达飞行时间测量技术领域,包括粗计数单元、细计数单元、计数校准单元和数据组合,存储传输单元;细计数单元具体包括脉冲整形单元、时钟同步单元、环形振荡器、双边沿鉴相器、反馈计数锁存器、Slow双边沿计数单元和Fast双边沿计数单元;环形振荡器由进位链、非门和与门组成。本发明采用上述的一种基于差分进位链的快速TDC测量系统与方法,能够有效减小环形振荡器振荡次数,提升细计数单元测量精度以及有效缩短转换时间。

The present invention discloses a fast TDC measurement system and method based on a differential carry chain, which belongs to the field of laser radar flight time measurement technology, including a coarse counting unit, a fine counting unit, a counting calibration unit and a data combination, a storage and transmission unit; the fine counting unit specifically includes a pulse shaping unit, a clock synchronization unit, a ring oscillator, a double-edge phase detector, a feedback counting latch, a Slow double-edge counting unit and a Fast double-edge counting unit; the ring oscillator is composed of a carry chain, a NOT gate and an AND gate. The present invention adopts the above-mentioned fast TDC measurement system and method based on a differential carry chain, which can effectively reduce the number of oscillations of the ring oscillator, improve the measurement accuracy of the fine counting unit and effectively shorten the conversion time.

Description

一种基于差分进位链的快速TDC测量系统与方法A fast TDC measurement system and method based on differential carry chain

技术领域Technical Field

本发明涉及激光雷达飞行时间测量技术领域,尤其是涉及一种基于差分进位链的快速TDC测量系统与方法。The present invention relates to the technical field of laser radar flight time measurement, and in particular to a fast TDC measurement system and method based on a differential carry chain.

背景技术Background Art

现有技术中,高精度时间测量在激光雷达领域具有重要意义,通过测量激光脉冲往返时间感知方位距离。常常采用的时间测量方法包括基于ASIC-TDC设计方法和FPGA-TDC设计方法,而ASIC-TDC方法在设计过程中接口读取速度较慢,开发时间周期长,而基于FPGA设计方法,成本低,可调配资源多,完成一次测量时间相对较短,可测的激光点频相对较高。In the prior art, high-precision time measurement is of great significance in the field of laser radar, which can sense the azimuth and distance by measuring the round-trip time of laser pulses. Commonly used time measurement methods include ASIC-TDC design method and FPGA-TDC design method. The ASIC-TDC method has a slow interface reading speed and a long development cycle during the design process, while the FPGA-based design method has low cost, more resources can be deployed, and the time to complete a measurement is relatively short, and the measurable laser point frequency is relatively high.

在基于FPGA设计的方法中常用的方法包括快速进位链法,利用抽头延迟线即可获得亚纳秒的分辨率。通过判别温度计码高低电平跳变位置,根据单个进位链延迟时间即可解算相应的测量时间。但是该方法受到内部延迟结构基本延迟时间的制约,特别是受到最小延迟单元的限制,而且受到时延分布不均的影响,测量误差相对较大,所需的逻辑资源也相对较多。Common methods used in FPGA-based design methods include the fast carry chain method, which uses a tapped delay line to obtain sub-nanosecond resolution. By determining the high and low level jump positions of the thermometer code, the corresponding measurement time can be solved according to the delay time of a single carry chain. However, this method is restricted by the basic delay time of the internal delay structure, especially the minimum delay unit, and is affected by the uneven distribution of delays. The measurement error is relatively large and the required logic resources are relatively large.

为了进一步提高FPGA中实现的TDC的分辨率和精度,可以使用游标延迟线或游标环形振荡器来实现亚门分辨率的TDC。上述方法分辨率由两个延迟单元的延迟时间之差决定,可以不受内部延迟结构的限制,但是该方法主要存在可测时间范围短,振荡次数多导致精度降低的问题,而且还存在TDC转换时间也相对较长的问题。In order to further improve the resolution and accuracy of the TDC implemented in the FPGA, a vernier delay line or a vernier ring oscillator can be used to implement a TDC with sub-gate resolution. The resolution of the above method is determined by the difference in delay time between the two delay units, and is not limited by the internal delay structure. However, this method has the main problems of a short measurable time range, a large number of oscillations leading to reduced accuracy, and a relatively long TDC conversion time.

发明内容Summary of the invention

本发明的目的是提供一种基于差分进位链的快速TDC测量系统与方法,能够减小环形振荡器振荡次数,提升细计数单元测量精度以及转换时间。The object of the present invention is to provide a fast TDC measurement system and method based on a differential carry chain, which can reduce the number of oscillations of a ring oscillator and improve the measurement accuracy and conversion time of fine counting units.

为实现上述目的,本发明提供了一种基于差分进位链的快速TDC测量系统,包括粗计数单元、细计数单元、计数校准单元和数据组合,存储传输单元;To achieve the above object, the present invention provides a fast TDC measurement system based on a differential carry chain, comprising a coarse counting unit, a fine counting unit, a counting calibration unit and a data combination, storage and transmission unit;

细计数单元具体包括脉冲整形单元、时钟同步单元、环形振荡器、双边沿鉴相器、反馈计数锁存器、Slow双边沿计数单元和Fast双边沿计数单元;环形振荡器包括由进位链、非门和与门组成的快环部分和慢环部分;慢环部分的与门的输入端接入脉冲整形单元的出入端和慢环部分振荡信号的反向输入端,快环部分的与门的输入端接入时钟同步单元的出入端和快环部分振荡信号的反向输入端。The fine counting unit specifically includes a pulse shaping unit, a clock synchronization unit, a ring oscillator, a double-edge phase detector, a feedback counting latch, a Slow double-edge counting unit and a Fast double-edge counting unit; the ring oscillator includes a fast loop part and a slow loop part composed of a carry chain, a NOT gate and an AND gate; the input end of the AND gate of the slow loop part is connected to the input and output ends of the pulse shaping unit and the reverse input end of the oscillation signal of the slow loop part, and the input end of the AND gate of the fast loop part is connected to the input and output ends of the clock synchronization unit and the reverse input end of the oscillation signal of the fast loop part.

优选的,粗计数单元为双级计数器,包括低位计数器和高位计数器,低位计数器为格雷码计数器,低位计数器的输出端连接高位计数器的输入端。Preferably, the coarse counting unit is a two-stage counter, including a low-order counter and a high-order counter, the low-order counter is a Gray code counter, and the output end of the low-order counter is connected to the input end of the high-order counter.

优选的,脉冲整形单元由单级别D触发器组成,D触发器的时钟输入端接入回波起始或停止脉冲信号,数据输入端接入高电平,数据清零端clrn和双边沿鉴相器的反向输出端real_locked相连。Preferably, the pulse shaping unit is composed of a single-level D flip-flop, the clock input terminal of the D flip-flop is connected to the echo start or stop pulse signal, the data input terminal is connected to the high level, and the data clear terminal clrn is connected to the reverse output terminal real_locked of the double-edge phase detector.

优选的,时钟同步单元为三位移位寄存器结构,包括第一级D触发器、第二级D触发器和第三级D触发器;其中,第一级D触发器的时钟输入端接入回波起始或停止脉冲信号,数据输入端接入高电平,数据清零端clrn和双边沿鉴相器反向输出端real_locked相连;第二级D触发器的时钟输入端接入系统时钟信号,数据输入端接入第一级D触发器的数据输出端;第三级D触发器的时钟输入端接入系统时钟信号,数据输入端接入第二级D触发器的数据输出端。Preferably, the clock synchronization unit is a three-bit shift register structure, including a first-level D flip-flop, a second-level D flip-flop and a third-level D flip-flop; wherein, the clock input terminal of the first-level D flip-flop is connected to the echo start or stop pulse signal, the data input terminal is connected to the high level, and the data clear terminal clrn is connected to the reverse output terminal real_locked of the double-edge phase detector; the clock input terminal of the second-level D flip-flop is connected to the system clock signal, and the data input terminal is connected to the data output terminal of the first-level D flip-flop; the clock input terminal of the third-level D flip-flop is connected to the system clock signal, and the data input terminal is connected to the data output terminal of the second-level D flip-flop.

优选的,快环部分和慢环部分由延迟时间不同的结构进位链组成,慢环部分的周期大于快环部分的周期。Preferably, the fast loop part and the slow loop part are composed of structural carry chains with different delay times, and the period of the slow loop part is greater than the period of the fast loop part.

优选的,双边沿鉴相器由上升沿-上升沿边沿重合检测部分与上升沿-下降沿边沿重合检测部分组成;Preferably, the double edge phase detector is composed of a rising edge-rising edge coincidence detection part and a rising edge-falling edge coincidence detection part;

上升沿-上升沿边沿重合检测部分由两级D触发器构成,快环部分和慢环部分的输出为第一级D触发器的时钟输入和数据输入,为第二级为D触发器的数据输入和时钟输入,将第一级D触发器和第二级的D触发器经过延时单元后通过与门输出;The rising edge-rising edge coincidence detection part is composed of two stages of D flip-flops. The outputs of the fast loop part and the slow loop part are the clock input and data input of the first stage D flip-flop, and the data input and clock input of the second stage D flip-flop. The first stage D flip-flop and the second stage D flip-flop are output through the AND gate after passing through the delay unit.

上升沿-下降沿边沿重合检测部分也由两级D触发器构成,快环部分和慢环部分的输出为第一级D触发器的反向时钟输入和数据输入,为第二级为D触发器的数据输入和反向时钟输入,将第一级D触发器和第二级的D触发器经过延时单元后通过与门输出;The rising edge-falling edge coincidence detection part is also composed of two stages of D flip-flops. The outputs of the fast loop part and the slow loop part are the reverse clock input and data input of the first stage D flip-flop, and the data input and reverse clock input of the second stage D flip-flop. The first stage D flip-flop and the second stage D flip-flop are output through the AND gate after passing through the delay unit.

上升沿-上升沿边沿重合检测部分的与门和上升沿-下降沿边沿重合检测部分与门的输出端通过或门输出。The output ends of the AND gate of the rising edge-rising edge coincidence detection part and the AND gate of the rising edge-falling edge coincidence detection part are output through the OR gate.

优选的,反馈计数锁存器由D触发器组成,数据输入端接入高电平,时钟输入端连接双边沿鉴相器的输出端;反馈计数锁存器反向输出连接到脉冲整形单元和时钟同步单元。Preferably, the feedback count latch is composed of a D flip-flop, the data input terminal is connected to a high level, and the clock input terminal is connected to the output terminal of the double-edge phase detector; the reverse output of the feedback count latch is connected to the pulse shaping unit and the clock synchronization unit.

优选的,Slow双边沿计数单元和Fast双边沿计数单元与粗计数单元的结构相同。Preferably, the structures of the Slow double-edge counting unit and the Fast double-edge counting unit are the same as the coarse counting unit.

一种基于差分进位链的快速TDC测量方法,包括以下步骤:A fast TDC measurement method based on a differential carry chain comprises the following steps:

S1、回波起始脉冲信号先通过脉冲整形单元转变为单边沿信号,驱动慢环部分振荡环路产生振荡,Slow双边沿计数单元开始对慢环部分的上升沿和下降沿计数,之后回波起始脉冲信号通过时钟同步单元提取时钟同步信号,驱动快环部分振荡环路产生振荡,Fast双边沿计数单元开始对快环部分的上升沿和下降沿计数;S1, the echo start pulse signal is first converted into a single-edge signal by the pulse shaping unit, driving the slow loop oscillation loop to oscillate, and the Slow double-edge counting unit starts to count the rising and falling edges of the slow loop. After that, the echo start pulse signal extracts the clock synchronization signal through the clock synchronization unit, driving the fast loop oscillation loop to oscillate, and the Fast double-edge counting unit starts to count the rising and falling edges of the fast loop.

S2、检测到回波起始脉冲信号的时钟同步信号,由粗计数单元对系统时钟上升沿开始计数;S2, the clock synchronization signal of the echo start pulse signal is detected, and the coarse counting unit starts counting the rising edge of the system clock;

S3、双边沿鉴相器检测快环部分和慢环部分的上升沿-上升沿或者上升沿-下降沿边沿重合时刻检测,输出高电平到反馈计数锁存器;反馈计数锁存器输出所提取多边沿信号的第一个上升沿;S3, the double-edge phase detector detects the rising edge-rising edge or rising edge-falling edge coincidence moment of the fast loop part and the slow loop part, and outputs a high level to the feedback count latch; the feedback count latch outputs the first rising edge of the extracted multi-edge signal;

S4、当Slow双边沿计数单元与Fast双边沿计数单元检测到锁存信号上升沿后,停止计数;当脉冲整形单元以及时钟同步单元检测到锁存信号的反向输出后,触发D触发器的数据清零端clrn,拉低输出电平,等待下一次测量输入;S4, when the Slow double-edge counting unit and the Fast double-edge counting unit detect the rising edge of the latch signal, they stop counting; when the pulse shaping unit and the clock synchronization unit detect the reverse output of the latch signal, they trigger the data clearing terminal clrn of the D flip-flop, pull down the output level, and wait for the next measurement input;

S5、计数数据经过校准后,进入数据组合,存储传输单元,输出Start部分细计数单元测量完成标志信号,所有计数单元进入归零状态,等待下一次Stop部分细计数单元进行测量;S5, after the counting data is calibrated, it enters the data combination, storage and transmission unit, outputs the Start part fine counting unit measurement completion flag signal, all counting units enter the zero state, and wait for the next Stop part fine counting unit to measure;

S6、回波停止脉冲信号与回波起始脉冲信号相同,重复步骤S1-S5;S6, the echo stop pulse signal is the same as the echo start pulse signal, and steps S1-S5 are repeated;

S7、检测到回波停止脉冲信号的时钟同步信号,粗计数单元停止计数;S7, the clock synchronization signal of the echo stop pulse signal is detected, and the coarse counting unit stops counting;

S8、将一次粗计数单元测量结果以及Start,Stop细计数单元测量结果组合完成一次时间测量,结果表达式为:S8. Combine the measurement result of a coarse counting unit and the measurement results of the Start and Stop fine counting units to complete a time measurement. The result expression is:

Tcoarse=NcoarseTsys_clk T coarse = N coarse T sys_clk

T=Tcoarse+Tstart_fine-Tstop_fine T=T coarse +T start_fine -T stop_fine

其中,Tsys_clk,Tslow_ro和Tfast_ro分别表示系统时钟,慢环部分和快环部分的振荡周期时间;T为整体测量的飞行时间,表示数据组合,存储传输的测量结果,Tcoarse为粗计数单元测量的宽范围时间的主体部分时间,Tstart_fine和Tstop_fine分别表示测量时间剩余边沿部分的起始细时间与停止细时间;Ncoarse表示粗计数单元的计数值,Nslow_start和Nfast_start分别表示回波起始脉冲信号慢环部分和快环部分的双边沿的双边沿计数值,Nslow_stop和Nfast_stop分别表示回波停止脉冲信号慢环部分和快环部分的双边沿的双边沿计数值;Wherein, T sys_clk , T slow_ro and T fast_ro represent the oscillation cycle time of the system clock, the slow loop part and the fast loop part respectively; T is the flight time of the overall measurement, representing the measurement result of data combination, storage and transmission, T coarse is the main part time of the wide range time measured by the coarse counting unit, T start_fine and T stop_fine represent the start fine time and stop fine time of the remaining edge part of the measurement time respectively; N coarse represents the count value of the coarse counting unit, N slow_start and N fast_start represent the double edge count values of the double edges of the slow loop part and the fast loop part of the echo start pulse signal respectively, and N slow_stop and N fast_stop represent the double edge count values of the double edges of the slow loop part and the fast loop part of the echo stop pulse signal respectively;

S9、重复步骤S1-S8不断循环测量飞行时间。S9, repeat steps S1-S8 to measure the flight time in a continuous cycle.

因此,本发明采用上述一种基于差分进位链的快速TDC测量系统与方法的有益效果如下:Therefore, the beneficial effects of the fast TDC measurement system and method based on the differential carry chain of the present invention are as follows:

(1)相比传统差分结构使用单个D触发器使能计数,本发明可测量的细计数单元测量范围增大,能够处理超过整数个振荡时钟周期的测量范围(1) Compared with the traditional differential structure using a single D flip-flop to enable counting, the present invention can increase the measurement range of fine counting units that can be measured, and can handle the measurement range exceeding an integer number of oscillation clock cycles.

(2)使用差分进位链结构相比专用进位链方法分辨率提升到51ps。(2) The resolution of the differential carry chain structure is improved to 51 ps compared to the dedicated carry chain method.

(3)可以显著减小环形振荡器的振荡次数,提升了细计数单元的测量精度至48ps。(3) The oscillation frequency of the ring oscillator can be significantly reduced, and the measurement accuracy of the fine counting unit can be improved to 48ps.

(4)快环部分和慢环部分输出的双边沿检测计数结果最大编码分别为86和88,细计数单元最大测量时间为慢环部分的半个周期。与相同分辨率采用普通鉴相器结构的差分进位链方法相比,最大相对转换时间减小了50%。且随着环路振荡频率的降低,实际转换时间将进一步降低。(4) The maximum codes of the double-edge detection counting results output by the fast loop part and the slow loop part are 86 and 88 respectively, and the maximum measurement time of the fine counting unit is half a cycle of the slow loop part. Compared with the differential carry chain method with the same resolution using a common phase detector structure, the maximum relative conversion time is reduced by 50%. And as the loop oscillation frequency decreases, the actual conversion time will be further reduced.

下面通过附图和实施例,对本发明的技术方案做进一步的详细描述。The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1是本发明一种基于差分进位链的快速TDC测量系统的结构图;FIG1 is a structural diagram of a fast TDC measurement system based on a differential carry chain according to the present invention;

图2是本发明一种基于差分进位链的快速TDC测量系统的时钟同步单元与脉冲整形单元电路图;2 is a circuit diagram of a clock synchronization unit and a pulse shaping unit of a fast TDC measurement system based on a differential carry chain according to the present invention;

图3是本发明一种基于差分进位链的快速TDC测量系统的双边沿鉴相器结构电路图;3 is a circuit diagram of a double-edge phase detector structure of a fast TDC measurement system based on a differential carry chain according to the present invention;

图4是双边沿鉴相过程示意图;FIG4 is a schematic diagram of a double-edge phase detection process;

图5是细计数单元码密度测试图;FIG5 is a diagram of a fine counting unit code density test;

图6是微分非线性图;FIG6 is a differential nonlinearity diagram;

图7是积分非线性图;FIG7 is a graph of integral nonlinearity;

图8是时间测量精度图。FIG8 is a graph showing time measurement accuracy.

具体实施方式DETAILED DESCRIPTION

以下通过附图和实施例对本发明的技术方案作进一步说明。The technical solution of the present invention is further described below through the accompanying drawings and embodiments.

除非另外定义,本发明使用的技术术语或者科学术语应当为本发明所属领域内具有一般技能的人士所理解的通常意义。本发明中使用的“第一”、“第二”以及类似的词语并不表示任何顺序、数量或者重要性,而只是用来区分不同的组成部分。“包括”或者“包含”等类似的词语意指出现该词前面的元件或者物件涵盖出现在该词后面列举的元件或者物件及其等同,而不排除其他元件或者物件。“连接”或者“相连”等类似的词语并非限定于物理的或者机械的连接,而是可以包括电性的连接,不管是直接的还是间接的。“上”、“下”、“左”、“右”等仅用于表示相对位置关系,当被描述对象的绝对位置改变后,则该相对位置关系也可能相应地改变。Unless otherwise defined, the technical terms or scientific terms used in the present invention should be understood by people with ordinary skills in the field to which the present invention belongs. The words "first", "second" and similar words used in the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

实施例一Embodiment 1

如图1所示,本发明提供了一种基于差分进位链的快速TDC测量系统,包括粗计数单元、细计数单元、计数校准单元和数据组合,存储传输单元;As shown in FIG1 , the present invention provides a fast TDC measurement system based on a differential carry chain, including a coarse counting unit, a fine counting unit, a counting calibration unit and a data combination, storage and transmission unit;

细计数单元具体包括脉冲整形单元、时钟同步单元、环形振荡器、双边沿鉴相器、反馈计数锁存器、Slow双边沿计数单元和Fast双边沿计数单元。The fine counting unit specifically includes a pulse shaping unit, a clock synchronization unit, a ring oscillator, a double-edge phase detector, a feedback counting latch, a Slow double-edge counting unit and a Fast double-edge counting unit.

其中,粗计数单元用于测量宽范围时间的主体部分,粗计数单元为双级计数器,包括低位计数器和高位计数器。低位计数器为格雷码计数器,低位计数器的输出端连接高位计数器的输入端。粗计数单元的计数结果为两部分之和,结果表示为:Among them, the coarse counting unit is used to measure the main part of the wide range of time. The coarse counting unit is a two-stage counter, including a low-order counter and a high-order counter. The low-order counter is a Gray code counter, and the output end of the low-order counter is connected to the input end of the high-order counter. The counting result of the coarse counting unit is the sum of the two parts, and the result is expressed as:

N=NH<<2+NL N= NH <<2+ NL

细计数单元用于测量剩余边沿部分,构成时间测量结果的细时间测量部分。The fine counting unit is used to measure the remaining edge portion, which constitutes the fine time measurement portion of the time measurement result.

脉冲整形单元是将输入的回波起始或停止脉冲信号转化为起始单边沿信号,用于启动慢环部分产生振荡。The pulse shaping unit converts the input echo start or stop pulse signal into a start single edge signal, which is used to start the slow loop part to generate oscillation.

时钟同步单元用于获取细计数单元停止计数的单边沿信号,同时作为粗计数单元的启动测量信号或停止测量信号。The clock synchronization unit is used to obtain a single edge signal for the fine counting unit to stop counting, and is also used as a start measurement signal or a stop measurement signal for the coarse counting unit.

如图2(a)所示,一般的时钟同步单元与脉冲整形单元是利用M个延迟缓冲器使得启动信号与停止信号相位差小于180°,用于抵消由于两个D触发器引入的延迟时间。本发明在图2(a)的基础上设计了新的脉冲整形单元与时钟同步单元。使用的时钟同步单元为三位移位寄存器结构,输入为高频时钟信号与回波起始或停止脉冲信号。第一级D触发器的时钟输入端接入回波起始或停止脉冲信号,数据输入端接入高电平,数据清零端clrn和双边沿鉴相器反向输出端real_locked相连。第二级D触发器的时钟输入端接入系统时钟信号,数据输入端接入第一级D触发器的数据输出端。第三级D触发器的时钟输入端接入系统时钟信号,数据输入端接入第二级D触发器的数据输出端。As shown in FIG2(a), a general clock synchronization unit and a pulse shaping unit use M delay buffers to make the phase difference between the start signal and the stop signal less than 180°, which is used to offset the delay time introduced by the two D flip-flops. The present invention designs a new pulse shaping unit and a clock synchronization unit based on FIG2(a). The clock synchronization unit used is a three-bit shift register structure, and the input is a high-frequency clock signal and an echo start or stop pulse signal. The clock input end of the first-stage D flip-flop is connected to the echo start or stop pulse signal, the data input end is connected to the high level, and the data clear end clrn is connected to the reverse output end real_locked of the double-edge phase detector. The clock input end of the second-stage D flip-flop is connected to the system clock signal, and the data input end is connected to the data output end of the first-stage D flip-flop. The clock input end of the third-stage D flip-flop is connected to the system clock signal, and the data input end is connected to the data output end of the second-stage D flip-flop.

脉冲整形单元由D触发器和延时单元组成,D触发器的时钟输入端接入回波起始或停止脉冲信号,数据输入端接入高电平,将脉冲信号转化为可形成振荡输出的单边沿信号,数据清零端clrn和双边沿鉴相器的反向输出端real_locked相连。The pulse shaping unit consists of a D flip-flop and a delay unit. The clock input of the D flip-flop is connected to the echo start or stop pulse signal, and the data input is connected to a high level to convert the pulse signal into a single-edge signal that can form an oscillating output. The data clear terminal clrn is connected to the reverse output terminal real_locked of the double-edge phase detector.

本发明结构(b)相比结构(a)优势在于不需要反复调节延迟级数从而确定M的具体大小,同时不需要考虑N个触发器所引起的多余延迟时间,方便整体系统调节。The advantage of structure (b) of the present invention over structure (a) is that there is no need to repeatedly adjust the delay level to determine the specific size of M, and there is no need to consider the excess delay time caused by N triggers, which facilitates overall system adjustment.

环形振荡器包括由进位链、非门和与门组成的快环部分和慢环部分,慢环部分的与门的输入端接入脉冲整形单元的出入端和慢环部分振荡信号的反向输入端,快环部分的与门的输入端接入时钟同步单元的出入端和快环部分振荡信号的反向输入端。快环部分和慢环部分由延迟时间不同的结构进位链组成,慢环部分的周期大于快环部分的周期。The ring oscillator includes a fast loop part and a slow loop part composed of a carry chain, a NOT gate and an AND gate. The input end of the AND gate of the slow loop part is connected to the input and output end of the pulse shaping unit and the reverse input end of the oscillation signal of the slow loop part, and the input end of the AND gate of the fast loop part is connected to the input and output end of the clock synchronization unit and the reverse input end of the oscillation signal of the fast loop part. The fast loop part and the slow loop part are composed of a carry chain with different delay times, and the period of the slow loop part is greater than the period of the fast loop part.

双边沿鉴相器用于输出快环部分和慢环部分的相位同步信号,双边沿鉴相器是既需要检测快环部分与慢环部分的上升沿重合时刻,同时也需要检测快环部分的上升沿和漫环部分的下降沿边沿重合时刻。The double edge phase detector is used to output the phase synchronization signal of the fast loop part and the slow loop part. The double edge phase detector needs to detect the coincidence moment of the rising edge of the fast loop part and the slow loop part, and also needs to detect the coincidence moment of the rising edge of the fast loop part and the falling edge of the slow loop part.

假设快环部分与慢环部分的初始相位差为慢环与快环频率分别为fs和fk。2ncπ对应慢时钟ncTs时间差,由双边沿鉴相器,当快时钟与慢时钟相位上升沿对齐时刻,快时钟nk计数为:Assume that the initial phase difference between the fast loop and the slow loop is and The frequencies of the slow loop and the fast loop are fs and fk respectively. 2ncπ corresponds to the time difference of the slow clock ncTs . By the double-edge phase detector, when the rising edge of the fast clock and the slow clock are aligned, the fast clock nk counts as:

假设快环部分与慢环部分的初始相位差为则快时钟nk计数为:Assume that the initial phase difference between the fast loop and the slow loop is and Then the fast clock n k count is:

对于未补偿环形振荡器,均方根误差σ与总振荡数n的平方根成比例增加。For an uncompensated ring oscillator, the rms error σ increases in proportion to the square root of the total number of oscillations n.

上式σ为系统测量均方根误差,ΔT表示待测量时间间隔,res为系统分辨率,Tro为振荡器振荡周期,由上式可知缩短待测时间间隔将减小系统测量均方根误差。In the above formula, σ is the root mean square error of the system measurement, ΔT represents the time interval to be measured, res is the system resolution, and T ro is the oscillation period of the oscillator. It can be seen from the above formula that shortening the time interval to be measured will reduce the root mean square error of the system measurement.

由双边沿鉴相器的特点,快环部分的最大计数结果为:According to the characteristics of the double-edge phase detector, the maximum counting result of the fast loop part is:

由上式可知,双边沿鉴相器可以降低n的振荡次数为原来的一半,既有效降低均方根误差,同时也减小了总体测量时间。It can be seen from the above formula that the double-edge phase detector can reduce the number of oscillations of n to half of the original, which not only effectively reduces the root mean square error, but also reduces the overall measurement time.

双边沿鉴相器由上升沿-上升沿边沿重合检测部分与上升沿-下降沿边沿重合检测部分组成,具体为:The double edge phase detector consists of a rising edge-rising edge coincidence detection part and a rising edge-falling edge coincidence detection part, specifically:

上升沿-上升沿边沿重合检测部分由两级D触发器构成,快环部分和慢环部分的输出为第一级D触发器的时钟输入和数据输入,为第二级为D触发器的数据输入和时钟输入,将第一级D触发器和第二级的D触发器经过延时单元后通过与门输出。当快环部分和慢环部分的上升沿重合时,与门输出为高电平,表示经过移相后快环部分和慢环部分的相位差为0°。The rising edge-rising edge coincidence detection part is composed of two stages of D flip-flops. The outputs of the fast loop part and the slow loop part are the clock input and data input of the first stage D flip-flop, and the data input and clock input of the second stage D flip-flop. The first stage D flip-flop and the second stage D flip-flop are output through the AND gate after passing through the delay unit. When the rising edges of the fast loop part and the slow loop part coincide, the AND gate output is high, indicating that the phase difference between the fast loop part and the slow loop part is 0° after phase shifting.

上升沿-下降沿边沿重合检测部分也由两级D触发器构成,快环部分和慢环部分的输出为第一级D触发器的反向时钟输入和数据输入,为第二级为D触发器的数据输入和反向时钟输入,将第一级D触发器和第二级的D触发器经过延时单元后通过与门输出。当快环部分的上升沿和漫环部分的下降沿重合时,与门输出为高电平,表示经过移相后快环和慢环的相位差为180°。The rising edge-falling edge coincidence detection part is also composed of two-stage D flip-flops. The output of the fast loop part and the slow loop part is the reverse clock input and data input of the first-stage D flip-flop, and the data input and reverse clock input of the second-stage D flip-flop. The first-stage D flip-flop and the second-stage D flip-flop are output through the AND gate after passing through the delay unit. When the rising edge of the fast loop part and the falling edge of the slow loop part coincide, the AND gate output is high, indicating that the phase difference between the fast loop and the slow loop is 180° after phase shifting.

上升沿-上升沿边沿重合检测部分的与门和上升沿-下降沿边沿重合检测部分与门的输出端通过或门输出。当或门输出为高电平时,表示鉴相完成,此时快环部分和慢环部分相位相差0°或者180°。The outputs of the AND gate of the rising-rising edge coincidence detection part and the AND gate of the rising-falling edge coincidence detection part are output through the OR gate. When the OR gate output is high, it means that the phase detection is completed, and the phase difference between the fast loop part and the slow loop part is 0° or 180°.

Slow双边沿计数单元和Fast双边沿计数单元与粗计数单元的结构相同,分别用于计数慢环部分和快环部分的双边沿数量,其结构分为上升沿计数器和下降沿计数器,上升沿计数器和下降沿计数器均为双级联结构,两者之和为双边沿计数结果的输出。The Slow double edge counting unit and the Fast double edge counting unit have the same structure as the coarse counting unit, and are used to count the number of double edges in the slow loop part and the fast loop part respectively. Their structures are divided into rising edge counter and falling edge counter. Both the rising edge counter and the falling edge counter are double cascade structures, and the sum of the two is the output of the double edge counting result.

反馈计数锁存器用于输出Slow双边沿计数单元和Fast双边沿计数单元计数停止信号。反馈计数锁存器由单个D触发器构成,数据输入端为高电平,时钟输入信号连接双边沿鉴相器的输出,由于双边沿鉴相器的输出可能为多脉冲信号,通过反馈计数锁存器后,只提取双边沿鉴相器的输出的第一个上升沿作为最终的锁存信号。同时反馈计数锁存器反向输出连接到脉冲整形单元和时钟同步单元,一旦进入锁存状态,立刻停止环形振荡。The feedback count latch is used to output the counting stop signal of the Slow double edge counting unit and the Fast double edge counting unit. The feedback count latch is composed of a single D flip-flop, the data input terminal is high level, and the clock input signal is connected to the output of the double edge phase detector. Since the output of the double edge phase detector may be a multi-pulse signal, after passing through the feedback count latch, only the first rising edge of the output of the double edge phase detector is extracted as the final latch signal. At the same time, the reverse output of the feedback count latch is connected to the pulse shaping unit and the clock synchronization unit. Once it enters the latch state, the ring oscillation is stopped immediately.

计数校准单元用于对细计数单元和粗计数单元进行数据的校准,数据组合,存储传输单元,用于输出整体时间测量结果。The counting calibration unit is used for calibrating the data of the fine counting unit and the coarse counting unit, and the data combination, storage and transmission unit is used for outputting the overall time measurement result.

如图3所示,DFF1与DFF2用于检测慢环部分与快环部分相位于0°同步位置,DFF3与DFF4用于检测慢环部分与快环部分相位于180°同步位置。As shown in FIG3 , DFF1 and DFF2 are used to detect that the slow loop part and the fast loop part are located at a 0° synchronous position, and DFF3 and DFF4 are used to detect that the slow loop part and the fast loop part are located at a 180° synchronous position.

DFF1的时钟输入端为快环部分的振荡输出,数据输入端为慢环部分的振荡输出,DFF2的时钟输入端为慢环部分的振荡输出,数据输入端为快环部分的振荡输出。如图4(1)所示,令快环部分和慢环部分初始相位为相位检测结果如下表一所示:The clock input of DFF1 is the oscillation output of the fast loop part, and the data input is the oscillation output of the slow loop part. The clock input of DFF2 is the oscillation output of the slow loop part, and the data input is the oscillation output of the fast loop part. As shown in Figure 4(1), let the initial phase of the fast loop part and the slow loop part be and The phase detection results are shown in Table 1 below:

表一Q1和Q2的相位检测结果Table 1 Phase detection results of Q1 and Q2

Q1Q1 Q2Q2 相位关系Phase Relationship 11 00 超前Ahead of the times 11 11 相位于0°同步Phase is at 0° synchronous 00 11 落后behind

当Q1与Q2输出通过与门相与后输出为1,表示在A点实现相位同步。此时计数锁存结果输出为1,对快环部分和慢环部分的计数结果进行锁存。When the outputs of Q1 and Q2 are ANDed through the AND gate, the output is 1, indicating that phase synchronization is achieved at point A. At this time, the count latch result output is 1, and the count results of the fast loop part and the slow loop part are latched.

DFF3的时钟输入端为快环部分的反向振荡输出,数据输入端为慢环部分的振荡输出,DFF4的时钟输入端为慢环部分的反向振荡输出,数据输入端为快环部分的振荡输出。如图4(2)所示,令快环部分和慢环部分初始相位为相位检测结果如下表二所示:表二Q3和Q4的相位检测结果The clock input of DFF3 is the reverse oscillation output of the fast loop part, and the data input is the oscillation output of the slow loop part. The clock input of DFF4 is the reverse oscillation output of the slow loop part, and the data input is the oscillation output of the fast loop part. As shown in Figure 4(2), let the initial phase of the fast loop part and the slow loop part be and The phase detection results are shown in Table 2 below: Table 2 Phase detection results of Q3 and Q4

Q3Q3 Q4Q4 相位关系Phase Relationship 11 00 超前Ahead of the times 11 11 相位于180°同步Phase is 180° synchronous 00 11 落后behind

当Q3与Q4输出通过与门相与后输出为1,表示在B点实现相位同步。此时计数锁存结果输出为1,对快环部分和慢环部分的计数结果进行锁存。When the outputs of Q3 and Q4 are ANDed through the AND gate, the output is 1, indicating that phase synchronization is achieved at point B. At this time, the count latch result output is 1, and the count results of the fast loop part and the slow loop part are latched.

如图3所示,双边沿鉴相器中的延迟单元τ1与τ2用于调整鉴相输出,对与门输出脉冲进行整形。As shown in FIG3 , the delay units τ 1 and τ 2 in the double-edge phase detector are used to adjust the phase detection output and shape the AND gate output pulse.

如图4所示,双边沿鉴相器通过或门输出鉴相位置。当先输出相位于0°同步位置;当时,先输出相位于180°同步,能够将待测量时间间隔控制在半个周期之内。As shown in Figure 4, the double-edge phase detector outputs the phase position through an OR gate. First, the output phase is at the 0° synchronous position; when When the output phase is 180° synchronous, the time interval to be measured can be controlled within half a cycle.

反馈计数锁存器的输入为双边沿鉴相器的输出,由于双边沿鉴相器可能存在多个相位同步位置,所以需要利用反馈计数锁存器只输出第一个上升沿位置作为最终鉴相结果,当完成数据组合,存储传输单元计时结果时,对反馈计数锁存器进行复位。The input of the feedback count latch is the output of the double-edge phase detector. Since the double-edge phase detector may have multiple phase synchronization positions, it is necessary to use the feedback count latch to output only the first rising edge position as the final phase detection result. When the data combination is completed and the transmission unit timing result is stored, the feedback count latch is reset.

本发明还提供了一种基于差分进位链的快速TDC测量方法,包括以下步骤:The present invention also provides a fast TDC measurement method based on a differential carry chain, comprising the following steps:

S1、回波起始脉冲信号先通过脉冲整形单元转变为单边沿信号,驱动慢环部分振荡环路产生振荡,Slow双边沿计数单元开始对慢环部分的上升沿和下降沿计数,之后回波起始脉冲信号通过时钟同步单元提取时钟同步信号,驱动快环部分振荡环路产生振荡,Fast双边沿计数单元开始对快环部分的上升沿和下降沿计数;S1, the echo start pulse signal is first converted into a single-edge signal by the pulse shaping unit, driving the slow loop oscillation loop to oscillate, and the Slow double-edge counting unit starts to count the rising and falling edges of the slow loop. After that, the echo start pulse signal extracts the clock synchronization signal through the clock synchronization unit, driving the fast loop oscillation loop to oscillate, and the Fast double-edge counting unit starts to count the rising and falling edges of the fast loop.

S2、检测到回波起始脉冲信号的时钟同步信号,由粗计数单元对系统时钟上升沿开始计数;S2, the clock synchronization signal of the echo start pulse signal is detected, and the coarse counting unit starts counting the rising edge of the system clock;

S3、双边沿鉴相器检测快环部分和慢环部分的上升沿-上升沿或者上升沿-下降沿边沿重合时刻检测,输出高电平到反馈计数锁存器;反馈计数锁存器输出所提取多边沿信号的第一个上升沿;S3, the double-edge phase detector detects the rising edge-rising edge or rising edge-falling edge coincidence moment of the fast loop part and the slow loop part, and outputs a high level to the feedback count latch; the feedback count latch outputs the first rising edge of the extracted multi-edge signal;

S4、当Slow双边沿计数单元与Fast双边沿计数单元检测到锁存信号上升沿后,停止计数;当脉冲整形单元以及时钟同步单元检测到锁存信号的反向输出后,触发D触发器的数据清零端clrn,拉低输出电平,等待下一次测量输入;S4, when the Slow double-edge counting unit and the Fast double-edge counting unit detect the rising edge of the latch signal, they stop counting; when the pulse shaping unit and the clock synchronization unit detect the reverse output of the latch signal, they trigger the data clearing terminal clrn of the D flip-flop, pull down the output level, and wait for the next measurement input;

S5、计数数据经过校准后,进入数据组合,存储传输单元,输出Start部分细计数单元测量完成标志信号,所有计数单元进入归零状态,等待下一次Stop部分细计数单元进行测量;S5, after the counting data is calibrated, it enters the data combination, storage and transmission unit, outputs the Start part fine counting unit measurement completion flag signal, all counting units enter the zero state, and wait for the next Stop part fine counting unit to measure;

S6、回波停止脉冲信号与回波起始脉冲信号相同,重复步骤S1-S5;S6, the echo stop pulse signal is the same as the echo start pulse signal, and steps S1-S5 are repeated;

S7、检测到回波停止脉冲信号的时钟同步信号,粗计数单元停止计数;S7, the clock synchronization signal of the echo stop pulse signal is detected, and the coarse counting unit stops counting;

S8、将一次粗计数单元测量结果以及Start,Stop细计数单元测量结果组合完成一次时间测量,结果表达式为:S8. Combine the measurement result of a coarse counting unit and the measurement results of the Start and Stop fine counting units to complete a time measurement. The result expression is:

Tcoarse=NcoarseTsys_clk T coarse = N coarse T sys_clk

T=Tcoarse+Tstart_fine-Tstop_fine T=T coarse +T start_fine -T stop_fine

其中,Tsys_clk,Tslow_ro和Tfast_ro分别表示系统时钟,慢环部分和快环部分的振荡周期时间;T为整体测量的飞行时间,表示数据组合,存储传输的测量结果,Tcoarse为粗计数单元测量的宽范围时间的主体部分时间,Tstart_fine和Tstop_fine分别表示测量时间剩余边沿部分的起始细时间与停止细时间;Ncoarse表示粗计数单元的计数值,Nslow_start和Nfast_start分别表示回波起始脉冲信号慢环部分和快环部分的双边沿的双边沿计数值,Nslow_stop和Nfast_stop分别表示回波停止脉冲信号慢环部分和快环部分的双边沿的双边沿计数值;Wherein, T sys_clk , T slow_ro and T fast_ro represent the oscillation cycle time of the system clock, the slow loop part and the fast loop part respectively; T is the flight time of the overall measurement, representing the measurement result of data combination, storage and transmission, T coarse is the main part time of the wide range time measured by the coarse counting unit, T start_fine and T stop_fine represent the start fine time and stop fine time of the remaining edge part of the measurement time respectively; N coarse represents the count value of the coarse counting unit, N slow_start and N fast_start represent the double edge count values of the double edges of the slow loop part and the fast loop part of the echo start pulse signal respectively, and N slow_stop and N fast_stop represent the double edge count values of the double edges of the slow loop part and the fast loop part of the echo stop pulse signal respectively;

S9、重复步骤S1-S8不断循环测量飞行时间。S9, repeat steps S1-S8 to measure the flight time in a continuous cycle.

本实施例中,采用本发明在AlteraFPGA进行实施,设计工具时QuartusII15.0版本,以及Modelsim10.7版本。Altera公司提供的Quartus软件包括LogicLock逻辑锁定功能设计,TIMEQuest时序分析工具,能够利用Assignmenteditor对相关的结构进行Location约束,可以在ChipPlanner中查看具体的布局内容。同样的,本方案相关原理内容也可以通过Xilinx等其它型号的FPGA设计实现。In this embodiment, the present invention is implemented in Altera FPGA, and the design tools are Quartus II 15.0 version and Modelsim 10.7 version. The Quartus software provided by Altera includes LogicLock logic locking function design, TIMEQuest timing analysis tool, and can use Assignment editor to perform location constraints on related structures, and the specific layout content can be viewed in Chip Planner. Similarly, the relevant principles of this solution can also be implemented through other models of FPGA design such as Xilinx.

具体实施步骤如下:The specific implementation steps are as follows:

(1)为获取两个频率相接近的振荡环路,利用进位链结构特点差异或者构造不同的延迟链结构级数,获得频率相近的稳定的振荡环路。(1) In order to obtain two oscillation loops with similar frequencies, the differences in carry chain structure characteristics are utilized or different delay chain structure series are constructed to obtain stable oscillation loops with similar frequencies.

(2)按照结构所示搭建具体的TDC设计方案,结合ChipPlanner等工具设计具体的电路。(2) Build a specific TDC design according to the structure shown, and use tools such as ChipPlanner to design a specific circuit.

(3)利用信号发生器或者FPGA内部锁相环路生成稳定的方波信号,输入到stop/start端口连接到示波器测试观察是否形成稳定振荡环路,确定快环部分与慢环部分的振荡频率为fs与fk,得到慢环部分的振荡周期为Ts(3) Use a signal generator or the internal phase-locked loop of the FPGA to generate a stable square wave signal, input it to the stop/start port, and connect it to an oscilloscope to test and observe whether a stable oscillation loop is formed. Determine the oscillation frequencies of the fast loop and the slow loop as fs and fk , and obtain the oscillation period of the slow loop as Ts .

(4)通过大量随机脉冲信号模拟起始信号,设置样本数量为20万次,得到的快环部分细计数单元计数结果分布如图5所示。(4) A large number of random pulse signals are used to simulate the starting signal, and the number of samples is set to 200,000 times. The distribution of the counting results of the fine counting units in the fast loop is shown in FIG5 .

(5) (5)

(6)由公式计算快环部分的分辨率为2218(慢环部分半周期)/43(分布级数)=51.6ps,实际上统计结果表现为快环部分的上升沿和慢环部分的上升沿或者下降沿重合,故快环部分的统计计数呈现奇数分布的特征。为方便时间校准,对快环部分计数压缩为N'k,且压缩后的计数值与原计数值Nk关系满足 (6) The resolution of the fast loop is calculated by the formula as 2218 (half cycle of the slow loop)/43 (distribution level) = 51.6ps. In fact, the statistical result shows that the rising edge of the fast loop coincides with the rising edge or falling edge of the slow loop, so the statistical count of the fast loop presents the characteristics of odd number distribution. To facilitate time calibration, the count of the fast loop is compressed to N'k , and the relationship between the compressed count value and the original count value Nk satisfies

(7)得到的快环部分的微分非线性和积分非线性如图6和图7所示,由实验结果可知本发明基于细延时移相结构的环形进位链TDC电路测得的时间戳结果,DNL和INL都位于(-0.5LSB,0.5LSB)范围内,相较于抽头式TDC电路,本发明所得到的DNL和INL结果都相对较低。由于该结构的TDC的振荡数范围为86,经过压缩后为43。(7) The differential nonlinearity and integral nonlinearity of the fast loop part are shown in Figures 6 and 7. The experimental results show that the time stamp results measured by the ring carry chain TDC circuit based on the fine delay phase shift structure of the present invention are both within the range of (-0.5LSB, 0.5LSB). Compared with the tapped TDC circuit, the DNL and INL results obtained by the present invention are relatively low. Since the oscillation number range of the TDC of this structure is 86, it is 43 after compression.

(8)构建查找表结构,类似地,以上述同样的方法得到stop部分的快环部分,对stop部分同样建立查找表结构对每一级细计数单元校准。(8) Constructing a lookup table structure. Similarly, the fast loop part of the stop part is obtained by the same method as above, and a lookup table structure is also established for the stop part to calibrate each level of fine counting unit.

(9)独立建立多级进位链接结构,调整进位链级数,作为精度测量延迟线,分别得到延迟时间为5ns和10ns进行本次测试。(9) Independently establish a multi-stage carry chain structure and adjust the number of carry chain stages to use as a precision measurement delay line, and obtain delay times of 5 ns and 10 ns for this test.

(10)精度测试分析如图8所示,时间延时在5ns左右处测量时间均值为5.14ns,方差为48.2ps,10ns处测试时间均值为10.36ns,方差为49.6ps。采用双边沿鉴相器结构得出的结果是48ps,改变鉴相结构仅仅采用单边沿鉴相RMS精度约为70ps,相比之下双边沿鉴相器结构改进效果有着明显提升。(10) As shown in Figure 8, the average time of the time delay at about 5ns is 5.14ns, and the variance is 48.2ps. The average time of the time delay at 10ns is 10.36ns, and the variance is 49.6ps. The result obtained by using the double-edge phase detector structure is 48ps. The RMS accuracy of the phase detector structure is about 70ps when the phase detector structure is changed to only use a single-edge phase detector. In comparison, the improvement effect of the double-edge phase detector structure is significantly improved.

(11)本发明提出的基于细延时移相测量的环形进位链TDC电路,可以将最大振荡周期数和细计数单元计数值降低一半,从而显著降低RMS误差,提高分辨率。从实验结果可以看出,该种电路结构将精度从70ps量级提高到48ps量级,且拥有较好的积分非线性和微分非线性,本发明可以广泛应用于高精度的时间间隔测量和相关领域。(11) The ring carry chain TDC circuit based on fine delay phase shift measurement proposed in the present invention can reduce the maximum number of oscillation cycles and the count value of the fine counting unit by half, thereby significantly reducing the RMS error and improving the resolution. It can be seen from the experimental results that this circuit structure improves the accuracy from 70ps to 48ps, and has good integral nonlinearity and differential nonlinearity. The present invention can be widely used in high-precision time interval measurement and related fields.

因此,本发明采用上述一种基于差分进位链的快速TDC测量系统与方法,能够有效减小环形振荡器振荡次数,提升细计数单元测量精度以及转换时间。Therefore, the present invention adopts the above-mentioned fast TDC measurement system and method based on differential carry chain, which can effectively reduce the number of oscillations of the ring oscillator and improve the measurement accuracy and conversion time of the fine counting unit.

最后应说明的是:以上实施例仅用以说明本发明的技术方案而非对其进行限制,尽管参照较佳实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对本发明的技术方案进行修改或者等同替换,而这些修改或者等同替换亦不能使修改后的技术方案脱离本发明技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that they can still modify or replace the technical solution of the present invention with equivalents, and these modifications or equivalent replacements cannot cause the modified technical solution to deviate from the spirit and scope of the technical solution of the present invention.

Claims (9)

1.一种基于差分进位链的快速TDC测量系统,其特征在于:包括粗计数单元、细计数单元、计数校准单元和数据组合,存储传输单元;1. A fast TDC measurement system based on differential carry chain, characterized by: comprising a coarse counting unit, a fine counting unit, a counting calibration unit and a data combination, storage and transmission unit; 细计数单元具体包括脉冲整形单元、时钟同步单元、环形振荡器、双边沿鉴相器、反馈计数锁存器、Slow双边沿计数单元和Fast双边沿计数单元;环形振荡器包括由进位链、非门和与门组成的快环部分和慢环部分;慢环部分的与门的输入端接入脉冲整形单元的出入端和慢环部分振荡信号的反向输入端,快环部分的与门的输入端接入时钟同步单元的出入端和快环部分振荡信号的反向输入端。The fine counting unit specifically includes a pulse shaping unit, a clock synchronization unit, a ring oscillator, a double-edge phase detector, a feedback counting latch, a Slow double-edge counting unit and a Fast double-edge counting unit; the ring oscillator includes a fast loop part and a slow loop part composed of a carry chain, a NOT gate and an AND gate; the input end of the AND gate of the slow loop part is connected to the input and output ends of the pulse shaping unit and the reverse input end of the oscillation signal of the slow loop part, and the input end of the AND gate of the fast loop part is connected to the input and output ends of the clock synchronization unit and the reverse input end of the oscillation signal of the fast loop part. 2.根据权利要求1所述的一种基于差分进位链的快速TDC测量系统,其特征在于:粗计数单元为双级计数器,包括低位计数器和高位计数器,低位计数器为格雷码计数器,低位计数器的输出端连接高位计数器的输入端。2. A fast TDC measurement system based on differential carry chain according to claim 1, characterized in that: the coarse counting unit is a two-stage counter, including a low-order counter and a high-order counter, the low-order counter is a Gray code counter, and the output end of the low-order counter is connected to the input end of the high-order counter. 3.根据权利要求1所述的一种基于差分进位链的快速TDC测量系统,其特征在于:脉冲整形单元由单级别D触发器组成,D触发器的时钟输入端接入回波起始或停止脉冲信号,数据输入端接入高电平,数据清零端clrn和双边沿鉴相器的反向输出端real_locked相连。3. A fast TDC measurement system based on a differential carry chain according to claim 1, characterized in that: the pulse shaping unit is composed of a single-level D flip-flop, the clock input end of the D flip-flop is connected to the echo start or stop pulse signal, the data input end is connected to the high level, and the data clear end clrn is connected to the reverse output end real_locked of the double-edge phase detector. 4.根据权利要求1所述的一种基于差分进位链的快速TDC测量系统,其特征在于:时钟同步单元为三位移位寄存器结构,包括第一级D触发器、第二级D触发器和第三级D触发器;其中,第一级D触发器的时钟输入端接入回波起始或停止脉冲信号,数据输入端接入高电平,数据清零端clrn和双边沿鉴相器反向输出端real_locked相连;第二级D触发器的时钟输入端接入系统时钟信号,数据输入端接入第一级D触发器的数据输出端;第三级D触发器的时钟输入端接入系统时钟信号,数据输入端接入第二级D触发器的数据输出端。4. A fast TDC measurement system based on a differential carry chain according to claim 1, characterized in that: the clock synchronization unit is a three-bit shift register structure, including a first-stage D flip-flop, a second-stage D flip-flop and a third-stage D flip-flop; wherein the clock input end of the first-stage D flip-flop is connected to an echo start or stop pulse signal, the data input end is connected to a high level, and the data clear end clrn is connected to the reverse output end real_locked of the double-edge phase detector; the clock input end of the second-stage D flip-flop is connected to a system clock signal, and the data input end is connected to a data output end of the first-stage D flip-flop; the clock input end of the third-stage D flip-flop is connected to a system clock signal, and the data input end is connected to a data output end of the second-stage D flip-flop. 5.根据权利要求1所述的一种基于差分进位链的快速TDC测量系统,其特征在于:快环部分和慢环部分由延迟时间不同的结构进位链组成,慢环部分的周期大于快环部分的周期。5. A fast TDC measurement system based on differential carry chain according to claim 1, characterized in that: the fast loop part and the slow loop part are composed of structural carry chains with different delay times, and the period of the slow loop part is greater than the period of the fast loop part. 6.根据权利要求1所述的一种基于差分进位链的快速TDC测量系统,其特征在于:双边沿鉴相器由上升沿-上升沿边沿重合检测部分与上升沿-下降沿边沿重合检测部分组成;6. A fast TDC measurement system based on differential carry chain according to claim 1, characterized in that: the double edge phase detector is composed of a rising edge-rising edge coincidence detection part and a rising edge-falling edge coincidence detection part; 上升沿-上升沿边沿重合检测部分由两级D触发器构成,快环部分和慢环部分的输出为第一级D触发器的时钟输入和数据输入,为第二级为D触发器的数据输入和时钟输入,将第一级D触发器和第二级的D触发器经过延时单元后通过与门输出;The rising edge-rising edge coincidence detection part is composed of two stages of D flip-flops. The outputs of the fast loop part and the slow loop part are the clock input and data input of the first stage D flip-flop, and the data input and clock input of the second stage D flip-flop. The first stage D flip-flop and the second stage D flip-flop are output through the AND gate after passing through the delay unit. 上升沿-下降沿边沿重合检测部分也由两级D触发器构成,快环部分和慢环部分的输出为第一级D触发器的反向时钟输入和数据输入,为第二级为D触发器的数据输入和反向时钟输入,将第一级D触发器和第二级的D触发器经过延时单元后通过与门输出;The rising edge-falling edge coincidence detection part is also composed of two stages of D flip-flops. The outputs of the fast loop part and the slow loop part are the reverse clock input and data input of the first stage D flip-flop, and the data input and reverse clock input of the second stage D flip-flop. The first stage D flip-flop and the second stage D flip-flop are output through the AND gate after passing through the delay unit. 上升沿-上升沿边沿重合检测部分的与门和上升沿-下降沿边沿重合检测部分与门的输出端通过或门输出。The output ends of the AND gate of the rising edge-rising edge coincidence detection part and the AND gate of the rising edge-falling edge coincidence detection part are output through the OR gate. 7.根据权利要求1所述的一种基于差分进位链的快速TDC测量系统,其特征在于:反馈计数锁存器由D触发器组成,数据输入端接入高电平,时钟输入端连接双边沿鉴相器的输出端;反馈计数锁存器反向输出连接到脉冲整形单元和时钟同步单元。7. A fast TDC measurement system based on a differential carry chain according to claim 1, characterized in that: the feedback count latch is composed of a D flip-flop, the data input terminal is connected to a high level, and the clock input terminal is connected to the output terminal of the double-edge phase detector; the reverse output of the feedback count latch is connected to the pulse shaping unit and the clock synchronization unit. 8.根据权利要求1所述的一种基于差分进位链的快速TDC测量系统,其特征在于:Slow双边沿计数单元和Fast双边沿计数单元与粗计数单元的结构相同。8 . The fast TDC measurement system based on differential carry chain according to claim 1 , wherein the structure of the Slow double edge counting unit and the Fast double edge counting unit is the same as that of the coarse counting unit. 9.一种基于差分进位链的快速TDC测量方法,其特征在于,包括以下步骤:9. A fast TDC measurement method based on differential carry chain, characterized by comprising the following steps: S1、回波起始脉冲信号先通过脉冲整形单元转变为单边沿信号,驱动慢环部分振荡环路产生振荡,Slow双边沿计数单元开始对慢环部分的上升沿和下降沿计数,之后回波起始脉冲信号通过时钟同步单元提取时钟同步信号,驱动快环部分振荡环路产生振荡,Fast双边沿计数单元开始对快环部分的上升沿和下降沿计数;S1, the echo start pulse signal is first converted into a single-edge signal by the pulse shaping unit, driving the slow loop oscillation loop to oscillate, and the Slow double-edge counting unit starts to count the rising and falling edges of the slow loop. After that, the echo start pulse signal extracts the clock synchronization signal through the clock synchronization unit, driving the fast loop oscillation loop to oscillate, and the Fast double-edge counting unit starts to count the rising and falling edges of the fast loop. S2、检测到回波起始脉冲信号的时钟同步信号,由粗计数单元对系统时钟上升沿开始计数;S2, the clock synchronization signal of the echo start pulse signal is detected, and the coarse counting unit starts counting the rising edge of the system clock; S3、双边沿鉴相器检测快环部分和慢环部分的上升沿-上升沿或者上升沿-下降沿边沿重合时刻检测,输出高电平到反馈计数锁存器;反馈计数锁存器输出所提取多边沿信号的第一个上升沿;S3, the double-edge phase detector detects the rising edge-rising edge or rising edge-falling edge coincidence moment of the fast loop part and the slow loop part, and outputs a high level to the feedback count latch; the feedback count latch outputs the first rising edge of the extracted multi-edge signal; S4、当Slow双边沿计数单元与Fast双边沿计数单元检测到锁存信号上升沿后,停止计数;当脉冲整形单元以及时钟同步单元检测到锁存信号的反向输出后,触发D触发器的数据清零端clrn,拉低输出电平,等待下一次测量输入;S4, when the Slow double-edge counting unit and the Fast double-edge counting unit detect the rising edge of the latch signal, they stop counting; when the pulse shaping unit and the clock synchronization unit detect the reverse output of the latch signal, they trigger the data clearing terminal clrn of the D flip-flop, pull down the output level, and wait for the next measurement input; S5、计数数据经过校准后,进入数据组合,存储传输单元,输出Start部分细计数单元测量完成标志信号,所有计数单元进入归零状态,等待下一次Stop部分细计数单元进行测量;S5, after the counting data is calibrated, it enters the data combination, storage and transmission unit, outputs the Start part fine counting unit measurement completion flag signal, all counting units enter the zero state, and wait for the next Stop part fine counting unit to measure; S6、回波停止脉冲信号与回波起始脉冲信号相同,重复步骤S1-S5;S6, the echo stop pulse signal is the same as the echo start pulse signal, and steps S1-S5 are repeated; S7、检测到回波停止脉冲信号的时钟同步信号,粗计数单元停止计数;S7, the clock synchronization signal of the echo stop pulse signal is detected, and the coarse counting unit stops counting; S8、将一次粗计数单元测量结果以及Start,Stop细计数单元测量结果组合完成一次时间测量,结果表达式为:S8. Combine the measurement result of a coarse counting unit and the measurement results of the Start and Stop fine counting units to complete a time measurement. The result expression is: Tcoarse=NcoarseTsys_clk T coarse = N coarse T sys_clk T=Tcoarse+Tstart_fine-Tstop_fine T=T coarse +T start_fine -T stop_fine 其中,Tsys_clk,Tslow_ro和Tfast_ro分别表示系统时钟,慢环部分和快环部分的振荡周期时间;T为整体测量的飞行时间,表示数据组合,存储传输的测量结果,Tcoarse为粗计数单元测量的宽范围时间的主体部分时间,Tstart_fine和Tstop_fine分别表示测量时间剩余边沿部分的起始细时间与停止细时间;Ncoarse表示粗计数单元的计数值,Nslow_start和Nfast_start分别表示回波起始脉冲信号慢环部分和快环部分的双边沿的双边沿计数值,Nslow_stop和Nfast_stop分别表示回波停止脉冲信号慢环部分和快环部分的双边沿的双边沿计数值;Wherein, T sys_clk , T slow_ro and T fast_ro represent the oscillation cycle time of the system clock, the slow loop part and the fast loop part respectively; T is the flight time of the overall measurement, representing the measurement result of data combination, storage and transmission, T coarse is the main part time of the wide range time measured by the coarse counting unit, T start_fine and T stop_fine represent the start fine time and stop fine time of the remaining edge part of the measurement time respectively; N coarse represents the count value of the coarse counting unit, N slow_start and N fast_start represent the double edge count values of the double edges of the slow loop part and the fast loop part of the echo start pulse signal respectively, and N slow_stop and N fast_stop represent the double edge count values of the double edges of the slow loop part and the fast loop part of the echo stop pulse signal respectively; S9、重复步骤S1-S8不断循环测量飞行时间。S9, repeat steps S1-S8 to measure the flight time in a continuous cycle.
CN202410801793.0A 2024-06-20 2024-06-20 A fast TDC measurement system and method based on differential carry chain Active CN118759498B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410801793.0A CN118759498B (en) 2024-06-20 2024-06-20 A fast TDC measurement system and method based on differential carry chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410801793.0A CN118759498B (en) 2024-06-20 2024-06-20 A fast TDC measurement system and method based on differential carry chain

Publications (2)

Publication Number Publication Date
CN118759498A true CN118759498A (en) 2024-10-11
CN118759498B CN118759498B (en) 2025-07-08

Family

ID=92942484

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410801793.0A Active CN118759498B (en) 2024-06-20 2024-06-20 A fast TDC measurement system and method based on differential carry chain

Country Status (1)

Country Link
CN (1) CN118759498B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118971847A (en) * 2024-10-16 2024-11-15 杭州宇称电子技术有限公司 Multi-threshold comparison TDC integrated circuit, control method and laser radar thereof

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001069328A2 (en) * 2000-03-17 2001-09-20 Vector 12 Corporation High resolution time-to-digital converter
CN202121568U (en) * 2011-07-11 2012-01-18 山东欧龙电子科技有限公司 Time-digital converter
CN102684686A (en) * 2012-05-09 2012-09-19 上海宏力半导体制造有限公司 Phase-locked loop with reduced in-band phase noise and corresponding working method thereof
CN104113342A (en) * 2013-11-28 2014-10-22 西安电子科技大学 High-speed data synchronous circuit used for high-speed digital-to-analog converter
US20190268010A1 (en) * 2018-02-23 2019-08-29 Qualcomm Incorporated Clock screening with programmable counter-based clock interface and time-to-digital converter with high resolution and wide range operation
CN210469474U (en) * 2019-09-11 2020-05-05 吉林省广播电视研究所(吉林省广播电视局科技信息中心) Proportional phase-locked synchronous circuit
CN114967409A (en) * 2022-03-28 2022-08-30 中山大学 High-precision time-to-digital converter resisting PVT change and implementation method thereof

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001069328A2 (en) * 2000-03-17 2001-09-20 Vector 12 Corporation High resolution time-to-digital converter
CN202121568U (en) * 2011-07-11 2012-01-18 山东欧龙电子科技有限公司 Time-digital converter
CN102684686A (en) * 2012-05-09 2012-09-19 上海宏力半导体制造有限公司 Phase-locked loop with reduced in-band phase noise and corresponding working method thereof
CN104113342A (en) * 2013-11-28 2014-10-22 西安电子科技大学 High-speed data synchronous circuit used for high-speed digital-to-analog converter
US20190268010A1 (en) * 2018-02-23 2019-08-29 Qualcomm Incorporated Clock screening with programmable counter-based clock interface and time-to-digital converter with high resolution and wide range operation
CN111869106A (en) * 2018-02-23 2020-10-30 高通股份有限公司 Clock filtering via programmable counter-based clock interface and time-to-digital converter with high resolution and wide operating range
CN210469474U (en) * 2019-09-11 2020-05-05 吉林省广播电视研究所(吉林省广播电视局科技信息中心) Proportional phase-locked synchronous circuit
CN114967409A (en) * 2022-03-28 2022-08-30 中山大学 High-precision time-to-digital converter resisting PVT change and implementation method thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118971847A (en) * 2024-10-16 2024-11-15 杭州宇称电子技术有限公司 Multi-threshold comparison TDC integrated circuit, control method and laser radar thereof

Also Published As

Publication number Publication date
CN118759498B (en) 2025-07-08

Similar Documents

Publication Publication Date Title
CN107643674B (en) Vernier type TDC circuit based on FPGA carry chain
CN106019923B (en) A kind of time-digital converter based on FPGA
CN106814595B (en) High-precision TDC based on equivalent subdivision and equivalent measurement method thereof
CN102346236B (en) Time parameter measurement system
Sui et al. A 2.3-ps RMS resolution time-to-digital converter implemented in a low-cost cyclone V FPGA
CN110442012A (en) A kind of precision time interval measurement method and system based on FPGA
CN108061848B (en) method and system for measuring additive carry chain delay based on FPGA
WO2016127357A1 (en) Fpga-based time-to-digital converter
CN118759498A (en) A fast TDC measurement system and method based on differential carry chain
CN110703583A (en) Multi-channel high-precision wide-range time-to-digital converter based on SOC (system on chip)
CN106970519A (en) Time test circuit and time method of testing
CN107819456A (en) A kind of high-precision time-delay generator based on FPGA carry chains
CN110515292B (en) TDC circuit and measurement method based on bidirectional running ring carry chain
CN116736679A (en) A fast-locking, wide-adjustable range high-precision digital time converter
CN113092858A (en) High-precision frequency scale comparison system and comparison method based on time-frequency information measurement
Deng et al. A 4.32-ps precision Time-to-Digital Convertor using multisampling wave union method on a 28-nm FPGA
CN114637182B (en) TDC fine time measurement system and method based on FPGA carry chain
CN113098482A (en) Delay difference measuring method of vernier type annular time-to-digital converter
CN102914699B (en) Modulation domain measurement system and method thereof
Jiao et al. A vernier caliper time-to-digital converters with ultralow nonlinearity in fpgas
Kwiatkowski et al. Time-to-digital converter with pseudo-segmented delay line
CN117008445A (en) Time-to-digital converter and T2B decoder applied to time-of-flight sensor
CN113206668B (en) Two-stage interpolation time digital converter circuit
CN114326358A (en) A multi-chain parallel segmentation high-precision FPGA time-to-digital conversion method
KR102677429B1 (en) Digital converting apparatus of sensor signal and converting method therefor

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
GR01 Patent grant