1. Field
Aspects of the present disclosure relate generally to power management, and more particularly, to reducing cross-supply current.
2. Background
A power management integrated circuit (PMIC) may be used to convert power from a battery, a wall adapter, or another power source into a plurality of power-supply voltages for powering various components of a chip. During power-up, the PMIC may sequentially power up two or more power supplies according to a power-up sequence. As a result, one of the power supplies is powered up before another one of the power supplies. This may cause cross-supply current to temporarily flow between the power supplies, which can upset logic coupled to one or more of the power supplies.
The following presents a simplified summary of one or more embodiments in order to provide a basic understanding of such embodiments. This summary is not an extensive overview of all contemplated embodiments, and is intended to neither identify key or critical elements of all embodiments nor delineate the scope of any or all embodiments. Its sole purpose is to present some concepts of one or more embodiments in a simplified form as a prelude to the more detailed description that is presented later.
According to an aspect, a power circuit is described herein. The power circuit comprises a bypass switch coupled between a first power supply and an internal power supply, and a voltage regulator coupled between a second power supply and the internal power supply. The power circuit also comprises a shut-off circuit configured to detect the first power supply powering up before the second power supply during a power-up sequence, to shut off the bypass switch upon detecting the first power supply powering up before the second power supply, to detect the second power supply powering up during the power-up sequence, and to release control of the bypass switch to a controller upon detecting the second power supply powering up.
A second aspect relates to a method for preventing cross-supply current between a first power supply and a second power supply in a power circuit. The power circuit includes a bypass switch coupled between the first power supply and an internal power supply, and a voltage regulator coupled between the second power supply and the internal power supply. The method comprises detecting the first power supply powering up before the second power supply during a power-up sequence, shutting off the bypass switch upon detecting the first power supply powering up before the second power supply, detecting the second power supply powering up during the power-up sequence, and releasing control of the bypass switch to a controller upon detecting the second power supply powering up.
A third aspect relates to an apparatus for preventing cross-supply current between a first power supply and a second power supply in a power circuit. The power circuit comprises a bypass switch coupled between the first power supply and an internal power supply, and a voltage regulator coupled between the second power supply and the internal power supply. The apparatus comprises means for detecting the first power supply powering up before the second power supply during a power-up sequence, means for shutting off the bypass switch upon detecting the first power supply powering up before the second power supply, means for detecting the second power supply powering up during the power-up sequence, and means for releasing control of the bypass switch to a controller upon detecting the second power supply powering up.
To the accomplishment of the foregoing and related ends, the one or more embodiments comprise the features hereinafter fully described and particularly pointed out in the claims. The following description and the annexed drawings set forth in detail certain illustrative aspects of the one or more embodiments. These aspects are indicative, however, of but a few of the various ways in which the principles of various embodiments may be employed and the described embodiments are intended to include all such aspects and their equivalents.
The detailed description set forth below, in connection with the appended drawings, is intended as a description of various configurations and is not intended to represent the only configurations in which the concepts described herein may be practiced. The detailed description includes specific details for the purpose of providing a thorough understanding of the various concepts. However, it will be apparent to those skilled in the art that these concepts may be practiced without these specific details. In some instances, well-known structures and components are shown in block diagram form in order to avoid obscuring such concepts.
The SoC 120 includes a power circuit 122 coupled to power supplies VDD1, VDD2 and VDD3. The power circuit 122 is configured to provide a voltage at an internal power supply VDD_INT to power one or more circuits (not shown) of the SoC 120. The power circuit 122 comprises a voltage regulator 125, a bypass switch 130 and a controller 135, and can operate in different power modes under the control of the controller 135. The power modes may include a regulated power mode and a non-regulated power mode.
In the regulated power mode, the controller 135 turns on the voltage regulator 125 and turns off the bypass switch 130. In this mode, the voltage regulator 125 provides a regulated voltage at the internal power supply VDD_INT using the voltage at power supply VDD3. The regulated voltage has low noise, and may be used to power noise-sensitive components.
In the non-regulated power mode, the controller 135 turns on the bypass switch 130 and turns off the voltage regulator 125. In this mode, the bypass switch 130 provides a direct path between power supply VDD1 and the internal power supply VDD_INT. The voltage at the internal power supply VDD_INT is nosier in the non-regulated power mode than the regulated power mode. However, the bypass switch 130 is more power efficient than the voltage regulator 125, and therefore may be used to save power when supply noise is less critical.
In one example, the internal power supply VDD_INT may be used to power one or more memory physical (PHY) blocks (not shown) on the SoC 120. The memory PHY blocks may be used to generate data signals, control signals and a data strobe for interfacing a circuit (e.g., memory controller) on the SoC 120 with an external memory device (e.g., DRAM device). The memory PHY blocks may support data rate adaption, in which the memory PHY blocks may be adjusted to operate at different data rates (e.g., depending on a particular application).
In this example, the controller 135 may be configured to operate the power circuit 122 in the regulated mode when the memory PHY blocks operate at higher data rates. This is because the memory PHY blocks may be more sensitive to supply noise when operating at higher speeds. The controller 135 may be configured to operate the power circuit 122 in the non-regulated mode when the memory PHY blocks operate at lower data rates. This is because the memory PHY blocks may be more tolerant of supply noise when operating at lower speeds. Operating the power circuit 122 in the non-regulated mode conserves power since the bypass switch 130 is more power efficient than the voltage regulator 125. It is to be appreciated that embodiments of the present disclosure are not limited to this example, and that embodiments of the present disclosure may be used in any application in which the sensitivity of a circuit to supply noise changes (e.g., for different operating modes of the circuit).
The bypass switch 130 may be implemented using a first p-type field effect transistor (PFET) 132, in which the controller 135 drives the gate of the first PFET 132 to turn the first PFET 132 on and off In this example, the controller 135 drives the gate of the first PFET 132 low to turn on the first PFET 132 and drives the gate of the first PFET 132 high to turn off the first PFET 132. The internal power supply VDD_INT has a voltage approximately equal to VDD1 when the first PFET 132 is turned on.
The voltage regulator 125 may be implemented using a low-dropout (LDO) regulator, as shown in the example in
The second PFET 160 may include an intrinsic p-n junction diode 162 formed by a P+ source/drain region and an N-well in the second PFET 160. During normal operation, power supply VDD3 has a higher voltage than power supply VDD1. As a result, the diode 162 is reversed biased during normal operation, and therefore does not conduct current during normal operation.
During power-up, the voltages at power supplies VDD1, VDD2 and VDD3 are all initially zero volts. The PMIC 110 may then sequential power up power supplies VDD1, VDD2 and VDD3 to their normal operating voltages in a power-up sequence. An example of a power-up sequence is shown in
By powering up power supply VDD1 before power supply VDD3, the power-up sequence temporarily creates a direct current path between power supplies VDD1 and VDD3 though the PFETs 132 and 160. This current path may cause a high cross-supply current (e.g., hundreds of milliamps) to flow from power supply VDD1 to power supply VDD3. This may also cause the voltage at power supply VDD3 to rise before it is powered up by the PMIC 110, as explained further below.
When power supply VDD1 is first powered up, power supply VDD3 is still at zero volts and the gate of the first PFET 132 is at zero volts or some undefined state since the controller 135 has not yet been reset.
Since the gate of the first PFET 132 is at zero volts, the first PFET 132 is turned on. As a result, the first PFET 132 creates a current path from power supply VDD1 to the internal power supply VDD_INT, and pulls up the voltage at the internal power supply VDD_INT to approximately the voltage at power supply VDD1. The voltage at the internal power supply VDD_INT forward biases the intrinsic diode 162 of the second PFET 160 since power supply VDD3 is still at zero volts. When the forward bias reaches the turn-on voltage of the diode 162, the diode 162 turns on and conducts current, thereby creating a current path from the internal power supply VDD_INT to VDD3. The voltage at the internal power supply VDD_INT may also turn on the second PFET 160, creating an additional current path from the internal power supply VDD_INT to power supply VDD3 through the second PFET 160. Thus, a direct current path is created between power supplies VDD1 and VDD3 though the PFETs 132 and 160, which can cause a high cross-supply current (e.g., hundreds of milliamps) to flow from power supply VDD1 to power supply VDD3 (represented by the curved arrow in
The current through the diode 162 may also raise the voltage at power supply VDD3 before it is powered up by the PMIC 110. More particularly, the voltage at power supply VDD3 may be raised to a voltage approximately equal to the voltage at the internal power supply VDD_INT (which may be approximately equal to VDD1) minus the voltage drop across the diode 162. For example, when power supply VDD1 is powered up to 1.0V and the diode drop is approximately 0.5V, the voltage at power supply VDD3 may be raised to approximately 0.5V before it is powered up to its normal operating voltage (e.g., 1.8V) by the PMIC 110. This may upset other chips 140 that are coupled to VDD3 by raising the voltage at power supply VDD3 out of sequence.
The current path between power supplies VDD1 and VDD3 shuts off when power supply VDD3 is powered up by the PMIC 110. This may be because VDD3 is greater than VDD1 when power supply VDD3 is powered up. More particularly, the current may shut off when VDD1 minus VDD3 becomes less than the turn-on voltage of the diode 162 and the absolute threshold value of the second PFET 160. Alternatively or in addition, the current path may shut off when VDD3 is powered up because logic in the voltage regulator 125 becomes active when VDD3 is powered up, and shuts off the second PFET 160 upon becoming active. Thus, the current path between power supplies VDD1 and VDD3 may exist between the time that power supply VDD1 is powered up and the time that VDD3 is powered up.
Embodiments of the present disclosure prevent cross-supply current by preventing a current path from forming between power supplies during power-up. For the example shown in
During power-up, the detection circuit 520 detects power supply VDD1 powering up before power supply VDD3. The detection circuit 520 may do this by detecting when the voltage of power supply VDD1 reaches a threshold voltage while the voltage of power supply VDD3 is low (e.g., approximately zero volts). Upon detecting power supply VDD1 powering up before power supply VDD3, the detection circuit 520 outputs a logic one (e.g., 1.0V) to the OR gate 510. This causes the OR gate 510 to output a logic one to the gate of the first PFET 132 regardless of the logic state of the controller signal. The logic one shuts off the first PFET 132. Thus, the first PFET 132 is shut off regardless of the logic state of the controller signal. By shutting off the first PFET 132, the shut-off circuit 505 prevents formation of a current path from power supply VDD1 to the internal power supply VDD_INT through the first PFET 132, and therefore prevents formation of a current path between power supplies VDD1 and VDD3.
The detection circuit 520 also detects when power supply VDD3 is powering up. The detection circuit 520 may do this by detecting when the voltage of power supply VDD3 reaches a threshold voltage. In one example, the threshold voltage may be a voltage at which VDD1 minus VDD3 is less than the turn-on voltage of the diode 162. In another example, the threshold may be a voltage at which VDD1 minus VDD3 is less than the absolute threshold value of the second PFET 160. In yet another example, the threshold voltage may be a voltage approximately equal to or greater than VDD1. In this example, the detection circuit 520 may detect when power supply VDD3 is powering up by detecting when VDD3 is close to or exceeds VDD1.
Upon detecting power supply VDD3 powering up, the detection circuit 520 outputs a logic zero to the OR gate 510. The logic zero releases control of the first PFET 132 to the controller 135, allowing the controller 135 to control the first PFET 132 after reset is asserted. This is because, when a logic zero is input to the OR gate 510 by the detection circuit 520, the output of the OR gate 510 tracks the logic state of the controller signal. Also, when VDD3 powers up, logic in the regulator 125 may become active and shut off the current path through the second PFET 160.
Thus, the shut-off circuit 505 shuts off the first PFET 132 when it detects power supply VDD1 powering up before power supply VDD3 during the power-up sequence. The shut-off circuit 505 does not release control of the first PFET to the controller 135 until it detects power supply VDD3 powering up during the power-up sequence. In one embodiment, the shut-off circuit 505 releases control to the controller 135 when the voltage of power supply VDD3 exceeds the voltage of power supply VDD1. This ensures that the intrinsic diode 162 of the second PFET 162 is reversed biased, and therefore does not form a current path from the internal power supply VDD_INT to power supply VDD3 even if the first PFET 132 is turned on.
Operation of the detection circuit 520 during power-up will now be described. When power supply VDD1 is first powered up, power supply VDD3 is still at zero volts. As a result, the input of the first inverter 610 (which is coupled to VDD3) is low. This causes the first inverter 610 (which is powered by VDD1) to output a logic one to the gate of the first NFET 620. As a result, the first NFET 620 turns on and pulls the input (node 612) of the second inverter 615 to approximately ground. This causes the second inverter 615 (which is powered by VDD1) to output a logic one to the second input of the OR gate 510. As discussed above, this causes the OR gate 510 to output a logic one to the gate of the second PFET 132, and therefore shut off the second PFET 132, regardless of the logic state of the controller signal.
Thus, the detection circuit 520 in
When power supply VDD3 begins powering up, the voltage at the input of the first inverter 610 begins to rise. When VDD3 reaches a voltage that is high enough to flip the logic state of the first inverter 610, the output of the first inverter 610 (which is coupled to the gate of the first NFET 620) changes from logic one to logic zero. As a result, the first NFET 620 is turned off, and node 612 momentarily floats.
When VDD3 exceeds VDD1, the third PFET 625 begins to turn on. This is because the source-to-gate voltage of the third PFET 625 becomes positive when VDD3 exceeds VDD1. When the third PFET 625 turns on, the third PFET pulls up node 612 to a voltage approximately equal to VDD3. As a result, the input to the second inverter 615 becomes high, and the second inverter 615 outputs a logic zero to the second input of the OR gate 510. As discussed above, this releases control of the first PFET 132 to the controller 135. Thus, the shut-off circuit 505 shuts off the first PFET 132 until VDD3 exceeds VDD1, at which time, the shut-off circuit 505 releases control of the first PFET 132 to the controller 135.
Although the shut-off circuit 505 in the above example releases control of the first PFET 132 to the controller 135 when VDD3 exceeds VDD1, it is to be appreciated that the shut-off circuit 505 is not limited to this example and may be configured to release control of the first PFET 132 to the controller 135 at other voltages. For example, the shut-off circuit 505 may be configured to release control when VDD3 exceeds a threshold voltage. This may be done by coupling the gate of the third PFET 625 to the threshold voltage so that the third PFET 625 turns on and pulls the input (node 612) of the second inverter 615 high when VDD3 exceeds the threshold voltage. This threshold voltage is not to be confused with the threshold voltage of the third PFET 625. The threshold voltage may be chosen such that VDD1 minus VDD3 is less than the turn-on voltage of the diode 162 and/or less than the absolute threshold voltage of the second PFET 160 when VDD3 reaches the threshold voltage.
Even though the shut-off circuit 505 shuts off the first PFET 132 before VDD3 is powered up, leakage current on the order of hundreds of μA may pass through the first PFET 132. To address this, a current-shunt switch 710 may be coupled between the internal power supply VDD_INT and ground, as shown in
In one embodiment, the current-shunt switch 710 comprises a second NFET 720 coupled between the internal power supply VDD_INT and ground. The gate of the second NFET 720 is coupled to the output of the first inverter 610 in the shut-off circuit 505. When power supply VDD1 is first powered up and power supply VDD3 is at zero volts, the first inverter 610 outputs a logic one to the gate of the second NFET 720. As a result, the second NFET 720 turns on and provides a current path for shunting leakage current from the first PFET 132 to ground. This keeps the internal power supply VDD_INT at approximately zero volts.
When power supply VDD3 begins powering up, the voltage at the input of the first inverter 610 begins to rise. When VDD3 reaches a voltage that is high enough to flip the logic state of the first inverter 610, the first inverter 610 outputs a logic zero to the gate of the second NFET 720, thereby turning off the second NFET 710. This may occur when VDD3 reaches a voltage that is slightly higher than half the voltage of VDD1. As a result, the second NFET 720 is turned off during normal operation, allowing the internal power supply VDD_INT to supply power to one or more circuits of the SoC 110 during normal operation.
The shut-off circuit 505 may be implemented in a small area of a chip compared with conventional power-up-reset circuits. This is because the shut-off circuit 505 is implemented using logic (e.g., inverters and switches), which occupy a much smaller chip area than resistors and capacitors used to provide time delays in conventional power-up-reset circuits. In addition, the shut-off circuit 505 is power efficient. This is because the shut-off circuit 505 is static during normal operation, and therefore consumes almost no DC power during normal operation.
Further, the shut-off circuit 505 does not need to be adjusted to adapt to changes in the timing of a power-up sequence. For example, the shut-off circuit 505 does not need to be adjusted if the time delay between power-up of power supply VDD1 and the power-up of power supply VDD3 changes. This is because the shut-off circuit 505 uses the detected voltages of power supplies VDD1 and VDD3 instead of a timing circuit to determine when to release control of the bypass switch 130 to the controller 135.
The shut-off circuit 505 may also be used to prevent cross-supply current during a power-down sequence. For example, during a power-down sequence, power supply VDD3 may be powered down before power supply VDD1, and the controller 135 may be shut down before power supply VDD1 is powered down. As a result, the power-down sequence may cause a cross-supply current to flow between power supplies VDD1 and VDD3 between the time that power supply VDD3 is powered down and the time that power supply VDD1 is powered down. In this example, when power supply VDD3 is powered down during the power-down sequence, the first invertor 610 flips logic states and outputs a logic one to the first NFET 620. This causes the first NFET to turn on and pull down the input (node 612) of the second inverter 615 to ground. This in turn causes the second inverter 615 to output a logic one to the second input of the OR gate 510. As discussed above, this shuts off the first PFET 132, and therefore prevents cross-supply current, regardless of the logic state of the controller signal. Thus, the shut-off circuit 505 detects power supply VDD3 powering down before power supply VDD1 during a power-down sequence, and shuts off the first PFET 132 upon detecting power supply VDD3 powering down before power supply VDD1.
In step 810, the first power supply is detected powering up before the second power supply during a power-up sequence. This may be done, for example, by detecting the first power supply (e.g., VDD1) reaching a threshold voltage while the second power supply (e.g., VDD3) is low (e.g., approximately zero volts).
In step 820, the bypass switch is shut off upon detecting the first power supply powering up before the second power supply. For example, the bypass switch may be implemented using a PFET (e.g., the first PFET 132) that is shut off by driving the gate of the PFET high.
In step 830, the second power supply is detected powering up during the power-up sequence. This may be done by detecting when the voltage of the second power supply (e.g., VDD3) exceeds the voltage of the first power supply (e.g., VDD1). This may also be done by detecting when the voltage of the second power supply (e.g., VDD3) is equal to or greater than a threshold voltage. The threshold voltage may be chosen such that, when the second power supply (e.g., VDD3) reaches the threshold voltage, the voltage of the first power supply (e.g., VDD1) minus the voltage of the second power supply (e.g., VDD3) is less than the turn-on voltage of a diode (e.g., diode 162) in the voltage regulator (e.g., voltage regulator 125) and/or less than the absolute threshold voltage of a transistor (e.g., the second PFET 160) in the voltage regulator (e.g., voltage regulator 125).
In step 840, control of the bypass switch is released to a controller upon detecting the second power supply powering up. For example, control of the bypass switch (e.g., the first PFET 132) may be released to the controller (e.g., controller 135) using an OR gate (e.g., OR gate 510).
Those skilled in the art will appreciate that the circuits described herein may be realized using a variety of transistor types, and are therefore not limited to the particular transistor types shown in the figures. For example, transistor types such as bipolar junction transistors, junction field effect transistor or any other transistor type may be used. Those skilled in the art will also appreciate that the circuits described herein may be fabricated with various IC process technologies such as CMOS, bipolar junction transistor (BJT), bipolar-CMOS (BiCMOS), silicon germanium (SiGe), gallium arsenide (GaAs), etc.
The controller 135 may be implemented with 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 may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may perform the functions of the controller 135 described herein by executing software comprising code for performing the functions. The software may be stored on a computer-readable storage medium, such as a RAM, a ROM, an EEPROM, an optical disk, and/or a magnetic disk.
The previous description of the disclosure is provided to enable any person skilled in the art to make or use the disclosure. Various modifications to the disclosure will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other variations without departing from the spirit or scope of the disclosure. Thus, the disclosure is not intended to be limited to the examples described herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.