PHASE-LOCKED LOOP SLIP DETECTOR
20230006681 · 2023-01-05
Assignee
Inventors
- Shailesh Ganapat GHOTGALKAR (Bengaluru, IN)
- Wei FU (Plano, TX, US)
- Venkatseema DAS (Allen, TX, US)
- Jiankun HU (Plano, TX, US)
Cpc classification
H03L7/087
ELECTRICITY
International classification
Abstract
A phase-locked loop (PLL) includes a phase-frequency detector (PFD) having a first PFD input, a second PFD input, and a PFD output. The PFD is configured to generate a first signal on the PFD output. The first signal comprises pulses having pulse widths indicative of a phase difference between signals on the first and second PFD inputs. A low pass filter (LPF) has an LPF input and an LPF output. The LPF input is coupled to the PFD output. A flip-flop has a clock input and a flip-flop output. The clock input is coupled to the LPF output. A lock-slip control circuit is coupled to the flip-flop output and to the first PFD input. The lock-slip control circuit is configured to determine phase-lock and phase-slip based at least in part on a signal on the flip-flop output.
Claims
1. A circuit, comprising: a phase-frequency detector (PFD) having a first PFD input terminal, a second PFD input terminal, and a PFD output terminal, wherein the PFD is configured to generate a first signal on the PFD output terminal, the first signal comprising pulses having pulse widths indicative of a phase difference between signals on the first PFD input terminal and the second PFD input terminal; a low pass filter (LPF) having an LPF input and an LPF output; a flip-flop having a flip-flop input and a flip-flop output, the flip-flop coupled to the LPF; and a lock-slip control circuit coupled to the flip-flop output and to the first PFD input terminal, the lock-slip control circuit configured to detect a phase-lock.
2. The circuit of claim 1, further comprising an inverter coupled between the flip-flop output and the flip-flop input.
3. The circuit of claim 1, wherein the lock-slip control circuit is configured to receive a reference clock.
4. The circuit of claim 3, further comprising: a phase-locked loop (PLL) circuit, wherein the lock-slip control circuit includes a counter circuit configured to count a number of edges on a signal provided by the flip-flop output in a predetermined number of cycles of the reference clock.
5. The circuit of claim 4, wherein the lock-slip control circuit is configured to assert a lock signal indicating that the PLL circuit is in phase-lock responsive to the number of edges being zero.
6. The circuit of claim 4, wherein the lock-slip control circuit is configured to de-assert a lock signal indicating that the PLL circuit is not in phase-lock responsive to the number of edges being greater than or equal to a first threshold number.
7. The circuit of claim 6, wherein the lock-slip control circuit is configured to assert a quasi slip signal responsive to the number of edges being greater than a second threshold number and less than the first threshold number.
8. The circuit of claim 1, wherein the flip-flop is coupled to a loop filter and a charge pump.
9. The circuit of claim 1, wherein: the LPF input is coupled to an output of a logic gate; a first input of the logic gate is coupled to a first output of the PFD, wherein the first output of the PFD is the PFD output terminal; and a second input of the logic gate is coupled to a second output of the PFD.
10. The circuit of claim 9, wherein the logic gate is an OR gate.
11. The circuit of claim 9, wherein: the LPF includes a buffer having a resistance and a capacitance that determine a frequency response; and the frequency response is configured to filter out signals from the logic gate having a pulse width below a pulse width threshold.
12. The circuit of claim 11, wherein the capacitance includes a plurality of capacitors.
13. The circuit of claim 11, wherein the capacitance includes a first capacitor, a second capacitor coupled to a first switch, and a third capacitor coupled to a second switch.
14. The circuit of claim 13, wherein the first switch and the second switch are configured to adjust the frequency response of the LPF.
15. The circuit of claim 13, wherein the first switch and the second switch are controlled by a value stored in a configuration register.
16. The circuit of claim 1, wherein the LPF is configured to filter signals having a pulse width less than or equal to 500 picoseconds.
17. The circuit of claim 1, further comprising a voltage-controlled oscillator (VCO) having a VCO output configured to generate an output clock, the VCO coupled to the PFD.
18. A system, comprising: a phase-frequency detector (PFD) having a first PFD input terminal, a second PFD input terminal, and a PFD output terminal; a loop filter and a charge pump coupled to the PFD; a voltage-controlled oscillator (VCO) coupled to the loop filter and the charge pump, the VCO configured to generate an output clock; and a lock-slip detect circuit coupled to the PFD, to the loop filter and the charge pump, the lock-slip detect circuit configured to output an indicator indicating a quasi phase-slip, the lock-slip detect circuit comprising: a low pass filter (LPF) having an LPF input and an LPF output; a flip-flop having a flip-flop input and a flip-flop output, the flip-flop coupled to the LPF; and a lock-slip control circuit configured to output the indicator.
19. The system of claim 18, wherein: the lock-slip control circuit includes a counter circuit configured to count a number of edges on the flip-flop output in a predetermined number of cycles of a reference clock; the lock-slip control circuit is configured to assert the indicator indicating that the system is in phase-lock responsive to the number of edges being zero; and the lock-slip control circuit is configured to assert the indicator indicating quasi slip responsive to the number of edges being between a first threshold and a second threshold.
20. A method for detecting slip in a phase-locked loop (PLL), comprising: receiving a signal, wherein the signal includes pulse widths equal to or greater than a first threshold; generating a flip-flop output signal based on the signal; counting a number of edges of the flip-flop output signal over a period of time; in response to the number of edges of the flip-flop output signal being zero in the period of time, outputting a phase-lock signal; in response to the number of edges of the flip-flop output signal being between a second threshold and a third threshold, outputting a quasi phase-slip signal; and in response to the number of edges of the flip-flop output signal being at or greater than the third threshold, outputting a phase-slip signal.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0004] For a detailed description of various examples, reference will now be made to the accompanying drawings in which:
[0005]
[0006]
[0007]
[0008]
DETAILED DESCRIPTION
[0009] The phase of an output clock from a PLL is controlled to maintain a prescribed phase relationship with respect to its input reference clock. For example, the output clock may desirably be phase-locked to the reference clock. An undesirably large phase difference may occur, however, due to, for example, noise that infects the PLL. The reference clock may be susceptible to noise. Further, noise may infect the PLL through the PLL's power supply. Regardless of the source of noise or the reason for a large phase deviation between the input and output clocks to occur, any downstream circuitry that relies on the PLL's output clock being phase-locked to the input reference clock may be detrimentally impacted by the use of an output clock from the PLL that has “slipped.” The output clock from the PLL is characterized as being in a “lock” state or a “slip” state. The lock state means that the phase difference between the output and reference clocks is less than a prescribed threshold. The slip state means that the phase difference is larger than the prescribed threshold and the PLL is also referred to in this state as having “lost lock.” The disclosed examples are directed to a slip detect circuit for a PLL. The slip detect circuit determines whether the PLL has achieved lock or whether the PLL has slipped. A LOCK signal generated by the slip detect circuit indicates whether the PLL is in lock (e.g., LOCK asserted high) or whether the PLL has slipped (e.g., LOCK asserted low).
[0010]
[0011] The PFD 102 is coupled to the loop filter and charge pump 104 and generates output signals UP 105 and DN 103 to the loop filter and charge pump 104. In one example, UP 105 is asserted high by the PFD 102 when FB_CLK 109 lags REF_CLK 101, and DN 103 is asserted high by the PFD 102 when FB_CLK 109 leads REF_CLK 101. An asserted high UP 105 causes the loop filter and charge pump 104 to produce a voltage to the VCO 106 so as to increase its output frequency to thereby reduce the phase difference between FB_CLK 109 and REF_CLK 101. An asserted high DN 103 causes the loop filter and charge pump 104 to produce a voltage to the VCO 106 so as to decrease its output frequency. The frequency divider 108 is included in the example in which the CLK_OUT from the VCO 106 has a frequency that is greater than REF_CLK 101. In examples in which CLK_OUT 107 has the same frequency as REF_CLK 101, a frequency divider is not used and the CLK_OUT is provided directly to the input of the PFD 102. The output signal from the loop filter and charge pump 104 is provided to the VCO 106 and causes the VCO to increase or decrease the frequency of CLK OUT 107. The feedback loop of the PLL 100 continually monitors the phase and frequency difference between FB_CLK 109 and REF_CLK 101 and responds to any difference by adjusting the operation of the VCO 106 to maintain phase lock.
[0012] As explained above, despite the attempts of the PLL 100 to maintain phase lock, the PLL may lose lock (slip). The lock-slip detect circuit 120 determines whether the PLL is in lock or has slipped and generates a LOCK signal 150 accordingly. In one implementation, LOCK is asserted high to indicate a lock condition and asserted low to indicate a slip condition. In another example, LOCK indicates whether the PLL is in lock, and a separate signal is generated by the lock-skip control circuit 140 to indicate slip. The QUASI SLIP signal 152 will be explained below.
[0013] The PLL 100 of the example of
[0014]
[0015] LPF 122 generates B 125 based on A 115 (B 125 is a low-pass filtered version of A 115). The frequency response of LPF 122 is configured to eliminate A's relatively narrow pulses 202 and 214 from being present in B 125. Further, the relatively short duration negative pulse 207 also is filtered out of A 115 and thus not present in B 125. The narrow duration pulses 202 and 214 represent corresponding clock cycles of REF_CLK 101 and FB_CLK 109 that are less than a threshold amount of phase difference and thus considered to be “in phase” (lock). The pulses 240, 242, 244, and 246 that are present in B 125 correspond to clock cycles of FB_CLK 109 that have a large enough phase difference in relation to REF_CLK 101 so as to be considered “out of phase.”
[0016]
[0017]
[0018]
[0019] Upon the BLANKING COUNT period of time ending, the IDLE state 310 is re-entered, and the lock-slip control circuit 140 remains in this state as long as no UPDN edges are detected. Upon the occurrence of the first UPDN edge following the end of the BLANKING COUNT period of time, the state transitions from the IDLE state 310 to the LOCK COUNT state 330. While in the LOCK COUNT state 330, the lock-slip control circuit 140 counts for a REF COUNT period of time. In one example, the lock-slip control circuit 140 counts pulses of REF_CLK corresponding to the REF COUNT period of time. REF COUNT represents a period of time during which the absence of any UPDN edges indicates that the PLL 100 has achieved lock. While in the LOCK COUNT state 330, LOCK 150 is deasserted (to indicate that phase lock has not been yet been achieved). Upon detection of an UPDN edge, the counter which counts REF COUNT is reset.
[0020] When the REF COUNT counter expires, which means no UPDN edge was detected, the lock-slip control circuit 140 transitions to the LOCK WAIT state 340. While in the LOCK WAIT state, LOCK 150 is asserted to indicate that PLL 100 has achieved lock. As long as no UPDN edges are detected, the lock-slip control circuit 140 remains in the LOCK WAIT state 340. Upon detection of an UPDN edge, the lock-slip control circuit 140 transitions to the SLIP COUNT state 350.
[0021] While in the SLIP COUNT state 350, the lock-slip control circuit 140 counts cycles of REF_CLK 101 for a period of time Y. Over the course of Y time, if fewer than X UPDN edges are detected, then an insufficient number of UPDN edges are detected to affirmatively determine that the PLL 100 has slipped, and the lock-slip control circuit 140 transitions its state back to the LOCK WAIT state 340. LOCK 150 continues to be asserted to indicate that the PLL 100 remains in phase lock. However, if X or more UPDN edges are detected in the Y period of time, then the lock-slip control circuit 140 affirmatively determines that the PLL has slipped and the lock-slip control circuit 140 transitions its state to the IDLE state 310 in which LOCK 150 is deasserted indicating loss of lock (i.e., the PLL has slipped). The values of X and Y may be designed into the lock-slip control circuit 140 or may be user-configurable. In one example, X is 16 and Y is 32, meaning that slip is determined if the lock-slip control circuit 140 detects 16 or more UPDN edges in 32 cycles of REF CLK 101.
[0022]
[0023] In addition to detecting slip based on the occurrence of X or more UPDN edges out of Y REF_CLK 101 cycles, the lock-slip control circuit 140 can also detect slip based on the occurrence of n*X UPDN edges out of m*Y REF_CLK cycles, where m may be greater than n. The values of m and m may be configurable (e.g., in an externally-accessible configuration register) to tune the sensitivity as per application requirements. In one example, n is 3 and m is 4. As such, the lock-slip control circuit 140 determines slip to have occurred if 3X UPDN edges occurs in 4Y REF_CLK cycles. In the example above, X is 16 and Y is 32, and thus slip is detected if 48 UPDN edges are detected in 128 REF_CLK cycles. The lock-slip control circuit 140 determines slip to have occurred if either or both of the following conditions are true: (a) X or more UPDN edges occur out of Y REF_CLK cycles, or (b) n*X (or more) UPDN edges occur out of m*Y REF_CLK cycles.
[0024] The term “couple” is used throughout the specification. The term may cover connections, communications, or signal paths that enable a functional relationship consistent with the description of the present disclosure. For example, if device A generates a signal to control device B to perform an action, in a first example device A is coupled to device B, or in a second example device A is coupled to device B through intervening component C if intervening component C does not substantially alter the functional relationship between device A and device B such that device B is controlled by device A via the control signal generated by device A.