Field of the Invention
The present invention relates generally to power reduction in microprocessors, and more particularly to power reduction in microprocessors having phase-locked loop based clocks.
Background of the Invention
As low power applications for microprocessors proliferate, techniques for on-chip power reduction are required. Accordingly, it is desirable to incorporate certain power management techniques, which will reduce power and extend the battery life of a portable computer, into microprocessor design. One such power management technique entails turning off the clocks of the microprocessor while statically maintaining the machine state. This state is commonly referred to as low power stop (LPSTOP). In this state, the microprocessor is completely quiescent, and uses no power. Typically, microprocessors utilizes a phase-locked loop (PLL) that generates a multiple of a reference clock signal to supply on-chip clocks. Thus, before the microprocessors can leave the quiescent state (i.e. LPSTOP), it must re-acquire phase lock.
In the prior art, during the phase-locking interval, the on-chip clocks are running but the presence of a RESET signal prevents instruction processing. Generally, the on-chip clock loading is very heavy and the clock distribution is extensive. Consequently, the power required to run the clocks (CV.sup.2 F) is significant. A similar problem is present during power-up when the clocks are also running. Some applications employ power supply cycling to reduce power; however, if the clocks are running, the power supply cycling represents an unnecessary power loss. For portable applications or power-critical applications, it is apparent that there is a need to eliminate this power consumption.
In addition, many microprocessors use a PLL to generate clocks at a multiple of the reference clock frequency and others generate multiphase clocks to the reference clock frequency. In both cases, the PLL oscillator runs at a multiple of the reference frequency. Sequential phase/frequency detectors require that the reference frequency match the target frequency, therefore, a divide of the oscillator (or internal clock) must be done. For a phase comparison of equal frequencies, the maximum phase error is 180 degrees. A phase error of this magnitude imposes unnecessary penalties on the speed of phase acquisition (i.e., phase alignment must be acquired from farther away). It also imposes unnecessary constraints on gain during phase acquisition; for instance, if the maximum phase error is reduced, gain can be increased without severe phase overshoot or PLL instability. Increasing the phase pain results in faster phase lock. Since the frequency of using a power-saving quiescent state (such as LPSTOP) is dependent upon the speed of phase lock, a longer phase-lock interval adversely impacts power consumption. A similar problem is present during power-up where clocks are also running. Some applications use power-supply cycling to reduce power; so if the clocks are running, it represents unnecessary power loss. It is, therefore, desirable to reduce the maximum magnitude of phase error.
Summary of the Invention
The present invention provides a method and apparatus for reducing power associated with acquiring phase-lock between a reference clock signal, provided by an external source, and an internal clock signal after each exit from a quiescent state by a data processing system. The data processing system has a phase-locked loop for phase-locking the internal clock signal to the reference clock signal. The apparatus includes a predetermined number of clock drivers and a clock state machine. The predetermined number of clock drivers receive an oscillator signal from the phase-lock loop and generate a plurality of multi-phase internal clock signal in response thereto. The clock state machine is coupled to the clock drivers and receives a first control signal from the phase-lock loop, indicating that the phase-locked loop is re-acquiring phase-lock as a result of the data processing system leaving the quiescent state. In response to receiving the first control signal, the clock state machine suppresses a clock state enable signal to prevent the clock drivers from changing state, during a period of time when the phase-locked loop is re-acquiring phase-lock. The apparatus reduces power consumption associated with acquiring phase-lock by eliminating the power resulting from toggling the clock drivers during each exit from the quiescent state by the data processor. A reduction in power consumption being proportional to a frequency of use of the quiescent state by the data processor.
Brief Description of the Drawings
FIG. 1 illustrates in block diagram form a data processing system having a power reduction mechanism in accordance with a preferred embodiment of the present invention.
FIG. 2 illustrates a flow diagram for implementing power reduction, using the power reduction mechanism of FIG. 1, in accordance with the present invention.
Detailed Description of a Preferred Embodiment
The present invention can be more fully described with reference to FIGS. 1-2. FIG. 1 illustrates a power reduction mechanism 10 using a phase locked loop 12, a clock state machine 14, and a set of clock drivers 16, 18, 20 and 22. In the preferred embodiment, data processing system 10 uses quadrature clocks, T1, T2, T3, and T4, which are driven from clock drivers 16, 18, 20, and 22, respectively, where the rising T3 clock is phase-aligned with the rising reference clock. The clock state machine 12 is initialized with the T2 clock high and the remaining T-clocks low. In accordance with the preferred embodiment, a digitally-controlled oscillator (not shown), as disclosed in a patent application entitled "A Delay Element with Digitally Controllable Gain" Ser. No. 07/993,757, by Lundberg et al. filed on Dec. 21, 1992 and assigned to the assignee hereof, is modulated within PLL 12 to generate a clock signal, OSCILLATOR CLOCK, at a frequency of 4.times. the reference clock. Each rising edge of the OSCILLATOR CLOCK signal defines one of four rising T-clock edges and one of four falling T-clock edges. However, instead of using T3 to lock to the reference clock, a buffered version of OSCILLATOR CLOCK is used. When the quadrature clocks are running, on the falling edge of the buffered version of the OSCILLATOR CLOCK signal, the clock state machine 14 generates a new state to Clock Drivers 16, 18, 20, 22. On the rising edge of the buffered version of the OSCILLATOR CLOCK signal, the clock drivers 16, 18, 20, 22 drive their respective T-clock signals. Thus, the OSCILLATOR CLOCK signal is phase-aligned with each of the T-clock signals.
In the preferred embodiment, the data processor enters a quiescent state (where the clock drivers and the PLL 12 are turned off) during lulls in processing demand. These lulls in processing demand occur, for instance, when the data processor is waiting for data to be returned from memory or input device (not shown). This attribute is important in portable applications for power management. Each time the data processor leaves this quiescent state, the PLL 12 must re-acquire phase-lock to ensure the proper operation of all on-chip synchronous circuitry. Commonly, during normal operation of the data processing system 10 the PLL 12 functions to re-acquire phase hundreds of times a second. During phase acquisition, the PLL 12 disables the clock state machine 14 by de-asserting the START CLOCKS signal. This ensures that prior to and during phase acquisition, the clock drivers 16, 18, 20, 22 are not transitioning with the OSCILLATOR CLOCK signal. Consequently, prior to the completion of phase acquisition, there is no unwarranted power consumption due to the operation of clock drivers (e.g. capacitive loading) or the transitioning of logic being driven by the clock drivers. When phase acquisition is complete, the clock state machine 14 is enabled via the assertion by the PLL 12 of the START CLOCKS signal synchronous to the reference clock signal. Thus, in the present invention the clock drivers 16, 18, 20, 22 are not allowed to transition for a significant amount of time, thereby greatly reducing the total power consumption of the data processing system 10.
In the preferred embodiment of the present invention, frequency-lock is acquired prior to phase acquisition. Thus, since OSCILLATOR CLOCK (4 times the reference clock frequency) is used for phase comparison, the maximum phase error is 180 degrees/4 or 45 degrees. With a reduced maximum phase error, the PLL 12 gain (a parameter related to the rate at which phase error is reduced) can be increased without fear of significant overshoot, further reducing the phase-lock time penalty. Therefore, the frequency of using LPSTOP can be increased for additional power-consumption savings.
Illustrated in FIG. 2 is a flow diagram 30 for reducing the power associated with acquiring phase lock using the PLL 12, in accordance with the present invention. At step 32, the data processing system has entered a quiescent state. Several mechanisms exist to force the data processing system to exit the quiescent state 32. At step 34, if a triggering mechanism (e.g. valid interrupt level, reset, timer event) occurs the data processing system 10 will respond by exiting the quiescent state. At step 36, the data processing system 10 acquires phase lock, utilizing PLL 12. However, as previously indicated, clock signals are distributed to the remaining circuitry within the data processing system 10 (during the interval of time when PLL 12 acquires phase lock), but do not transition with the oscillator clock signal. At step 38, the PLL 12 queries whether phase acquisition is complete. If phase acquisition is not complete, the PLL 12 will continue the phase-lock acquisition process, at step 36, until phase-lock is acquired. When phase acquisition is complete, the PLL 12 will assert the START CLOCKS signal, at step 40. The assertion of the START CLOCKS signal, enables the clock state machine 14 to change the T1-T4 state control signals provided to the clock drivers 16, 18, 20, and 22, at step 42. Consequently, the quadrature T-clocks distributed to the data processing system 10 will transition with the OSCILLATOR CLOCK signal.
Thus, the present invention provides a method for reducing the power associated with acquiring phase-lock, between a reference clock signal and an internal clock signal provided by a clock generator, during each exit from a quiescent state or reset by a data processor. This invention is not limited to the preferred embodiment described above. Any data processing system incorporating a PLL to generate clocks at a multiple of the reference clock frequency or generate multiphase clocks to the reference clock frequency could realize power savings and reduced phase acquisition time by practicing this invention. Accordingly, it is intended by the appended claims to cover all modifications of the invention which fall within the true spirit and scope of the invention.