TIME TO DIGITAL CONVERTER WITH ERROR PROTECTION
Time to digital converters (TDCs) with high resolution are disclosed. The TDC includes a first time to digital converting module, a selection and time amplifying module, a second time to digital converting module and a decoder, and is applied in estimating a time difference between a first signal and a second signal. As the delay time of the delay units of the time to digital converting modules is the unit of the time difference measurement, the first and second time to digital converting modules are responsible for the integral portion and the fractional portion of the estimated time difference, respectively. Moreover, by introducing the normalization process, the linearity of the converting characteristic of the TDC can be improved; by adding an error detection circuit to the TDC, the possible metastable problem can be prevented.
Latest MEDIATEK INC. Patents:
- PROCESS-VOLTAGE SENSOR WITH SMALLER CHIP AREA
- PRE-CHARGE SYSTEM FOR PERFORMING TIME-DIVISION PRE-CHARGE UPON BIT-LINE GROUPS OF MEMORY ARRAY AND ASSOCIATED PRE-CHARGE METHOD
- ALWAYS-ON ARTIFICIAL INTELLIGENCE (AI) SECURITY HARWARE ASSISTED INPUT/OUTPUT SHAPE CHANGING
- Semiconductor package structure
- Semiconductor structure with buried power rail, integrated circuit and method for manufacturing the semiconductor structure
This application is related to co-pending U.S. utility application Ser. No. 12/235,624, filed on Sep. 23, 2008, entitled “Error Protection Method, TDC module, CTDC Module, All-Digital Phase-Locked Loop, and Calibration Method thereof” and claiming the priority of U.S. Provisional Applications No. 60/980,172 filed on Oct. 16, 2007 and 60/980,461 filed on Oct. 17, 2007, the entirety of which is incorporated herein by reference.
BACKGROUND OF THE INVENTION1. Field of the Invention
The present invention relates to time to digital converters (TDCs), and in particular relates to high resolution TDCs.
2. Description of the Related Art
Since the value of the unit delay time T is mainly dependent on the manufacturing process of the delay units DU1˜DU4, it is difficult to improve the estimation resolution of the conventional TDCs. Thus, novel TDC architectures with higher resolution are called for.
BRIEF SUMMARY OF THE INVENTIONThe invention discloses time to digital converters. According to one embodiment, the time to digital converter comprises a first time to digital converting module, a selection and time-amplifying module, a second time to digital converting module and a decoder. The first time to digital converting module delays a first signal to generate a plurality of delayed first signals, and reads out the states of the delayed first signals according to a second signal. The read-out states form first digital data. The selection and time-amplifying module determines the first zero bit of the first digital data and then selects and stretches the corresponding delayed first signal. The stretched result is outputted by the selection and time-amplifying module as a first reference signal. In additional to outputting the first reference signal, the selection and time-amplifying module further stretches the second signal along the time axis and outputs the stretched second signal. The second time to digital converting module delays the stretched second signal to generate a plurality of delayed and stretched second signals, and reads out the states of the delayed and stretched second signals according to the first reference signal to generate second digital data. The first and second digital data are sent to the decoder to be decoded for estimating a time difference between the first and second signals.
A detailed description is given in the following embodiments with reference to the accompanying drawings.
The present invention can be more fully understood by reading the subsequent detailed description and examples with references made to the accompanying drawings, wherein:
The following description shows the embodiments of carrying out the invention. This description is made for the purpose of illustrating the general principles of the invention and should not be taken in a limiting sense. The scope of the invention is best determined by reference to the appended claims.
Please note that the number of the delay units DU in the first and second time to digital converting modules 202 and 206 and the number of the time amplifiers TA in the selection and time-amplifying module 204 shown in this embodiment are for illustrative purpose only. The numbers and configurations of the delay units DU and the time amplifiers TA can be modified according to circuit requirements.
Using the delay time T of the delay units adopted in the time to digital converting modules 202 and 206 as a unit of estimating the time difference between the first and the second signals A and B, the decoded values D and F relate to the integral and fractional portions of the estimated time difference, respectively. When the time amplifiers TA1˜TA5 stretch their input signals along the time axis by M times, the decoder 208 executes a calculation of DT+(1−F/M)T to estimate the time difference between the first and second signals A and B.
For further explain the operation of the TDC shown in
The decoder 208 decodes the first digital data data_D[0:3] (=[1,0,0,0]) and the second digital data data_F[0:3] (=[1,0,0,0]) as 1 (D=1) and 1 (F=1), respectively, and then performs a calculation of DT+(1−F/M)T. The calculated result is 1 T+(1−½)T=1.5 T. Compared with the conventional TDC shown in
Using the delay time T of the delay units adopted in the time to digital converting modules 202 and 314 as a unit of estimating the time difference between the first and the second signals A and B, the decoded value D relates to the integral portion of the estimated time difference, and the decoded values F and N relate to the fractional portion of the estimated time difference. To estimate the time difference between the first and second signals A and B, the decoder 308 executes a calculation of DT+(1−F/(N−F))T, or DT+(1−F/Avg(N−F))T. Avg(.) represents an average operation, which accumulates the calculated (N−F) and averages them.
Referring to the aforementioned case, the stretched and delayed first signal that follows the first reference signal (SA2) is SA3. The selection circuit 302 therefore selects SA3 as the second reference signal 304. Compared to
In addition to getting the decoded values D=1 and F=1, the decoder 308 further decodes the third digital data data_N[0:3] as 3 (N=3), and then performs a calculation of DT+(1−F/(N−F))T. The calculated result is 1 T+(1−1/(3−1))T=1.5 T. Compared with the conventional TDC shown in
In some cases, because of metastable, the D-Flip-Flops array 210 may not correctly identify the states of the delayed first signals A1-A4 and output incorrect first digital data data_D[0:3]. In the case that the first and second signals A and B are those shown in
As such, to overcome the metastable problem, the invention further discloses TDCs with error protection.
Referring to the case shown in
The decoders of the invention may realize the aforementioned calculations by software or hardware.
The structures of the selection and time-amplifying modules 204 and 312 are not used to limit the scope of the invention, and may be replaced by other circuits capable of outputting the reference signals (such as the signal 214 or signals 214 and 304) and the stretched second signal SB. In some embodiments, the selection circuit may be placed prior to the timing amplifiers TA1˜TA4 to first select from the delayed first signals A1˜A4, and then stretch the selected signal along the time axis.
The structures of the time to digital converting modules 202 is not used to limit the scope of the invention, and other circuits capable of producing a plurality of delayed first signals and outputting a first digital data representing the time difference between the first and second signals, can be applied to replace the module 202. Furthermore, the second time to digital converting modules 206 and 314 can be replaced by any circuit with the same functions.
To conclude, the first time to digital converting module 202 may be regarded as a coarse converter, while the second time to digital converting module 206 (or 314) may be regarded as a fine converter. For example, the first time to digital converting module 202 compares at least a first signal A and a second signal B to generate first digital data data_D[0:3] representing a first portion (e.g. the integer part) of the phase/time difference between the first and second signals; the selection and time-amplifying module 204 (or 312) stretches (or magnifies) a second portion (e.g. the fractional part) of the phase/time difference between the first and second signals A and B to a degree that the second time to digital converting module 206 (or 314) can process; and the second time to digital converting module 206 (or 314) then compares the stretched second portion 214 with at least one stretched signal (SB1˜SB4 in above embodiment) corresponding to at least one of the first signal A and the second signal B to generate second digital data data_F[0:3] representing the second portion of the difference between the first and second signals. In this way, the resolution of the TDC can be improved. Moreover, by introducing the normalization process, the linearity of the converting characteristic of the TDC can be improved; by adding the error detection circuit 502, the possible metastable problem can be prevented.
Moreover, when the time to digital converters of above embodiments are implemented in a phase lock loop (PLL) circuit, the high resolution property of the time to digital converter can benefit the PLL to have small phase noise.
While the invention has been described by way of example and in terms of the preferred embodiments, it is to be understood that the invention is not limited to the disclosed embodiments. To the contrary, it is intended to cover various modifications and similar arrangements (as would be apparent to those skilled in the art). Therefore, the scope of the appended claims should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements.
Claims
1. A time to digital converter, comprising:
- a first time to digital converting module, for delaying a first signal to generate a plurality of delayed first signals and reading out states of the delayed first signals according to a second signal to generate first digital data;
- a selection and time-amplifying module, for selecting a first specific delayed first signal from the plurality of delayed first signals, stretching the first specific delayed first signal along the time axis to generate a first reference signal, and stretching the second signal along the time axis;
- a second time to digital converting module, for delaying the stretched second signal to generate a plurality of delayed and stretched second signals, and reading out states of the delayed and stretched second signals according to the first reference signal to generate second digital data; and
- a decoder, for decoding at least the first and second digital data to generate an estimation of a time difference between the first and second signals.
2. The time to digital converter as claimed in claim 1, wherein the selection and time-amplifying module further finds out a first zero bit in the first digital data, and selects the first specific delayed first signal according to the first zero bit.
3. The time to digital converter as claimed in claim 1, wherein the selection and time-amplifying module further selects and stretches a second specific delayed first signal from the plurality of delayed first signals to generate a second reference signal, and the second specific delayed first signal lags the first specific delayed signal by a delay time.
4. The time to digital converter as claimed in claim 3, wherein the second time to digital converting module further reads out states of the delayed and stretched second signals according to the second reference signal to generate third digital data.
5. The time to digital converter as claimed in claim 4, wherein the decoder further decodes the third digital data and generates the estimation of the time difference between the first and second signals by performing a first calculation on the decoded first, second and third digital data.
6. The time to digital converter as claimed in claim 5, further comprising an error detector, for detecting phases of the first reference signal and the stretched second signal and outputting an error protection enable signal to the decoder when the stretched second signal lags the first reference signal.
7. The time to digital converter as claimed in claim 6, wherein the decoder is switched to perform a second calculation to generate the estimation when receiving the error protection enable signal.
8. The time to digital converter as claimed in claim 7, wherein the second calculation utilizes previous decoded second digital data and previous decoded third data rather than the decoded second digital data and decoded third data to generate the estimation.
9. A time to digital converter, comprising:
- a first time to digital converting module, for delaying a first signal to generate a plurality of delayed first signals, and reading out states of the delayed first signals according to a second signal to generate first digital data;
- a selection and time-amplifying module, for stretching the delayed first signals and the second signal along a time axis to generate a plurality of stretched and delayed first signals and a stretched second signal, and selecting one stretched and delayed first signal from the plurality of stretched and delayed first signals as a first reference signal according to the first digital data;
- a second time to digital converting module, for delaying the stretched second signal to generate a plurality of delayed and stretched second signals, and reading out states of the delayed and stretched second signals according to the first reference signal to generate second digital data; and
- a decoder, for decoding at least the first and second digital data to generate an estimation of a time difference between the first and second signals.
10. The time to digital converter as claimed in claim 9, wherein the first reference signal lags the stretched second signal and leads the other stretched and delayed first signals that lags the stretched second signal.
11. The time to digital converter as claimed in claim 9, wherein the selection and time-amplifying module further selects another stretched and delayed first signal from the plurality of stretched and delayed first signals as a second reference signal, wherein the second reference signal lags the first reference signal and leads the other stretched and delayed first signals that lags the first reference signal.
12. The time to digital converter as claimed in claim 11, wherein the second time to digital converting module further reads out states of the delayed and stretched second signals according to the second reference signal to generate third digital data.
13. The time to digital converter as claimed in claim 12, wherein the decoder further decodes the third digital data, and calculates the difference between the decoded second and third digital data to normalize the decoded second digital data.
14. A time to digital converter, comprising:
- a first time to digital converting module, for comparing at least a first signal and a second signal to generate first digital data representing a first portion of a difference between the first and second signals;
- a time-amplifying module, for stretching a second portion of the difference between the first and second signals to generate a stretched second portion;
- a second time to digital converting module, for comparing the stretched second portion with at least one stretched signal corresponding to at least one of the first signal and the second signal to generate second digital data representing the second portion of the difference between the first and second signals; and
- a decoder, for decoding at least the first and second digital data to generate an estimation of a time difference between the first and second signals.
15. The time to digital converter as claimed in claim 14, wherein the first portion corresponds to integer part of the difference, and the second portion corresponds to fractional part of the difference.
16. The time to digital converter as claimed in claim 14, further comprising an error detector, for detecting error of the time-amplifying module and outputting an error protection enable signal to the decoder when the error is detected.
17. The time to digital converter as claimed in claim 16, wherein the decoder decodes the first and second digital data by performing a first calculation scheme when the error protection enable signal is not received, and is switched to perform a second calculation scheme different from the first calculation scheme when receiving the error protection enable signal.
18. The time to digital converter as claimed in claim 14, wherein the decoder further normalizes the second digital data before generating the estimation of the time difference between the first and second signals.
Type: Application
Filed: Feb 18, 2009
Publication Date: Jun 18, 2009
Applicant: MEDIATEK INC. (Hsin-Chu)
Inventor: Hsiang-Hui Chang (Taipei Hsien)
Application Number: 12/372,841
International Classification: H03M 5/08 (20060101);