CN105187053A - Metastable state eliminating circuit used for TDC - Google Patents

Metastable state eliminating circuit used for TDC Download PDF

Info

Publication number
CN105187053A
CN105187053A CN201510562858.1A CN201510562858A CN105187053A CN 105187053 A CN105187053 A CN 105187053A CN 201510562858 A CN201510562858 A CN 201510562858A CN 105187053 A CN105187053 A CN 105187053A
Authority
CN
China
Prior art keywords
rising edge
type flip
flip flop
trigger
metastable state
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
CN201510562858.1A
Other languages
Chinese (zh)
Other versions
CN105187053B (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 CN201510562858.1A priority Critical patent/CN105187053B/en
Publication of CN105187053A publication Critical patent/CN105187053A/en
Application granted granted Critical
Publication of CN105187053B publication Critical patent/CN105187053B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Manipulation Of Pulses (AREA)

Abstract

The invention belongs to the technical field of electronic circuits, and specifically relates to a metastable state eliminating circuit used for a TDC. The main structure of the metastable state eliminating circuit is composed of a first rising edge D trigger, a second rising edge D trigger, a third rising edge D trigger, a first falling edge D trigger and a second falling edge D trigger, wherein a D input end of the first rising edge D trigger and a D input end of the first falling edge D trigger are connected with external input signals; a Q output end of the second rising edge D trigger is connected with a clock signal input end of the third rising edge D trigger; and a Q output end of the second falling edge D trigger is connected with a D input end of the third rising edge D trigger. The metastable state eliminating circuit has the beneficial effects of being capable of effectively eliminating timing error caused by metastable state while ensuring that the result after time digital quantification and the traditional TDC have the same measuring range and resolution, and greatly improves reliability of TDC precision.

Description

A kind of metastable state for TDC eliminates circuit
Technical field
The invention belongs to electronic circuit technology field, relate to a kind of metastable state for TDC specifically and eliminate circuit.
Background technology
Time interval measurement technology has a large amount of application in a lot of field.It not only, in Atomic Physics, laser ranging, positioning timing etc., also has a wide range of applications in time interval measurement technology, automatic checkout equipment field; In addition, in national defense industry, time interval measurement is as a kind of important discriminating and detection means, very strict to the requirement of precision, even reaches picosecond magnitude.Therefore, high-precision TDC circuit has important effect.
Typical digital time converter adopts DLL sum counter two-layer configuration to quantize the time.Its basic thought to measure between start signal rising edge and stop signal rising edge during this period of time by clock count, and the range of TDC determines primarily of rolling counters forward scope, and resolution depends on DLL.The typical TDC circuit diagram based on this thought is as a Fig. 1, and its sequential chart is as Fig. 2, and thick value counter realizes nT clktiming; Latch coding module and realize Δ T startwith Δ T stoptwo-part timing; Data processing module 8 outputs obtained of being sampled by DLL are carried out encoding and calculate the difference ε=Δ T of two clocking portions stop-Δ T start, then give thick value counting module a carry signal c according to difference.Data processing module exports with thick value counter module two parts timing and becomes Δ T change-over time, is the time interval between start and the stop signal rising edge that will measure.Δ T=nT can be obtained by Fig. 2 clk-Δ T start+ Δ T stop, wherein T clkfor the clock cycle, Δ T startwith Δ T stopfor the time measurement error started and terminate, n is the count value of Δ T inside counting device.Between clocking to numeral transformed error be ε=Δ T stop-Δ T start, Δ T=nT can be obtained clk+ ε.
Fig. 3 is the circuit diagram of DLL, and ideally, clock is divided into 8 phase places by DLL, and to each output phase sample when start signal arrives, its sequential chart is as Fig. 4.In fact because the reasons such as duty ratio distortion, signal jitter, delay distortion have deviation, may there is metastable state in particular sample position in start.As shown in Figure 1, Δ T startcalculating only relevant with the rising edge of d [7:0], so the position of d [7:0] signal rising edge when considering that start signal arrives.1. 4. be 2. a pair sampling location, be 3. that another is to sampling location.
Due to sampling time d type flip flop exist set up and the retention time, 1. 2. position time, start to d [7:0] sampling, due to the state that d [7] is in upset, likely there is metastable state, cause sampled result mistake.Thus Δ T startlikely from T clkto the saltus step of 0ns; Or contrary, likely from 0ns to T clksaltus step, cause the counting of TDC to occur very large deviation.
Start, when 3. 4. sample to d [7:0] in position, because d [2] is in the state of upset, although also may generating metastable, can sample correct value, so Δ T at d [1] and d [3] place startonly have the error of a phase place, negligible.
Summary of the invention
To be solved by this invention, be exactly for the problems referred to above, propose a kind of metastable state for TDC and eliminate circuit.
For achieving the above object, the present invention adopts following technical scheme:
Metastable state for TDC eliminates a circuit, and this circuit is made up of the first rising edge d type flip flop, the second rising edge d type flip flop, the 3rd rising edge d type flip flop, the first trailing edge d type flip flop and the second trailing edge d type flip flop;
The D of described first rising edge d type flip flop inputs termination external input signal, and its clock signal input terminal connects external timing signal, and its Q exports the D output of termination second rising edge d type flip flop; The clock signal input terminal of the second rising edge d type flip flop connects external timing signal, and its Q exports the clock signal input terminal of termination the 3rd rising edge d type flip flop; The D of the first trailing edge trigger inputs termination external input signal t, and its clock signal input terminal connects external timing signal, and its Q exports the D input of termination second trailing edge d type flip flop; The clock signal input terminal of the second trailing edge d type flip flop connects external timing signal, and its Q exports the D input of termination the 3rd rising edge d type flip flop; Described first rising edge d type flip flop, the second rising edge d type flip flop, the first trailing edge d type flip flop are connected identical external timing signal with the second trailing edge d type flip flop; The Q output of the 3rd rising edge flip-flops is the output that metastable state eliminates circuit.
Beneficial effect of the present invention is, while the result after ensureing time figure quantification has identical range and resolution with traditional TDC, effectively can eliminate the timing error that metastable state produces, greatly improve the reliability of TDC precision.
Accompanying drawing explanation
Fig. 1 typical case TDC circuit structure;
Fig. 2 is typical time period digital translation principle sequential chart;
Fig. 3 is DLL function structure chart;
Fig. 4 is that metastable position view may appear in start particular sample;
Fig. 5 is the logical construction schematic diagram that metastable state of the present invention eliminates circuit;
Fig. 6 is the application drawing that metastable state of the present invention eliminates circuit;
The sequential chart of Fig. 7 to be circuit of the present invention in sampling location be 1. position in Fig. 4;
The sequential chart of Fig. 8 to be circuit of the present invention in sampling location be 2. position in Fig. 4;
Fig. 9 is containing the counter portion sequential chart of the TDC of structure of the present invention;
Figure 10 is traditional TDC linearity schematic diagram;
Figure 11 is the TDC linearity schematic diagram adopting circuit structure of the present invention.
Embodiment
Below in conjunction with drawings and Examples, describe technical scheme of the present invention in detail:
The present invention is the timing error that when eliminating traditional TDC employing DLL sum counter quantization time interval, metastable state situation produces, and with the addition of metastable state and eliminates logical circuit.The TDC eliminated after metastable state is the same with typical TDC precision, unique difference is, when start Fig. 4 1. 2. position sampling time, typical TDC probably can not correctly sample, making quantized result have the deviation of a clock cycle compared with correct result, is very serious deviation.And the quantized result increasing the circuit DLL after can not correctly sampling after metastable state elimination logic has the deviation of a clock cycle, also counter signal start_clk can be given simultaneously, counting n is made also to produce deviation 1, as shown in Figure 9, wherein start_clk is the signal that start produces after edge synchronization; Stop_clk is the signal that stop produces after edge synchronization; Start_stop is the signal that start_clk and stop_clk produces after enable module, as the enable signal of counter; Clk_dealy is the signal of clk through postponing; Gated_clk_delay is that start_stop and clk_dealy inputs and signal behind the door, as the count signal of counter through two.Due to, the n that the sampling of start metastable state produces and Δ T starttwo parts quantization error counteracts, thus achieves start and to sample metastable elimination.
Structure of the present invention as shown in Figure 5, wherein start_clk is the signal that start produces after rising edge synch, the start_nclk signal that to be start produce after trailing edge is synchronous, Q_nclk be clock falling edge to start sampled output signal, exporting s_out is circuit judges result.
As shown in Figure 5, this circuit is made up of the first rising edge d type flip flop, the second rising edge d type flip flop, the 3rd rising edge d type flip flop, the first trailing edge d type flip flop and the second trailing edge d type flip flop structure of the present invention; The D of described first rising edge d type flip flop inputs termination external input signal, and its clock signal input terminal connects external timing signal, and its Q exports the D output of termination second rising edge d type flip flop; The clock signal input terminal of the second rising edge d type flip flop connects external timing signal, and its Q exports the clock signal input terminal of termination the 3rd rising edge d type flip flop; The D of the first trailing edge trigger inputs termination external input signal t, and its clock signal input terminal connects external timing signal, and its Q exports the D input of termination second trailing edge d type flip flop; The clock signal input terminal of the second trailing edge d type flip flop connects external timing signal, and its Q exports the D input of termination the 3rd rising edge d type flip flop; Described first rising edge d type flip flop, the second rising edge d type flip flop, the first trailing edge d type flip flop are connected identical external timing signal with the second trailing edge d type flip flop; The Q output of the 3rd rising edge flip-flops is the output that metastable state eliminates circuit.
The operation principle of this example is:
1. or 2. as shown in Figure 4, during in sampling location, there will not be the situation of d [x:x-1]=01 (x=6 ~ 1).1. or 2. then in Fig. 6, sampling location judge module is distinguished external input signal start (or stop) thus and whether is occurred that sampling location in the diagram.1. or 2. when judging sampling location, encoder adopts metastable state to eliminate the result coding of the output signal s_out of circuit, namely works as s_out=0, Δ T startassignment is T clk; S_out=1, Δ T startassignment is 0ns.Otherwise encoder normal encoding, does not affect by s_out.
When 1. start samples d [7:0] in Fig. 4 position, metastable state eliminates its sequential chart of logic as Fig. 7, if external input signal start and external timing signal clk signal interval do not meet d type flip flop settling time, namely can not sample, the timing error of start_clk signal, if it is start_clk_wrong, now rolling counters forward result can reduce a T as shown in Figure 9 clk.Start_clk_wrong sampling start_nclk obtains signal s_out_wrong=1, this seasonal Δ T startfor 0ns, more correctly during sampling s_out=0, Δ T startreduce T clk.In conjunction with Δ T=nT clk-Δ T start+ Δ T stopΔ T can be found startthe error produced is by nT clkbe eliminated after place's adjustment.
When 2. start samples d [7:0] in Fig. 4 position, metastable state eliminates its sequential chart of logic as Fig. 8, if start and clk signal interval does not meet d type flip flop settling time, namely can not sample, the timing error of start_clk signal, if it is start_clk_wrong, now rolling counters forward result can increase a T as shown in Figure 9 clk.Start_clk_wrong sampling start_nclk obtains signal s_out_wrong=1, this seasonal Δ T startfor T clk, more correctly during sampling s_out=0, Δ T startadd T clk.In conjunction with Δ T=nT clk-Δ T start+ Δ T stopΔ T can be found startthe error produced is by nT clkbe eliminated after place's adjustment.
In like manner: Δ T stopthe error produced also can be eliminated, thus eliminates due to the metastable timing error occurring causing.
As shown in Figure 10 and Figure 11, compare typical TDC, the TDC linearity that the band that the present invention proposes can eliminate metastable state circuit is better, greatly improves the reliability of time quantization result.

Claims (1)

1. the metastable state for TDC eliminates a circuit, and this circuit is made up of the first rising edge d type flip flop, the second rising edge d type flip flop, the 3rd rising edge d type flip flop, the first trailing edge d type flip flop and the second trailing edge d type flip flop;
The D of described first rising edge d type flip flop inputs termination external input signal, and its clock signal input terminal connects external timing signal, and its Q exports the D output of termination second rising edge d type flip flop; The clock signal input terminal of the second rising edge d type flip flop connects external timing signal, and its Q exports the clock signal input terminal of termination the 3rd rising edge d type flip flop; The D of the first trailing edge trigger inputs termination external input signal t, and its clock signal input terminal connects external timing signal, and its Q exports the D input of termination second trailing edge d type flip flop; The clock signal input terminal of the second trailing edge d type flip flop connects external timing signal, and its Q exports the D input of termination the 3rd rising edge d type flip flop; Described first rising edge d type flip flop, the second rising edge d type flip flop, the first trailing edge d type flip flop are connected identical external timing signal with the second trailing edge d type flip flop; The Q output of the 3rd rising edge flip-flops is the output that metastable state eliminates circuit.
CN201510562858.1A 2015-09-07 2015-09-07 A kind of metastable state and eliminate circuit for TDC Expired - Fee Related CN105187053B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510562858.1A CN105187053B (en) 2015-09-07 2015-09-07 A kind of metastable state and eliminate circuit for TDC

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510562858.1A CN105187053B (en) 2015-09-07 2015-09-07 A kind of metastable state and eliminate circuit for TDC

Publications (2)

Publication Number Publication Date
CN105187053A true CN105187053A (en) 2015-12-23
CN105187053B CN105187053B (en) 2017-12-22

Family

ID=54908943

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510562858.1A Expired - Fee Related CN105187053B (en) 2015-09-07 2015-09-07 A kind of metastable state and eliminate circuit for TDC

Country Status (1)

Country Link
CN (1) CN105187053B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111262562A (en) * 2020-03-02 2020-06-09 上海交通大学 Metastable state detection circuit
CN111262583A (en) * 2019-12-26 2020-06-09 普源精电科技股份有限公司 Metastable state detection device and method and ADC circuit
CN113835333A (en) * 2021-09-29 2021-12-24 武汉市聚芯微电子有限责任公司 Time-to-digital conversion device and time-to-digital conversion method
CN114675525A (en) * 2021-09-30 2022-06-28 绍兴圆方半导体有限公司 Time-to-digital converter and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050031065A1 (en) * 2003-08-06 2005-02-10 Gupta Atul K. System and method for automatically correcting duty cycle distortion
CN102880071A (en) * 2012-09-24 2013-01-16 电子科技大学 Data acquisition system with high time stamp accuracy

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050031065A1 (en) * 2003-08-06 2005-02-10 Gupta Atul K. System and method for automatically correcting duty cycle distortion
CN102880071A (en) * 2012-09-24 2013-01-16 电子科技大学 Data acquisition system with high time stamp accuracy

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
夏婷婷等: "一种自校准全数字TDC的设计", 《微电子学》 *
徐洪闪: "一种基于线性增强TDC的ADPLL设计", 《微电子学》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111262583A (en) * 2019-12-26 2020-06-09 普源精电科技股份有限公司 Metastable state detection device and method and ADC circuit
CN111262583B (en) * 2019-12-26 2021-01-29 普源精电科技股份有限公司 Metastable state detection device and method and ADC circuit
US11451236B2 (en) 2019-12-26 2022-09-20 Rigol Technologies Co., Ltd. Metastabile state detection device and method, and ADC circuit
CN111262562A (en) * 2020-03-02 2020-06-09 上海交通大学 Metastable state detection circuit
CN113835333A (en) * 2021-09-29 2021-12-24 武汉市聚芯微电子有限责任公司 Time-to-digital conversion device and time-to-digital conversion method
CN113835333B (en) * 2021-09-29 2022-08-12 武汉市聚芯微电子有限责任公司 Time-to-digital conversion device and time-to-digital conversion method
CN114675525A (en) * 2021-09-30 2022-06-28 绍兴圆方半导体有限公司 Time-to-digital converter and system

Also Published As

Publication number Publication date
CN105187053B (en) 2017-12-22

Similar Documents

Publication Publication Date Title
KR101150618B1 (en) Apparatus and method for estimating data relating to a time difference and apparatus and method for calibrating a delay line
CN109387776B (en) Method of measuring clock jitter, clock jitter measuring circuit, and semiconductor device
US10277213B1 (en) Glitch detection in input/output bus
CN113092858B (en) High-precision frequency scale comparison system and comparison method based on time-frequency information measurement
US4519091A (en) Data capture in an uninterrupted counter
US20200124709A1 (en) Circuit, method and related chip for time measurement, system, and device
CN105187053A (en) Metastable state eliminating circuit used for TDC
CN102565673B (en) Highly-reliable pulse counting test system based on FPGA (Field Programmable Gate Array)
CN108445735B (en) Method for correcting hierarchical TDC (time-to-digital converter) by adopting delay chain structure
CN105245203B (en) High-precision low-speed clock duty ratio detecting system and method
CN106443184B (en) Phase detection device and phase detection method
CN113917830B (en) Cyclic vernier delay chain circuit, time-to-digital converter and signal selection method
CN107422193B (en) Circuit and method for measuring single event upset transient pulse length
CN109274376B (en) Vernier ring-shaped time-to-digital converter capable of compressing maximum conversion time
CN102510327A (en) Method and device for improving synchronous precision of long-range two-way time comparison modulator-demodulator
CN103105534B (en) Phase difference measurement circuit and measurement method based on field programmable gata array (FPGA) identical periodic signals
CN113093517B (en) Precise short-time interval measurement system and measurement method based on Beidou clock
CN109444856A (en) A kind of number of cycles measuring circuit applied to high resolution time digital quantizer
CN203950131U (en) A kind of high precision time interval measurement device based on FPGA
CN107561918B (en) TOA estimation method and device are positioned based on FPGA ultra wide band
CN112558519A (en) Digital signal delay method based on FPGA and high-precision delay chip
CN113098482A (en) Delay difference measuring method of vernier type annular time-to-digital converter
CN115541955B (en) Oscilloscope capable of realizing analog triggering
CN104539291A (en) Correcting circuit of two-step TDC
CN109143833B (en) A kind of fractional part measuring circuit applied to high resolution time digital quantizer

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
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: 20171222

Termination date: 20200907