CN108389225A - 一种基于fpga的tdc实现方法 - Google Patents

一种基于fpga的tdc实现方法 Download PDF

Info

Publication number
CN108389225A
CN108389225A CN201810022975.2A CN201810022975A CN108389225A CN 108389225 A CN108389225 A CN 108389225A CN 201810022975 A CN201810022975 A CN 201810022975A CN 108389225 A CN108389225 A CN 108389225A
Authority
CN
China
Prior art keywords
fpga
clock
delay chain
time delay
time
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
Application number
CN201810022975.2A
Other languages
English (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.)
Beijing Institute of Technology BIT
Original Assignee
Beijing Institute of Technology BIT
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 Beijing Institute of Technology BIT filed Critical Beijing Institute of Technology BIT
Priority to CN201810022975.2A priority Critical patent/CN108389225A/zh
Publication of CN108389225A publication Critical patent/CN108389225A/zh
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/50Depth or shape recovery
    • G06T7/521Depth or shape recovery from laser ranging, e.g. using interferometry; from the projection of structured light
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K5/00Manipulating of pulses not covered by one of the other main groups of this subclass
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K5/00Manipulating of pulses not covered by one of the other main groups of this subclass
    • H03K5/22Circuits having more than one input and one output for comparing pulses or pulse trains with each other according to input signal characteristics, e.g. slope, integral
    • H03K5/26Circuits having more than one input and one output for comparing pulses or pulse trains with each other according to input signal characteristics, e.g. slope, integral the characteristic being duration, interval, position, frequency, or sequence
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K5/00Manipulating of pulses not covered by one of the other main groups of this subclass
    • H03K2005/00013Delay, i.e. output pulse is delayed after input pulse and pulse length of output pulse is dependent on pulse length of input pulse
    • H03K2005/00078Fixed delay

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Nonlinear Science (AREA)
  • General Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Theoretical Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Optical Radar Systems And Details Thereof (AREA)

Abstract

本发明提出一种基于FPGA的时间数字转换(TDC)方法,通过使用FPGA的数字时钟管理工具(DCM)对时钟进行相移,产生2个或4个相位相差180°或90°的时钟,产生的时钟分布在FPGA上的不同时钟区域,并配置相同的延时链程序。通过反相器组,使输入待测信号到达每组延时链的时间相差不超过1ns。本发明产生的实际效果是对时钟进行了倍频,使得延时链的长度可以减少到原来的一半或1/4,从而保证延时链上的延时特性一致,解决由于延时链过长造成的微分非线性(DNL)问题。

Description

一种基于FPGA的TDC实现方法
技术领域
本发明涉及一种基于FPGA的时间数字转换(TDC)方法,属于激光成像技术领域。
背景技术
获得激光发射到返回的时间差的方法称为飞行时间法(Time of Flight),影响飞行时间测距精度的诸多物理量中,最为关键的参量是光的飞行时间。目前,进行飞行时间测量的方法主要有两大类,一类是在专用集成芯片(ASIC)实现时间-数字转换(TDC)功能,另一类是使用可编程逻辑门阵列(FPGA)上现有资源实现TDC功能。
虽然TDC芯片功能完善、使用方便,但单片通道数不足,在大面阵使用时需要大量芯片,并不具使用优势。目前,在大面阵成像系统,使用FPGA部署是较为快速,性价比较高的实现方案。同时FPGA可作为系统控制和数据采集处理器,无需额外增加处理器,节省开发时间和硬件成本。
现有的以FPGA实现TDC的方法有三种:基于多相位时钟采样的方法、基于专用逻辑资源的方法和基于FPGA内部延迟链的方法。前两种方法受时钟频率的影响,目前最高实现250ps的测量精度。第三种方法理论上能够实现非常低的测量精度,即一个延迟单元的延时时间,Xilinx Kinect-7系列一个延迟单元延时70ps。但当延时链过长时,跨越FPGA内部逻辑分区,造成部分延迟单元之间的连接线延迟时间不同,而产生微分非线性(DNL)。如果能有效解决DNL问题,那么延迟链方法是测量精度最高的一种方法。
延时链长度受到时钟频率大小的影响。FPGA运行时钟频率有上限限制,如Kintex-7系列最高运行450MHz,但为保证时序收敛一般采用100-400MHz。假如采用FPGA时钟200MHz,那么理论上最少需要72个延时单元,才能细分时钟周期,但FPGA每个BANK列的延时单元为49-50个,跨越了分区,可能造成部分区域延时改变,产生DNL影响。
发明内容
本发明设计了一种基于FPGA的TDC实现方法,以解决由于延时链过长产生的DNL情况。
本发明是通过以下技术方案实现的,描述如下。
延时链将时钟周期T细分为n份,延时链每个抽头输出至D触发器,时钟上升沿时采集抽头数据。当START信号到来时,CLK时钟0上升沿采集时,信号未进入延时链,时钟1上升沿采集时,信号在延时链中已传播一段距离,抽头输出m1个比特1,与粗计时时间戳一起保存为TDC数据。之后,STOP信号到来时,CLK时钟2未采集到数据,CLK时钟3时,抽头输出m2个比特1。
通过将每个脉冲周期内TDC数据进行处理,可得到每个像素点的深度信息,公式为:
L=k*T+(m1-m2)*tdelay+C
C为电路延时的固定误差,可通过标定实验确定C值。另外,减运算可将信号路径上的部分误差消除掉,提高了测量精度。
通过使用FPGA的数字时钟管理工具(DCM)对时钟进行相移,产生多个时钟,产生的时钟分布在FPGA上的不同时钟区域,并配置相同的延时链程序。通过反相器组,使输入待测信号到达每组延时链的时间相差不超过1ns。假如仅使用0°和180°相移时钟,在CLK时钟0和1间,CLK180时钟5还会采样一次,实际效果是对时钟频率进行了倍频,实际使用的延时链长度可缩小一半,即36个。DCM可实现90°、180°、270°相移条件。如采用4条时钟链路,那么相当于对时钟进行了4倍频,延时链长度可以缩小到18个。每个时钟域单独配置布局区域,同时根据不同时钟域信号延时情况,在信号接入端增加数量不等的反向器,以使得待测信号到达各时钟域时间基本相同。由此解决由于延时链过长导致的DNL问题。
本发明的有益效果是:
解决了在激光三维成像系统使用基于FPGA延时链方法的飞行时间计时时,由于延时链过长造成的微分非线性问题。非常适合于快速、低成本的开发基于飞行时间法的三维激光成像系统。
附图说明
图1 TDC算法时序图
图2 TDC算法原理框图
具体实施方式
依据本发明的技术方案,本领域的一般技术人员可以想象出本发明的基于FPGA的三维激光成像系统的诸多实施方式。因此,以下具体实施方式和附图仅是本发明的技术方案的示例性说明,而不应当视为本发明的全部或者视为对本发明技术方案的限制或限定。
本发明的具体实施例如下:
使用FPGA的时钟管理工具(DCM)产生两个相差180°的400MHz时钟,CLK和CLK180,分布在两个时钟区域上。在这两个时钟区域上,部署相同的延时链程序。信号输入端增加反相器组,调整输入信号到达两个模块的延时时间,使其相差不超过1ns。采用本发明的方法,每个时钟域的延时链的数量可以减少一倍,即每个延时链需要20个延时单元。FPGA每个BANK列的延时单元为49-50个,有充足的布局布线空间,以实现上述设计。
延时链采用FPGA的CARRY4进位单元,每个进位单元的CIN连接到下一个单元的COUT,组成延时链。每个延时单元的COUT作为抽头输出到触发器,使用本地时钟域的时钟进行数据采样。为避免出现亚稳态现象,抽头后端连接两级触发器,再连接FIFO等数据存储或通信总线模块,来获得TDC数据。

Claims (2)

1.一种基于FPGA的TDC实现方法,其特征在于:通过使用FPGA的数字时钟管理工具(DCM)对时钟进行相移,产生2个或4个相位相差180°或90°的时钟;产生的时钟分布在FPGA上的不同时钟区域,并配置相同的延时链程序;通过反相器组,使输入待测信号到达每组延时链的时间相差不超过1ns;产生的实际效果是对时钟进行了倍频,使得延时链的长度可以减少到原来的一半或1/4,从而保证延时链上的延时特性一致,解决DNL问题。
2.根据权利要求1所述的一种基于FPGA的TDC实现方法,其中:
所述延时链采用FPGA的CARRY4进位单元,每个CARRY4的COUT连接到下一个CARRY4的CIN,这样级联起来,形成延时链;每个COUT做为抽头输出到触发器,通过本地时钟进行数据采样。
CN201810022975.2A 2018-01-10 2018-01-10 一种基于fpga的tdc实现方法 Pending CN108389225A (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810022975.2A CN108389225A (zh) 2018-01-10 2018-01-10 一种基于fpga的tdc实现方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810022975.2A CN108389225A (zh) 2018-01-10 2018-01-10 一种基于fpga的tdc实现方法

Publications (1)

Publication Number Publication Date
CN108389225A true CN108389225A (zh) 2018-08-10

Family

ID=63076061

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810022975.2A Pending CN108389225A (zh) 2018-01-10 2018-01-10 一种基于fpga的tdc实现方法

Country Status (1)

Country Link
CN (1) CN108389225A (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112117995A (zh) * 2020-09-30 2020-12-22 成都华微电子科技有限公司 Fpga片内时钟占空比测试方法和时钟自测fpga
US11048289B1 (en) 2020-01-10 2021-06-29 Rockwell Collins, Inc. Monitoring delay across clock domains using constant phase shift
US11157036B2 (en) 2020-01-10 2021-10-26 Rockwell Collins, Inc. Monitoring delay across clock domains using dynamic phase shift

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102832943A (zh) * 2011-06-15 2012-12-19 联发科技(新加坡)私人有限公司 时间数字转换器
CN102957422A (zh) * 2011-08-30 2013-03-06 中国科学院电子学研究所 一种数字延时锁定环电路
US20130321053A1 (en) * 2012-05-30 2013-12-05 Infineon Technologies Austria Ag Method and device for sampling an input signal
CN104505116A (zh) * 2014-12-11 2015-04-08 深圳市国微电子有限公司 一种用于高速动态存储器的相位调制电路及相位调制方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102832943A (zh) * 2011-06-15 2012-12-19 联发科技(新加坡)私人有限公司 时间数字转换器
CN102957422A (zh) * 2011-08-30 2013-03-06 中国科学院电子学研究所 一种数字延时锁定环电路
US20130321053A1 (en) * 2012-05-30 2013-12-05 Infineon Technologies Austria Ag Method and device for sampling an input signal
CN104505116A (zh) * 2014-12-11 2015-04-08 深圳市国微电子有限公司 一种用于高速动态存储器的相位调制电路及相位调制方法

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王巍 等: "一种基于FPGA的时钟相移时间数字转换器", 《微电子学》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11048289B1 (en) 2020-01-10 2021-06-29 Rockwell Collins, Inc. Monitoring delay across clock domains using constant phase shift
US11157036B2 (en) 2020-01-10 2021-10-26 Rockwell Collins, Inc. Monitoring delay across clock domains using dynamic phase shift
CN112117995A (zh) * 2020-09-30 2020-12-22 成都华微电子科技有限公司 Fpga片内时钟占空比测试方法和时钟自测fpga

Similar Documents

Publication Publication Date Title
Wu Several key issues on implementing delay line based TDCs using FPGAs
CN106533401B (zh) 一种基于fpga的同步分段延时链的dpwm模块
US9054681B2 (en) High speed duty cycle correction and double to single ended conversion circuit for PLL
CN108155894B (zh) 一种基于fpga的同步混合延时型dpwm模块
CN108389225A (zh) 一种基于fpga的tdc实现方法
CN103186097B (zh) 基于fpga的高分辨率时间间隔测量装置
CN108599743A (zh) 一种基于相位补偿的精密数字延时同步方法
CN108061848B (zh) 基于fpga的加法进位链延时的测量方法及系统
CN103208994A (zh) 一种两段式时间数字转换电路
Wang et al. A 256-channel multi-phase clock sampling-based time-to-digital converter implemented in a Kintex-7 FPGA
KR20080086420A (ko) 아날로그-디지털 변환기 시스템
WO2017124219A1 (zh) 一种基于fpga的方波发生器及方法
CN106209038A (zh) 基于iodelay固件的数字脉冲宽度调制器
CN105718404A (zh) 一种基于fpga的方波发生器及方法
Aloisio et al. FPGA implementation of a high-resolution time-to-digital converter
CN104579320A (zh) 时钟延迟方法、装置、延迟锁相环及数字时钟管理单元
CN106230408A (zh) 基于数字延时的数字脉冲宽度调制器
Dadouche et al. New design-methodology of high-performance TDC on a low cost FPGA targets
CN103543440A (zh) 基于fpga可编程延时电路的数字波束形成装置与方法
CN113114226B (zh) 一种基于fpga的混合架构时间数字转换方法
CN102104384B (zh) 差分延时链单元及包括其的时间数字转换器
Zhou et al. A High-Precision Folding Time-to-Digital Converter Implemented in Kintex-7 FPGA
Aloisio et al. High-precision time-to-digital converters in a fpga device
Deng et al. A 4.32-ps precision Time-to-Digital Convertor using multisampling wave union method on a 28-nm FPGA
CN103368543A (zh) 基于数字移相提高延时精度的方法

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180810

WD01 Invention patent application deemed withdrawn after publication