Circuits for measuring tof between two electrical signals comprises 1) a slow TAF-DPS clock signal generator for generating a slow clock signal, a fast TAF-DPS clock signal generator for generating a fast clock signal, said slow TAF-DPS clock signal generator comprises a gated ring oscillator and a TAF-DPS frequency synthesizer, said fast TAF-DPS clock signal generator comprises a gated ring oscillator and a TAF-DPS frequency synthesizer; 2) a phase detector for receiving said slow and fast clock signals and detecting point-of-coincidence between said slow and fast clock signals; 3) a first digital counter driven by said slow clock signal for storing the number of slow clock cycles and a second digital counter driven by said fast clock signal for storing the number of fast clock cycles; 4) a calibrator for calibrating said gate ring oscillators; 5) a calculation block for calculating tof measurement result. Methods of using a slow TAF-DPS clock generator and a fast TAF-DPS clock generator for measuring tof between two electrical signals are also disclosed.
|
13. A method of measuring tof between signal transitions of a first and a second electrical signals, comprising the steps of:
receiving a first electrical signal;
receiving a plurality of q second electrical signals where q is an integer of greater than zero;
creating a slow clock signal generator and a plurality of q fast clock signal generators by using gated ring oscillators and TAF-DPS frequency synthesizers and 1×PLLs;
configuring said slow clock signal generator by using a frequency control word Fslow so that its output frequency (period) is set to be 1/f1=T1=Fslow·Δ=I·Δ where Δ is a base time unit and I is an integer of greater than one, configuring said fast clock signal generators by using a plurality of frequency control word Ffast_i so that their output frequencies (periods) are set to be 1/f2_i=T2_i=Ffast_i·Δ=[(I−1)+ri]·Δ, and ri is a fraction in range of [0,1), i=1, 2, . . . , q;
starting the slow clock generator from rising (or falling) edge of said first electrical signal and generating a slow clock signal, starting each fast clock generator of said plurality of q fast clock generators from rising (or falling) edge of a second electrical signal from said plurality of q second electrical signals, generating a plurality of q fast clock signals from said q fast clock generators;
feeding said slow clock signal and said plurality of q fast clock signals to a plurality of q phase detectors, driving a plurality of q first digital counters by said slow clock signal, driving each one of a plurality of q second digital counters by a said fast clock signal from said plurality of q fast clock signals;
generating a plurality of q reset signals from said phase detectors by detecting a plurality of q point-of-coincidences, reading out contents of said plurality of q first and second digital counters after said plurality of q reset signals are received by said plurality of q first and second digital counters and then resetting said digital counters;
calibrating the frequency of said gated ring oscillators;
calculating TOFs between said first and a plurality of q second electrical signals.
1. A system of measuring time-of-Flight (tof) between signal transitions of two electrical signals by using two clock generators, comprising:
a first input for receiving a first electrical signal;
a second input for receiving a second electrical signal;
a third input for receiving a frequency control word Fslow;
a fourth input for receiving a frequency control word Ffast;
a fifth input for receiving an electrical signal of known frequency;
a sixth input for receiving an enable signal;
an output for delivering tof measurement result;
a slow TAF-DPS (time-Average-frequency Direct Period Synthesis) clock generator for generating a slow clock signal, having a first input for receiving said first electrical signal, having a second input for receiving said frequency control word Fslow, having a first output for delivering said slow clock signal, having a second output for delivering an electrical signal for calibration;
a fast TAF-DPS clock generator for generating a fast clock signal, having a first input for receiving said second electrical signal, having a second input for receiving said frequency control word Ffast, having a first output for delivering said fast clock signal, having a second output for delivering an electrical signal for calibration;
a phase detector for detecting point-of-coincidence, having a first input for receiving said slow clock signal, having a second input for receiving said fast clock signal, having an output for delivering a reset signal;
a first digital counter, having a clock input for receiving said slow clock signal, having a reset input for receiving said reset signal from said phase detector; having an output for outputting its content;
a second digital counter, having a clock input for receiving said fast clock signal, having a reset input for receiving said reset signal from said phase detector; having an output for outputting its content;
a calibration block, having an enable input for receiving a signal from said sixth input, having a calibration input for receiving a signal from said fifth input, having a first oscillation input for receiving signal from said second output of slow TAF-DPS clock generator, having a second oscillation input for receiving signal from said second output of fast TAF-DPS clock generator, having an output for delivering calibration result;
a calculation block, having a first input for receiving a first digital value, having a second input for receiving a second digital value, having a third input for receiving a third digital value, having an output for delivering calculation result;
wherein said output of said calculation block is connected to said output;
wherein said output of first digital counter is connected to said first input of said calculation block;
wherein said output of second digital counter is connected to said second input of said calculation block;
wherein said output of calibration block is connected to said third input of said calculation block.
8. A system of measuring time-of-Flight (tof) between signal transitions of two electrical signals by using a plurality of clock generators, comprising:
a first input for receiving an electrical signal Start;
a second multi-bit input for receiving a plurality of q electrical signals Stop1, Stop2, . . . , Stopq where q is an integer of greater than zero;
a third input for receiving a frequency control word Fslow;
a fourth multi-bit input for receiving a plurality of q frequency control word Ffast_1, Ffast_2, . . . , Ffast_q;
a fifth input for receiving an electrical signal of known frequency;
a sixth input for receiving an enable signal;
a multi-bit output for delivering tof measurement result;
a slow TAF-DPS clock generator for generating a slow clock signal, having a first input for receiving said Start signal, having a second input for receiving said frequency control word Fslow, having a first output for delivering said slow clock signal, having a second output for delivering an electrical signal for calibration;
a plurality of q fast TAF-DPS clock generators for generating a plurality of q fast clock signals, each said fast TAF-DPS clock generator having a first input for receiving a Stop signal from said second multi-bit input, each said fast TAF-DPS clock generator having a second input for receiving a frequency control word Ffast from said fourth multi-bit input, each said fast TAF-DPS clock generator having a first output for delivering a fast clock signal, each said fast TAF-DPS clock generator having a second output for delivering an electrical signal for calibration;
a plurality of q phase detectors for detecting a plurality of q point-of-coincidences, each said phase detector having a first input for receiving said slow clock signal, each said phase detector having a second input for receiving a said fast clock signal from one of said q fast TAF-DPS clock generators, each said phase detector having an output for delivering a reset signal;
a plurality of q first digital counters, each said first digital counter having a clock input for receiving said slow clock signal, each said first digital counter having a reset input for receiving a said reset signal from one of said q phase detectors;
each said first digital counter having an output for outputting its content;
a plurality of q second digital counters, each said second digital counter having a clock input for receiving a said fast clock signal from one of said q fast TAF-DPS clock generators, each said second digital counter having a reset input for receiving a reset signal from one of said q phase detectors, each said second digital counter having an output for outputting its content;
a calibration block, having an enable input for receiving a signal from said sixth input, having a calibration input for receiving a signal from said fifth input, having a first oscillation input for receiving signal from said second output of said slow TAF-DPS clock generator, having a multi-bit second oscillation input for receiving signals from said second outputs of said plurality of q fast TAF-DPS clock generators, having an output for delivering calibration result;
a calculation block, having a plurality of q first inputs for receiving a plurality of q first digital values, having a plurality of q second inputs for receiving a plurality of q second digital values, having a third input for receiving a third digital value, having a multi-bit output for delivering calculation result;
wherein said multi-bit output of calculation block is connected to said multi-bit output;
wherein said output of each said first digital counter is connected to each said first input of calculation block;
wherein said output of each said second digital counter is connected to each said second input of calculation block;
wherein said output of calibration block is connected to said third input of calculation block.
2. The system of
a gated ring oscillator (GRO) for generating a plurality of K phase-evenly-spaced signals where K is an integer of greater than one, having an enable input for receiving said first electrical signal, having an output for delivering said plurality of K phase-evenly-spaced signals, comprising:
a plurality of delay stages configured as a ring oscillator, outputs from said delay stages form said plurality of K phase-evenly-spaced signals;
an enable cell for controlling electrical oscillation of said GRO, having an input pin for receiving signal from said enable input;
a TAF-DPS frequency synthesizer for generating a slow TAF clock signal, having a first input for receiving said plurality of K phase-evenly-spaced signals from said GRO, having a second input for receiving said frequency control word Fslow, having an output for delivering said slow TAF clock signal;
a 1×PLL for generating said slow clock signal, having an input for receiving said slow TAF clock signal from said TAF-DPS frequency synthesizer as reference input of the PLL, having an output for delivering said slow clock signal, said 1×PLL is configured in a way that frequency ratio of said input and said output is one.
3. The system of
a first K→1 multiplexer, having a multi-bit reference input for receiving said plurality of K phase-evenly-spaced signals, having a control input, having an output;
a second K→1 multiplexer, having a multi-bit reference input for receiving said plurality of K phase-evenly-spaced signals, having a control input, having an output;
a 2→1 multiplexer, having a first input for receiving the output from said first K→1 multiplexer, having a second input for receiving the output from said second K→1 multiplexer, having a control input, having an output;
a toggle flip-flop for generating a pulse train, comprises:
a D-type flip-flop, having a clock input for receiving output from the output of said 2→1 multiplexer, having a data input, having an output for outputting a CLK1 signal;
an inverter, having an input for receiving said CLK1 signal, having an output for outputting a CLK2 signal;
wherein said CLK2 signal is connected to said data input of said D-type flip-flop;
wherein said CLK1 signal contains said pulse train;
a control logic block, having a first input for receiving said frequency control word, having a second input for receiving said phase adjustment control word, having a third input for receiving said enable signal, having a fourth input for receiving said CLK1 signal, having a fifth input for receiving said CLK2 signal, having a first output connected to said control input of said first K→1 multiplexer, having a second output connected to said control input of said second K→1 multiplexer;
wherein said CLK1 signal is connected to the control input of said 2→1 multiplexer;
wherein said CLK1 signal is outputted as said slow TAF clock signal.
4. The system of
5. The system of
a gated ring oscillator (GRO) for generating a plurality of K phase-evenly-spaced signals where K is an integer of greater than one, having an enable input for receiving said second electrical signal, having an output for delivering said plurality of K phase-evenly-spaced signals, comprising:
a plurality of delay stages configured as a ring oscillator, outputs from said delay stages form said plurality of K phase-evenly-spaced signals;
an enable cell for controlling electrical oscillation of said GRO, having an input pin for receiving signal from said enable input;
a TAF-DPS frequency synthesizer for generating a fast TAF clock signal, having a first input for receiving said plurality of K phase-evenly-spaced signals from said GRO, having a second input for receiving said frequency control word Ffast, having an output for delivering said fast TAF clock signal;
a 1×PLL for generating said fast clock signal, having an input for receiving said fast TAF clock signal from said TAF-DPS frequency synthesizer as reference input of the PLL, having an output for delivering said fast clock signal, said 1×PLL is configured in a way that frequency ratio of said input and said output is one.
6. The system of
a first K→1 multiplexer, having a multi-bit reference input for receiving said plurality of K phase-evenly-spaced signals, having a control input, having an output;
a second K→1 multiplexer, having a multi-bit reference input for receiving said plurality of K phase-evenly-spaced signals, having a control input, having an output;
a 2→1 multiplexer, having a first input for receiving the output from said first K→1 multiplexer, having a second input for receiving the output from said second K→1 multiplexer, having a control input, having an output;
a toggle flip-flop for generating a pulse train, comprises:
a D-type flip-flop, having a clock input for receiving output from the output of said 2→1 multiplexer, having a data input, having an output for outputting a CLK1 signal;
an inverter, having an input for receiving said CLK1 signal, having an output for outputting a CLK2 signal;
wherein said CLK2 signal is connected to said data input of said D-type flip-flop;
wherein said CLK1 signal contains said pulse train;
a control logic block, having a first input for receiving said frequency control word, having a second input for receiving said phase adjustment control word, having a third input for receiving said enable signal, having a fourth input for receiving said CLK1 signal, having a fifth input for receiving said CLK2 signal, having a first output connected to said control input of said first K→1 multiplexer, having a second output connected to said control input of said second K→1 multiplexer;
wherein said CLK1 signal is connected to the control input of said 2→1 multiplexer;
wherein said CLK1 signal is outputted as said fast TAF clock signal.
7. The system of
9. The system of
a gated ring oscillator (GRO) for generating a plurality of K phase-evenly-spaced signals where K is an integer of greater than one, having an enable input for receiving said first electrical signal, having an output for delivering said plurality of K phase-evenly-spaced signals, comprising:
a plurality of delay stages configured as a ring oscillator, outputs from said delay stages form said plurality of K phase-evenly-spaced signals;
an enable cell for controlling electrical oscillation of said GRO, having an input pin for receiving signal from said enable input;
a TAF-DPS frequency synthesizer for generating a slow TAF clock signal, having a first input for receiving said plurality of K phase-evenly-spaced signals from said GRO, having a second input for receiving said frequency control word Fslow, having an output for delivering said slow TAF clock signal;
a 1×PLL for generating said slow clock signal, having an input for receiving said slow TAF clock signal from said TAF-DPS frequency synthesizer as reference input of the PLL, having an output for delivering said slow clock signal, said 1×PLL is configured in a way that frequency ratio of said input and said output is one.
10. The system of
11. The system of
a GRO for generating a plurality of K phase-evenly-spaced signals where K is an integer of greater than one, having an enable input for receiving said second electrical signal, having an output for delivering said plurality of K phase-evenly-spaced signals, comprising:
a plurality of delay stages configured as a ring oscillator, outputs from said delay stages form said plurality of K phase-evenly-spaced signals;
an enable cell for controlling electrical oscillation of said GRO, having an input pin for receiving signal from said enable input;
a TAF-DPS frequency synthesizer for generating a fast TAF clock signal, having a first input for receiving said plurality of K phase-evenly-spaced signals from said GRO, having a second input for receiving said frequency control word Ffast, having an output for delivering said fast clock signal;
a 1×PLL for generating said fast clock signal, having an input for receiving said fast TAF clock signal from said TAF-DPS frequency synthesizer as reference input of the PLL, having an output for delivering said fast clock signal, said 1×PLL is configured in a way that frequency ratio of said input and said output is one.
12. The system of
14. The method of
creating a first input for receiving said first electrical signal, creating a second input for receiving said frequency control word Fslow for configuring output frequency of said slow clock signal generator, creating a first output for delivering generated clock signal, creating a second output for delivering a signal for calibration, comprising the steps of:
creating a plurality of K phase-evenly-spaced signals by using said gated ring oscillator where K is an integer of greater than one, oscillation of said gated ring oscillator is controlled by said first electrical signal;
generating a slow TAF clock signal by using a TAF-DPS synthesizer, said TAF-DPS synthesizer uses said plurality of K phase-evenly-spaced signals as its input, said TAF-DPS synthesizer uses said frequency control word Fslow to synthesize a clock frequency for said slow TAF clock signal;
generating said slow clock signal by using a 1×PLL, said 1×PLL uses said slow TAF signal as its reference input, output of said 1×PLL is said slow clock signal, said 1×PLL is configured in a way that frequency ratio of said input and said output is one.
15. The method of
creating a first input for receiving a second electrical signal from said plurality of q second electrical signals, creating a second input for receiving a frequency control word Ffast_i from said plurality of q frequency control words for configuring output frequency of said fast clock signal generator, creating a first output for delivering generated clock signal, creating a second output for delivering a signal for calibration, comprising the steps of;
creating a plurality of K phase-evenly-spaced signals by using said gated ring oscillator where K is an integer of greater than one, oscillation of said gated ring oscillator is controlled by said second electrical signal;
generating a fast TAF clock signal by using TAF-DPS synthesizer, said TAF-DPS synthesizer uses said plurality of K phase-evenly-spaced signals as its input, said TAF-DPS synthesizer uses said frequency control word Ffast_i to synthesize a clock frequency for said fast TAF clock signal;
generating said slow clock signal by using a 1×PLL, said 1×PLL uses said fast TAF signal as its reference input, output of said 1×PLL is said fast clock signal, said 1×PLL is configured in a way that frequency ratio of said input and said output is one.
16. The method of
17. The method of
18. The method of
calibrating m number of gated ring oscillators and producing Ncal_1, Ncal_2, . . . , Ncal_m where m is an integer of greater than zero;
deriving calibration result Ncal by Ncal=Σ(Ncal_i)/m, i=1, 2, . . . , m.
19. The method of
counting the number of oscillations of said gated ring oscillator within p cycles of a reference signal of known frequency;
deriving calibration result Ncal_i from dividing said number of oscillations by p.
|
The present invention generally relates to the field of integrated circuit. More specifically, embodiments of the present invention pertain to circuits and methods of using one kind of frequency synthesizer, Time-Average-Frequency Direct Period Synthesis, to measure Time-of-Flight (TOF).
Time-of-Flight (TOF) measures the time that it takes for an object, particle or acoustic/electromagnetic to travel a distance through a medium. This measurement can be used as a way to measure velocity or path-length through the given medium, or as a way to learn about the particle or the medium (such as composition or flow rate). The traveling object may be detected directly (e.g., ion detector in mass spectrometry) or indirectly (e.g., light scattered from an object in laser Doppler velocimetry).
In ultrasonic flow meter measurement, in order to estimate total flow velocity, TOF is used to measure the speed of a signal propagating upstream, and downstream, of flow of a media. This measurement is made in a collinear direction with the flow. In planar Doppler velocimetry (optical flow meter measurement), TOF measurements are made perpendicular to the flow by timing when individual particles cross two or more locations along the flow. In optical interferometry, the path-length difference between sample and reference arms can be measured by TOF methods, such as frequency modulation followed by phase shift measurement. Such methods are used in laser radar and laser tracker systems for medium to long range distance measurement.
Refer to
In
One problem with the method of using TDC to measure TOF is that the absolution value of the TOF measurement is difficult to be known in high accuracy. To get high accuracy on TOF measurement, the precise delay values of σ, σ1, σ2 must be known. This is difficult unless the delay line is locked to a known frequency by PLL or DLL for the cases of
As discussed previously, the time resolution of TDC is limited by cell delay a. It can be improved by the method of using delay difference of two delay cells: σ1−σ2. The principle of using the delay difference approach to measure TOF can be illustrated by the example of using Vernier caliper to measure distance. Refer now to
For an example of N=10, the marks on the Vernier scale is spaced nine tenths of those on the main scale. If the two scales are put together with zero points aligned, the first mark on the Vernier scale is one tenth short of the first main scale mark, the second two tenths short, and so on up to the ninth mark which is misaligned by nine tenths. Only when a full ten marks are counted is there an alignment since the tenth mark is ten tenths (a whole main scale unit short). At this time, the tenth mark on Vernier scale aligns with the ninth mark on the main scale. Now if the Vernier is moved by a small amount, for example one tenth of the main scale, the only pair of marks that come into alignment are the first pair since these were the only ones originally misaligned by one tenth. If it is moved by two tenths, the second pair aligns since these are the only ones originally misaligned by that amount. If it is moved by five tenths, the fifth pair aligns; and so on. For any movement, only one pair of marks aligns and that pair shows the value between the marks on the main scale.
Refer now to
System 300 is used to measure the time elapsed between signals Start 310 and Stop 320. The time elapsed is the TOF whose value is τ 380. Signal Start 310 is used to enable the slow oscillator 330 and signal Stop is used to enable the fast oscillator 340.
τ+n2·T2=n1·T1τ=n1·T1−n2·T2=n1/f1−n2/f2 (1)
τ=(n1−n2)/(f1/df)+n1·df/[f1·(f1+df)]=(n1−n2)/f2+n1·df/(f1·f2 (2)
If the fast clock's frequency f2 is expressed as f2=f1+df, the TOF value τ can be derived as in (2). From (2), it can be seen that high measurement resolution on τ can be achieved by small df. Similar to the case of Vernier caliper where the larger the Vernier factor N is, the higher the measurement resolution will be. In the case of system of 300, the smaller the df is, the higher the measurement resolution will be. The key requirement for system 300 is therefore the frequency generation for the slow and fast oscillators. Their frequencies must be generated in high accuracy and the frequency granularity of the frequency generators must be made as small as possible.
This “Discussion of the Background” section is provided for background information only. The statements in this “Discussion of the Background” are not an admission that the subject matter disclosed in this “Discussion of the Background” section constitutes prior art to the present disclosure, and no part of this “Discussion of the Background” section may be used as an admission that any part of this application, including this “Discussion of the Background” section, constitutes prior art to the present disclosure.
It is therefore an object of the present invention to use the method of Time-Average-Frequency direct period synthesis (TAF-DPS) to create two clock generators with highly tunable frequencies. It is a further object of the present invention to use said two clock generators for generating two clock signals with slightly different frequencies and use said clock signals to measure TOF through applying Vernier method.
The present invention relates to circuits and systems that use TAF-DPS to create the functional clock signals for measuring TOF. Thus, the present invention can take advantage of the powerful frequency generation capability provided by TAF-DPS. This can result in very fine frequency granularity that can be used to differentiate the two said clock generators. This fact subsequently improves the resolution of the TOF measurement.
Reference will now be made in detail to various embodiments of the invention, examples of which are illustrated in the accompanying drawings. While the invention will be described in conjunction with the following embodiments, it will be understood that they are not intended to limit the invention to these embodiments. On the contrary, the invention is intended to cover alternatives, modifications and equivalents, which may be included within the spirit and scope of the invention as defined by the appended claims. Furthermore, in the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. However, it will be readily apparent to one skilled in the art that the present invention may be practiced without these specific details. In other instances, well-known methods, procedures, components, and circuits have not been described in detail so as not to unnecessarily obscure aspects of the present invention.
Some portions of the detailed descriptions that follow are presented in terms of processes, procedures, logic blocks, functional blocks, processing, and other symbolic representations of operations on data bits, data streams or waveforms within a computer, processor, controller and/or memory. These descriptions and representations are generally used by those skilled in the arts of VLSI-circuit-and-system design to effectively convey the substance of their work to others skilled in the art. A process, procedure, logic block, function, process, etc., is herein, and is generally, considered to be a self-consistent sequence of steps or instructions leading to a desired and/or expected result. The steps generally include physical manipulations of physical quantities. Usually, though not necessarily, these quantities take the form of electrical, magnetic, optical, or quantum signals capable of being stored, transferred, combined, compared, and otherwise manipulated in a computer or data processing system. It has proven convenient at times, principally for reasons of common usage, to refer to these signals as bits, waves, waveforms, streams, values, elements, symbols, characters, terms, numbers, or the like.
It should be borne in mind, however, that all of these and similar terms are associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. Unless specifically stated otherwise and/or as is apparent from the following discussions, it is appreciated that throughout the present application, discussions utilizing terms such as “processing,” “operating,” “computing,” “calculating,” “determining,” “manipulating,” “transforming,” “displaying” or the like, refer to the action and processes of a computer or signal processing system, or similar processing device (e.g., an electrical, optical, or quantum computing or processing device), that manipulates and transforms data represented as physical (e.g., electronic) quantities. The terms refer to actions and processes of the processing devices that manipulate or transform physical quantities within the component(s) of a system or architecture (e.g., registers, memories, flip-flops, other such information storage, transmission or display devices, etc.) into other data similarly represented as physical quantities within other components of the same or a different system or architecture.
Furthermore, for the sake of convenience and simplicity, the terms “clock,” “time,” “rate,” “period,” “frequency” and grammatical variations thereof are generally used interchangeably herein, but are generally given their art-recognized meanings. Also, for convenience and simplicity, the terms “data,” “data stream,” “waveform” and “information” may be used interchangeably, as may the terms “connected to,” “coupled with,” “coupled to,” and “in communication with” (each of which may refer to direct or indirect connections, couplings, and communications), as may the terms “electrical path,” “channel,” “wire” (each of which may refer to a physical channel for transferring electrical signal), as may the terms “signal,” “pulse,” “pulse train,” “a sequence of digital data” (each of which may refer to an electrical signal that has only two values: zero and one), as may the terms “input,” “input port,” “input pin” (each of which may refer to a physical channel for receiving data), as may the terms “output,” “output port,” “output pin” (each of which may refer to a physical channel for sending data), but these terms are also generally given their art-recognized meanings.
Referring now to
The base unit Δ 520 is usually generated from a multi-stage VCO (voltage controlled oscillator) 570. The Δ is the time span between any two adjacent VCO outputs. The VCO can be locked to a reference frequency of known frequency through a Phase Locked Loop (PLL) 560. As a result, the VCO frequency fvco is a known value. In
Δ=TVCO/K=1/(K·fvco) (3)
Referring now to
The TAF-DPS output's period can be calculated as TTAF=F·Δ. The control word F can take value in the range of [2, 2K]. When only integer is used in control word F, the TAF-DPS output is a signal of conventional frequency. When control word F contains fractional part, the TAF-DPS uses Time-Average-Frequency concept in its output signal. The Time-Average-Frequency concept is explained in chapter 3 of reference [1]. The working principle of TAF-DPS can be found in chapter 4 of reference [1]. TAF-DPS frequency synthesizer 600 can function as the circuit block 510 in
The signal CLK_OUT 680 output frequency fTAF can be calculated using (4) (please see chapter 4 of reference [1]). When PLL 560 of
fTAF=1/TTAF=1/(F·Δ) (4)
fTAF=(K/F)·fvco (5)
Referring now to
Clock generator 760 comprises a TAF-DPSfast 761, a 1×PLL 769 and a Gated Ring Oscillator (GRO) 762. GRO 762 is structurally identical to GRO 752. It comprises a plurality of delay stages 763. The delay stages are configured as a ring oscillator with an oscillation enabling cell 764. One input of the enabling cell 764 is connected to a signal Stop 765. The state of the Stop signal 765 controls the on-and-off of the oscillation. A “high” state enables the oscillation and a “low” state disables the oscillation, or vice versa. The GRO 762 has K phase-evenly-spaced outputs where K is an integer of greater than one. The time difference between any two adjacent phases can be calculated as Δ=1/(K·fGRO) where fGRO is the oscillation frequency of GRO 762 and GRO 752 since they are structurally identical. These outputs are fed to TAF-DPSfast 761. The GRO 762 has an output SGRO_F 768 delivered from one of the delay stage's output. SGRO_F 768 can also be one of the members of said K phase-evenly-spaced outputs. TAF-DPSfast 761 has an input for receiving frequency control word Ffast 766. It functions as the Vernier scale of TAF-DPS Vernier caliper. Its frequency (period) is T2=Ffast·Δ. The frequency (period) value is T2=[(I−1)+r]·Δ when Ffast takes the value of (I−1)+r where I is an integer of greater than one and r is a fraction. The output from TAF-DPSfast 761 is fed to the 1×PLL 769. PLL 769 is structurally identical to PLL 759. The 1×PLL converts the Time-Average-Frequency signal outputted from TAF-DPSfast 761 to a conventional frequency signal. The output of 1×PLL 769 is the signal Fast Clock 767.
T1 functions as the graduation of main scale in TAF-DPS Vernier caliper and T2 is the graduation of Vernier scale. The Vernier factor N can be found using the principle that N graduations on Vernier scale covers the length (the time duration) of N−1 graduations on main scale. N is an integer. The calculation is carried out in (6) and the result is expressed in (7). From (7), it is understood that the TAF-DPS Vernier caliper's resolution is programmable since its Vernier factor N can be changed by the values of I and r. In TAF-DPS circuit, the I and r are user inputs. Table I provides some numerical examples. From this table, it is seen that TAF-DPS Vernier caliper possesses the capability of producing very fine measurement resolution.
N·T2=(N−1)·T1→N·[(I−1)+r]·Δ=(N−1)·I·Δ (6)
N=I/(1−r) (7)
TABLE I
The Vernier factor N in TAF-DPS Vernier caliper
(1 − r) = 2−0
(1 − r) = 2−1
(1 − r) = 2−2
(1 − r) = 2−4
(1 − r) = 2−8
(1 − r) = 2−16
(1 − r) = 2−24
I = 8
8
16
32
128
2048
524288
134217728
I = 16
16
32
64
256
4096
1048576
268435456
I = 32
32
64
128
512
8192
2097152
536870912
I = 64
64
128
256
1024
16384
4194304
1073741824
τ=n1·T1−n2·T2=n1·I·Δ−n2·[(I−1)+r]·Δ (8)
τ=(n1−n2)·I·Δ+(1−r)·n2·Δ=(n1−n2)·T1+(1−r)·n2·Δ (9)
Clock generator 750 can function as the slow oscillator 330 in
Ncal=fGRO/fcal=Tcal/TGRO=Tcal/(K·Δ)=1/(K·Δ·fcal)→Δ=1/(K·Ncal·fcal) (10)
τ=[(n1−n2)·I+(1−r)·n2]/(K·Ncal·fcal (11)
In practice, the value of Δ might not be precisely known since the GROs are free-run. In circuit design, the range of the GRO oscillation frequency can be controlled and its value can be estimated. However, at any given moment, its precise value is difficult to be known for sure. For this reason, a reference signal of known frequency has to be used to calibrate it. In system, a stable reference frequency fcal can be incorporated to calibrate the FGRO. Within one cycle of Tcal, the number of pulses Ncal of TGRO can be counted. In some cases, more cycles of Tcal can be used to improve the accuracy of calculating Ncal by using the average of several Ncal values. Δ can be calculated from (10). Subsequently, the absolution value of TOF measurement τ is derived in (11).
Exemplary TAF-DPS Vernier Caliper configuration #1 is now described. In this case, no fraction is used in the frequency control word Ffast. Assume that the gated ring oscillators 752 and 762 run at frequency of fGRO=200 MHz (TGRO=5 ns). Further assume that, inside each GRO, there are 16 differential stages (K=32). This leads to Δ=TGRO/32=156.25 ps. For TAF-DPSslow 751, frequency control word Fslow 756 takes value of Fslow=I=50. This results in T1=50·Δ=7.8125 ns. For TAF-DPSfast 761, frequency control word Ffast 766 takes value of Ffast=I−1=49. This results in T2=49·Δ=7.65625 ns. The Vernier factor in this configuration can be calculated as N=I=50. If the calibration frequency is chosen as fcal=32.768 KHz (Tcal=30.5176 ms), the Ncal is expected to be in the neighborhood of 6103. Three counters could be used for holding the values of n1, n2 and Ncal.
Table II gives several examples of hypothetic TOF measurements. They can be used to illustrate the working mechanism of this method. There are six different TOFs measured in this table. For each measurement, the TOF measurement τ comprises two parts: τ=τint+τfrac. It is worth to mention that the base unit for TOF measurement in this approach is Δ. The two scales are T1=50·Δ (the main scale) and T2=49·Δ (the Vernier scale). However, the Δ is not explicitly used in the calculation. It is indirectly included in the calculation through fGRO and fcal.
TABLE II
TOF measurements from TAF-DPS Vernier caliper configuration #1
n1 = 10000, n2 = 38
n1 = 9, n2 = 9
Meas. integer part,
Meas. fractional part
Meas. integer part
Meas. fractional part
τint
τfrac
τint
τfrac
fGRO = 200 MHz
9962 fslow cycles
38Δ1
zero fslow cycle
9Δ
Ncal = 6103
77.83 us
5.9 ns
0 us
1.41 ns
fGRO = 175 MHz
9962 fslow cycles
38Δ
zero fslow cycle
9Δ
Ncal = 5340
88.96 us
6.8 ns
0 us
1.61 ns
fGRO = 225 MHz
9962 fslow cycles
38Δ
zero fslow cycle
9Δ
Ncal = 6866
69.19 us
5.3 ns
0 us
1.25 ns
1T1 = I · Δ = 50Δ is the size of a full cycle of the slow clock. Thus, this number is called the fractional part of the measurement since 38Δ is smaller than one T1.
Exemplary TAF-DPS Vernier Caliper configuration #2 is now described. In this case, a fraction is used in frequency control word Ffast 766. For TAF-DPSslow 751, its frequency control word Fslow take the value of Fslow=I=50. This leads to T1=50·Δ=7.8125 ns. For TAF-DPSfast 761, its frequency control word Fslow takes the value of Fslow=(I−1)+r=49+r. This leads to T2=(49+r)·Δ. The Vernier factor is N=I/(1−r)=49/(1−r). The rest of parameters are the same as that of the previous case.
In this case, we assume n1=n2=n. Under this setting, we measure smaller TOFs. In other words, we only study the fractional portion of the measurement (since the integer portion is straightforward and it is already understood in previous case). We further assume fGRO=200 MHz (Ncal=6103). Under this condition, from (11), we have τ=(1−r)·n/(K·Ncal·fcal). In this example, the fraction r in the frequency control word is chosen in such way that the values of 1−r are 20, 2−1, 2−8, 2−16, and 2−24, respectively. According to equation (7), the Vernier factor is set to be 50, 100, 12800, 3276800 and 838860800, respectively. It is expected that the time resolution on measuring TOF will be greatly enhanced with large Vernier factor. The numbers given in table III confirm this predication.
TABLE III
TOF measurements from TAF-DPS Vernier caliper configuration #2
n = 10
n = 100
n = 1000
n = 10000
(1-r) = 20
τ = 10Δ
τ = 100Δ+
τ = 1000Δ+
τ = 10000Δ+
→ N = 50
1.56 ns
15.6 ns
156 ns
1.56 us
(1-r) = 2−1
τ = 5Δ
τ = 50Δ+
τ = 500Δ+
τ = 5000Δ+
→ N = 100
0.78 ns
7.8 ns
78 ns
780 ns
(1-r) = 2−8
τ = 0.0390625Δ
τ = 0.390625Δ
τ = 3.90625Δ
τ = 39.0625Δ
→ N = 12800
0.6 ps
6 ps
60 ps
600 ps
(1-r) = 2−16
τ = 0.000152588Δ
τ = 0.001525879Δ
τ = 0.015258789Δ
τ = 0.152587891Δ
→ N = 3276800
0.02 ps
0.2 ps
2 ps
20 ps
(1-r) = 2−24
τ = 5.96046E−07Δ
τ = 5.96046E−06Δ
τ = 5.96046E−05Δ
τ = 0.000596046Δ
→ N = 838860800
0.09 fs
0.9 fs
9 fs
90 fs
+These values are invalid (not produced from the counters) since they are greater than T1 → n value is not realistic for this Vernier factor setting.
In configuration #1, the frequency control words for the TAF-DPSslow and TAF-DPSfast are Fslow=I=50 and Ffast=I−1=49, respectively. This results in the main scale of T1=50·Δ and the Vernier scale of T2=49·Δ. The Vernier factor is 50. In configuration #2, taking the case of 1−r=2−8 for example, Fslow=I=50 and Ffast=I−1+2−8=49.00390625. Thus, the Vernier factor is 12800. In this case, the main scale is still T1=50·Δ. The Vernier scale is not fixed; it varies. For every 256 (=28) cycles in Vernier scale, there are 255 T2_A=49·Δ and one T2_B=50·Δ. In average, the size of Vernier scale is T2=49.00390625·Δ. As a result, it can reach a fine measurement resolution.
Refer now to
Both Slow Clock 831 and Fast Clock 841 are fed to phase detector 850. Slow Clock 831 and Fast Clock 841 are also used to drive Counter #1 860 and Counter #2 870, respectively. Phase detector 850 has an output Reset 851 that is used to control the Counter #1 860 and Counter #2 870. Signal Reset 851 becomes active when point-of-coincidence is detected. The point-of-coincidence is reached when the edges of Slow Clock 831 and Fast Clock 841 are aligned. At this moment, the contents of Counter #1 860 and Counter #2 870 are read out and stored in registers as values n1 861 and n2 871, respectively. The counters are subsequently reset.
System 800 has a block of A-Calibrator 880 for calibrating the base time unit A. It has four inputs: EN 882 for enabling the A-Calibrator 880; Scal 881 for receiving a reference signal of known frequency; SGRO_S 832 and SGRO_F 842 are fed into Δ-Calibrator 880 for being calibrated. EN 882 can connect to Reset 851 or other user-controlled signals. Scal 881 comes from external source of known frequency fcal. As an example, it could be a 32.768 KHz real time clock. Δ-Calibrator 880 has an output Ncal 884 whose value can be derived by using equation (10). In the process of calculating Ncal, either signal SGRO_S 832 or SGRO_F 842 can be used to count against the reference signal Scal 881. In some case, both signals SGRO_S 832 and SGRO_F 842 can be used and the Ncal 884 can be the derived from the average of the results obtained.
System 800 has another block of Calculation 890 for calculating the TOF measurement result. From the values of n1 861, n2 871, Ncal 884, fcal and the integer value I used in Fslow and Ffast, equation (11) can be used to derive the TOF value τ 891.
Refer now to
Refer now to
To improve the accuracy of TOF measurement, using system 1000, duplication of Fast Clock signals can be used to generate a group of T values that correspond to one pair of Start and Stop signals. In this case, signals Stop1 10201, Stop2 10202, . . . , Stopq 1020q will all be connected to one signal Stop 1020 and frequency control words Ffast_—1 10431, Ffast_2 10432, . . . , Ffast_q 1043q all take the same value. The final τ value can be derived as the average of the said plurality of q τ values. In certain case, the maximum and minimum τ values of said plurality of q τ values can be eliminated from the calculation. The average can be derived from the rest of T values in the set. In some other cases, signals Stop1 10201, Stop2 10202, . . . , Stopq 1020q can connect to multiple different Stop signals so that a group of TOF measurements can be accomplished. Further, in certain cases, each of the frequency control words Ffast_1 10431, Ffast_2 10432, . . . , Ffast_q 1043q can take its own value so that several different configurations can be implemented in said plurality of q fast clock generators 10401, 10402, . . . , 1040q. This approach is useful for certain applications.
System 1000 also has a A-Calibrator block 1080. It performs the same function as those described in system 800. Signal EN 1082 can be one selected from the set of {Reset1, Reset2, . . . , Resetq,} or other user-controlled signals. Signal Scal 1081 comes from a reference signal source of known frequency. The SGRO_S 1032 and the set of signals {SGRO_F1, SGRO_F2, . . . , SGRO_Fq} are all fed into A-Calibrator block 1080. In the process of calibration, one of them can be used to count against the reference. In some cases, several of them can be used to count against the reference and the final result of Ncal 1084 can be derived from the averaging.
System 1000 also has a Calculation block 1090. It takes the outputs {n1_1, n2_1}, {n1_2, n2_2}, . . . , {n1_q, n2_q} from said plurality of q counter pairs. It also takes output Ncal 1084 from Δ-Calibrator block 1080. It uses equation (11) to derive a plurality of q TOF results 1091 τ1, τ2, . . . , τq.
The present invention further relates to a method of using TAF-DPS Vernier caliper to measure TOF. The method generally comprises the steps of (1) using gated ring oscillator and TAF-DPS and 1×PLL to create a slow clock signal generator and a fast clock signal generator; 2) setting the clock frequencies (periods) of said slow clock signal and fast clock signal to 1/f1=T1=I·Δ and 1/f2=T2=[(I−1)+r]·Δ, respectively, where I is an integer of greater than one and r is a fraction in range of [0,1); 3) starting the slow clock generator from the rising (or falling) edge of a Start signal, starting the fast clock generator from the rising (or falling) edge of a Stop signal; 4) feeding the slow clock signal and the fast clock signal to a phase detector, driving a first digital counter by said slow clock signal, driving a second digital counter by said fast clock signal; 5) generating a Reset signal from said phase detector by detecting point-of-coincidence; 6) reading out the contents of said digital counters and then reset the digital counters; 7) calibrating the frequency of gated ring oscillator by comparing its output to a signal of known frequency; 8) calculating TOF between the Start and Stop signals from the contents of said digital counters and the calibrated frequency of gated ring oscillator.
Refer now to
Thus, the present invention provides circuits and methods to accurately measure TOF between two electrical signals. The present invention can reach measurement accuracy far beyond the gate delay of one buffer/inverter. The present invention uses Time-Average-Frequency direct period synthesizer to create the slow and fast clock signals. Thus, the present invention advantageously utilizes the TAF-DPS clock generator's capabilities of arbitrary frequency generation. Theoretically, it can result in any measurement accuracy giving appropriate resource and enough measurement time.
The foregoing descriptions of specific embodiments of the present invention have been presented for the purposes of illustration and description. They are not intended to be exhaustive or to limit the invention to the precise forms disclosed, and obviously many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the invention and its practical application, to thereby enable others skilled in the art to best utilize the invention and various embodiments with various modifications as are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the claims appended hereto and their equivalents.
Patent | Priority | Assignee | Title |
10520901, | Feb 23 2018 | Qualcomm Incorporated | Clock screening with programmable counter-based clock interface and time-to-digital converter with high resolution and wide range operation |
10541696, | Jan 31 2018 | BOE TECHNOLOGY GROUP CO., LTD. | Method of controlling electronic device and electronic device |
10558238, | Jan 04 2017 | BOE TECHNOLOGY GROUP CO , LTD | Frequency source with an adjustable frequency and related system, method and electronic device |
10686458, | Aug 01 2017 | Liming, Xiu | Method and apparatus for improving frequency source frequency accuracy and frequency stability |
10707854, | Feb 23 2018 | Qualcomm Incorporated | Clock screening with programmable counter-based clock interface and time-to-digital converter with high resolution and wide range operation |
10715154, | Jan 04 2017 | BOE TECHNOLOGY GROUP CO , LTD | Digitally controlled oscillator and all-digital frequency-locked loop and phase-locked loop based on digitally controlled oscillator |
11088691, | Jul 17 2019 | Kioxia Corporation | Oscillation circuit and interface circuit |
11177797, | Jan 02 2019 | BEIJING BOE TECHNOLOGY DEVELOPMENT CO , LTD ; BOE TECHNOLOGY GROUP CO , LTD | Measuring device and measuring method |
11342925, | Aug 30 2019 | BEIJING BOE TECHNOLOGY DEVELOPMENT CO , LTD ; BOE TECHNOLOGY GROUP CO , LTD | Signal generation circuit and method, and digit-to-time conversion circuit and method |
11381246, | Dec 17 2019 | HYUNDAI MOBIS CO , LTD | Time-to-digital converter and converting methods |
11588491, | Aug 30 2019 | BEIJING BOE TECHNOLOGY DEVELOPMENT CO , LTD ; BOE TECHNOLOGY GROUP CO , LTD | Signal generation circuit and method, and digit-to-time conversion circuit and method |
11777510, | Oct 12 2022 | Samsung Electronics Co., Ltd. | Fractional divider with phase shifter and fractional phase locked loop including the same |
11947672, | Mar 02 2021 | NXP B.V. | Voltage glitch detection circuit |
9621173, | Nov 19 2015 | Liming, Xiu | Circuits and methods of implementing time-average-frequency direct period synthesizer on programmable logic chip and driving applications using the same |
Patent | Priority | Assignee | Title |
6411075, | Mar 18 1999 | Nanosurf AG | Electronic frequency measuring device and its use |
9134752, | Dec 01 2011 | LAPIS SEMICONDUCTOR CO , LTD | Time measurement device, micro-controller and method of measuring time |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Jun 01 2015 | Liming, Xiu | (assignment on the face of the patent) | / |
Date | Maintenance Fee Events |
Nov 17 2019 | M3551: Payment of Maintenance Fee, 4th Year, Micro Entity. |
Dec 16 2023 | M3552: Payment of Maintenance Fee, 8th Year, Micro Entity. |
Date | Maintenance Schedule |
Jun 28 2019 | 4 years fee payment window open |
Dec 28 2019 | 6 months grace period start (w surcharge) |
Jun 28 2020 | patent expiry (for year 4) |
Jun 28 2022 | 2 years to revive unintentionally abandoned end. (for year 4) |
Jun 28 2023 | 8 years fee payment window open |
Dec 28 2023 | 6 months grace period start (w surcharge) |
Jun 28 2024 | patent expiry (for year 8) |
Jun 28 2026 | 2 years to revive unintentionally abandoned end. (for year 8) |
Jun 28 2027 | 12 years fee payment window open |
Dec 28 2027 | 6 months grace period start (w surcharge) |
Jun 28 2028 | patent expiry (for year 12) |
Jun 28 2030 | 2 years to revive unintentionally abandoned end. (for year 12) |