TEMPERATURE COMPENSATED PLL CALIBRATION
In some embodiments, provided are AFC circuits and methods for calibrating a second setting of an oscillator while a first setting is controlled by a temperature compensated control.
This application is a continuation of, and claims priority to, U.S. patent application Ser. No. 13/837,070, filed on Mar. 15, 2013, entitled “T
The present invention relates generally to phase locked loop circuits, and in particular, to a circuit for calibrating an LCPLL.
BACKGROUNDOn-chip transmitters and receivers typically use PLLs (phase locked loops) to generate accurate clocks for transmitting and receiving data. With ever increasing data transfer rates, PLLs capable of generating accurate, high frequency clocks, e.g., in the ones or even tens of Giga Hertz magnitudes may be needed. LCPLLs (inductor capacitor PLLs), which may use inductor capacitor voltage controlled oscillators (LCVCOs), capacitive controlled tank oscillators, or other oscillators, may be used to deliver such high frequency clocks. Unfortunately, an oscillator (e.g., VCO) in an LCPLL typically has a limited tuning range. To address this, LCPLLs have used automatic frequency control (AFC) techniques to calibrate oscillator settings to conform about an operable control voltage range.
The AFC portion includes frequency detector 102, calibration logic 104, and calibration voltage (Vmid) 110, coupled as shown. It typically runs once at power-up to calibrate the VCO frequency to be close to the target reference clock frequency. Initially, in the calibration mode, the “Cal” pathway switch is closed to apply a fixed voltage (Vmid) as the control voltage (Vctl) to the LCVCO. The LCVCO 108 includes a bank of capacitors that may be engaged or disengaged in different combinations, as set by the digital CapSel[N:0] input. This provides a range of adjustable capacitance values that correspond to an output frequency range. During calibration, the calibration logic 104 functions, based on the fixed Vmid control voltage, to adjust the capacitor value, as set by CapSel[N:0], so that the VCO Clk center frequency is sufficiently close to a target operating frequency (as set by Ref_Clk). Vmid, as implied by its name, is typically set to be in the middle of the operating control voltage (Vctl) range so that a sufficient degree of adjustability is available during PLL operation.
After AFC completes, the PLL is allowed to lock normally. Unfortunately, the VCO may have an undesirable temperature coefficient, which causes the VCO frequency to change with temperature for a fixed control voltage value. Due to this, the PLL control voltage (Vctl) during lock will change as temperature changes. For a large enough temperature change, if the VCO temperature coefficient is large, the control voltage can become too low or too high for the PLL to stay locked. Even if the change isn't large enough to cause the PLL to lose lock, the control voltage change may still cause the PLL bandwidth or jitter to fall out of spec as the temperature changes.
Accordingly, new solutions may be desired.
Embodiments of the invention are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings in which like reference numerals refer to similar elements.
As shown in
In order to address this problem, some embodiments disclosed herein use a temperature compensated oscillator control parameter for calibrating the PLL. For example, with a VCO, a temperature compensated control voltage (e.g., temperature compensated Vmid) may be used to account for temperature drift.
The temperature compensated calibrated voltage source (TCVc) 302 includes an on die temperature sensor 304 coupled to a DAC (digital to analog converter) 304 to generate a temperature compensated calibration control voltage. The TCVc is designed to cause the VCO to generate the target frequency at a capacitor setting so that the control voltage stays within a desired range over the expected operating temperature window during operational modes. For example, the TCVc might be designed to cause AFC to set the LCVCO capacitance so that the middle curve (B) of
It should be appreciated that the TCVc may be implemented in any suitable manner. For example, while in the depicted figure, it uses a digital temperature sensor and a DAC, calibrated to achieve a desired Vctl operating window, alternative circuits could be employed. For example, an analog temperature sensor with suitable signal conditioning could be used. Moreover, while the circuit elements appear to be part of a dedicated circuit unit, they could be located apart from each other and function in other circuits in addition to the AFC circuit. For example, any suitable temperature sensor on the chip, dedicated or not to the TCVc, could be used.
When the PLL is to be calibrated (LCVCO capacitor value set), the PLL is powered on and locked. The control voltage (Vctl) is then monitored at 508. If it is too high (higher than vrefhi), then at 510, the capacitance is reduced (e.g., CapSel[N:0] count decremented), and the routine flow proceeds to 516. Here, a charge pump may be tri-stated, and the control voltage (Vctl) is precharged to a suitable Vmid value. The charge pump is released, and the loop is enabled at 518 for the PLL to once again lock to the target frequency, and it is monitored again at 508. On the other hand, if the monitored Vctl is too low, then at 512, the capacitance value is increased (e.g., CapSel[N:0] count incremented). From here, the charge pump is tri-stated, and Vctl is discharged to Vmid. The charge pump is then released and the loop is enabled at 520, for the PLL to again lock at the target frequency. This monitoring and count adjustment (through paths UP CNT or DN CNT) continues until an LCVCO capacitor value is set that results with the Vctl being within the vrefhi and vreflo window. (Note that the vrefhi and vreflo values will typically be fairly close to each other. They correspond to the single temperature compensated Vmid level of
The AFC comprises calibration logic 604, DTS 610, and scaling logic 612. Calibration logic 604 functions to control CapSel[N:0] to lock the PLL with DCO Clk at the target frequency (RefClk). The DTS and scaling logic generate a temperature compensated code (TCC) to be provided as the Fine[M:0] input through mux 608 during a calibration mode. This fine tune adjustment is akin to the temperature compensated voltage of
In the preceding description, numerous specific details have been set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In other instances, well-known circuits, structures and techniques may have not been shown in detail in order not to obscure an understanding of the description. With this in mind, references to “one embodiment”, “an embodiment”, “example embodiment”, “various embodiments”, etc., indicate that the embodiment(s) of the invention so described may include particular features, structures, or characteristics, but not every embodiment necessarily includes the particular features, structures, or characteristics. Further, some embodiments may have some, all, or none of the features described for other embodiments.
In the preceding description and following claims, the following terms should be construed as follows: The terms “coupled” and “connected,” along with their derivatives, may be used. It should be understood that these terms are not intended as synonyms for each other. Rather, in particular embodiments, “connected” is used to indicate that two or more elements are in direct physical or electrical contact with each other. “Coupled” is used to indicate that two or more elements co-operate or interact with each other, but they may or may not be in direct physical or electrical contact.
The invention is not limited to the embodiments described, but can be practiced with modification and alteration within the spirit and scope of the appended claims. For example, it should be appreciated that the present invention is applicable for use with all types of semiconductor integrated circuit (“IC”) chips. Examples of these IC chips include but are not limited to processors (including processors for mobile and server platforms), controllers, chip set components, programmable logic arrays (PLA), memory chips, network chips, and the like. In particular, the disclosed LCPLL calibration methods and circuits could be used for any LCPLL applications, including but not limited to on-chip clock generation and RF applications. For example, it could be used in transceivers (transmitters and/or receivers) for platform interfaces such as PCIe, MIPI, USB, and the like.
It should also be appreciated that in some of the drawings, signal conductor lines are represented with lines. Some may be thicker, to indicate more constituent signal paths, have a number label, to indicate a number of constituent signal paths, and/or have arrows at one or more ends, to indicate primary information flow direction. This, however, should not be construed in a limiting manner. Rather, such added detail may be used in connection with one or more exemplary embodiments to facilitate easier understanding of a circuit. Any represented signal lines, whether or not having additional information, may actually comprise one or more signals that may travel in multiple directions and may be implemented with any suitable type of signal scheme, e.g., digital or analog lines implemented with differential pairs, optical fiber lines, and/or single-ended lines.
It should be appreciated that example sizes/models/values/ranges may have been given, although the present invention is not limited to the same. As manufacturing techniques (e.g., photolithography) mature over time, it is expected that devices of smaller size could be manufactured. In addition, well known power/ground connections to IC chips and other components may or may not be shown within the FIGS, for simplicity of illustration and discussion, and so as not to obscure the invention. Further, arrangements may be shown in block diagram form in order to avoid obscuring the invention, and also in view of the fact that specifics with respect to implementation of such block diagram arrangements are highly dependent upon the platform within which the present invention is to be implemented, i.e., such specifics should be well within purview of one skilled in the art. Where specific details (e.g., circuits) are set forth in order to describe example embodiments of the invention, it should be apparent to one skilled in the art that the invention can be practiced without, or with variation of, these specific details. The description is thus to be regarded as illustrative instead of limiting.
Claims
1. (canceled)
2. An apparatus comprising:
- a phase frequency detector (PFD);
- a charge pump coupled to the PFD;
- a low pass filter (LPF) coupled to the charge pump;
- an oscillator;
- a first switch operable to couple an input of the oscillator with the LPF during a first operation mode;
- a circuit to provide an output which is a temperature compensated calibrated voltage; and
- a second switch operable to couple the input of the oscillator with the output of the circuit during a second operation mode.
3. The apparatus of claim 2, wherein the first operation mode is a normal mode, wherein the second operation mode is a calibration mode, and wherein the second operation mode is to be performed before the first operation mode.
4. The apparatus of claim 2, wherein the circuit comprises:
- a temperature sensor; and
- a digital-to-analog converter coupled to the temperature sensor, wherein the DAC is to provide the output of the circuit.
5. The apparatus of claim 4, wherein the digital to analog converter is generate one or more signals indicating a high limit and a low limit for the temperature calibrated voltage.
6. The apparatus of claim 5 comprises:
- a first comparator to compare an operational control voltage with the high limit; and
- a second comparator to compare the operational control voltage with the low limit.
7. The apparatus of claim 6, wherein a number of enabled capacitors in the oscillator are reduced if an output of the first comparator indicates that the operational control voltage is higher than the high limit.
8. The apparatus of claim 6, wherein a number of enabled capacitors in the oscillator are increased if an output of the second comparator indicates that the operational control voltage is lower than the low limit.
9. The apparatus of claim 2 comprises a calibration logic to provide a code to the oscillator, wherein the calibration logic is coupled to the oscillator.
10. The apparatus of claim 9 comprises a frequency detector coupled to the calibration logic, wherein the frequency detector is to compare a frequency of the oscillator with a reference clock.
11. The apparatus of claim 2, wherein the oscillator is part of an on-chip transmitter clock generator.
12. The apparatus of claim 2, wherein the oscillator is an Inductor Capacitor Voltage Controlled Oscillator (LCVCO).
13. An apparatus comprising:
- a digitally controlled oscillator (LDO);
- a first control to adjust capacitor settings of the DCO by a coarse amount;
- a second control to adjust the capacitor settings of the DCO by a fine amount; and
- an automatic frequency control (AFC) logic which is to provide the first and second controls such that the second control is to have an associated code which is near a middle of a range of the associated code when a temperature is to be at a mid-range value.
14. The apparatus of claim 13, wherein the AFC comprises a calibration logic, coupled to the DCO, to generate the first control to lock a phase locked loop (PLL) prior to adjusting of the capacitor settings of the DCO by a fine amount by the second control, wherein the PLL includes the DCO.
15. The apparatus of claim 14, wherein the AFC comprises:
- a multiplexer coupled to the DCO; and
- a scaling logic coupled to a first input of the multiplexer, wherein the scaling logic is to generate the second control during a calibration mode.
16. The apparatus of claim 15, wherein the multiplexer has a second input to receive an output of a digital low pass filter (DLPF).
17. The apparatus of claim 13, wherein the calibration logic is to receive a reference clock (RefClk) and an output of the DCO.
18. A computer platform, comprising:
- a chip having a transmitter to communicate with an off-chip receiver, the transmitter to apply a clock generated from a Phase Locked Loop (PLL) which comprises: a digitally controlled oscillator (LDO); a first control to adjust capacitor settings of the DCO by a coarse amount; a second control to adjust the capacitor settings of the DCO by a fine amount; and an automatic frequency control (AFC) logic which is to provide the first and second controls such that the second control is to have an associated code which is near a middle of a range of the associated code when a temperature is to be at a mid-range value.
19. The computer platform of claim 18, wherein the transmitter is part of a serial IO port.
20. The computer platform of claim 19, wherein the serial IO port is a PCIe port.
21. The computer platform of claim 18, wherein the AFC comprises a calibration logic, coupled to the DCO, to generate the first control to lock a phase locked loop (PLL) prior to adjusting of the capacitor settings of the DCO by a fine amount by the second control, wherein the PLL includes the DCO.
22. The computer platform of claim 21, wherein the AFC comprises:
- a multiplexer coupled to the DCO; and
- a scaling logic coupled to a first input of the multiplexer, wherein the scaling logic is to generate the second control during a calibration mode.
Type: Application
Filed: May 11, 2016
Publication Date: Oct 13, 2016
Inventors: Jeffrey W. Waldrip (Austin, TX), Yongping Fan (Portland, OR), Jing Li (Folsom, CA)
Application Number: 15/152,462