1. Field
This invention relates to a retention mode operation, and more specifically, to smoothly transitioning from a normal mode to a low-power retention mode.
2. Background
With increased emphasis on low-power operation, many functional blocks of a system-on-a-chip (SoC) are put into a static state to lower the power consumption of the blocks. Once in the static state, the power supply voltage for a block can be lowered by a significant amount without losing any information. At this low-voltage static state, the block draws significantly less current from the power supply. However, the large power supplies that supply the current to the blocks of an SOC are very inefficient when supplying small amounts of current to a load. Thus, to maximize the power saving, it is desirable to turn off the large main regulator and use a low-power retention regulator to supply the current during this retention mode. A typical large regulator may consume 5 mA of current when supplying no power to the load it drives. A low-power retention regulator can typically use less than 10 μA of current while maintaining the voltage to the static block at its desired value.
The present invention provides for smoothly transitioning a supply voltage from a nominal value to a retention value.
In one embodiment, a retention mode manager circuit is disclosed. The retention mode manager circuit includes: a resistor and a capacitor configured as an RC filter, and the RC filter is configured to receive a retention voltage and output a filtered retention voltage; a retention amplifier configured to receive the filtered retention voltage at a first input terminal and to provide current to a load corresponding to the filtered retention voltage; and a transition amplifier configured to receive the filtered retention voltage and an offset voltage, and to guide the filtered retention voltage to make a transition to the offset voltage while minimizing undershoot or overshoot to prevent a loss of data in the load.
In another embodiment, a method for transitioning a supply voltage from a nominal value to a retention value is disclosed. The method includes: receiving a command from a controller to enter a retention mode; programming a load by the controller to be in a static state that allows retention of data consistency in the load; turning on a transition amplifier by the controller and waiting for the transition amplifier to stabilize; turning off a normal mode regulator by the controller; transitioning a retention mode regulator from a standby mode to the retention mode by the controller, and waiting for the supply voltage to transition from the nominal value to the retention value; and turning the transition amplifier off by the controller.
In another embodiment, an apparatus for transitioning a supply voltage from a nominal value to a retention value is disclosed. The apparatus includes: means for receiving and filtering a retention voltage and outputting a filtered retention voltage; means for receiving the filtered retention voltage and providing current to a load corresponding to the filtered retention voltage; and means for receiving the filtered retention voltage and an offset voltage and guiding the filtered retention voltage to make a smooth transition to the offset voltage without any undershoot or overshoot to prevent a loss of data in the load.
Other features and advantages of the present invention should be apparent from the present description which illustrates, by way of example, aspects of the invention.
The details of the present invention, both as to its structure and operation, may be gleaned in part by study of the appended further drawings, in which like reference numerals refer to like parts, and in which:
As stated above, to maximize the power saving, it is desirable to turn off the large main regulator and use a low-power retention regulator to supply the current during the retention mode. Embodiments as described herein provide for transitioning a supply voltage from a nominal value to a retention value. After reading this description it will become apparent how to implement the invention in various implementations and applications. Although various implementations of the present invention will be described herein, it is understood that these implementations are presented by way of example only, and not limitation. As such, this detailed description of various implementations should not be construed to limit the scope or breadth of the present invention.
The power supply voltage of a system-on-a-chip (SoC) block in a static state can be set as low as possible to maximize the power saving. However, if the voltage level drops too low, then the loss of data may occur. Thus, care must be taken in placing the SoC block into a low-power retention mode by smoothly transitioning the operational supply voltage from the nominal voltage to the retention voltage and turning off the large main regulator (i.e., the main/normal-mode regulator is large compared to the size of the low-power retention regulator). Further, the transition into the retention mode often results in an unacceptable undershoot of the supply voltage. Accordingly, the power supply voltage should not be allowed to undershoot the target value of the retention voltage during the transition. Modifications to the large main regulator can be made to configure the regulator better suited for the retention mode operation, but the modifications may not be practical because they may compromise the performance of the large main regulator for the normal-mode operation.
In one embodiment, the retention amplifier 210 is configured as an operational transconductance amplifier (OTA) which is a voltage-controlled current source with an infinite input and output impedance. In particular, the retention amplifier 210 receives the filtered retention voltage at the first input terminal (node 1) and adjusts its output which drives the gate terminal of transistor T2 to bring the voltage at the second input terminal (node 2) equal to the voltage at the first input terminal of the retention amplifier 210. Thus, transistor T2 supplies current to the load (at node 2) corresponding to the voltage level of the filtered retention voltage (at node 1 which is same as the first input terminal of the retention amplifier 210). Transistor T1 prevents transistor T2 from supplying current to the load when the standby signal is high.
In one embodiment, the transition amplifier 220 is configured as a class-B amplifier with a built-in offset voltage and has no current flowing through the transistors of the class-B transition amplifier 220 when it is in a quiescent state. With a small built-in offset voltage added to the transition amplifier 220, the amplifier 220 drives the retention-voltage to a value slightly lower than the voltage that the retention amplifier 210 is trying to achieve. This is done so that when the transition amplifier 220 is turned off, the resulting disturbance on the retention voltage will be positive. A negative disturbance or undershoot is undesirable. The transition amplifier 220 receives the filtered retention voltage at the first input terminal and the offset voltage at the second input terminal, and guides the filtered retention voltage to make a smooth transition while minimizing undershoot or overshoot in the filtered retention voltage to prevent loss of data in the load. Thus, the transition amplifier 220 is responsible for the transition of the power supply voltage from the nominal value to the retention value. The transition amplifier 220 operates in regions where the output at node 2 does not cause signal collisions with the output signal of the retention amplifier 210.
The transition amplifier 220 is turned off after the completion of the transition. The power and bandwidth of the transition amplifier 220 is significantly greater than that of the retention amplifier 210, but is much less than the main/normal-mode regulator. When the system is switched from the normal mode to the retention mode, an RC filter (configured with resistor R and capacitor C) is used to control the smooth transition of the supply voltage from the nominal value to the retention value. The transition amplifier 220 has enough bandwidth to accurately follow the filtered reference voltage at node 1 while minimizing undershoot. Signals (e.g., Standby, Retention Amp Disable, and Transition Amp Enable) from the FSM/controller 146 control the retention amplifier 210 and the transition amplifier 220.
The system waits for a fixed amount of time (e.g., 10 μS [22 μS−12 μS] in the example of
Although several embodiments of the invention are described above, many variations of the invention are possible. For example, although the illustrated embodiments describe directly transitioning from the nominal voltage to the retention voltage, other embodiments are possible. For example, the transition from the nominal voltage to the retention voltage can be made through an intermediate voltage also controlled by the transition amplifier. Further, features of the various embodiments may be combined in combinations that differ from those described above. Moreover, for clear and brief description, many descriptions of the systems and methods have been simplified. Many descriptions use terminology and structures of specific standards. However, the disclosed systems and methods are more broadly applicable.
Those of skill will appreciate that the various illustrative blocks and modules described in connection with the embodiments disclosed herein can be implemented in various forms. Some blocks and modules have been described above generally in terms of their functionality. How such functionality is implemented depends upon the design constraints imposed on an overall system. Skilled persons can implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the invention. In addition, the grouping of functions within a module, block, or step is for ease of description. Specific functions or steps can be moved from one module or block without departing from the invention.
The various illustrative logical blocks, units, steps, components, and modules described in connection with the embodiments disclosed herein can be implemented or performed with a processor, such as a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general-purpose processor can be a microprocessor, but in the alternative, the processor can be any processor, controller, microcontroller, or state machine. A processor can also be implemented as a combination of computing devices, for example, a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration. Further, circuits implementing the embodiments and functional blocks and modules described herein can be realized using various transistor types, logic families, and design methodologies.
The above description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles described herein can be applied to other embodiments without departing from the spirit or scope of the invention. Thus, it is to be understood that the description and drawings presented herein represent presently preferred embodiments of the invention and are therefore representative of the subject matter which is broadly contemplated by the present invention. It is further understood that the scope of the present invention fully encompasses other embodiments that may become obvious to those skilled in the art and that the scope of the present invention is accordingly limited by nothing other than the appended claims.