1. Technical Field
This disclosure is directed to electronic circuits, and more particularly, to circuits used for generating clock signals.
2. Description of the Related Art
Many integrated circuits (ICs) have clock generation circuits implemented thereon. The clock circuits may be used to generate clock signals that are provided to various clocked circuits, such as synchronous logic circuits implemented on the corresponding IC.
One common type of clock generation circuit is the phase locked loop (PLL). A PLL is a feedback-based system in which a phase difference between a reference signal and a feedback signal. A typical PLL includes a phase detector, a low pass filter, an oscillator, and a feedback path. Some PLLs may have additional circuitry, such as multipliers, dividers, and so forth.
In some cases, portions of an IC in which a PLL is implemented may be placed in a low-power mode, such as a sleep mode, in which idle circuitry is powered down. In some cases, portions of the PLL may also be powered down. When exiting the low-power mode, the PLL may re-lock to the frequency at which it was locked prior to the powering down of portions thereof.
A method and apparatus for achieving fast PLL lock when exiting a low power state is disclosed. In one embodiment, a method includes operating a PLL in a first state in which the PLL is locked to a first frequency. The method further includes programming the PLL to operate in a second state in which the PLL is locked to a second frequency. The programming may occur while the PLL is operating in the first state, and the PLL may continue operating in the first state after programming is complete. Thereafter, the PLL may be transitioned from the first state to a low power state. Upon exiting the low power state, the PLL may transition directly to the second state, locking to the second frequency, without having to transition to the first state or lock to the first frequency.
In one embodiment, a PLL includes an analog portion and a digital portion. When placed in a low power state, the digital portion may be powered down, while the analog portion may remain powered on. The digital portion may be programmed to operate in a particular state which includes the PLL locking to a particular frequency. In one embodiment, the state may include a number of programmable parameters, including divisors used in one or more dividers, and a multiplication factor used in one or more multiplier circuits.
The following detailed description makes reference to the accompanying drawings, which are now briefly described.
While the disclosed subject matter is susceptible to various modifications and alternative forms, specific embodiments thereof are shown by way of example in the drawings and will herein be described in detail. It should be understood, however, that the drawings and detailed description thereto are not intended to limit the subject matter to the particular form disclosed, but on the contrary, the intention is to cover all modifications, equivalents and alternatives falling within the spirit and scope of the disclosed subject matter as defined by the appended claims. The headings used herein are for organizational purposes only and are not meant to be used to limit the scope of the description. As used throughout this application, the word “may” is used in a permissive sense (i.e., meaning having the potential to), rather than the mandatory sense (i.e., meaning must). Similarly, the words “include”, “including”, and “includes” mean including, but not limited to.
Various units, circuits, or other components may be described as “configured to” perform a task or tasks. In such contexts, “configured to” is a broad recitation of structure generally meaning “having circuitry that” performs the task or tasks during operation. As such, the unit/circuit/component can be configured to perform the task even when the unit/circuit/component is not currently on. In general, the circuitry that forms the structure corresponding to “configured to” may include hardware circuits and/or memory storing program instructions executable to implement the operation. The memory can include volatile memory such as static or dynamic random access memory and/or nonvolatile memory such as optical or magnetic disk storage, flash memory, programmable read-only memories, etc. Similarly, various units/circuits/components may be described as performing a task or tasks, for convenience in the description. Such descriptions should be interpreted as including the phrase “configured to.” Reciting a unit/circuit/component that is configured to perform one or more tasks is expressly intended not to invoke 35 U.S.C. §112, paragraph six interpretation for that unit/circuit/component.
Turning now to
IC 10 in the embodiment shown includes a functional unit 11 configured to provide the primary functionality of the device. Among the circuits included in functional unit 11 are a number of clocked circuits, i.e., sequential circuits synchronized to a clock signal. The clock signal (ClkOut) in the embodiment shown is provide by a phase locked loop (PLL) 20. Various embodiments of a PLL 20 will be discussed in further detail below.
IC 10 also includes a power management unit 15 coupled to both functional unit 11 and PLL 20. Power management unit 15 may provide power control functions for IC 10. Among these functions include placing functional unit 11 and/or PLL 20 in low power states when functional unit 11 is idle, or when conducting a reset of IC 10. Power management unit 15 is configured to receive a voltage, V_ext, from an external source, and may provide a corresponding voltage Vdd to functional unit 11 as well as to portions of PLL 20. When placing functional unit 11 and PLL 20 in a low power state, power management unit 15 may turn off the voltage Vdd that is provided to these blocks.
As will be discussed below, PLL 20 includes both analog and digital portions. The digital portions of PLL 20 are coupled to receive Vdd from power management unit 15. The analog portions are coupled to receive a separate voltage, AVdd from a different source that is not controlled by power management unit 15. Accordingly, in one embodiment, placing PLL 20 in a low power state may comprise powering down the digital portions thereof, while the analog portions thereof may remain powered on.
Power management unit 15 in the embodiment shown includes a register file 16, which may include a number of registers. The registers in register file 16 may be used to store various types of configuration information used by power management unit 15 or one of the other units coupled thereto. In this particular embodiment, register file 16 may include a number of registers used to program various parameters of PLL 20. Based on the programmed parameters, PLL 20 may operate in a corresponding state. The corresponding state may include PLL 20 locking to a particular frequency, wherein the frequency is set by the programmed parameters.
In exemplary embodiments discussed below, register file 16 may include first, second, and third registers for programming PLL 20. A first register may be programmed with a divisor for a pre-divider used to divide a frequency of a reference clock signal, a second register may be programmed with a multiplication factor used by a multiplier circuit, and third register may be programmed with a divisor used for a second divider used to divide a frequency of a periodic signal output by the analog portion of PLL 20. It is noted that in some embodiments, programming registers may be located in other areas of IC 10 outside of power management unit 15. In some embodiments of PLL 20, the registers may be included in a portion of PLL 20 that remains powered on while other portions are powered down.
When PLL 20 is exiting a state in which it is powered down, it may read the divisor and multiplier information in the corresponding ones of register file 16. Thereafter, PLL 20 may begin operation in a state according to the parameters read from the registers. During operation, if a change of state is desired, PLL 20 may re-access the registers to obtain newly programmed values. Alternatively, in some embodiments, newly programmed values may be pushed to PLL 20 without an explicit request therefrom.
PLL 20 in the embodiment shown includes an analog circuit portion having a charge pump 24, a low pass filter 25, and voltage controlled oscillator (VCO) 26. Charge pump 24 in the embodiment shown receives up (‘U’) and down (‘D’) signals from pre-divider/phase detector 22 and generates a corresponding voltage based on the received signals. The voltage is passed through low pass filter 25, to VCO 26, which generates a periodic signal, ‘VCO_Clk’, based thereon. This signal is provided to divider 27, as well as to multiplier 28.
It is noted that the circuits shown in the analog portion of PLL 20 may receive the AVdd supply voltage discussed above, and may remain powered on when other units of PLL 20 are placed in a low power state.
As noted above, the VCO_Clk signal is provided by VCO 26 to both divider 27 and multiplier 28. Divider 27 may divide the frequency of the VCO_Clk signal by the programmed divisor value, thereby providing the output clock signal, ‘Clk_Out’, at a frequency that is less than that of the VCO_Clk signal for any divisor greater than one. The FB_Clk signal may be produced by multiplier circuit 28 multiplying the frequency of VCO_Clk signal. Thus the FB_Clk signal may have a frequency greater than the VCO_Clk signal for any programmed multiplication factor greater than one.
The embodiment of PLL 20 shown in
Both embodiments of PLL 20 include a bypass circuit 29 that is coupled to receive the reference clock from an external source (e.g., from an on-chip oscillator, although the source could be off-chip as well). During the normal mode of operation, when PLL is actively providing the Clk_Out signal, the reference clock may pass through to the phase detector, irrespective of whether it is implemented in the digital domain (as in
As previously noted, PLL 20 may be programmed to operate in a particular state, either through registers 16 in power management unit 15, or by another programming apparatus not explicitly disclosed here in other embodiments. Programming PLL 20 may cause it to lock to a certain VCO_Clk frequency that may be specified in various ways. For example, in the embodiments of PLL 20 disclosed herein, the frequency of the VCO_Clk signal may be locked to a frequency that is dependent upon the programmed divisor of the pre-divider and the programmed multiplier for the multiplication circuit. The frequency of the Clk_Out signal may be determined in the embodiments of PLL 20 disclosed herein by the following:
where f is the frequency of Clk_Out, Ref is the frequency of the reference clock signal, M is the programmed multiplier used by multiplier circuit 28, P is the programmed divisor used by the pre-divider (21 or 22), and S is the programmed divisor used by divider 27.
The programmability of PLL 20 may also allow for faster lock times to a new frequency/state upon exit from a reset or power down state. In the various embodiments discussed herein, PLL 20 may be programmed to operate in a second state, prior to powering down, while continuing to operate in the first state. The first state may include locking the PLL to a first frequency, while the second state may include locking to a second frequency. After programming for operation in the second state, PLL 20 may continue operating in the first state until it is powered down (e.g., from entry into a low power sleep state, or from a reset, etc.). Upon exiting the power down state, PLL 20 may load the newly programmed values into its corresponding dividers/multiplier circuits. PLL 20 may then begin operating in the new, second state without having to first operate in the previous, first state.
Thus, the programmability of PLL 20 may enable it to be reprogrammed to come out of a reset or low power state and lock to a new frequency when it is known that the new frequency (and corresponding state) will be desired. In prior art embodiments, a PLL would re-lock to a frequency it was previously locked to upon exiting a reset/power down state. If it was desired to lock to a new frequency, the PLL would first have to lock to the previous frequency it was locked to just prior to reset, and then lock to the new frequency thereafter. This consumed a significant amount of time in locking to the new frequency, which could cause further delays in resuming operation of functional units receiving a clock signal from the PLL. In contrast, PLL 20 may begin entry into the second state directly upon exit from the low power state and lock to the second frequency in less time. For example, if PLL 20 is capable of locking to a new frequency responsive to a state change in 5 μs, the ability to go directly to the second state may save 5 μs over embodiments wherein entry into the first state and lock to the first frequency is required before proceeding to the second.
Turning now to
Method 400 begins with the operation of a PLL in a first state (block 405). Operation in the first state includes the PLL being locked to a first frequency. During operation in the first state, the PLL may be programmed for operation in a second state, even though it continues operation in the first state (block 410). Thereafter, the PLL may be transitioned from the first state to a low power state (block 415). During operation in the low power state, certain portions of the PLL (e.g., digital portions, such as dividers and multipliers) may be powered down, while analog portions (e.g., charge pump, VCO) may remain powered on. Sometime after entering the low power state, the PLL may be caused to exit therefrom, and may directly begin entry into the second state (block 420). Entry into the second state may include locking to a second frequency that is different from the first.
Turning next to
The peripherals 154 may include any desired circuitry, depending on the type of system 150. For example, in one embodiment, the system 150 may be a mobile device (e.g. personal digital assistant (PDA), smart phone, etc.) and the peripherals 154 may include devices for various types of wireless communication, such as WiFi, Bluetooth, cellular, global positioning system, etc. The peripherals 154 may also include additional storage, including RAM storage, solid-state storage, or disk storage. The peripherals 154 may include user interface devices such as a display screen, including touch display screens or multitouch display screens, keyboard or other input devices, microphones, speakers, etc. In other embodiments, the system 150 may be any type of computing system (e.g. desktop personal computer, laptop, workstation, tablet, etc.).
The external memory 158 may include any type of memory. For example, the external memory 158 may be SRAM, dynamic RAM (DRAM) such as synchronous DRAM (SDRAM), double data rate (DDR, DDR2, DDR3, LPDDR1, LPDDR2, etc.) SDRAM, RAMBUS DRAM, etc. The external memory 158 may include one or more memory modules to which the memory devices are mounted, such as single inline memory modules (SIMMs), dual inline memory modules (DIMMs), etc.
Numerous variations and modifications will become apparent to those skilled in the art once the above disclosure is fully appreciated. It is intended that the following claims be interpreted to embrace all such variations and modifications.
Number | Name | Date | Kind |
---|---|---|---|
5142247 | Lada, Jr. | Aug 1992 | A |
5420545 | Davis | May 1995 | A |
5497126 | Kosiec et al. | Mar 1996 | A |
5586309 | Lin | Dec 1996 | A |
5952890 | Fallisgaard | Sep 1999 | A |
6229399 | Tobise | May 2001 | B1 |
6236275 | Dent | May 2001 | B1 |
6377129 | Rhee | Apr 2002 | B1 |
6504437 | Nelson | Jan 2003 | B1 |
6621356 | Gotz | Sep 2003 | B2 |
6704908 | Horan et al. | Mar 2004 | B1 |
6946884 | Holland | Sep 2005 | B2 |
7336755 | Tetzlaff | Feb 2008 | B1 |
20100097149 | Yeung | Apr 2010 | A1 |
20110019767 | Lamanna et al. | Jan 2011 | A1 |
20130191665 | Mehta | Jul 2013 | A1 |
Number | Date | Country |
---|---|---|
1030453 | Aug 2000 | EP |
Number | Date | Country | |
---|---|---|---|
20150236705 A1 | Aug 2015 | US |