CN102346236A - Time parameter measurement system - Google Patents

Time parameter measurement system Download PDF

Info

Publication number
CN102346236A
CN102346236A CN2011101665013A CN201110166501A CN102346236A CN 102346236 A CN102346236 A CN 102346236A CN 2011101665013 A CN2011101665013 A CN 2011101665013A CN 201110166501 A CN201110166501 A CN 201110166501A CN 102346236 A CN102346236 A CN 102346236A
Authority
CN
China
Prior art keywords
signal
time
time interval
delay
type flip
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
CN2011101665013A
Other languages
Chinese (zh)
Other versions
CN102346236B (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.)
University of Electronic Science and Technology of China
Original Assignee
University of Electronic Science and Technology of China
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 University of Electronic Science and Technology of China filed Critical University of Electronic Science and Technology of China
Priority to CN 201110166501 priority Critical patent/CN102346236B/en
Publication of CN102346236A publication Critical patent/CN102346236A/en
Application granted granted Critical
Publication of CN102346236B publication Critical patent/CN102346236B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Measurement Of Unknown Time Intervals (AREA)

Abstract

The invention discloses a time parameter measurement system for digital integrated circuits. The system is implemented by converting a to-be-measured signal IN into a time interval start signal Start and a stop signal Stop as well as pulse signals RStart and RStop by a channel circuit unit; then, the four signals are respectively provided for an accurate time measurement unit and a coarse time measurement unit to carry out measurement, wherein the accurate time measurement unit is composed of a multi-stage delay line and a calibration unit, and used for carrying out measurement under the condition that the rising edge of the to-be-measured signal is steep; and the coarse time measurement unit is composed of a jittering shielding circuit, a counter 1 and a counter 2 (the operating frequencies of the counter 1 and the counter 2 are complementary), and used for carrying out measurement under the condition that the rising edge of the to-be-measured signal is slow. By using the system disclosed by the invention, the difficulty of improving the resolution ratio of a time parameter measurement system for high-precision digital integrated circuits in the prior art is overcome, and the technical difficulty that the measurement bandwidth of a time parameter measurement system is limited caused by the jitter of output signals of a comparator for channel circuits.

Description

一种时间参数测量系统A Time Parameter Measuring System

技术领域 technical field

本发明属于电子测量技术领域,更为具体地讲,涉及一种数字集成电路时间参数测量系统。The invention belongs to the technical field of electronic measurement, and more specifically relates to a digital integrated circuit time parameter measurement system.

背景技术 Background technique

集成电路作为信息产业的基础和核心,是国民经济和社会发展的战略性产业,在推动经济发展、社会进步、提高人民生活水平以及保障国家安全等方面发挥着重要作用,已成为当前国际竞争的焦点和衡量一个国家或地区现代化程度以及综合国力的重要标志。As the foundation and core of the information industry, the integrated circuit is a strategic industry for national economic and social development. It plays an important role in promoting economic development, social progress, improving people's living standards and ensuring national security. It has become the focus of current international competition. Focus and an important indicator to measure the degree of modernization and comprehensive national strength of a country or region.

高精度的时间参数测量系统在集成电路的设计、验证和封装过程中发挥了举足轻重的作用。它是测试与验证集成电路与时间相关参数是否合格的有力手段。High-precision time parameter measurement systems play a pivotal role in the design, verification and packaging of integrated circuits. It is a powerful means of testing and verifying the qualification of integrated circuits and time-related parameters.

图1是现有的一种时间参数测量系统的原理图。FIG. 1 is a schematic diagram of an existing time parameter measurement system.

如图1所示,时间参数测量系统包括主控单元、通道电路单元和测量单元三部分。其中,主控单元负责通道电路单元和测量单元的各种控制信号的发出和测量结果的读回。待测信号IN连接到通道电路单元中的比较器A1和A2的正端,比较器A1和A2的负端接电平比较信号VrefA和VrefB。待测信号IN的电平分别与比较电平VrefA和VrefB在比较器A1和A2中进行比较,输出信号RStart和RStop,信号RStart和RStop在通道电路单元中的时间间隔信号产生电路中转换为测量单元能够识别的时间间隔开始信号Start和停止信号Stop,然后送入测量单元中进行异或后,作为计数器的使能信号接计数器的使能端EN,计数器进行计数,输出代表时间间隔的输出CNT[31:0]。其中CLK为计数器的计数脉冲信号,接计数器的CP端,计数器输出CNT[31:0]为32位二进制数据。As shown in Figure 1, the time parameter measurement system includes three parts: the main control unit, the channel circuit unit and the measurement unit. Among them, the main control unit is responsible for sending out various control signals of the channel circuit unit and the measurement unit and reading back the measurement results. The signal IN to be tested is connected to the positive terminals of the comparators A1 and A2 in the channel circuit unit, and the negative terminals of the comparators A1 and A2 are connected to the level comparison signals VrefA and VrefB. The level of the signal IN to be measured is compared with the comparison levels VrefA and VrefB in the comparators A1 and A2 respectively, and the output signals RStart and RStop, the signals RStart and RStop are converted into measurement in the time interval signal generation circuit in the channel circuit unit The time interval start signal Start and stop signal Stop that the unit can recognize, and then sent to the measurement unit for XOR, as the enable signal of the counter is connected to the enable terminal EN of the counter, the counter counts, and outputs the output CNT representing the time interval [31:0]. Among them, CLK is the counting pulse signal of the counter, connected to the CP terminal of the counter, and the counter output CNT[31:0] is 32-bit binary data.

图2是图1时间参数测量系统的测量时序波形图。FIG. 2 is a measurement timing waveform diagram of the time parameter measurement system in FIG. 1 .

通道电路单元首先将待测信号IN转换为信号RStart和RStop,时间间隔信号产生电路将信号RStart和RStop转换为时间间隔开始信号Start和停止信号Stop。假设计数器输出CNT[31:0]的值为N,计数器的计数脉冲,即CLK的周期为T,则时间间隔Tx,即待测信号IN在VrefA和VrefB之间时间为:The channel circuit unit first converts the signal IN to be tested into signals RStart and RStop, and the time interval signal generating circuit converts the signals RStart and RStop into a time interval start signal Start and a stop signal Stop. Assuming that the value of the counter output CNT[31:0] is N, and the counting pulse of the counter, that is, the period of CLK is T, then the time interval T x , that is, the time when the signal IN to be tested is between VrefA and VrefB is:

Tx=NT                (1)T x = NT (1)

此时时间间隔测量分辨率为计数器的计数脉冲周期T。At this time, the time interval measurement resolution is the counting pulse period T of the counter.

如果要求测试分辨率为1ns,则要求时钟CLK的频率为1GHz。分辨率要求越高,则要求计数器计数脉冲频率越高,如果分辨率提高到125ps,则要求CLK的频率为8GHz,现有技术实现起来非常困难。显然仅靠提高计数器脉冲频率的办法提高分辨力是困难的。If the test resolution is required to be 1 ns, the frequency of the clock CLK is required to be 1 GHz. The higher the resolution requirement, the higher the counting pulse frequency of the counter is required. If the resolution is increased to 125 ps, the CLK frequency is required to be 8 GHz, which is very difficult to implement in the prior art. Obviously, it is difficult to improve the resolution only by increasing the pulse frequency of the counter.

同时,在待测信号IN上升沿缓慢时,通道电路单元中的比较器A1和A2输出会存在抖动,导致其输出脉冲信号RStart和RStop出现抖动现象,最终导致测量单元测量困难,时间参数测量系统测量带宽受限。At the same time, when the rising edge of the signal IN to be tested is slow, the output of the comparators A1 and A2 in the channel circuit unit will jitter, resulting in the jitter phenomenon of the output pulse signals RStart and RStop, which will eventually make the measurement of the measurement unit difficult, and the time parameter measurement system Measurement bandwidth is limited.

发明内容 Contents of the invention

本发明的目的在于克服现有技术的不足,提供一种高分辨率和高测量带宽的时间参数测量系统。The purpose of the present invention is to overcome the deficiencies of the prior art and provide a time parameter measurement system with high resolution and high measurement bandwidth.

为实现上述目的,本发明时间参数测量系统,包括:In order to achieve the above object, the time parameter measurement system of the present invention includes:

一主控单元;a main control unit;

一通道电路单元,用于将待测信号在通道电路单元中的比较器中进行比较,输出两路脉冲信号RStart和RStop,同时,在主控单元的控制下,脉冲信号RStart和RStop在通道电路单元中的时间间隔信号产生电路中转换为时间间隔开始信号Start和停止信号Stop;A channel circuit unit, which is used to compare the signal to be tested in the comparator in the channel circuit unit, and output two pulse signals RStart and RStop. At the same time, under the control of the main control unit, the pulse signals RStart and RStop The time interval signal generation circuit in the unit is converted into a time interval start signal Start and a stop signal Stop;

其特征在于还包括:It is characterized in that it also includes:

一时间精测单元,用于待测信号上升沿较陡峭,比较器输出不存在抖动的情况下的测量,由多级延迟线与编码器组成;A time precision measurement unit, which is used for measurement when the rising edge of the signal to be tested is relatively steep and there is no jitter in the output of the comparator. It is composed of a multi-stage delay line and an encoder;

通过互联线依次将多条延迟线串行连接构成多级延迟线,延迟线包括多个延迟单元和多个D触发器;来自上一级的时间间隔开始信号Start接第一个延迟单元,如果延迟线为第一级,则接通道电路单元输出的时间间隔开始信号Start,然后每个延迟单元对时间间隔开始信号Start依次延迟后,都接有一个D触发器,各个D触发器的D端依次接延迟单元延迟后的时间间隔开始信号Start,各个D触发器的时钟脉冲CP端都接时间间隔停止信号Stop,其复位端R都接主控单元发送来的复位信号RESET;Multiple delay lines are sequentially connected in series through interconnection lines to form a multi-stage delay line, and the delay line includes multiple delay units and multiple D flip-flops; the time interval start signal Start from the upper stage is connected to the first delay unit, if The delay line is the first stage, then it is connected to the time interval start signal Start output by the channel circuit unit, and then each delay unit is connected to a D flip-flop after delaying the time interval start signal Start sequentially, and the D terminal of each D flip-flop The time interval start signal Start after the delay unit delay is connected in turn, the clock pulse CP end of each D flip-flop is connected to the time interval stop signal Stop, and the reset terminal R is connected to the reset signal RESET sent by the main control unit;

各个延迟线上的D触发器的Q端输出送入编码器中,当时间间隔停止信号Stop到来时,各个D触发器的Q端输出锁定,得到代表时间间隔Tx内时间间隔开始信号Start经过的延迟单元个数的编码器输出N,则时间间隔Tx为:The output of the Q terminal of the D flip-flop on each delay line is sent to the encoder. When the time interval stop signal Stop arrives, the output of the Q terminal of each D flip-flop is locked, and the start signal of the time interval Start within the representative time interval T x is obtained. The encoder outputs N with the number of delay units, then the time interval T x is:

TT xx == NN ** tt ++ ROUNDROUND (( NN NN 22 )) ** tt ΔLΔ L ,,

其中,ROUND表示取整运算,N2表示单级无源延迟线的延迟单元个数,tΔL为互联线的延迟时间;Among them, ROUND represents the rounding operation, N 2 represents the number of delay units of the single-stage passive delay line, and t ΔL is the delay time of the interconnection line;

一时间粗测单元,用于待测信号上升沿较缓慢,比较器输出脉冲信号RStart和RStop存在抖动的情况下的测量,由抖动屏蔽电路和时间间隔测量单元组成,抖动屏蔽电路包括去抖动电路、波形恢复电路和时间间隔信号产生电路;A time rough measurement unit, used for measurement when the rising edge of the signal to be tested is relatively slow, and the output pulse signals RStart and RStop of the comparator are jittered. It is composed of a jitter shielding circuit and a time interval measurement unit. The jitter shielding circuit includes a debounce circuit , waveform recovery circuit and time interval signal generation circuit;

去抖动电路包括两个去抖动D触发器、两个非门、两个可编程延迟模块、一个同步D触发器以及一个非与门;The debounce circuit includes two debounce D flip-flops, two NOT gates, two programmable delay modules, a synchronous D flip-flop and a NAND gate;

通道电路单元中比较器输出的脉冲信号RStart和RStop输入各自的去抖动D触发器的时钟脉冲CP端,两个去抖动D触发器输出Q端的输出通过各自的可编程延迟模块延迟ΔtL1、ΔtL2后,分别经过一个非门后,输入到各自的复位R端,两个去抖动D触发器的数据D端都接同步D触发器的Q端输出,可编程延迟模块的延迟时间ΔtL1、ΔtL2应分别大于各自脉冲信号RStart和RStop的边沿抖动时间Δtstart、Δtstop;脉冲信号RStart和RStop经过非与门后接到同步D触发器时钟脉冲CP端,同步D触发器的复位R端接同步复位信号TRI,数据D端接高电平;脉冲信号RStart和RStop各自的去抖动D触发器输出去抖动后的信号Qstart和信号QstopThe pulse signals RStart and RStop output by the comparator in the channel circuit unit are input to the clock pulse CP terminal of the respective de-jittering D flip-flops, and the output of the two de-jittering D flip-flops outputs Q-terminal delays Δt L1 , Δt through their respective programmable delay modules After L2 , after passing through a NOT gate, they are input to their respective reset R terminals, and the data D terminals of the two debounce D flip-flops are connected to the Q terminal output of the synchronous D flip-flop. The delay time of the programmable delay module Δt L1 , Δt L2 should be greater than the edge jitter time Δt start and Δt stop of the respective pulse signals RStart and RStop; the pulse signals RStart and RStop are connected to the synchronous D flip-flop clock pulse CP terminal after passing through the non-AND gate, and the reset R terminal of the synchronous D flip-flop The synchronous reset signal TRI is connected, and the data D terminal is connected to a high level; the respective debounce D flip-flops of the pulse signals RStart and RStop output debounced signal Q start and signal Q stop ;

波形恢复电路包括两个JK触发器,两个JK触发器的J、K端均接高电平,复位R端接来自主控单元的同步复位信号TRI,两个JK触发器的时钟脉冲CP端分别与两个去抖动D触发器输出Q端连接,输出去抖动后的信号Qstart和信号Qstop的恢复信号JStart和信号JStop;The waveform recovery circuit includes two JK flip-flops, the J and K terminals of the two JK flip-flops are connected to high level, the reset R terminal is connected to the synchronous reset signal TRI from the main control unit, and the clock pulse CP terminal of the two JK flip-flops Connect with two debounce D flip-flop output Q terminals respectively, and output the recovery signal JStart and signal JStop of the debounced signal Q start and signal Q stop ;

时间间隔信号产生电路包括两个D触发器,一个D触发器的D端接高电平Vcc,时钟脉冲CP端接信号JStart,Q端输出时间间隔开始信号JJStart;另一个D触发器的D端接信号JStart,时钟脉冲端CP接信号JStop,Q端输出时间间隔停止信号JJStop;两个D触发器的复位端R均接系统复位信号RESET;The time interval signal generation circuit includes two D flip-flops. The D terminal of one D flip-flop is connected to high level Vcc, the clock pulse CP is connected to signal JStart, and the Q terminal outputs the time interval start signal JJStart; the D terminal of the other D flip-flop The signal JStart is connected, the clock pulse terminal CP is connected to the signal JStop, and the Q terminal outputs the time interval stop signal JJStop; the reset terminals R of the two D flip-flops are connected to the system reset signal RESET;

时间间隔测量单元用于测量出上升沿为一前一后的时间间隔开始信号JJStart、停止信号JJStop的时间间隔TxThe time interval measurement unit is used to measure the time interval T x of the time interval start signal JJStart and stop signal JJStop whose rising edges are one after the other.

本发明的发明目的是这样实现的:The purpose of the invention of the present invention is achieved like this:

待测信号在通道电路单元中的比较器中进行比较,输出两路脉冲信号RStart和RStop,同时,在主控单元的控制下,脉冲信号RStart和RStop在通道电路单元中的时间间隔信号产生电路中转换为时间间隔开始信号Start和停止信号Stop,由于采用多级延迟线结构的时间精测单元具有很高的测量分辨率,克服了现有技术高频率的计数脉冲信号的产生非常困难,高分辨率时间参数测量系统不易实现的缺陷。同时,采用了具有抖动屏蔽电路的的时间粗测单元,克服了现有技术待测信号上升沿缓慢导致的比较器输出存在抖动,时间参数测量系统测量带宽受限的缺陷。The signal to be tested is compared in the comparator in the channel circuit unit, and two pulse signals RStart and RStop are output. At the same time, under the control of the main control unit, the time interval signal generation circuit of the pulse signal RStart and RStop in the channel circuit unit In the middle, it is converted into a time interval start signal Start and a stop signal Stop. Since the time precision measurement unit adopting a multi-level delay line structure has a high measurement resolution, it overcomes the difficulty in generating high-frequency counting pulse signals in the prior art. The defect that the resolution time parameter measurement system is not easy to realize. At the same time, a time rough measurement unit with a jitter shielding circuit is adopted, which overcomes the defects of the prior art that the comparator output jitters caused by the slow rising edge of the signal to be tested and the measurement bandwidth of the time parameter measurement system is limited.

附图说明 Description of drawings

图1是现有技术时间参数测量系统的原理图。FIG. 1 is a schematic diagram of a prior art time parameter measurement system.

图2是图1时间参数测量系统的工作时序图。Fig. 2 is a working sequence diagram of the time parameter measuring system in Fig. 1 .

图3是本发明中通道电路单元一种具体实施方式原理图;Fig. 3 is a schematic diagram of a specific embodiment of the channel circuit unit in the present invention;

图4是本发明中时间精测单元的一种具体实施方式结构图;Fig. 4 is a structural diagram of a specific embodiment of the precise time measurement unit in the present invention;

图5是时间精测单元的工作时序图;Fig. 5 is a working sequence diagram of the time precision measurement unit;

图6是本发明中时间粗测单元一种具体实施方式原理图;Fig. 6 is a schematic diagram of a specific embodiment of the rough time measurement unit in the present invention;

图7是图6中所示抖动屏蔽电路实施方式原理图;Fig. 7 is a schematic diagram of the embodiment of the jitter shielding circuit shown in Fig. 6;

图8是图7所示抖动屏蔽电路的工作时序图;Fig. 8 is a working timing diagram of the jitter shielding circuit shown in Fig. 7;

图9是本发明时间参数测量系统具体实施方式的原理框图。Fig. 9 is a functional block diagram of a specific embodiment of the time parameter measurement system of the present invention.

具体实施方式 Detailed ways

下面结合附图对本发明的具体实施方式进行描述,以便本领域的技术人员更好地理解本发明。需要特别提醒注意的是,在以下的描述中,当已知功能和设计的详细描述也许会淡化本发明的主要内容时,这些描述在这里将被忽略。Specific embodiments of the present invention will be described below in conjunction with the accompanying drawings, so that those skilled in the art can better understand the present invention. It should be noted that in the following description, when detailed descriptions of known functions and designs may dilute the main content of the present invention, these descriptions will be omitted here.

实施例Example

一、通道电路单元1. Channel circuit unit

图3是本发明中通道电路单元一种具体实施方式原理图。Fig. 3 is a schematic diagram of a specific embodiment of the channel circuit unit in the present invention.

通道电路单元是时间参数测量系统的前端,在本实施例中,通道电路单元包括:输入接口电路、高速比较器、数据选择器和时间间隔产生电路。其功能为正确有效地将待测信号引入到时间参数测量系统,并且将待测信号转换为时间粗测单元、时间精测单元能够识别的脉冲信号RStart、RStop以及时间间隔开始信号Start和停止信号Stop。The channel circuit unit is the front end of the time parameter measurement system. In this embodiment, the channel circuit unit includes: an input interface circuit, a high-speed comparator, a data selector and a time interval generation circuit. Its function is to correctly and effectively introduce the signal to be measured into the time parameter measurement system, and convert the signal to be measured into pulse signals RStart, RStop, and time interval start signals Start and stop signals that can be recognized by the time rough measurement unit and the time fine measurement unit Stop.

如图3所示,在本实施中,待测信号IN连接到输入接口电路,在输入接口电路中,串联到地的电阻R1、R2对待测信号IN进行分压,继电器RELAY1选择待测信号IN直接或选择分压信号送入高速比较器中。然后将这个信号连接到比较器A1和A2的正端+,在比较器A1、A2的负端-分别接比较电平VrefA和VrefB。As shown in Figure 3, in this implementation, the signal IN to be tested is connected to the input interface circuit. In the input interface circuit, the resistors R1 and R2 connected in series to the ground divide the voltage of the signal IN to be tested, and the relay RELAY1 selects the signal IN to be tested. Directly or select the divided voltage signal into the high-speed comparator. Then connect this signal to the positive terminals + of the comparators A1 and A2, and connect the negative terminals - of the comparators A1 and A2 to the comparison levels VrefA and VrefB respectively.

数据选择器通过控制信号SelStr和SelStop选择比较器A1、A2的正向输出还是反向输出,选择后的信号RStart、RStop送入时间间隔信号产生电路产生时间间隔开始信号Start和停止信号Stop。The data selector selects the positive output or the reverse output of the comparators A1 and A2 through the control signals SelStr and SelStop, and the selected signals RStart and RStop are sent to the time interval signal generation circuit to generate the time interval start signal Start and stop signal Stop.

时间间隔信号产生电路包括两个D触发器D1和D2,D1的数据D端接高电平Vcc,时钟脉冲CP端接脉冲信号RStart,Q端输出时间间隔开始信号Start;D2的数据D端接D1的Q端,时钟脉冲CP端接脉冲信号RStop,Q端输出时间间隔停止信号Stop。D1和D2的复位端R均接来自主控单元的复位信号RESET。The time interval signal generation circuit includes two D flip-flops D1 and D2. The data D terminal of D1 is connected to high level Vcc, the clock pulse CP is connected to the pulse signal RStart, and the Q terminal outputs the time interval start signal Start; the data D terminal of D2 is connected to On the Q terminal of D1, the clock pulse CP is connected to the pulse signal RStop, and the Q terminal outputs the time interval stop signal Stop. The reset terminals R of D1 and D2 are both connected to the reset signal RESET from the main control unit.

通道电路单元是这样工作的:The channel circuit unit works like this:

以测量待测信号IN上升时间为例,首先继电器RELAY1选择待测信号IN的电压测量范围。然后设定比较电平VrefA为待测信号IN分压幅度的10%、比较电平VrefB为待测信号IN幅度的90%。同时,主控单元开始控制信号SelStr和停止控制信号SelStop,使数据选择器选择比较器A1、A2的正向输出。最后,主控单元发出复位信号RESET。此时,在D触发器D1出现上升沿在前的时间间隔开始信号Start,时间间隔开始信号Start变为高电平后,D触发器D2出现上升沿在后的时间间隔停止信号Stop,且数据选择器输出脉冲信号RStart和RStop。在待测信号IN上升沿缓慢时,通道电路单元中的比较器A1和A2输出会存在抖动,导致其输出脉冲信号RStart和RStop出现抖动现象。Taking the measurement of the rise time of the signal IN to be tested as an example, the relay RELAY1 first selects the voltage measurement range of the signal IN to be tested. Then set the comparison level VrefA to be 10% of the divided voltage amplitude of the signal IN to be tested, and set the comparison level VrefB to be 90% of the amplitude of the signal IN to be tested. At the same time, the main control unit starts to control the signal SelStr and stops the control signal SelStop, so that the data selector selects the positive output of the comparators A1 and A2. Finally, the main control unit sends out a reset signal RESET. At this time, after D flip-flop D1 appears the time interval start signal Start with the rising edge before it, and after the time interval start signal Start becomes high level, D flip-flop D2 appears the time interval stop signal Stop after the rising edge, and the data The selector outputs pulse signals RStart and RStop. When the rising edge of the signal IN to be tested is slow, there will be jitter in the output of the comparators A1 and A2 in the channel circuit unit, resulting in jitter in the output pulse signals RStart and RStop.

二、时间精测单元2. Time precision measurement unit

图4是本发明中时间精测单元的一种具体实施方式。图5是相应的工作时序图。Fig. 4 is a specific implementation of the precise time measuring unit in the present invention. Figure 5 is the corresponding working sequence diagram.

在本实施例中,如图4所示,时间精测单元由多级延迟线和校准单元组成。多级延迟线是由7条相同结构的延迟线和6个互联线组成,延迟线是由延迟单元L1-L68和D触发器DFFE1-DFFE68组成。校准单元是由2条相同结构的延迟线和1个互联线组成。In this embodiment, as shown in FIG. 4 , the precise time measurement unit is composed of a multi-stage delay line and a calibration unit. The multi-stage delay line is composed of 7 delay lines with the same structure and 6 interconnection lines, and the delay line is composed of delay units L 1 -L 68 and D flip-flops DFFE1-DFFE68. The calibration unit is composed of 2 delay lines with the same structure and 1 interconnection line.

在延迟线结构中,延迟单元L1-L68依次串行连接,来自上一级的时间间隔信号Start接第一个延迟单元,如果延迟线为第一级,则接通道电路单元输出的时间间隔开始信号Start,,然后依次在多级延迟线上传输。每级延迟线的输出依次接到D触发器DFFE1D-FFE68的数据端。时间间隔停止信号Stop连接所有D触发器的时钟端。所有D触发器的复位端R都接复位信号RESET,这样就可以由D触发器去锁存延时单元的输出状态,即A_Q1……A_Q68、B_Q1……B_Q68、……、G_Q1……G_Q68。然后将输出送入十进制编码器中就可以得到时间间隔开始信号Start和停止信号Stop之间总共传输的延迟单元个数。编码器输出结果为N,单个延迟单元的延迟时间为t,即得到时间间隔TxIn the delay line structure, the delay units L 1 -L 68 are sequentially connected in series, and the time interval signal Start from the upper stage is connected to the first delay unit. If the delay line is the first stage, then it is connected to the time output by the channel circuit unit The interval start signal Start, is then sequentially transmitted on the multi-stage delay line. The output of each delay line is connected to the data end of D flip-flop DFFE1D-FFE68 in turn. The time interval stop signal Stop is connected to the clock terminals of all D flip-flops. The reset terminal R of all D flip-flops is connected to the reset signal RESET, so that the output state of the delay unit can be latched by the D flip-flop, that is, A_Q1...A_Q68, B_Q1...B_Q68,..., G_Q1...G_Q68. Then send the output to the decimal encoder to obtain the total number of delay units transmitted between the time interval start signal Start and the stop signal Stop. The output result of the encoder is N, and the delay time of a single delay unit is t, that is, the time interval T x is obtained:

Tx=N*t    (2)T x =N*t (2)

随着大规模可编程逻辑器件CPLD和FPGA的诞生,为图4示的测量电路提供了很好的物理设计平台。在FPGA中构建延迟线需要满足以下两个条件:一、要求延迟单元的延迟时间t非常小,且非常稳定;二、在FPGA内部必须有这样一种特殊结构,便于构建延迟线。在本实施例中,选定Altera公司的ACEX1K50系列的FPGA,用以实现图4中所示的多级延迟线和校准单元。With the birth of large-scale programmable logic devices CPLD and FPGA, it provides a good physical design platform for the measurement circuit shown in Figure 4. To build a delay line in FPGA needs to meet the following two conditions: first, the delay time t of the delay unit is required to be very small and very stable; second, there must be such a special structure inside the FPGA to facilitate the construction of the delay line. In this embodiment, Altera's ACEX1K50 series FPGA is selected to realize the multi-stage delay line and calibration unit shown in FIG. 4 .

常见情况下,该FPGA内部延迟线的长度是有限的,查找器件手册得知最大为72级,单级延迟单元的延迟时间t为125ps左右。可知最大的测量时间间隔为125ps×72=9ns。在本发明中,利用FPGA中的互联线将多个这样的单条延迟线级联起来,就可以扩展时间间隔的动态测量范围。Under normal circumstances, the length of the internal delay line of the FPGA is limited. According to the device manual, the maximum is 72 stages, and the delay time t of a single-stage delay unit is about 125ps. It can be seen that the maximum measurement time interval is 125ps*72=9ns. In the present invention, the dynamic measurement range of the time interval can be expanded by cascading a plurality of such single delay lines by using interconnection lines in the FPGA.

在本实施例中,如图4所示。上一级的单条延迟线的输出通过互联线连接到下一级的单条延迟线的输入,依次级联起来,总共形成了7条单条延迟线和6个互联线构成的多级延迟线结构。In this embodiment, as shown in FIG. 4 . The output of the single delay line of the upper stage is connected to the input of the single delay line of the next stage through the interconnection line, and they are cascaded in turn to form a multi-stage delay line structure composed of 7 single delay lines and 6 interconnection lines.

图5是多级延迟线的工作时序,D1-D476是延迟线的各个延迟单元的输出,通过时间间隔停止信号Stop信号去锁存延迟线上延迟单元的传输状态,然后将此传输状态通过十进制编码器编码输出。编码器输出结果为N,延迟单元的延迟时间为t,互联线的延迟时间为tΔL,则时间间隔Tx为:Figure 5 is the working sequence of the multi-stage delay line, D 1 -D 476 is the output of each delay unit of the delay line, the transmission state of the delay unit on the delay line is latched by the time interval stop signal Stop signal, and then the transmission state The output is encoded by a decimal encoder. The output result of the encoder is N, the delay time of the delay unit is t, and the delay time of the interconnection line is t ΔL , then the time interval T x is:

Tx=N*t+N1*tΔL(3)T x =N*t+N 1 *t ΔL (3)

且N1为:and N1 is:

NN 11 == ROUNDROUND (( NN NN 22 )) ,, -- -- -- (( 44 ))

其中,ROUND表示取整运算,N2表示单条延迟线的延迟单元个数。将公式(4)带入公式(3)中,则Tx为:Among them, ROUND represents a rounding operation, and N 2 represents the number of delay units of a single delay line. Bring formula (4) into formula (3), then T x is:

TT xx == NN ** tt ++ ROUNDROUND (( NN NN 22 )) ** tt ΔLΔL -- -- -- (( 55 ))

在本实施例中,时间精测单元:N2=68,N1=6,t=125ps,测量范围:0ns-50ns,测量分辨率125ps。In this embodiment, the time precision measurement unit: N 2 =68, N 1 =6, t=125ps, measurement range: 0ns-50ns, measurement resolution 125ps.

同时,由于FPGA功耗、工作温度和使用资源的大小的不同,多级延迟线中的延迟单元的延迟时间t和互联线的延迟时间tΔL会出现不同的大小。所以,在本实施例中,为多级延迟线提供了一个校准单元,用以实时测量t和tΔL的大小,校准时间精测单元的测量性能。At the same time, due to differences in FPGA power consumption, operating temperature, and resources used, the delay time t of the delay units in the multi-stage delay line and the delay time tΔL of the interconnection lines will vary. Therefore, in this embodiment, a calibration unit is provided for the multi-stage delay line to measure the magnitudes of t and tΔL in real time, and to calibrate the measurement performance of the time precision measurement unit.

延迟线校准单元原理图如图4所示。The schematic diagram of the delay line calibration unit is shown in Figure 4.

在本实施例中,校准单元由2条延迟线、1个互联线和编码器2组成。In this embodiment, the calibration unit is composed of 2 delay lines, 1 interconnection line and encoder 2 .

校准单元工作原理为:假设单条延迟线的延迟时间大约为tL。首先,通过一个标准仪器产生前后两个时间间隔信号SStart和SStop,设此时的时间间隔为Tx1,且Tx1<tL。时间间隔开始信号SStart从延迟线1输入,时间间隔停止信号SStop锁存延迟线1和延迟线2中延迟单元的输出状态,然后经过十进制编码器得到输出结果Ncal-1。同理,再次通过标准仪器产生两个时间间隔信号SStart和SStop,此时的时间间隔为Tx2,且tL<Tx2<2*tL,同理得到输出结果Ncal-2The working principle of the calibration unit is as follows: it is assumed that the delay time of a single delay line is approximately t L . First, two time interval signals SStart and SStop are generated by a standard instrument, and the time interval at this time is T x1 , and T x1 <t L . The time interval start signal SStart is input from the delay line 1, and the time interval stop signal SStop latches the output states of the delay units in the delay line 1 and delay line 2, and then the output result N cal-1 is obtained through the decimal encoder. Similarly, two time interval signals SStart and SSstop are generated by the standard instrument again, the time interval at this time is T x2 , and t L <T x2 <2*t L , and the output result N cal-2 is obtained similarly.

由公式(3)可知:It can be seen from the formula (3):

TT xx 11 == NN calcal -- 11 ** tt TT xx 22 == NN calcal -- 22 ** tt ++ tt &Delta;L&Delta;L -- -- -- (( 66 ))

则t和tΔLThen t and t ΔL :

tt == TT xx 11 NN calcal -- 11 tt &Delta;L&Delta;L == TT xx 22 -- NN calcal -- 22 ** TT xx 11 NN calcal -- 11 -- -- -- (( 77 ))

此时通过公式(7)可以测量出系统工作环境中的t和tΔL的大小,将t和tΔL代入公式(5)中,达到了校准时间精测单元的目的。At this time, t and t ΔL in the system working environment can be measured through formula (7), and t and t ΔL are substituted into formula (5), achieving the purpose of calibrating the time precision measurement unit.

三、时间粗测单元3. Rough time measurement unit

在本实施例中,如图3所示,脉冲信号RStart和RStop是由比较器A1、A2输出经过数据选择器得到的。当待测信号上升沿较陡峭,比较器A1、A2输出脉冲信号RStart和RStop没有抖动时,可以直接利用脉冲信号RStart和RStop去触发D触发器D1和D2产生时间间隔开始信号Start和停止信号Stop。当待测信号上升沿较缓慢,比较器A1、A2输出脉冲信号RStart和RStop存在抖动时,如果复位信号RESET对D触发器D1和D2进行复位时,脉冲信号RStart处于高电平或下降沿抖动期间,下降沿抖动将使D触发器D1产生从低电平到高电平的翻转,这样会将下降沿错误地判断为上升沿,造成时间参数测量错误。这时就不能直接利用脉冲信号RStart和RStop去触发D触发器产生时间间隔开始信号Start Start和停止信号Stop。In this embodiment, as shown in FIG. 3 , the pulse signals RStart and RStop are obtained from the outputs of the comparators A1 and A2 through the data selector. When the rising edge of the signal to be tested is relatively steep and the output pulse signals RStart and RStop of the comparators A1 and A2 have no jitter, the pulse signals RStart and RStop can be directly used to trigger D flip-flops D1 and D2 to generate the time interval start signal Start and stop signal Stop . When the rising edge of the signal to be tested is relatively slow and the output pulse signals RStart and RStop of the comparators A1 and A2 jitter, if the reset signal RESET resets the D flip-flops D1 and D2, the pulse signal RStart is at a high level or the falling edge jitters During the period, the falling edge jitter will cause the D flip-flop D1 to flip from low level to high level, which will mistakenly judge the falling edge as a rising edge, resulting in an error in the measurement of time parameters. At this time, the pulse signals RStart and RStop cannot be directly used to trigger the D flip-flop to generate the time interval start signal Start Start and stop signal Stop.

其中,时间粗测单元也是在上述时间精测单元的FPGA中实现的。Wherein, the coarse time measurement unit is also implemented in the FPGA of the fine time measurement unit.

图6是时间粗测单元一种具体实施方式原理图。Fig. 6 is a schematic diagram of a specific implementation of the rough time measurement unit.

如图6所示,时间粗测单元包括含抖动屏蔽电路和时间间隔测量单元,在本实施例中,为提高分辨率,计数时间间隔测量单元包括两个计数器,即计数器1和2以及一异或门。其中,计数器1和2的时钟端CP分别接时钟信号

Figure BDA0000069763560000082
和CLK,使能端EN接异或门输出,且
Figure BDA0000069763560000083
和CLK相位相差180°,频率均为125MHz,则测量分辨力为4ns。在计数器时钟频率不变的情况下,分辨力提高了一倍。As shown in Figure 6, the time rough measurement unit includes a jitter shielding circuit and a time interval measurement unit. In this embodiment, in order to improve the resolution, the counting time interval measurement unit includes two counters, namely counters 1 and 2 and a different OR gate. Among them, the clock terminals CP of counters 1 and 2 are respectively connected to the clock signal
Figure BDA0000069763560000082
and CLK, the enable terminal EN is connected to the XOR gate output, and
Figure BDA0000069763560000083
The phase difference with CLK is 180°, and the frequency is 125MHz, so the measurement resolution is 4ns. Under the condition that the clock frequency of the counter remains unchanged, the resolution is doubled.

时间粗测单元是这样工作的:The coarse time measurement unit works like this:

如图7和图8所示,首先,给定同步复位信号TRI一个低电平,同步D触发器5输出为低,此时,两个去抖动D触发器3、4的输出Qstart和Qstop,两个JK触发器1、2的输出JStart和JStop为低;当给定同步复位信号为高电平时,使能同步D触发器5和两个JK触发器1、2。如果通道电路单元中数据选择器输出的脉冲RStart和RStop同时为低电平时,触发同步D触发器5,输出高电平,使能两个去抖动D触发器3、4。As shown in Fig. 7 and Fig. 8, firstly, given a low level of the synchronous reset signal TRI, the output of the synchronous D flip-flop 5 is low, at this time, the outputs Qstart and Qstop of the two debounce D flip-flops 3 and 4, The outputs JStart and JStop of the two JK flip-flops 1 and 2 are low; when the given synchronous reset signal is high, the synchronous D flip-flop 5 and the two JK flip-flops 1 and 2 are enabled. If the pulses RStart and RStop output by the data selector in the channel circuit unit are at low level at the same time, the synchronous D flip-flop 5 is triggered and outputs high level, enabling the two debounce D flip-flops 3 and 4 .

同步D触发器5和同步复位信号TRI,使两个去抖动D触发器D在脉冲信号RStart和RStop同时为低电平有效,开始工作,使两个JK触发器的输出JStart和JStop同时为低,使其状态保持一致,这样保证了整个抖动屏蔽电路时序为同步的、一致的。The synchronous D flip-flop 5 and the synchronous reset signal TRI make the two debounce D flip-flops D active at low level at the same time when the pulse signals RStart and RStop start to work, so that the output JStart and JStop of the two JK flip-flops are low at the same time , to keep its state consistent, thus ensuring that the timing of the entire jitter shielding circuit is synchronous and consistent.

脉冲信号RStart和RStop经过抖动屏蔽电路之后还原成没有抖动的信号JStart和JStop。然后在时间间隔信号产生电路中,通过复位信号RESET,产生时间间隔开始信号JJStart和停止信号JJStop。信号JJStart和JJStop在异或门中异或后输出CNTEN信号,在计数器1、2中计数,从而测量出时间间隔Tx。假设计数器1和计数器2的测量结果分别为CNT1和CNT2,则时间间隔Tx为:The pulse signals RStart and RStop are restored to signals JStart and JStop without jitter after passing through the jitter shielding circuit. Then, in the time interval signal generating circuit, the time interval start signal JJStart and the stop signal JJStop are generated through the reset signal RESET. Signals JJStart and JJStop output CNTEN signal after exclusive OR in the exclusive OR gate, and count in counters 1 and 2 to measure the time interval T x . Assuming that the measurement results of counter 1 and counter 2 are CNT1 and CNT2 respectively, the time interval Tx is:

TT xx == CNTCNT 11 ++ CNTCNT 22 22 ** TT -- -- -- (( 88 ))

其中,T为计数器的计数脉冲CLK周期。Among them, T is the counting pulse CLK period of the counter.

图7是抖动屏蔽电路一种具体实施方式原理图。Fig. 7 is a schematic diagram of a specific embodiment of the jitter shielding circuit.

如图7所示,抖动屏蔽电路包含去抖动电路、波形恢复电路和时间间隔信号产生电路。As shown in Figure 7, the jitter shielding circuit includes a de-jitter circuit, a waveform recovery circuit and a time interval signal generation circuit.

如图7所示,去抖动电路包括一个同步D触发器即D触发器5、两个去抖动D触发器即D触发器3、4、两个非门和两个可编程延迟模块。脉冲信号RStart和RStop经过非与门后接到同步D触发器的CP端,复位R端接同步复位信号TRI,数据D端接高电平;同时脉冲信号RStart和RStop输入各自的去抖动D触发器3、4的时钟CP端,输出Q端通过各自的可编程延迟模块延迟ΔtL1、ΔtL2时间后,分别经过一个非门后,输入到去抖动D触发器3、4的复位R端,两个去抖动D触发器3、4的数据D端都接同步D触发器的Q端输出,去抖动D触发器3、4的输出分别用QStart,QStop表示,可编程延迟模块的延迟时间ΔtL1、ΔtL2应分别大于各自脉冲信号RStart和RStop的边沿抖动时间Δtstart、ΔtstopAs shown in FIG. 7 , the debounce circuit includes a synchronous D flip-flop (D flip-flop 5 ), two debounce D flip-flops ( D flip-flops 3 , 4 ), two NOT gates and two programmable delay modules. The pulse signals RStart and RStop are connected to the CP terminal of the synchronous D flip-flop after passing through the non-AND gate, the reset R terminal is connected to the synchronous reset signal TRI, and the data D terminal is connected to high level; at the same time, the pulse signals RStart and RStop input their respective debounce D triggers The clock CP terminals of devices 3 and 4, the output Q terminals are delayed by Δt L1 and Δt L2 through their respective programmable delay modules, and then input to the reset R terminals of debounce D flip-flops 3 and 4 after passing through a NOT gate respectively. The data D terminals of the two debounce D flip-flops 3 and 4 are connected to the Q terminal output of the synchronous D flip-flop, and the outputs of the debounce D flip-flops 3 and 4 are represented by Q Start and Q Stop respectively, and the delay of the programmable delay module The times Δt L1 , Δt L2 should be greater than the edge jitter times Δt start , Δt stop of the respective pulse signals RStart and RStop respectively.

如图7所示,波形恢复电路包括两个JK触发器,即JK触发器1、2,两个JK触发器的J、K端均接高电平Vcc,复位R端接同步复位信号TRI,两个JK触发器的时钟脉冲CP端分别与两个去抖动D触发器3、4输出Q端连接。两个JK触发器的输出分别用JStart,JStop表示。As shown in Figure 7, the waveform recovery circuit includes two JK flip-flops, namely JK flip-flops 1 and 2, the J and K terminals of the two JK flip-flops are connected to high-level Vcc, and the reset R terminal is connected to the synchronous reset signal TRI. The clock pulse CP terminals of the two JK flip-flops are respectively connected to the output Q terminals of the two dejittering D flip-flops 3 and 4 . The outputs of the two JK flip-flops are represented by JStart and JStop respectively.

如图7所示,时间间隔信号产生电路与图3通道电路单元中的时间间隔信号产生电路相同,包括两个D触发器6、7,D触发器6的数据D端接高电平Vcc,时钟脉冲CP端接信号JStart,Q端输出时间间隔开始信号JJStart;D触发器7的D端接D触发器6的Q端,时钟脉冲端CP接信号JStop,Q端输出时间间隔停止信号JJStop。D触发器1、2的复位端R均接复位信号RESET。As shown in Figure 7, the time interval signal generation circuit is the same as the time interval signal generation circuit in the channel circuit unit of Figure 3, including two D flip-flops 6, 7, the data D terminal of the D flip-flop 6 is connected to a high level Vcc, The clock pulse CP is connected to the signal JStart, and the Q terminal outputs the time interval start signal JJStart; the D terminal of the D flip-flop 7 is connected to the Q terminal of the D flip-flop 6, the clock pulse terminal CP is connected to the signal JStop, and the Q terminal outputs the time interval stop signal JJStop. The reset terminals R of the D flip-flops 1 and 2 are both connected to the reset signal RESET.

图8是图7所抖动屏蔽电路的工作时序图。FIG. 8 is a working timing diagram of the jitter shielding circuit shown in FIG. 7 .

抖动屏蔽电路是这样工作的:The jitter shield circuit works like this:

消除脉冲信号RStart和RStop抖动的原理类似,以脉冲信号RStart为例,如图8所示,脉冲信号RStart的抖动时间为Δtstart,当脉冲信号RStart到来时,去抖动D触发器3的数据D端为进行时序同步后的同步D触发器5输出的高电平。当去抖动D触发器3的时钟脉冲CP端接收到脉冲RStart的上升沿时,去抖动D触发器3的输出端Q输出信号Qstart为高电平,信号Qstart经可编程的延迟模块1延迟一段时间ΔtL1后输出,延迟ΔtL1为预先主控单元设定的大小,且延迟时间ΔtL1大于脉冲RStart的边沿抖动时间Δtstart。脉冲Qstart通过非门取反后复位去抖动D触发器3,此时去抖动D触发器3输出脉冲Qstart等于低电平,直到脉冲RStart信号的上升沿再此到来时,再次触发去抖动D触发器3,去抖动D触发器3输出脉冲Qstart又变为高电平,而后脉冲Qstart又经可编程的延迟模块1延迟一段时间ΔtL1后输出。然后通过非门取反后复位去抖动D触发器3,此时去抖动D触发器3再次输出脉冲Qstart等于低电平,于是就把脉冲RStart转换为脉冲Qstart。且脉冲Qstart的高电平宽度等于ΔtL1The principle of eliminating the jitter of the pulse signal RStart and RStop is similar. Taking the pulse signal RStart as an example, as shown in Figure 8, the jitter time of the pulse signal RStart is Δt start . When the pulse signal RStart arrives, the data D of the debounce D flip-flop 3 The terminal is the high level output by the synchronous D flip-flop 5 after timing synchronization. When the clock pulse CP terminal of the debounce D flip-flop 3 receives the rising edge of the pulse RStart, the output terminal Q of the debounce D flip-flop 3 outputs the signal Q start as a high level, and the signal Q start passes through the programmable delay module 1 The output is delayed for a period of time Δt L1 , the delay Δt L1 is the value set by the main control unit in advance, and the delay time Δt L1 is greater than the edge jitter time Δt start of the pulse RStart. The pulse Q start resets the debounce D flip-flop 3 after passing through the negation of the NOT gate. At this time, the debounce D flip-flop 3 outputs the pulse Q start equal to the low level, until the rising edge of the pulse RStart signal arrives, the debounce is triggered again D flip-flop 3, the output pulse Q start of the debounced D flip-flop 3 becomes high level again, and then the pulse Q start is delayed by the programmable delay module 1 for a period of time Δt L1 before being output. Then, the debounce D flip-flop 3 is reset after being inverted by the NOT gate. At this time, the debounce D flip-flop 3 outputs a pulse Q start equal to low level again, so the pulse RStart is converted into a pulse Q start . And the high level width of the pulse Q start is equal to Δt L1 .

由于脉冲Qstart接到JK触发器1的时钟端CP,且JK触发器1的数据端J和K均接固定高电平。由JK触发器的工作原理可以知道,当来一个上升沿时,JK触发器的输出就从状态0翻转到状态1,或从状态1翻转到状态0。这样JK触发器就将信号Qstart转换为了信号JStart。且可知JStart信号为RStart信号去掉抖动之后还原的信号。Since the pulse Q start is connected to the clock terminal CP of the JK flip-flop 1, and the data terminals J and K of the JK flip-flop 1 are both connected to a fixed high level. It can be known from the working principle of the JK flip-flop that when there is a rising edge, the output of the JK flip-flop flips from state 0 to state 1, or from state 1 to state 0. In this way, the JK flip-flop converts the signal Q start into the signal JStart. And it can be known that the JStart signal is the restored signal after the jitter is removed from the RStart signal.

图9是时间参数测量系统具体实施方式的原理框图。Fig. 9 is a functional block diagram of a specific embodiment of the time parameter measurement system.

如图9所示,在本实施例中,本发明时间参数测量系统包括主控单元、通道电路单元、时间精测单元和时间粗测单元。As shown in FIG. 9 , in this embodiment, the time parameter measurement system of the present invention includes a main control unit, a channel circuit unit, a precise time measurement unit and a rough time measurement unit.

主控单元发出控制命令,通道电路单元将待测信号转换为时间间隔开始信号Start和停止信号Stop,以及比较器产生的脉冲经数据选择器后的脉冲信号RStart和RStop。The main control unit issues a control command, and the channel circuit unit converts the signal to be tested into the time interval start signal Start and stop signal Stop, and the pulse signals RStart and RStop after the pulse generated by the comparator passes through the data selector.

在测量范围0ns-50ns时,使用时间精测单元进行测量,测量时间间隔开始信号Start和停止信号Stop之间的时间间隔。最后将测量结果从SPI接口传输给主控单元。In the measurement range of 0ns-50ns, the time precision measurement unit is used for measurement, and the time interval between the time interval start signal Start and the stop signal Stop is measured. Finally, the measurement results are transmitted from the SPI interface to the main control unit.

在测量范围50ns-1ms时,使用时间粗测单元进行测量。将比较器输出经过数据选择器后的脉冲RStart和RStop经过抖动屏蔽电路,去掉信号抖动,然后送入计数器进行测量。最后将测量结果从SPI接口传输给主控单元。When the measurement range is 50ns-1ms, the time rough measurement unit is used for measurement. Pass the pulses RStart and RStop output by the comparator through the data selector through the jitter shielding circuit to remove the signal jitter, and then send them to the counter for measurement. Finally, the measurement results are transmitted from the SPI interface to the main control unit.

来自主控单元的控制信号在控制逻辑电路中产生各种控制信号,包括同步复位信号TRI、复位信号RESET以及通道电路单元、时间精测单元和时间粗测单元的控制信号等等。The control signal from the main control unit generates various control signals in the control logic circuit, including the synchronous reset signal TRI, the reset signal RESET, and the control signals of the channel circuit unit, the time fine measurement unit and the time rough measurement unit, etc.

本实施例中,本发明数字集成电路时间参数测量系统分别提供时间精测单元和时间粗测单元用于测量。不仅解决了时间参数测量分辨率提高的困难,而且解决了比较器输出信号抖动,时间参数测量系统测量带宽受限的缺陷。测试结果证明该系统测试分辨率、重复性和稳定性都满足数字集成电路时间参数测试系统的各项指标要求,实现的测量指标为:In this embodiment, the digital integrated circuit time parameter measurement system of the present invention provides a time fine measurement unit and a time rough measurement unit for measurement. It not only solves the difficulty of improving the resolution of the time parameter measurement, but also solves the defects of the output signal jitter of the comparator and the limitation of the measurement bandwidth of the time parameter measurement system. The test results prove that the test resolution, repeatability and stability of the system meet the requirements of various indicators of the digital integrated circuit time parameter test system, and the achieved measurement indicators are:

1、时间精测单元:动态测量范围0ns-50ns,分辨率为125ps,测试精度500ps±1%。1. Time precision measurement unit: the dynamic measurement range is 0ns-50ns, the resolution is 125ps, and the test accuracy is 500ps±1%.

2、时间粗测单元:动态测量范围50ns-1ms,分辨率为4ns,测试精度4ns±0.1%。2. Time rough measurement unit: dynamic measurement range 50ns-1ms, resolution 4ns, test accuracy 4ns±0.1%.

同时,本发明时间参数测量系统在理论研究、测试科学与工程、医疗技术与科学、通信与导航、调制域分析仪等各个领域也具有重要的应用价值和发展意义。At the same time, the time parameter measurement system of the present invention also has important application value and development significance in various fields such as theoretical research, test science and engineering, medical technology and science, communication and navigation, and modulation domain analyzer.

尽管上面对本发明说明性的具体实施方式进行了描述,以便于本技术领域的技术人员理解本发明,但应该清楚,本发明不限于具体实施方式的范围,对本技术领域的普通技术人员来讲,只要各种变化在所附的权利要求限定和确定的本发明的精神和范围内,这些变化是显而易见的,一切利用本发明构思的发明创造均在保护之列。Although the illustrative specific embodiments of the present invention have been described above, so that those skilled in the art can understand the present invention, it should be clear that the present invention is not limited to the scope of the specific embodiments. For those of ordinary skill in the art, As long as various changes are within the spirit and scope of the present invention defined and determined by the appended claims, these changes are obvious, and all inventions and creations using the concept of the present invention are included in the protection list.

Claims (3)

1. time parameter measuring system comprises:
One main control unit;
One channel circuit unit; Be used for measured signal is compared in the comparer of channel circuit unit; Output two pulse signals RStart and RStop; Simultaneously, under the control of main control unit, pulse signal RStart and the RStop time interval signal in the channel circuit unit produces in the circuit and converts time interval commencing signal Start and stop signal Stop into;
It is characterized in that also comprising:
One time accurate measurement unit, it is more precipitous to be used for the measured signal rising edge, and comparer is exported the measurement under the situation that does not have shake, is made up of multilevel delay line and scrambler;
Successively with many lag line formation multilevel delay connected in series lines, lag line comprises a plurality of delay cells and a plurality of d type flip flop through interconnection line; Time interval commencing signal Start from upper level connects first delay cell; If lag line is the first order; Then connect the time interval commencing signal Start of circuit unit output; After each delay cell postpones time interval commencing signal Start successively then, all be connected to a d type flip flop, the D end of each d type flip flop meets the time interval commencing signal Start after the delay units delay successively; The time clock CP end of each d type flip flop all meets time interval stop signal Stop, and its reset terminal R meets the reset signal RESET that main control unit sends;
The Q end output of the d type flip flop on each lag line is sent in the scrambler, and when time interval stop signal Stop arrived, the Q of each d type flip flop end output locking obtained representing time interval T xScrambler output N, the then time interval T of the delay cell number of interior time interval commencing signal Start process xFor:
T x = N * t + ROUND ( N N 2 ) * t &Delta;L ,
Wherein, ROUND representes rounding operation, N 2The delay cell number of expression single-stage passive delay, t Δ LBe the time delay of interconnection line;
One time bigness scale unit; It is slower to be used for the measured signal rising edge; There are the measurement under the situation of shaking in comparer output pulse signal RStart and RStop; Be made up of dither mask circuit and time interval measurement unit, the dither mask circuit comprises that debouncing circuit, waveform restoring circuit and time interval signal produce circuit;
Debouncing circuit comprises that two are removed to shake d type flip flop, two not gates, two programmable delay modules, a synchronous d type flip flop and a NAND gate;
Pulse signal RStart that comparer is exported in the channel circuit unit and RStop import the time clock CP end that removes to shake d type flip flop separately, and programmable delay module delay Δ t is separately passed through in two outputs of going to shake d type flip flop output Q end L1Δ t L2After, behind the door non-through one respectively, be input to the R end that resets separately, two are gone the data D that shakes d type flip flop to hold the Q end output that all connects synchronous d type flip flop, Δ t time delay of programmable delay module L1, Δ t L2Should be respectively greater than the edge shake time Δ t of pulse signal RStart and RStop separately Start,Δ t StopPulse signal RStart and RStop be through receiving synchronous d type flip flop time clock CP end behind the NAND gate, the R termination that resets of d type flip flop is from the synchronous reset signal TRI of main control unit, data D termination high level synchronously; Pulse signal RStart and RStop going separately shaken the signal Q after d type flip flop output goes to shake StartWith signal Q Stop
The waveform restoring circuit comprises two JK flip-flops; The J of two JK flip-flops, K end all connect high level; The R termination that resets synchronous reset signal TRI, the time clock CP of two JK flip-flops end remove to shake d type flip flop output Q end and are connected with two respectively, export the signal Q after going to shake StartWith signal Q StopRestoring signal JStart and signal JStop;
Time interval signal produces circuit and comprises two d type flip flops, the D termination high level Vcc of a d type flip flop, and time clock CP termination signal JStart, Q end output time is commencing signal JJStart at interval; The D termination signal JStart of another d type flip flop, clock pulse terminal CP meets signal JStop, and Q end output time is stop signal JJStop at interval; The equal welding system reset signal of the reset terminal R RESET of two d type flip flops;
The time interval measurement unit is used to measure the time interval T that rising edge is tandem time interval commencing signal JJStart, stop signal JJStop x
2. time parameter measuring system according to claim 1 is characterized in that also comprising:
One delay line calibration unit, the delay line calibration unit is made up of two lag lines, an interconnection line and a scrambler;
Produce former and later two time interval signals SStart and SStop through a reference instrument, the time interval of this moment is T X1, and T X1<t L, time interval commencing signal SStart is from lag line 1 input, and time interval stop signal SStop latchs the output state of delay cell in lag line 1 and the lag line 2, obtains exporting N as a result through decimal encoder then Cal-1In like manner, produce two time interval signal SStart and SStop through reference instrument once more, the time interval of this moment is T X2, and t L<T X2<2*t L, in like manner obtain exporting N as a result Cal-2, then, the t and t time delay of interconnection line time delay of delay cell Δ L:
t = T x 1 N cal - 1 t &Delta;L = T x 2 - N cal - 2 * T x 1 N cal - 1
T and t time delay of interconnection line time delay with delay cell Δ LThe substitution formula:
T x = N * t + ROUND ( N N 2 ) * t &Delta;L
Proofreaied and correct time interval T thereby reach X:, i.e. the purpose of smart time measuring unit.
3. time parameter measuring system according to claim 1; It is characterized in that; Described time interval measurement unit comprises two counters and an XOR gate; The clock end CP of two countings meets clock signal
Figure FDA0000069763550000033
and CLK respectively; Enable Pin EN connects XOR gate output, and
Figure FDA0000069763550000034
and CLK 180 ° of phasic differences mutually;
The output result of two counters is respectively CNT1 and CNT2, and then time interval Tx is:
T x = CNT 1 + CNT 2 2 * T
Wherein, T is the count pulse clk cycle of counter.
CN 201110166501 2011-06-21 2011-06-21 Time parameter measurement system Expired - Fee Related CN102346236B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110166501 CN102346236B (en) 2011-06-21 2011-06-21 Time parameter measurement system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110166501 CN102346236B (en) 2011-06-21 2011-06-21 Time parameter measurement system

Publications (2)

Publication Number Publication Date
CN102346236A true CN102346236A (en) 2012-02-08
CN102346236B CN102346236B (en) 2013-06-05

Family

ID=45545097

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110166501 Expired - Fee Related CN102346236B (en) 2011-06-21 2011-06-21 Time parameter measurement system

Country Status (1)

Country Link
CN (1) CN102346236B (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103227639A (en) * 2013-04-23 2013-07-31 南京邮电大学 Phase detection circuit for time digital converter
CN103257569A (en) * 2013-05-23 2013-08-21 龙芯中科技术有限公司 Circuit, method and system for time measurement
CN103809059A (en) * 2014-01-29 2014-05-21 浙江网新技术有限公司 Signal detection method and device
CN104714137A (en) * 2015-04-09 2015-06-17 广州北极瑞光电子科技有限公司 FPGA (Field Programmable Gate Array)-based measuring system and method for second signal delay time
CN106405238A (en) * 2016-08-17 2017-02-15 中国电子科技集团公司第四十研究所 Broadband modulation domain measuring system and method thereof
CN106526270A (en) * 2016-11-10 2017-03-22 上海华虹集成电路有限责任公司 Measurement system
CN106896309A (en) * 2015-12-17 2017-06-27 上海和辉光电有限公司 Signal processing apparatus and method, signal offset detection system and method
CN107589367A (en) * 2016-07-08 2018-01-16 三星电子株式会社 Clock jitter measuring circuit and method and the semiconductor device including the circuit
CN108120919A (en) * 2017-12-27 2018-06-05 北京华峰测控技术股份有限公司 A kind of integrated circuit time parameter test circuit and method
CN108828492A (en) * 2018-07-23 2018-11-16 中国船舶重工集团公司第七0九研究所 A kind of integrated circuit test system time measuring unit calibrating installation and method
CN109995359A (en) * 2019-04-10 2019-07-09 侯凤妹 Edge-triggered metastability observation system and its observation method
CN110175095A (en) * 2019-04-28 2019-08-27 南京大学 A kind of multi-functional FPGA coincidence measurement system of man-machine interactive and its measurement method
CN110632397A (en) * 2019-08-30 2019-12-31 深圳市华奥通通信技术有限公司 Signal analysis method and computer readable storage medium
CN111123085A (en) * 2019-11-19 2020-05-08 北京航天测控技术有限公司 Measuring method and circuit
CN111693785A (en) * 2020-05-14 2020-09-22 湖南毂梁微电子有限公司 Digital pulse signal width measuring circuit and measuring method
CN113917309A (en) * 2021-08-24 2022-01-11 北京电子工程总体研究所 Method and system for detecting whether tooling for measuring delay time of circuit board is qualified

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0650256A2 (en) * 1990-01-25 1995-04-26 Nippondenso Co., Ltd. Apparatus for producing an indication of a time difference
CN1214478A (en) * 1997-10-15 1999-04-21 西安电子科技大学 Measurement equipment and method for quantization delay of time interval
CN1696845A (en) * 2005-05-13 2005-11-16 清华大学 Method and device for measuring time interval by two-stage cascaded delay line method
CN1862234A (en) * 2006-04-18 2006-11-15 西安电子科技大学 Method for testing time interval and frequency base on time-space relation
CN1940777A (en) * 2005-06-22 2007-04-04 阿米特克公司 High resolution time interval measurement apparatus and method
CN101520640A (en) * 2008-11-08 2009-09-02 中国工程物理研究院流体物理研究所 Time interval measuring instrument based on FPGA
CN101976036A (en) * 2010-07-30 2011-02-16 西安电子科技大学 Short interval measurement method based on special programmable input and output delay unit
CN102073268A (en) * 2009-11-24 2011-05-25 华东光电集成器件研究所 High-precision pulse time interval measurement circuit

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0650256A2 (en) * 1990-01-25 1995-04-26 Nippondenso Co., Ltd. Apparatus for producing an indication of a time difference
CN1214478A (en) * 1997-10-15 1999-04-21 西安电子科技大学 Measurement equipment and method for quantization delay of time interval
CN1696845A (en) * 2005-05-13 2005-11-16 清华大学 Method and device for measuring time interval by two-stage cascaded delay line method
CN1940777A (en) * 2005-06-22 2007-04-04 阿米特克公司 High resolution time interval measurement apparatus and method
CN1862234A (en) * 2006-04-18 2006-11-15 西安电子科技大学 Method for testing time interval and frequency base on time-space relation
CN101520640A (en) * 2008-11-08 2009-09-02 中国工程物理研究院流体物理研究所 Time interval measuring instrument based on FPGA
CN102073268A (en) * 2009-11-24 2011-05-25 华东光电集成器件研究所 High-precision pulse time interval measurement circuit
CN101976036A (en) * 2010-07-30 2011-02-16 西安电子科技大学 Short interval measurement method based on special programmable input and output delay unit

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
卢祥弘等: "基于FPGA的恒温晶振频率校准系统的设计", 《电子技术应用》, no. 7, 31 July 2010 (2010-07-31), pages 101 - 104 *
张延等: "高精度时间间隔测量技术与方法", 《天文学进展》, vol. 24, no. 1, 31 March 2006 (2006-03-31), pages 1 - 14 *
杜保强等: "基于延时复用技术的短时间间隔测量方法", 《天津大学学报》, vol. 43, no. 1, 31 January 2010 (2010-01-31), pages 77 - 83 *
辛明等: "提高时间参数量化精度的方法", 《电子信息对抗技术》, vol. 21, no. 5, 30 September 2006 (2006-09-30), pages 22 - 24 *
黄宁: "基于虚拟仪器的多通道时间间隔测量仪的研究与设计", 《中国优秀硕士学位论文全文数据库》, 31 October 2008 (2008-10-31), pages 6 - 18 *

Cited By (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103227639A (en) * 2013-04-23 2013-07-31 南京邮电大学 Phase detection circuit for time digital converter
CN103227639B (en) * 2013-04-23 2016-01-20 南京邮电大学 A kind of phase detecting circuit for time-to-digit converter
CN103257569B (en) * 2013-05-23 2015-10-21 龙芯中科技术有限公司 Time measuring circuit, method and system
CN103257569A (en) * 2013-05-23 2013-08-21 龙芯中科技术有限公司 Circuit, method and system for time measurement
CN103809059B (en) * 2014-01-29 2017-04-05 中国神华能源股份有限公司 A kind of signal detecting method and device
CN103809059A (en) * 2014-01-29 2014-05-21 浙江网新技术有限公司 Signal detection method and device
CN104714137A (en) * 2015-04-09 2015-06-17 广州北极瑞光电子科技有限公司 FPGA (Field Programmable Gate Array)-based measuring system and method for second signal delay time
CN106896309B (en) * 2015-12-17 2019-08-06 上海和辉光电有限公司 Signal processing apparatus and method, signal offset detection system and method
CN106896309A (en) * 2015-12-17 2017-06-27 上海和辉光电有限公司 Signal processing apparatus and method, signal offset detection system and method
CN107589367A (en) * 2016-07-08 2018-01-16 三星电子株式会社 Clock jitter measuring circuit and method and the semiconductor device including the circuit
CN106405238B (en) * 2016-08-17 2020-09-18 中国电子科技集团公司第四十一研究所 A wideband modulation domain measurement system and method thereof
WO2018032644A1 (en) * 2016-08-17 2018-02-22 中国电子科技集团公司第四十一研究所 Bandwidth modulation domain measurement system and method therefor
CN106405238A (en) * 2016-08-17 2017-02-15 中国电子科技集团公司第四十研究所 Broadband modulation domain measuring system and method thereof
CN106526270A (en) * 2016-11-10 2017-03-22 上海华虹集成电路有限责任公司 Measurement system
CN108120919A (en) * 2017-12-27 2018-06-05 北京华峰测控技术股份有限公司 A kind of integrated circuit time parameter test circuit and method
CN108120919B (en) * 2017-12-27 2019-12-13 北京华峰测控技术股份有限公司 integrated circuit time parameter testing circuit and method
CN108828492A (en) * 2018-07-23 2018-11-16 中国船舶重工集团公司第七0九研究所 A kind of integrated circuit test system time measuring unit calibrating installation and method
CN108828492B (en) * 2018-07-23 2021-04-09 中国船舶重工集团公司第七0九研究所 Time measuring unit calibration device and method for integrated circuit test system
CN109995359A (en) * 2019-04-10 2019-07-09 侯凤妹 Edge-triggered metastability observation system and its observation method
CN109995359B (en) * 2019-04-10 2023-03-28 侯凤妹 Metastable state observation system and method for edge trigger
CN110175095A (en) * 2019-04-28 2019-08-27 南京大学 A kind of multi-functional FPGA coincidence measurement system of man-machine interactive and its measurement method
CN110175095B (en) * 2019-04-28 2023-09-22 南京大学 Man-machine interaction type multifunctional FPGA coincidence measurement system and measurement method thereof
CN110632397A (en) * 2019-08-30 2019-12-31 深圳市华奥通通信技术有限公司 Signal analysis method and computer readable storage medium
CN110632397B (en) * 2019-08-30 2021-11-19 深圳市华奥通通信技术有限公司 Signal analysis method and computer readable storage medium
CN111123085A (en) * 2019-11-19 2020-05-08 北京航天测控技术有限公司 Measuring method and circuit
CN111693785A (en) * 2020-05-14 2020-09-22 湖南毂梁微电子有限公司 Digital pulse signal width measuring circuit and measuring method
CN111693785B (en) * 2020-05-14 2021-05-07 湖南毂梁微电子有限公司 Digital pulse signal width measuring circuit and measuring method
CN113917309A (en) * 2021-08-24 2022-01-11 北京电子工程总体研究所 Method and system for detecting whether tooling for measuring delay time of circuit board is qualified
CN113917309B (en) * 2021-08-24 2024-05-24 北京电子工程总体研究所 Method and system for detecting whether tool for measuring delay time of circuit board is qualified or not

Also Published As

Publication number Publication date
CN102346236B (en) 2013-06-05

Similar Documents

Publication Publication Date Title
CN102346236B (en) Time parameter measurement system
Yu et al. A 12-Bit Vernier Ring Time-to-Digital Converter in 0.13$\mu {\hbox {m}} $ CMOS Technology
CN103257569B (en) Time measuring circuit, method and system
CN107643674B (en) Vernier type TDC circuit based on FPGA carry chain
CN110442012A (en) A kind of precision time interval measurement method and system based on FPGA
CN103197145B (en) Method and system of ultrahigh resolution phase difference measurement
CN103676622A (en) High-precision method and device for measuring interval between positive time and negative time
CN112968690B (en) High-precision low-jitter delay pulse generator
CN100545780C (en) Circuit, method, system and apparatus for time measurement using phase-shifted periodic waveform
CN107819456B (en) High-precision delay generator based on FPGA carry chain
CN101706521A (en) Digital storage oscilloscope with function of time base fine tuning
CN113092858B (en) High-precision frequency scale comparison system and comparison method based on time-frequency information measurement
CN110703583A (en) Multi-channel high-precision wide-range time-to-digital converter based on SOC (system on chip)
CN105846823A (en) Equivalent sampling circuit and equivalent sampling method based on programmable time delay chip
CN106443184B (en) Phase detection device and phase detection method
Xiao et al. Design of a high-accuracy time-to-digital converter based on dual-edge signals
CN203275896U (en) Low-cost subnanosecond-grade time interval detection circuit
CN106569033B (en) A high-precision fast frequency meter
CN111367158B (en) Waveform digital time measurement method and system based on SCA
CN106291102A (en) A kind of Frequency Standard Comparison device and method
CN206223867U (en) A phase detection device
CN103219970B (en) Single event transient pulse width method for widening and circuit
CN102466779A (en) Built-in test method and circuit for trigger delay
CN104133367B (en) Circuit and method for extracting time interval parameters of clock signals to be measured
CN118759498A (en) A fast TDC measurement system and method based on differential carry chain

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130605

Termination date: 20160621