1. Field of the Invention
The invention relates generally to a delay-locked loop (DLL), and more particularly, to a DLL capable of preventing a false lock.
2. Description of Related Art
An ideal DLL locks the output clock signal CKOUT to lag one cycle after the reference clock signal FREF. In other words, the loop filter 120 should control the delay chain 130 so the length of the delay time of the output clock signal CKOUT is set at one cycle. However, since the initial delay of the delay chain when the circuit is turned on is not a fixed value, a false lock results if an initial non-ideal delay occurs.
An operable delay range of the conventional DLL is from 0.5 T to 1.5 T as shown in
When the initial delay time of the clock output clock signal CKOUT relative to the reference clock signal FREF is outside the range between 0.5 T to 1.5 T, a false lock occurs. As shown in
As shown in
The two faulty phenomena of the harmonic lock and the stuck lock are referred to as the false lock.
Accordingly, the invention is directed to a delay-locked loop (DLL) capable of effectively preventing a false lock.
The invention provides a DLL for receiving a reference clock signal and outputting an output clock signal. The DLL includes a phase detector, a delay chain, an anti-false lock (AFL) circuit, and a loop filter. The phase detector outputs a first comparison signal according to a phase comparison between the reference clock signal and the output clock signal. The delay chain generates a plurality of strobe clock signals and the output clock signal by delaying the reference clock signal for different intervals. The AFL circuit outputs a second comparison signal according to a phase comparison between the reference clock signal and the strobe clock signals. The loop filter controls a delay time of the output clock signal according to the first and second comparison signals in order to lock the delay time of the output clock signal at a preset value.
Embodiments of the invention employ structurally simple and compact circuits to prevent the false luck. Moreover, the DLL according to embodiments of the invention has an easily adjustable false lock detection range and operable range.
In order to make the aforementioned and other features and advantages of the invention more comprehensible, embodiments accompanying figures are described in detail below.
The accompanying drawings are included to provide a further understanding of the invention, and are incorporated in and constitute a part of this specification. The drawings illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
In the present embodiment, the preset value is equal to a cycle of the reference clock signal FREF. However, a different preset value may be configured if necessary.
The loop filter 420 and the delay chain 430 may be implemented in analog or digital mode. When implemented in analog mode, the loop filter 420 is an analog loop filter, and the delay chain 430 is an analog voltage control delay line. When implemented in digital mode, the loop filter 420 is a digital loop filter, and the delay chain 430 is a digital voltage control delay line.
When the AFL circuit 440 detects the delay time of the output clock signal CKOUT relative to the reference clock signal FREF is between 0.66 T to 1.33 T, a normal state of the comparison signal CMP2 is outputted. At this time, the loop filter 420 acts like a conventional loop filter, and the loop filter 420 controls the delay time of the output clock signal CKOUT according to the comparison signal CMP1 in order to lock the delay time of the output clock signal CKOUT at a preset value of 1 T.
When the AFL circuit 440 detects the delay time of the output clock signal CKOUT relative to the reference clock signal FREF is greater than 1.33 T, a harmonic lock state of the comparison signal CMP2 is outputted to prevent harmonic lock. At this time, the loop filter 420 directly shortens the delay time of the output clock signal CKOUT until the comparison signal CMP2 is in the normal state.
When the AFL circuit 440 detects the delay time of the output clock signal CKOUT relative to the reference clock signal FREF is less than 0.66 T, a stuck lock state of the comparison signal CMP2 is outputted to prevent stuck lock. At this time, the loop filter 420 directly elongates the delay time of the output clock signal CKOUT until the comparison signal CMP2 is in the normal state.
As shown in the description above, when the comparison signal CMP2 is in the stuck lock state or the harmonic lock state, the loop filter 420 adjusts the delay time of the output clock signal CKOUT according to the comparison signal CMP2 of the AFL circuit 440. When the comparison signal CMP2 is in the normal state, the loop filter 420 returns to the conventional mechanism and adjusts the delay time of the output clock signal CKOUT according to the comparison signal CMP1 of the phase detector 410. Although the operational range of the conventional DLL is only between 0.5 T to 1.5 T, by adopting the afore-described mechanism of the present embodiment, even when the initial delay time of the output clock signal CKOUT is outside of the 0.5 T to 1.5 T range, the output clock signal CKOUT can still be correctly locked at the preset value of 1 T.
As to how the AFL circuit 440 detects the delay time of the output clock signal CKOUT and the corresponding relationship of the two boundary points, further description thereof is provided hereinafter.
Any conventional implementations may be adopted for the control mechanism of the loop filter 420 on the delay time of the output clock signal CKOUT. For example, the loop filter 420 may include a counter, and the delay chain 430 may control the delay times of the output clock signal CKOUT and each of the strobe clock signals PHS according to a count value of the counter, in which the delay time becomes longer as the count value increases. When the comparison signal CMP2 is in the harmonic lock state, the counter of the loop filter 420 decreases the count value. When the comparison signal CMP2 is in the stuck lock state, the counter of the loop filter 420 increases the count value. When the delay time of the output clock signal CKOUT is within the range of 0.66 T to 1.33 T, the comparison signal CMP2 enters the normal state. At this time, the loop filter 420 conventionally controls the count value according to the comparison signal CMP1 in order to correctly lock the delay time of the output clock signal CKOUT at the preset value of 1 T.
The storage units 601-603 are serially coupled in order, and thus the storage units 601-603 may be referred to as serial storage units. The storage units 601-603 respectively receive strobe clock signals PHS-PHS3 as trigger signals. Moreover, each of the serial storage units 601-603 receives an input signal. When the corresponding one of the strobe clock signals is enabled, each of the serial storage units 601-603 stores the corresponding input signal. The input signal of the first serial storage unit 601 is a preset voltage VCC, and the other input signals received by the serial storage units 602 and 603 are the input signals stored by the previous serial storage unit. Moreover, the input signal stored by the last serial storage unit 603 is outputted as an internal signal O2. The preset voltage VCC of the present embodiment is a corresponding voltage of logic 1. The serial connected structure of the storage units 601-603 can achieve a phase comparison of the reference clock signal FREF and the strobe clock signals PHS.
The signal generating unit 640 generates two clock signals FREF_PAFL and FREF_NAFL by delaying the reference clock signal FREF for different intervals. Moreover, the signal generating unit 640 also outputs the reset signal RB, and each of the serial storage units 601-603 resets the input signal stored therein when the reset signal RB is enabled.
The storage unit 631 receives the internal signal O2 and the clock signal FREF_PAFL, and the storage unit 631 stores the internal signal O2 when the clock signal FREF_PAFL is enabled. The storage unit 632 receives the internal signal O2 and the clock signal FREF_NAFL, and the storage unit 632 stores the internal signal O2 when the clock signal FREF_NAFL is enabled.
The comparison signal CMP2 outputted by the AFL circuit 440 is composed of a harmonic lock signal P_AFL and a stuck lock signal N_AFL. In the present embodiment, the inverter 633 receives the internal signal O2 stored by the storage unit 631 and outputs the harmonic lock signal P_AFL. Therefore, the harmonic lock signal P_AFL is an inverted signal of the internal signal O2 stored by the storage unit 631. When the harmonic lock signal P_AFL is enabled, the value thereof is logic 1, and when the harmonic lock signal P_AFL is disabled, the value thereof is logic 0. However, the invention is not limited thereto. In other embodiments, the inverter 633 may be omitted, so that the harmonic lock signal P_AFL is the internal signal O2 stored by the storage unit 631. Under this condition, when the harmonic lock signal P_AFL is enabled, the value thereof is logic 0, and when the harmonic lock signal P_AFL is disabled, the value thereof is logic 1.
In the present embodiment, the stuck lock signal N_AFL is the internal signal O2 stored by the storage unit 632. When the stuck lock signal N_AFL is enabled, the value thereof is logic 1, and when the stuck lock signal N_AFL is disabled, the value thereof is logic 0. However, the invention is not limited thereto. In other embodiments, an inverter may be disposed between the output terminal Q of the storage unit 632 and the output terminal of the stuck lock signal N_AFL, in which the stuck lock signal N_AFL is the inverted signal of the internal signal O2 stored by the storage unit 632. Under this condition, when the stuck lock signal N_AFL is enabled, the value thereof is logic 0, and when the stuck lock signal N_AFL is disabled, the value thereof is logic 1.
When the harmonic lock signal P_AFL and the stuck lock signal N_AFL are both disabled, the comparison signal CMP2 is in the normal state. When the harmonic lock signal P_AFL is enabled and the stuck lock signal N_AFL is disabled, the comparison signal CMP2 is in the harmonic lock state. When the harmonic lock signal P_AFL is disabled and the stuck lock signal N_AFL is enabled, the comparison signal CMP2 is in the stuck lock state.
(¾)*x>T (1)
in which x is the delay time of the output clock signal CKOUT, and this condition can be computed as:
x>( 4/3)*T=1.33T (2).
Moreover, the computed value of 1.33 T is the boundary point of the normal state and the harmonic lock state as shown in
(¾)*x<(½)*T (3)
and this condition can be computed as:
x<(⅔)*T=0.66T (4).
Moreover, the computed value of 0.66 T is the boundary point of the normal state and the stuck lock state as shown in
In the present embodiment, a cycle of the reset signal RB is the same as a cycle of the reference clock signal FREF, and the reset signal RB is enabled by a pulse of logic 0. As shown by
The AFL circuit according to embodiments of the invention has a plurality of possible variations. For example,
Generally speaking, an AFL circuit according to embodiments of the invention may include N serial storage units. Moreover, the delay time of the ith serial storage unit is i/(N* 4/3) of the delay time of the output clock signal CKOUT, in which i is an integer and 1≦i≦N. N may be any integer greater than or equal to 3, and not limited to powers of 2. For example, numbers such as 3, 7, and 10 are all acceptable. The specific numeric value of N can be decided by a designer. The operable range of the DLL using these AFL circuits is between 0 to N*( 4/3)*T. In other words, as long as the delay time of the output clock signal CKOUT relative to the reference clock signal FREF is within the range of 0 to N*( 4/3)*T, the output clock signal CKOUT can be locked to a preset delay time of 1 T.
In order for proper operation of the DLL, the false lock detection range must be linked with the operable range of the phase detector 410. When the operable range of the phase detector 410 is between TPD1 to TPD2 (e.g., 0.5 T to 1.5 T as shown in
In light of the above, factors influencing the false lock detection range include the delay time of the strobe clock signal received by the last serial storage unit of the AFL circuit, and the delay times of the clock signals FREF_PAFL and FREF_NAFL. The delay times of the clock signals FREF_PAFL and FREF_NAFL may be modified by adjusting the buffer 710 of the signal generating unit 640.
The afore-described embodiments include a plurality of circuit signals. Moreover, the enabled states of some signals are represented by the voltage levels of logic 1 or logic 0, the enabling operation of some signals is represented by the rising edge from logic 0 to logic 1, while the enabling operation of some signals is represented by pulses. The enabling mechanisms of the afore-described signals are merely exemplary, and therefore should not be construed as limiting the spirit and scope of the invention. The key is in the functions or the responses triggered by the enabled states or the enabling operations of the signals, and not in the particulars of the how to represent the enabled states or operations.
In view of the foregoing, embodiments of the invention can effectively prevent a harmonic lock and a stuck lock from occurring in a DLL. The AFL circuit described in embodiments of the invention can be designed to have a flexible false lock detection range and operable range. The reset signal of the AFL circuit can prevent erroneous decisions, and therefore the robustness of the DLL is enhanced. The AFL circuit according to embodiments of the invention is structurally simple and compact. Therefore, the AFL circuit can lower the complexity and cost of the whole circuit, making the AFL circuit suitable for high speed applications.
Although the invention has been described with reference to the above embodiments, it will be apparent to one of the ordinary skill in the art that modifications to the described embodiment may be made without departing from the spirit of the invention. Accordingly, the scope of the invention will be defined by the attached claims not by the above detailed descriptions.
| Number | Name | Date | Kind |
|---|---|---|---|
| 5473639 | Lee et al. | Dec 1995 | A |
| 6119242 | Harrison | Sep 2000 | A |
| 6667643 | Ko | Dec 2003 | B2 |
| 6927635 | Miki et al. | Aug 2005 | B2 |
| 7157949 | Chen et al. | Jan 2007 | B2 |
| 7209533 | Nguyen et al. | Apr 2007 | B1 |
| 7233182 | Savoj | Jun 2007 | B1 |
| 7298191 | Wu et al. | Nov 2007 | B2 |
| 7366269 | Ishida et al. | Apr 2008 | B2 |
| 20030076142 | Ko | Apr 2003 | A1 |
| 20050206418 | Chen et al. | Sep 2005 | A1 |
| 20050238129 | Ishida et al. | Oct 2005 | A1 |
| 20060132205 | Wu et al. | Jun 2006 | A1 |
| 20060250192 | Hsieh | Nov 2006 | A1 |
| 20100013530 | Kim et al. | Jan 2010 | A1 |
| Number | Date | Country | |
|---|---|---|---|
| 20130002320 A1 | Jan 2013 | US |