Nothing Special   »   [go: up one dir, main page]

CN108736885B - Phase-locked loop clock edge triggered clock phase-splitting method - Google Patents

Phase-locked loop clock edge triggered clock phase-splitting method Download PDF

Info

Publication number
CN108736885B
CN108736885B CN201810523585.3A CN201810523585A CN108736885B CN 108736885 B CN108736885 B CN 108736885B CN 201810523585 A CN201810523585 A CN 201810523585A CN 108736885 B CN108736885 B CN 108736885B
Authority
CN
China
Prior art keywords
clock
phase
signal
event
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.)
Active
Application number
CN201810523585.3A
Other languages
Chinese (zh)
Other versions
CN108736885A (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.)
Harbin Institute of Technology Shenzhen
Original Assignee
Harbin Institute of Technology Shenzhen
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 Harbin Institute of Technology Shenzhen filed Critical Harbin Institute of Technology Shenzhen
Priority to CN201810523585.3A priority Critical patent/CN108736885B/en
Publication of CN108736885A publication Critical patent/CN108736885A/en
Application granted granted Critical
Publication of CN108736885B publication Critical patent/CN108736885B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03LAUTOMATIC CONTROL, STARTING, SYNCHRONISATION OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
    • H03L7/00Automatic control of frequency or phase; Synchronisation
    • H03L7/06Automatic control of frequency or phase; Synchronisation using a reference signal applied to a frequency- or phase-locked loop
    • H03L7/08Details of the phase-locked loop
    • H03L7/081Details of the phase-locked loop provided with an additional controlled phase shifter
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03LAUTOMATIC CONTROL, STARTING, SYNCHRONISATION OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
    • H03L7/00Automatic control of frequency or phase; Synchronisation
    • H03L7/06Automatic control of frequency or phase; Synchronisation using a reference signal applied to a frequency- or phase-locked loop
    • H03L7/16Indirect frequency synthesis, i.e. generating a desired one of a number of predetermined frequencies using a frequency- or phase-locked loop
    • H03L7/18Indirect frequency synthesis, i.e. generating a desired one of a number of predetermined frequencies using a frequency- or phase-locked loop using a frequency divider or counter in the loop

Landscapes

  • Measurement Of Unknown Time Intervals (AREA)

Abstract

The invention discloses a phase-locked loop clock edge triggered clock phase-splitting method, belongs to the field of time interval measurement, and aims to solve the problems of low resolution, high system running frequency and low performance of the conventional clock phase-splitting method. The specific process of the invention is as follows: inputting a clock signal of 100MHz to an input end of a phase-locked loop; frequency multiplication is carried out on the clock signal to 315MHz, and eight phase shifts are carried out on the high-level section; taking the edge of the clock signal after the frequency multiplication and phase shift of the phase-locked loop as a trigger signal; carrying out clock synchronization processing on the detected signal; respectively carrying out time sequence constraint on each transmission path of the clock signal and the signal to be tested; extracting the position where the level of the detected signal jumps at the trigger moment; outputting a high level when the rising edge detection function of the detected signal or the falling edge detection function of the detected signal has a rising edge, otherwise outputting a low level; and obtaining the relative position of the rising edge or the falling edge of the measured signal in one clock period. The invention is used for time interval measurement.

Description

锁相环时钟边沿触发的时钟分相法Phase-locked loop clock edge-triggered clock phase splitting method

技术领域technical field

本发明涉及一种时间间隔测量方法,属于时间间隔测量领域。The invention relates to a time interval measurement method, which belongs to the field of time interval measurement.

背景技术Background technique

时间是物理学的基本单位之一。我们通常所说的时间有两种含义:一种含义指的是时刻,而另一种含义指的是时间间隔。时刻是指连续流逝的时间的某一瞬间,它指的是某一事件是什么时候发生的;而时间间隔是指两个瞬间之间的间隔多久,它指的是某一事件的持续时间。Time is one of the basic units of physics. What we usually mean by time has two meanings: one meaning refers to the moment, and the other refers to the time interval. Moment refers to a certain instant of time that continuously passes, which refers to when an event occurs; while time interval refers to how long the interval between two instants is, it refers to the duration of an event.

精密的时间作为科学研究、科学实验和工程技术诸方面的基本物理参量,为一切动力学系统和时序过程的测量和定量研究提供了必不可少的时基坐标。精密的时间不仅在原子核物理研究、粒子物理研究、地球动力学研究、相对论研究、脉冲星周期研究和人造卫星动力学测地等基础研究领域有重要的作用,而且在诸如航空航天、深空通讯、卫星发射及监控、地质测绘、导航通信、电力传输和科学计量等应用研究、国防和国民经济建设中也有普遍的应用,甚至已经深入到人们社会生活的方方面面,几乎无所不及。As a basic physical parameter in scientific research, scientific experiments and engineering technology, precise time provides an indispensable time-base coordinate for the measurement and quantitative research of all dynamic systems and time series processes. Precise time not only plays an important role in basic research fields such as nuclear physics research, particle physics research, geodynamics research, relativity research, pulsar cycle research and artificial satellite dynamics geodesy, but also plays an important role in such fields as aerospace, deep space communication. , satellite launch and monitoring, geological surveying and mapping, navigation communication, power transmission and scientific measurement and other applied research, national defense and national economic construction are also widely used, and have even penetrated into all aspects of people's social life, almost everything.

随着人们生活水平的日益提高,高分辨率的时间间隔测量技术越来越多的被应用于各种民用领域。对时间间隔测量方法的研究将会大大促进我国的科技、民用领域关键技术的发展。而传统的时间间隔测量是依靠模拟测量,但随着科技的发展和高精度的需求和模拟测量方法的各种限制,这种测量方法已经远远不能满足时间间隔测量的需要,所以如何利用数字测量时间间隔变得越发重要,现在数字测量主要以FPGA和ASIC为主,但是ASIC因其设计周期长、改版投资大、灵活性差等缺陷制约着它的应用范围。而FPGA却因为运行速度快、可编程、开发周期短、灵活性强等优势成为了人们实现数字逻辑的主要平台,因而研究基于FPGA的高速精密时间间隔测量技术具有重要的现实意义。With the increasing improvement of people's living standards, high-resolution time interval measurement technology is increasingly used in various civil fields. The research on the time interval measurement method will greatly promote the development of key technologies in the fields of science and technology and civil use in our country. The traditional time interval measurement relies on analog measurement, but with the development of science and technology and the requirements of high precision and various limitations of analog measurement methods, this measurement method is far from meeting the needs of time interval measurement, so how to use digital The measurement time interval has become more and more important. Now digital measurement is mainly based on FPGA and ASIC. However, ASIC is limited in its application scope due to its long design cycle, large revision investment, and poor flexibility. However, FPGA has become the main platform for people to realize digital logic because of its advantages of fast running speed, programmability, short development cycle and strong flexibility. Therefore, it is of great practical significance to study the high-speed and precise time interval measurement technology based on FPGA.

时间数字转换电路是时间测量的基本手段,它将携带时间信息的模拟信号转换为数字信号数字化,从而实现时间信息的测量。另一方面,绝对的时间信息常常是没有太多的意义,而是相对的时间信息才有意义,所以很多场合都是时间间隔信息的测量。Time-to-digital conversion circuit is the basic means of time measurement. It converts the analog signal carrying time information into digital signal and digitizes it, so as to realize the measurement of time information. On the other hand, absolute time information often does not have much meaning, but relative time information is meaningful, so many occasions are the measurement of time interval information.

在很多应用中,一些物理量的测量都可以转换为时间量的测量,如流量、厚度、密度、温度、频率和相移等物理量。In many applications, measurements of some physical quantities, such as flow, thickness, density, temperature, frequency, and phase shift, can be converted into measurements of time.

例如脉冲式激光测距,其原理与雷达测距相似,一般先由激光二极管对准目标发射激光脉冲,经目标反射后激光向各方向散射,部分散射光返回到传感接收器,被光学系统接收后成像到雪崩光电二极管上。雪崩光电二极管是一种内部具有放大功能的光学传感器,因此它能检测极其微弱的光信号。记录并处理从光脉冲发出到返回被接收所经历的往返时间,用光速(30万千米/秒)乘以往返时间的二分之一,就是所要测量的距离。如果光以速度c在空气中传播,在A、B两点间往返一次所需时间为t,则A、B两点间距离D可用下式表示:For example, pulsed laser ranging, its principle is similar to radar ranging. Generally, a laser diode is aimed at the target to emit laser pulses. After being reflected by the target, the laser scatters in all directions, and part of the scattered light returns to the sensor receiver and is captured by the optical system. Imaging onto an avalanche photodiode after reception. An avalanche photodiode is an optical sensor with an internal amplification function, so it can detect extremely weak light signals. Record and process the round-trip time from the time the light pulse is sent to when it is received back. Multiply the speed of light (300,000 km/s) by one-half of the round-trip time, which is the distance to be measured. If light travels in the air at a speed c, and the time required for a round trip between points A and B is t, then the distance D between points A and B can be expressed by the following formula:

D=ct/2 (1)D=ct/2 (1)

现在广泛使用的手持式和便携式测距仪,作用距离为数百米至数十千米,测量精度为五米左右。我国研制的对卫星测距的高精度测距仪,测量精度可达到几厘米。因为光速太快,传输时间激光传感器必须极其精确地测定传输时间,要想使分辨率达到,则传输时间测距传感器的电子电路必须能分辨出以下的极短时间间隔。The widely used handheld and portable rangefinders have a range of hundreds of meters to tens of kilometers and a measurement accuracy of about five meters. The high-precision range finder developed in my country for satellite ranging can reach a measurement accuracy of several centimeters. Because the speed of light is so fast, the transit time laser sensor must determine the transit time extremely accurately. To achieve this resolution, the electronics of the transit time ranging sensor must be able to distinguish the following extremely short time intervals.

又或者是在一些应用中需要控制金属片和管道墙等的厚度,这时就需要测量厚度。利用超声波在待测物表面和背面反射回来的超声波,以及超声波在相应介质中的速度,就可以计算出相应的厚度信息,这里最关键的是反射回来的超声波之间的时间间隔测量。因而研究高速精密时间间隔测量技术具有非常重要的现实意义。Or in some applications, it is necessary to control the thickness of metal sheets and pipe walls, etc., at this time, it is necessary to measure the thickness. The corresponding thickness information can be calculated by using the ultrasonic waves reflected by the ultrasonic waves on the surface and back of the object to be tested, and the speed of the ultrasonic waves in the corresponding medium. The most important thing here is the measurement of the time interval between the reflected ultrasonic waves. Therefore, it is of great practical significance to study the high-speed and precise time interval measurement technology.

在时间测量技术发展的早期,半导体集成电路等电子学技术比较落后,这个时期,模拟测量是时间间隔测量的主流方法。比如时间放大法、时间电压转换法等,这些方法是在所需要测量的时间间隔内,将电流积分,把不可直接测量的时间量转换成可测量的电压量或者电荷量,再经过A/D转换电路转换成数字量。In the early stage of the development of time measurement technology, electronic technologies such as semiconductor integrated circuits were relatively backward. In this period, analog measurement was the mainstream method of time interval measurement. Such as time amplification method, time-voltage conversion method, etc. These methods integrate the current in the time interval to be measured, convert the time amount that cannot be directly measured into a measurable amount of voltage or charge, and then go through A/D The conversion circuit converts into a digital quantity.

时间测量需求不断地提高推动了时间测量技术的发展。而这时候模拟测量的缺点也日趋暴露出来,如对温度十分敏感、容易受外界扰动干扰、设计复杂、需要比较长的转换时间等。尤其是在高能物理实验中,采用模拟电路测量系统,很难满足要求,但是数字化技术因其灵活性、稳定性、高速度、并行处理、低成本等优势逐渐成为探测器电子学系统的发展方向。于是,数字测量技术开始受到研究者们的青睐和欢迎。The ever-increasing demand for time measurement drives the development of time measurement technology. At this time, the shortcomings of analog measurement are increasingly exposed, such as being very sensitive to temperature, easily disturbed by external disturbances, complicated in design, and requiring a relatively long conversion time. Especially in high-energy physics experiments, it is difficult to use analog circuit measurement systems to meet the requirements, but digital technology has gradually become the development direction of detector electronics systems due to its flexibility, stability, high speed, parallel processing, and low cost. . As a result, digital measurement technology began to be favored and welcomed by researchers.

随着微电子技术与工艺的发展,数字集成电路从电子管、晶体管、中小规模集成电路、超大规模集成电路逐步发展到今天的专用集成电路。时间数字转换技术的实现手段也完成了从分离器件到FPGA和ASIC的转变。无疑,ASIC(专用集成电路)的出现降低了产品的生产成本,提高了系统的可靠性,缩小了设计的物理尺寸,推动了社会的数字化进程。但是ASIC因其缺陷而导致的适用范围的局限性,以及FPGA自身强大的优势,使得FPGA成为时间数字转化的主要应用平台。With the development of microelectronics technology and technology, digital integrated circuits have gradually developed from electronic tubes, transistors, small and medium-scale integrated circuits, and very large-scale integrated circuits to today's application-specific integrated circuits. The implementation of time-to-digital conversion technology has also completed the transition from separate devices to FPGAs and ASICs. Undoubtedly, the emergence of ASIC (Application-Specific Integrated Circuit) reduces the production cost of products, improves the reliability of the system, reduces the physical size of the design, and promotes the digitalization process of society. However, the limitation of the scope of application of ASIC due to its defects, as well as the strong advantages of FPGA, make FPGA the main application platform for time-to-digital transformation.

在众多的时间数字测量技术中,基于FPGA的时间数字转换技术特性主要体现在FPGA特殊的硬件结构和较小的逻辑门延迟上。例如,时间延迟线方法、延迟锁定环(DLL)技术等,都是利用器件本身的延迟来测量时间间隔。它的基本思想是在器件内寻找一种基本延时单元,将此单元通过某种方式级联起来形成延迟链结构,并让待测时间通过延迟链,实现时间上的内插。最终通过基本延时单元的数量来表示这段时间间隔,从而实现从时间到数字的转换。Among many time-to-digital measurement technologies, the characteristics of time-to-digital conversion technology based on FPGA are mainly reflected in the special hardware structure of FPGA and the small delay of logic gates. For example, the time delay line method, delay locked loop (DLL) technology, etc., all use the delay of the device itself to measure the time interval. Its basic idea is to find a basic delay unit in the device, cascade the units in a certain way to form a delay chain structure, and let the time to be measured pass through the delay chain to achieve time interpolation. Finally, this time interval is represented by the number of basic delay units, thereby realizing the conversion from time to number.

发明内容SUMMARY OF THE INVENTION

本发明目的是为了解决现有时钟分相法分辨率较低、系统运行频率高、性能较低的问题,提供了一种锁相环时钟边沿触发的时钟分相法。The purpose of the present invention is to solve the problems of low resolution, high system operating frequency and low performance of the existing clock phase splitting method, and provide a clock phase splitting method triggered by the edge of the phase-locked loop clock.

本发明所述锁相环时钟边沿触发的时钟分相法,具体过程为:The clock phase splitting method of the phase-locked loop clock edge-triggered according to the present invention, the specific process is as follows:

步骤1、将时钟信号100MHz输入到锁相环的输入端;Step 1. Input the clock signal 100MHz to the input end of the phase-locked loop;

步骤2、将时钟信号100MHz倍频到315MHz,将输入时钟的高电平段进行八次移相,移相角度CLK[0]~CLK[7]分别设定为0°、22.5°、45°、66.5°、90°、112.5°、135°、157.5°;Step 2. Multiply the clock signal from 100MHz to 315MHz, perform eight phase shifts on the high-level segment of the input clock, and set the phase shift angles CLK[0] to CLK[7] to 0°, 22.5°, and 45° respectively. , 66.5°, 90°, 112.5°, 135°, 157.5°;

步骤3、将锁相环倍频移相后的八路时钟信号的边沿作为十六个触发信号;Step 3. Use the edges of the eight-channel clock signals after the phase-locked loop frequency multiplication and phase-shift as sixteen trigger signals;

步骤4、将被测信号进行时钟同步处理;Step 4. Perform clock synchronization processing on the signal under test;

步骤5、对时钟信号和被测信号的每条传输路径分别进行时序约束;Step 5. Perform timing constraints on each transmission path of the clock signal and the signal under test respectively;

步骤6、判断在十六个触发时刻的被测信号电平Count[0]~Count[15]是0还是1,将Count[0]~Count[15]中出现0→1跳变和1→0跳变的位置提取出来;Step 6. Determine whether the measured signal levels Count[0]~Count[15] are 0 or 1 at the sixteen trigger moments, and 0→1 transition and 1→1 appear in Count[0]~Count[15] The position of 0 jump is extracted;

步骤7、用event_up_reg[n]或event_down_reg[n]记录被测信号上升沿检测函数event_up[n]或被测信号下降沿检测函数event_down[n]的上升沿/下降沿,当被测信号上升沿检测函数event_up[n]或被测信号下降沿检测函数event_down[n]出现上升沿时event_up_reg[n]或event_down_reg[n]输出高电平,否则event_up_reg[n]或event_down_reg[n]输出低电平;Step 7. Use event_up_reg[n] or event_down_reg[n] to record the rising edge/falling edge of the rising edge detection function event_up[n] of the measured signal or the falling edge detection function event_down[n] of the measured signal, when the rising edge of the measured signal When the detection function event_up[n] or the falling edge detection function event_down[n] of the signal under test has a rising edge, event_up_reg[n] or event_down_reg[n] outputs a high level, otherwise event_up_reg[n] or event_down_reg[n] outputs a low level ;

步骤8、获得被测信号上升沿或下降沿在一个时钟周期315MHz内的相对位置,完成时钟分相。Step 8: Obtain the relative position of the rising edge or the falling edge of the signal under test within a clock cycle of 315MHz, and complete the clock phase splitting.

本发明的优点:本发明提出的锁相环时钟边沿触发的时钟分相法,能够完成高性能、高分辨率的时间间隔测量,与现有技术相比,提高了测时分辨率,降低了系统的运行频率。首先利用简单的二进制计数器完成时间间隔的“粗”测部分,“细”测部分采用时钟分相法,仅将时钟的高电平部分(半个时钟周期)进行八次移相,将原来的分辨率提高16倍,分辨率可以高于165ps,采用本发明的等效测量频率为6080MHz(输入时钟100MHz,倍频后频率为315MHz),分辨率可以高于165ps,而传统的时钟分相法是将整个时钟周期进行平均移相,本发明提出的方法可以在PLL抽头有限的前提下,提高测时分辨率,降低系统运行频率,达到更高性能的测量效果。Advantages of the present invention: The clock phase splitting method of the phase-locked loop clock edge-triggered by the present invention can complete high-performance, high-resolution time interval measurement. Compared with the prior art, the time-measurement resolution is improved, and the The operating frequency of the system. First, use a simple binary counter to complete the "coarse" measurement part of the time interval, and the "fine" measurement part adopts the clock phase splitting method, only the high-level part of the clock (half a clock cycle) is phase-shifted eight times, and the original The resolution is increased by 16 times, and the resolution can be higher than 165ps. The equivalent measurement frequency of the present invention is 6080MHz (the input clock is 100MHz, and the frequency after frequency multiplication is 315MHz), and the resolution can be higher than 165ps. The traditional clock phase splitting method The whole clock cycle is averagely phase-shifted. The method proposed by the invention can improve the time measurement resolution, reduce the system operating frequency and achieve higher performance measurement effect under the premise of limited PLL taps.

附图说明Description of drawings

图1是脉冲计数法原理图;Figure 1 is a schematic diagram of the pulse counting method;

图2是内插测时法原理图;Fig. 2 is the principle diagram of interpolation timing method;

图3是数据采集部分总体结构图;Fig. 3 is the overall structure diagram of the data acquisition part;

图4是锁相环倍频移相示意图;Fig. 4 is the schematic diagram of phase-locked loop frequency multiplication and phase-shifting;

图5是时钟边沿作为触发信号的数据传输路径示意图;5 is a schematic diagram of a data transmission path with a clock edge as a trigger signal;

图6是时钟移相内插整体输出示意图;6 is a schematic diagram of the overall output of clock phase-shift interpolation;

图7是“细”测部分的实测输出波形图。Figure 7 is the measured output waveform diagram of the "fine" measurement part.

具体实施方式Detailed ways

具体实施方式一:本实施方式所述锁相环时钟边沿触发的时钟分相法,具体过程为:Embodiment 1: The clock phase division method of the phase-locked loop clock edge-triggered in this embodiment, the specific process is as follows:

步骤1、将时钟信号100MHz输入到锁相环的输入端;Step 1. Input the clock signal 100MHz to the input end of the phase-locked loop;

步骤2、将时钟信号100MHz倍频到315MHz,将输入时钟的高电平段进行八次移相,移相角度CLK[0]~CLK[7]分别设定为0°、22.5°、45°、66.5°、90°、112.5°、135°、157.5°;Step 2. Multiply the clock signal from 100MHz to 315MHz, perform eight phase shifts on the high-level segment of the input clock, and set the phase shift angles CLK[0] to CLK[7] to 0°, 22.5°, and 45° respectively. , 66.5°, 90°, 112.5°, 135°, 157.5°;

步骤3、将锁相环倍频移相后的八路时钟信号的边沿作为十六个触发信号;Step 3. Use the edges of the eight-channel clock signals after the phase-locked loop frequency multiplication and phase-shift as sixteen trigger signals;

步骤4、将被测信号进行时钟同步处理;Step 4. Perform clock synchronization processing on the signal under test;

步骤5、对时钟信号和被测信号的每条传输路径分别进行时序约束;Step 5. Perform timing constraints on each transmission path of the clock signal and the signal under test respectively;

步骤6、判断在十六个触发时刻的被测信号电平Count[0]~Count[15]是0还是1,将Count[0]~Count[15]中出现0→1跳变和1→0跳变的位置提取出来;Step 6. Determine whether the measured signal levels Count[0]~Count[15] are 0 or 1 at the sixteen trigger moments, and 0→1 transition and 1→1 appear in Count[0]~Count[15] The position of 0 jump is extracted;

步骤7、用event_up_reg[n]或event_down_reg[n]记录被测信号上升沿检测函数event_up[n]或被测信号下降沿检测函数event_down[n]的上升沿/下降沿,当被测信号上升沿检测函数event_up[n]或被测信号下降沿检测函数event_down[n]出现上升沿时event_up_reg[n]或event_down_reg[n]输出高电平,否则event_up_reg[n]或event_down_reg[n]输出低电平;Step 7. Use event_up_reg[n] or event_down_reg[n] to record the rising edge/falling edge of the rising edge detection function event_up[n] of the measured signal or the falling edge detection function event_down[n] of the measured signal, when the rising edge of the measured signal When the detection function event_up[n] or the falling edge detection function event_down[n] of the signal under test has a rising edge, event_up_reg[n] or event_down_reg[n] outputs a high level, otherwise event_up_reg[n] or event_down_reg[n] outputs a low level ;

步骤8、获得被测信号上升沿或下降沿在一个时钟周期315MHz内的相对位置,完成时钟分相。Step 8: Obtain the relative position of the rising edge or the falling edge of the signal under test within a clock cycle of 315MHz, and complete the clock phase splitting.

本实施方式中,利用倍频移相后的时钟信号的边沿作为触发信号,理论上可以将倍频后的频率再进行16倍的细分,从而达到更高。如图4所示,PLL为Phase Locked Loop,锁相环。In this embodiment, the edge of the clock signal after frequency multiplication and phase shift is used as a trigger signal, and theoretically, the frequency after frequency multiplication can be further subdivided by 16 times, so as to reach a higher level. As shown in Figure 4, the PLL is a Phase Locked Loop, a phase-locked loop.

具体实施方式二:本实施方式对实施方式一作进一步说明,步骤3所述的八路时钟信号的边沿包括八路时钟信号的上升沿和下降沿。Embodiment 2: This embodiment further describes Embodiment 1. The edges of the eight-way clock signal in step 3 include the rising edge and the falling edge of the eight-way clock signal.

具体实施方式三:本实施方式对实施方式一作进一步说明,步骤5所述将Count[0]~Count[15]中出现0→1跳变和1→0跳变的位置提取出来的方法为:Embodiment 3: This embodiment further describes Embodiment 1. The method for extracting the positions where 0→1 transitions and 1→0 transitions occur in Count[0] to Count[15] described in step 5 are as follows:

将Count[n]和Count[n+1]进行计算:Calculate Count[n] and Count[n+1]:

出现event_up[n]=(~Count[n])&Count[n+1]时,为0→1跳变的位置;When event_up[n]=(~Count[n])&Count[n+1], it is the position of 0→1 transition;

出现event_down[n]=(~Count[n+1])&Count[n]时,为1→0跳变的位置;When event_down[n]=(~Count[n+1])&Count[n], it is the position of 1→0 transition;

其中,n=0,1,…,15。where n=0,1,...,15.

本发明提出了基于FPGA的精密时间间隔测量方法,将时间间隔测量分为“粗”测和“细”测两部分,“粗”测是指用计数器进行初步测量,“细”测的实现主要是依靠时钟分相法来进行时间内插,从而获得更高的时间分辨率。The invention proposes a precise time interval measurement method based on FPGA, which divides the time interval measurement into two parts: "coarse" measurement and "fine" measurement. It relies on the clock phase splitting method to perform time interpolation, so as to obtain higher time resolution.

传统的时间间隔测量技术中最基本的方法是脉冲计数法。脉冲计数法中的脉冲是指参考时钟信号CLK_IN,参考时钟信号是脉冲计数法测时的时间基准,故又称时基信号。测量的事件部分由起始信号(start信号)和终止信号(stop信号)两部分组成。脉冲计数法的测量原理是基于同量纲物理量的比对。用时基信号去填充被测时间间隔,通过对时基信号的脉冲计数来量化被测时间间隔。具体工作原理如图1所示,start信号在T1时刻打开计数器,stop计数信号在T2时刻停止计数器,start信号沿与stop信号沿之间的时间间隔△T通过时钟为clk的计数器进行测量计数。The most basic method in the traditional time interval measurement technique is the pulse counting method. The pulse in the pulse counting method refers to the reference clock signal CLK_IN, and the reference clock signal is the time base for measuring time in the pulse counting method, so it is also called the time base signal. The event part of the measurement consists of a start signal (start signal) and a stop signal (stop signal). The measurement principle of the pulse counting method is based on the comparison of physical quantities of the same dimension. Fill the measured time interval with the time base signal, and quantify the measured time interval by counting the pulses of the time base signal. The specific working principle is shown in Figure 1. The start signal turns on the counter at time T1, and the stop count signal stops the counter at time T2. The time interval ΔT between the start signal edge and the stop signal edge is measured by the counter whose clock is clk. count.

这种方法实现的时间数字转换,结构和逻辑比较简单。其分辨率由时钟周期决定,测量的动态范围由计数器的位数来决定,测量的精度由时钟的稳定度决定。The time-to-digital conversion realized by this method is relatively simple in structure and logic. The resolution is determined by the clock period, the dynamic range of the measurement is determined by the number of bits of the counter, and the measurement accuracy is determined by the stability of the clock.

由于脉冲计数法的分辨率很低,为了提高测时分辨率,采用时间内插方法。时间内插是在低分辨时基的基础上,获取高分辨率的一种测时技术。Since the resolution of the pulse counting method is very low, in order to improve the resolution of time measurement, the time interpolation method is used. Time interpolation is a time measurement technique that obtains high resolution on the basis of low resolution time base.

时间内插的测量分辨率比时基周期小,如图2所示,start信号在T1时刻打开计数器,stop计数信号在T2时刻停止计数器,start信号沿与stop信号沿之间的时间间隔△T通过时钟为clk的计数器进行测量计数,其中Tclk为参考时钟信号CLK_IN的周期,n为计数器数值。△T1是被测事件信号上升沿与时基信号上升沿之间的时间间隔,△T2是事件信号下降沿与时基信号上升沿之间的时间间隔,△T1和△T2是时间内插的测量对象。通过时间内插,可以将△T1和△T2这些小于时基周期的微小时间间隔进一步量化。The measurement resolution of time interpolation is smaller than the time base period. As shown in Figure 2 , the start signal turns on the counter at time T1, the stop count signal stops the counter at time T2, and the time interval between the start signal edge and the stop signal edge ΔT is measured and counted by a counter whose clock is clk, where T clk is the cycle of the reference clock signal CLK_IN, and n is the counter value. ΔT 1 is the time interval between the rising edge of the measured event signal and the rising edge of the time base signal, ΔT 2 is the time interval between the falling edge of the event signal and the rising edge of the time base signal, ΔT 1 and ΔT 2 are Time-interpolated measurement objects. The tiny time intervals ΔT 1 and ΔT 2 which are smaller than the time base period can be further quantified by time interpolation.

图2中下部是△T1和△T2的放大示意图,箭头代表进一步量化的刻度。由于时基信号周期是已知的固定值,对两种不同测量对象的测量可达到同样的内插效果。本发明采用的时间内插方法是时钟分相法。The lower part of Fig. 2 is an enlarged schematic view of ΔT 1 and ΔT 2 , and the arrows represent the scale for further quantification. Since the time base signal period is a known fixed value, the same interpolation effect can be achieved for two different measurement objects. The time interpolation method adopted in the present invention is the clock phase splitting method.

时钟分相技术是指把时钟周期的多个相位都加以利用以达到更高的时间分辨,在高速数字系统设计中有广泛应用。在某些测量环境下,满足一定的测量精度后,考虑到系统构建、资源消耗、测量周期等因素,利用时钟分相技术实现基于FPGA的TDC是一种很好的选择方案。Clock phase splitting technology refers to the use of multiple phases of the clock cycle to achieve higher time resolution, and is widely used in high-speed digital system design. In some measurement environments, after meeting a certain measurement accuracy, considering the system construction, resource consumption, measurement cycle and other factors, it is a good choice to use the clock phase splitting technology to implement FPGA-based TDC.

图3是数据采集部分总体结构图,关键部分是中间基于FPGA的TDC方法。在该方法中,输入信号的上升沿为待测时间信号,粗时间测量釆用同步并联计数器法构建,分辨率为系统时钟CLK_sys周期,且多个通道用粗时间测量单元。细时间测量单元包括基于多相时钟的时间内插时间釆样单元、数据缓冲单元和编码单元。Figure 3 is the overall structure diagram of the data acquisition part, and the key part is the middle FPGA-based TDC method. In this method, the rising edge of the input signal is the time signal to be measured, the coarse time measurement is constructed by using the synchronous parallel counter method, the resolution is the period of the system clock CLK_sys, and the coarse time measurement unit is used for multiple channels. The fine time measurement unit includes a multiphase clock-based time interpolation time sampling unit, a data buffer unit and an encoding unit.

本发明采用的芯片的型号是Stratix IV系列的EP4SGX230KF40C2,并利用了内部集成的组锁相环(PLL)实现了多相时钟电路,由此得到更高的测时分辨率。Stratix IV器件中的专用全局时钟网络(GCLK)、局域时钟网络(RCLK)以及外围钟网络(PCLK)组成了具有层次结构的时钟架构,此结构提供了多达236个单一的时钟域(16GCLK+88RCLK+132PCLK),并支持每个器件象限中多达71个单一的GCLK、RCLK和PCLK时钟源(16GCLK+22RCLK+33PCLK)。表1列出了StratixIV器件中的可用时钟资源。The model of the chip used in the present invention is EP4SGX230KF40C2 of the Stratix IV series, and a multi-phase clock circuit is realized by using an internally integrated group phase-locked loop (PLL), thereby obtaining a higher time measurement resolution. The dedicated global clock network (GCLK), local clock network (RCLK), and peripheral clock network (PCLK) in Stratix IV devices form a hierarchical clock architecture that provides up to 236 single clock domains (16GCLKs). +88RCLK+132PCLK) and supports up to 71 single GCLK, RCLK and PCLK clock sources (16GCLK+22RCLK+33PCLK) in each device quadrant. Table 1 lists the clocking resources available in StratixIV devices.

表1 Stratix IV器件中的时钟资源Table 1 Clock Resources in Stratix IV Devices

Figure BDA0001675383990000061
Figure BDA0001675383990000061

Figure BDA0001675383990000071
Figure BDA0001675383990000071

StratixIV器件提供了多达16个GCLK,这些时钟可以驱动整个器件内部的功能模块(例如,自适应逻辑模块(ALM)、数字信号处理(DSP)模块、TriMatrix存储器模块以及PLL),提供低偏移的时钟资源。StratixIV器件I/O单元(IOE)与内部逻辑能够通过驱动GCLK来创建内部生成的全局时钟和其它高扇出控制信号,例如:同步或异步清零与时钟使能信号。StratixIV devices provide up to 16 GCLKs that can drive functional blocks throughout the device (for example, adaptive logic modules (ALM), digital signal processing (DSP) blocks, TriMatrix memory blocks, and PLLs) with low skew clock resource. StratixIV device I/O elements (IOEs) and internal logic can drive GCLKs to create internally generated global clocks and other high fanout control signals, such as synchronous or asynchronous clear and clock enable signals.

被测信号选择经由全局时钟线传输,使其到达每个采集点尽可能接近同时,以便时钟分相内插的实现。The signal under test is selected to be transmitted through the global clock line, so that it reaches each acquisition point as close as possible to the same time, so as to realize the realization of clock split-phase interpolation.

如图5所示,为时钟边沿作为触发信号的数据传输路径,同时利用TimeQuestTiming Analyzer分析各个测量路径的延迟时间,利用TimeQuest Timing Analyzer对特殊的传输路径进行时序约束,使得相邻的数据传输路径的延迟时间尽可能相同。As shown in Figure 5, it is the data transmission path with the clock edge as the trigger signal. At the same time, the TimeQuest Timing Analyzer is used to analyze the delay time of each measurement path, and the TimeQuest Timing Analyzer is used to impose timing constraints on the special transmission path, so that the adjacent data transmission paths The delay times are as equal as possible.

将“细”测部分分为被测信号的上升沿和下降沿两部分分别进行时序约束,根据前面的测量结果,选取合适的延迟时间分别对每条路径进行时序约束。Divide the "fine" measurement part into two parts, the rising edge and the falling edge of the signal under test, and carry out timing constraints respectively. According to the previous measurement results, select the appropriate delay time to carry out timing constraints on each path respectively.

用LogicLock将时序约束完成的模块在Chip Planner中进行逻辑锁定,以便尽可能地使后续编程能够继承前面约束好的路径延迟。Use LogicLock to logically lock the modules with timing constraints in the Chip Planner, so that subsequent programming can inherit the previously constrained path delays as much as possible.

完成“细”测部分的实现后,还需要将“粗”测部分和“细”测部分整合到一起,具如图6所示。After completing the realization of the "fine" measurement part, it is also necessary to integrate the "coarse" measurement part and the "fine" measurement part, as shown in Figure 6.

将程序加载到DE4开发板(芯片的型号是Stratix IV系列的EP4SGX230KF40C2)中,由函数发生器Agilent 33220A产生被测信号(方波,频率为120MHz),利用Signal Tap进行观察“细”测部分的实测输出波形,检测其能达到的分辨率,如图7所示。Load the program into the DE4 development board (the model of the chip is EP4SGX230KF40C2 of the Stratix IV series), and use the function generator Agilent 33220A to generate the measured signal (square wave with a frequency of 120MHz), and use the Signal Tap to observe the "fine" measurement part. Measure the output waveform and check the resolution it can achieve, as shown in Figure 7.

实验数据实测部分,取了5组不同的时间间隔进行测量,每组测20个数据,5组时间间隔分别预设为100ns、200ns、500ns、1000ns、1500ns。In the actual measurement part of the experimental data, 5 groups of different time intervals were taken for measurement, each group measured 20 data, and the 5 groups of time intervals were preset as 100ns, 200ns, 500ns, 1000ns and 1500ns.

根据实验测量结果得到其分辨率约为165ps。时间间隔预设为100ns的小误差值为211ps(相对于示波器的测量结果);时间间隔预设为200ns的最小误差值为274ps(相对于示波器的测量结果);时间间隔预设为500ns的最小误差值为310ps(相对于示波器的测量结果);时间间隔预设为1000ns的最小误差值为257ps(相对于示波器的测量结果);时间间隔预设为1500ns的最小误差值为312ps(相对于示波器的测量结果)。According to the experimental measurement results, the resolution is about 165ps. The time interval is preset to 100ns and the minimum error value is 211ps (relative to the measurement result of the oscilloscope); the minimum error value of the time interval preset to 200ns is 274ps (relative to the measurement result of the oscilloscope); the time interval is preset to the minimum value of 500ns The error value is 310ps (relative to the measurement result of the oscilloscope); the minimum error value of the time interval preset to 1000ns is 257ps (relative to the measurement result of the oscilloscope); the minimum error value of the time interval preset to 1500ns is 312ps (relative to the oscilloscope measurement result) measurement results).

100MHz的时钟输入,等效达到的测时频率为6080MHz,有效的提高了测时分辨率。With a clock input of 100MHz, the equivalent timing frequency is 6080MHz, which effectively improves the timing resolution.

Claims (2)

1. The phase-locked loop clock edge triggered clock phase splitting method is characterized by comprising the following specific processes:
step 1, inputting a clock signal of 100MHz to an input end of a phase-locked loop;
step 2, frequency doubling the clock signal 100MHz to 315MHz, carrying out eight phase shifts on the high level section of the input clock, and setting the phase shift angles CLK [0] to CLK [7] as 0 degree, 22.5 degrees, 45 degrees, 66.5 degrees, 90 degrees, 112.5 degrees, 135 degrees and 157.5 degrees respectively;
step 3, taking the edges of the eight paths of clock signals after the frequency multiplication and phase shift of the phase-locked loop as sixteen trigger signals;
step 4, performing clock synchronization processing on the detected signal;
step 5, respectively carrying out time sequence constraint on each transmission path of the clock signal and the signal to be tested;
step 6, judging whether the measured signal levels Count [0] to Count [15] at sixteen trigger moments are 0 or 1, and extracting the positions of 0 → 1 jump and 1 → 0 jump in the Count [0] to Count [15 ];
step 7, recording the rising edge and the falling edge of the detected signal rising edge detection function event _ up [ n ] by using event _ up _ reg [ n ], recording the rising edge and the falling edge of the detected signal falling edge detection function event _ down [ n ] by using event _ down _ reg [ n ],
when the rising edge detection function event _ up [ n ] of the detected signal has a rising edge, the event _ up _ reg [ n ] outputs a high level,
when the falling edge detection function event _ down [ n ] of the detected signal has a rising edge, the event _ down _ reg [ n ] outputs a high level,
when the rising edge detection function event _ up [ n ] of the detected signal has a falling edge, the event _ up _ reg [ n ] outputs a low level,
when the falling edge detection function event _ down [ n ] of the detected signal has a falling edge, the event _ down _ reg [ n ] outputs a low level;
wherein n is 0,1, …, 15;
and 8, acquiring the relative position of the rising edge or the falling edge of the detected signal in 315MHz of a clock cycle, and completing clock phase splitting.
2. The phase-locked loop clock edge-triggered clock splitting method as claimed in claim 1, wherein the edges of the eight clock signals in step 3 comprise rising edges and falling edges of the eight clock signals.
CN201810523585.3A 2018-05-28 2018-05-28 Phase-locked loop clock edge triggered clock phase-splitting method Active CN108736885B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810523585.3A CN108736885B (en) 2018-05-28 2018-05-28 Phase-locked loop clock edge triggered clock phase-splitting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810523585.3A CN108736885B (en) 2018-05-28 2018-05-28 Phase-locked loop clock edge triggered clock phase-splitting method

Publications (2)

Publication Number Publication Date
CN108736885A CN108736885A (en) 2018-11-02
CN108736885B true CN108736885B (en) 2022-04-12

Family

ID=63935650

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810523585.3A Active CN108736885B (en) 2018-05-28 2018-05-28 Phase-locked loop clock edge triggered clock phase-splitting method

Country Status (1)

Country Link
CN (1) CN108736885B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109857014A (en) * 2019-01-24 2019-06-07 武汉精能电子技术有限公司 A kind of pwm signal generation method based on FPGA
US11002764B2 (en) * 2019-02-12 2021-05-11 Tektronix, Inc. Systems and methods for synchronizing multiple test and measurement instruments
CN112019287A (en) * 2019-05-30 2020-12-01 深圳市合讯电子有限公司 Method for improving clock phase measurement precision
CN118473552B (en) * 2024-07-09 2024-10-11 深圳市华茂欧特科技有限公司 Method, device, equipment and medium for measuring data transmission duration of communication system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102109A (en) * 2006-07-03 2008-01-09 三星电子株式会社 Delay locked loop, semiconductor memory device including the same, and method of generating delay clock signals
CN101520640A (en) * 2008-11-08 2009-09-02 中国工程物理研究院流体物理研究所 Time interval measuring instrument based on FPGA

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1450238B1 (en) * 2003-02-21 2005-11-30 Alcatel Circuit for programmable stepless clock shifting
JP4915017B2 (en) * 2005-09-29 2012-04-11 株式会社ハイニックスセミコンダクター Delay locked loop circuit

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102109A (en) * 2006-07-03 2008-01-09 三星电子株式会社 Delay locked loop, semiconductor memory device including the same, and method of generating delay clock signals
CN101520640A (en) * 2008-11-08 2009-09-02 中国工程物理研究院流体物理研究所 Time interval measuring instrument based on FPGA

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A high precision time-to-digital converter based on multi-phase clock implemented within Field-Programmable-Gate-Array;CHEN Kai;《Nuclear Science and Techniques》;20101231;123-128 *
时钟分相技术应用;廖娟娟;《核电子学与探测技术》;20001231;437-439 *

Also Published As

Publication number Publication date
CN108736885A (en) 2018-11-02

Similar Documents

Publication Publication Date Title
CN108736885B (en) Phase-locked loop clock edge triggered clock phase-splitting method
CN110442012A (en) A kind of precision time interval measurement method and system based on FPGA
CN104155640B (en) A kind of laser radar echo Full wave shape harvester possessing sampled point timi requirement
CN105676198B (en) A kind of echo impulse delay generation device for pulse radar test
CN101976037B (en) Method and device for measuring time intervals of repeated synchronous interpolation simulation
CN103698770A (en) Multi-channel laser echo time measurement system based on FPGA (Field Programmable Gate Array) chip
CN105068405B (en) Single channel signal pulsewidth high-precision measuring method and device that FPGA is realized
CN108768388B (en) Edge-triggered clock phase splitting method for series phase-locked loops
CN203775187U (en) SCA multi-channel high-speed acquisition system
CN108732912A (en) The clock phase-splitting method of measured signal edging trigger
US20100201408A1 (en) Digital Time Base Generator and Method for Providing a First Clock Signal and a Second Clock Signal
CN102880071A (en) Data acquisition system with high time stamp accuracy
Yin et al. A high-resolution time-to-digital converter based on multi-phase clock implement in field-programmable-gate-array
CN103546124B (en) A kind of signal trigger instants value acquisition device
CN106066599B (en) Chronometer time measuring system for three-dimensional laser scanner
Wang et al. Spartan-6 FPGA based 8-channel time-to-digital converters for TOF-PET systems
CN114114885A (en) A high-precision time measurement front-end readout circuit based on TOT mode
CN101727068A (en) Time interval digitally quantized event counter
CN203502749U (en) Pulse time interval measuring device
CN116360235A (en) A SerDes-based TDC Realization Device
Chen et al. A coarse-fine time-to-digital converter
CN103529687B (en) Pulse Time Interval Measuring Device
CN203352562U (en) A high-precision digital phase discriminator for a satellite time-offering frequency-calibrating system
Marteau et al. Implementation of sub-nanoseconds TDC in FPGA: applications to time-of-flight analysis in muon radiography
CN206710575U (en) It is a kind of to improve caesium pumped magnetic resonance signal frequency-measurement accuracy and the circuit of speed

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