BACKGROUND OF THE INVENTION
1. Field of the Invention
This invention relates to electronic systems, and more particularly, to systems for ensuring the proper powering up of those systems.
2. Description of the Related Art
While some integrated circuits may receive power from a single power supply, other integrated circuits (ICs) may receive power from multiple power supplies. Often times, ICs will have different voltage and/or current requirements for various types of circuitry such as drivers, receivers, core circuitry, phase-locked loops (PLLs) and so forth.
Powering up an IC receiving power from only a single power supply may be a relatively straightforward process. However, when multiple power supplies provide power to an IC, powering up may require power to be applied to the various circuits in a specific sequence. Failure to apply power in the proper sequence may result in the damage or destruction of various individual circuits of the IC.
Even when damage to circuitry is not a concern, a failure to apply power in the proper sequence to an IC may prevent it from functioning correctly. Many types of ICs (such as microprocessors) are required to enter a reset state and then proceed through an initialization sequence before they can perform their intended functions. The initialization sequence may include certain units of the IC exchanging information with other units that receive power from a different power supply. If one of the units involved in the attempted information exchange is not fully powered up, the information exchange will not occur, and the IC will not initialize properly.
SUMMARY OF THE INVENTION
A method and apparatus for powering up an integrated circuit (IC) is disclosed. In one embodiment, an IC includes a plurality of power domains each coupled to receive power from one of a plurality of power sources. Each power domain includes a power-sensing unit. A power-sensing unit in a first one of the plurality of power domains is coupled to receive a first power ok signal from an upstream power domain, and is configured to assert a second power ok signal to be provided to a second power domain (downstream from the first). A power-sensing unit in the second power domain is coupled to detect the presence of voltage in the first power domain, and is further coupled to receive the first power ok signal. When the power-sensing unit in the second power domain has both sensed the presence of power in the first power domain and received the second power ok signal (originating in the first power domain), a third power ok signal is asserted. A downstream power domain may receive the third power ok signal.
In one embodiment, each of the power sources supplies power at a different voltage from the other power sources. Each of the power domains may be associated with one of the plurality of power sources, and may receive power at a voltage that is unique with respect to the power received by the other power domains. The power-sensing units of the various power domains may be coupled to each other in a daisy-chain topology. Each of the power-sensing units is coupled to receive a power ok signal from an upstream (as defined by the daisy chain topology) and is also configured to detect the presence of power in the upstream power domain. It should be noted that the power-sensing unit of the first power domain of the daisy chain may be coupled directly to its respective power source, and in some embodiments, the power received from the power source may also double as the power ok signal. If no upstream power is detected by a power-sensing unit of a given power domain, then no downstream power ok signal (i.e. a power ok signal provided to a power-sensing unit in a downstream power domain) is asserted. If the power-sensing unit of the given power domain detects power in the upstream power domain, then the state of the downstream power-ok signal will follow the state of the upstream power-ok signal (i.e. the power ok signal asserted by the power-sensing unit of the upstream power domain).
In various embodiments, different types of level shifting circuitry may be used to implement the power-sensing units. The use of level shifting circuits may allow the power-sensing unit of a given power domain to assert a downstream power ok signal using its own power based on detecting upstream power and the assertion of the received upstream power ok signal. Furthermore, requiring each power-sensing unit to utilize the power of its respective domain ensures that it will not inadvertently assert a power ok signal when the required power has not been received by its domain.
BRIEF DESCRIPTION OF THE DRAWINGS
Other aspects of the invention will become apparent upon reading the following detailed description and upon reference to the accompanying drawings in which:
FIG. 1A is a drawing of one embodiment of an integrated circuit (IC) having a plurality of power domains;
FIG. 1B is a drawing of another embodiment of an IC having a plurality of power domains;
FIG. 1C is a drawing of another embodiment of an IC having a plurality of power domains;
FIG. 2 is a drawing of illustrating one embodiment of a daisy chain of power-sensing units;
FIG. 3 is a schematic diagram of a power-sensing unit and level shifter for pwrok;
FIG. 4 is a schematic diagram of another embodiment a power-sensing unit including a level shifter with a default condition when not pwrok; and
FIG. 5 is a block diagram of one embodiment of a computer system having a processor with multiple power domains.
While the invention 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 description thereto are not intended to limit the invention to the particular form disclosed, but, on the contrary, the invention is to cover all modifications, equivalents, and alternatives falling with the spirit and scope of the present invention as defined by the appended claims.
DETAILED DESCRIPTION OF THE INVENTION
Turning now to FIG. 1A, a drawing illustrating one embodiment of an integrated circuit (IC) having a plurality of power domains is shown. It should be noted that this embodiment is shown for illustrative purposes and is not intended to imply a specific integrated circuit layout. In general, the various embodiments of the method and apparatus described herein can be applied to a wide variety of layouts for IC's that require a plurality of different power sources (in terms of electrical requirements).
In this particular embodiment, IC 10 includes five separate power domains, each of which requires power at a voltage that is different with respect to the other power domains. A power domain may be defined as a circuit or groups of circuits which have the same power requirements and thus share a common power source. More particularly, a power domain may be defined as a circuit or group of circuits that operate at the same voltage. Thus, in the embodiment shown, a power domain # 1 receives power at 3.3 volts, power domain # 2 receives power at 1.2 volts, power domain # 3 receives power at 0.9 volts, power domain # 4 receives power at 1.8 volts, and power domain # 5 receives power at 2.5 volts. It should be noted that embodiments of an IC having a greater or lesser number of power domains are possible and contemplated, as are embodiments of an IC receiving power at voltages different than shown here.
A power-sensing unit 100 is present in each of the power domains shown in this embodiment. In general, the power-sensing units are coupled to receive power from an upstream power source and an upstream power ok signal. The power-sensing units may then generate a power ok signal both for use in the given power domain an as an input to a downstream power sensing unit. For the purposes of this disclosure, an upstream power domain may be defined as one from which a power-sensing unit 100 receives a power ok signal, while a downstream power domain may be defined as one which a power-sensing unit provides a power ok signal. For example, power domain # 1 may be considered to be upstream from power domain # 2, since power domain # 2 is coupled to receive a power ok signal from the power-sensing unit 100 of power domain # 1. Power domain # 3 may be considered to be downstream from power domain # 2 since it receives a power ok signal from power domain # 2.
In the embodiment shown, the power-sensing unit 100 of power domain # 1 may be coupled to receive a power ok signal (power_ok_ext) indicating that each of IC's external power sources is operating. Other embodiments are possible and contemplated wherein no external power ok signal is provided to IC 10. When 3.3-volt power is received, along with any power ok signal that may be provided from the 3.3-volt power source, the power-sensing unit 100 of power domain # 1 may assert a power ok signal, which is received by power-sensing unit 100 of power domain # 2. In addition to receiving the power ok signal from upstream, power-sensing unit 100 of power domain # 2 is also coupled to detect the presence of power in power domain # 1. Responsive to both the detection of power in the upstream power domain and the receiving of the power ok signal, power-sensing unit 100 of power domain # 2 may assert a power ok signal to be provided to a power-sensing unit in the downstream power domain (power domain #3).
In the manner described above, each power-sensing unit 100 of a given power domain may be coupled to both detect power and receive a power ok signal from an upstream power domain. Each power-sensing unit may also assert a power ok signal that may be provided to a power-sensing unit in a downstream power domain, with the exception of the most downstream power domain (power domain # 5 in this case). In the embodiment shown, power-sensing unit 100 of power domain 5 is configured to assert a power ok responsive to detecting power in power domain # 4, and receiving the asserted power ok signal that may be provided by its power-sensing unit. However, there is no further downstream power domain. In this case, power-sensing unit 100 of power domain # 5 is configured to provide a power ok (power_ok_all) signal that is conveyed to the world external to IC 10. This may be useful in signaling to other components in an electronic system in which IC 10 is implemented that it is fully powered up. Power-sensing unit may also (or in lieu of) provide a power ok signal to other portions of IC 10, which may be held in a reset state until this power ok signal is received. Upon receiving the power ok signal from the power-sensing unit 100 of the most downstream power domain, IC 10 may be able to exit its reset state and begin any necessary initialization routines. Embodiments are possible and contemplated where no power ok signal is provided beyond the most downstream power domain.
FIGS. 1B and 1C illustrate alternate embodiments of IC 10. The embodiment shown in FIG. 1B is similar to that of FIG. 1A except that the power_ok_ext signal is provided to the power sensing unit 100 of power domain # 3, while power domain # 2 is the most downstream power domain. Generally speaking, any of the power domains may be coupled to be the most upstream power domain or the most downstream power domain, in accordance with any power sequencing requirements of the specific IC embodiment.
FIG. 1C illustrates another alternate embodiment of IC 10. For the sake of clarity, the power-sensing units shown in this drawing are separated into sniffer circuits (each labeled ‘SN’) and level shifters (each labeled ‘LS’). In this particular embodiment, no external power ok signal is provided to IC 10. Instead, the sniffer circuit and one of the level shifters of power domain # 1 are coupled to power from power domain #3 (i.e. 1.8 volts), wherein the power is received as an input signal (operating power for these circuits is received from within their own domain). The sniffer circuit of power domain # 1 is coupled to provide a ‘sane’ signal to both of the level shifters within the domain. A first one of these level shifters is configured to assert a first power ok signal (powerok_internal_1) and a second one of these level shifters is configured to assert a second power ok signal (qualified_powerok_1). The second of these power ok signals is asserted if the respective level shifter has received 1.8-v power as an input as well has having received an asserted ‘sane’ signal from the sniffer circuit. A level shifter in power domain # 2 is coupled to receive the qualified_powerok_1 signal. Responsive to receiving this signal and the ‘sane’ signal from the sniffer circuit of power domain # 2, the respective level shifter # 2 will assert another power ok signal, qualified_powerok_2. This power ok signal may be received by a level shifter in power domain # 3. Upon receiving this power ok signal and the ‘sane’ signal from the sniffer circuit in power domain # 3, this level shifter is configured to assert the powerok_internal_3 signal. The powerok_internal 3 signal may be received by the other level shifter of power domain # 1, and eventually this may cause the powerok_internal_2 signal to be asserted in power domain # 2. The powerok_internal_2 signal, when asserted, indicates that each power domain has been successfully powered up and that power in each domain is stable (i.e. sane). The powerok_internal_2 may be used in some embodiments to allow one or more power domains of IC10 to be released from a reset state that may otherwise be held until each of the power domains has received power as well as confirmation that it respective upstream domain has received power. In some embodiments, the entirety of IC 10 may be held in a reset state until all of the power ok signals have been asserted.
Each of the power sensing units in the various embodiments discussed above may include at least one level shifter circuit and may also include a sniffer circuit as shown in FIG. 1C. Some embodiments may include multiple level shifters, although in certain cases (as in power domain # 3 shown in FIG. 1C), the second of these level shifters may be redundant and thus unnecessary. Additional details regarding power sensing units and embodiments of circuits used to implement them will be discussed in further detail below.
It should also be noted that embodiments implemented using topologies different than those shown in FIGS. 1A-1C are also possible and contemplated. For example, embodiments are possible and contemplated wherein a “fork” topology is implemented, wherein a first power sensing unit in a first power domain provides power ok signals to two or more downstream power sensing units. These downstream power sensing units may also be coupled to sense the presence of power in the upstream power domain (i.e. the first power domain in this example). In general, the topology may be any suitable topology for implementing a desired power-up sequence in an IC. Furthermore, various embodiments of the method and apparatus described herein may be extended to IC's having any number of power domains.
Turning now to FIG. 2, a drawing of illustrating one embodiment of a daisy chain of power-sensing units is shown. In the embodiment shown, four power domains are shown. Each power domain includes a power-sensing unit 100, and the power-sensing units are coupled together serially. While four power domains are shown here, a greater or lesser number of power domains may be present. Furthermore, additional power domains may precede power domain 0 (that is, power domain # 0 may receive a signal on its pwrokU input from an upstream power domain) or follow power domain #3 (i.e. the signal provided by the pwrokD output is provided to a downstream power-sensing unit in another power domain). It is also contemplated that the four power domains shown here comprise all of the power domains for a particular IC embodiment.
As previously mentioned, the power-sensing units 100 of each power domain are coupled together serially. Power-sensing unit 100 of power domain # 1 includes a pwrokU input that is coupled to the pwrokD output of the power-sensing unit in power domain 0. Power-sensing unit 100 of power domain # 2 is similarly coupled to the power-sensing unit of power domain 1, while power-sensing unit 100 of power domain # 3 is similarly coupled to the power-sensing unit of power domain # 2.
Each power-sensing unit 100 is also coupled to receive power from the preceding upstream power domain on its respective pwrU input. Additionally, each power-sensing unit 100 may receive power from its own power domain. In various embodiments, each of the power-sensing units 100 may be implemented as level shifting circuits, as will be discussed in further detail below.
Each of the power-sensing units 100 shown in this embodiment includes an input labeled pwrokU and an output labeled pwrokD. For the purposes of this disclosure, a signal asserted on the pwrokD output of a power-sensing unit 100 will be referred to as a downstream power ok signal, while a signal received on the pwrokU input of a power-sensing unit 100 will be referred to as an upstream power ok signal.
For the embodiment shown, in order for a power-sensing unit 100 of a given power domain to assert a downstream power ok signal, three conditions must be present. The first of these conditions is that the power-sensing unit 100 must receive an upstream power ok signal on its pwrokU input. It should be noted that this condition may not apply to the power-sensing unit of the furthest upstream power domain, which may instead only be required to receive power from its associated power source. The second condition is that power in the preceding upstream power domain must be sensed at the pwrU input of the power-sensing unit. The third condition is that the power-sensing unit 100 must be receiving the power required by its own power domain. If each of these conditions is satisfied, the power-sensing unit 100 may assert a downstream power ok signal to be provided to the power-sensing unit 100 of the next downstream power domain (if present) and to the entire power domain from which power-sensing unit receives its power.
Broadly speaking, when any power-sensing unit 100 is receiving power within its own power domain as well as detecting the presence of power in the upstream power domain, the state of the downstream power ok signal follows the state of the received upstream power ok signal. If power is detected in the upstream power domain, but no upstream power ok signal is received, the downstream power ok signal is not asserted. If upstream power is detected and the upstream power ok signal is received, then the power-sensing unit 100 asserts the downstream power ok signal responsive to the presence of both of these conditions. If a power-sensing unit 100 detects no upstream power, then it does not assert a downstream power ok signal, regardless of any signal that may be received on its pwrokU input.
If the power domain in which the power-sensing unit 100 is in is the most downstream power domain, the downstream power ok signal may still be asserted, but may be provided to a destination external to the IC in which each of the power domains reside. Alternatively, the downstream power ok signal may be provided to another destination within the IC. In some embodiments, the circuitry residing in each of the power domains may be held in a reset state until the downstream power ok signal of the furthest downstream power domain is asserted. The assertion of the downstream power ok signal may indicate that each of the power domains in the IC is receiving its required power, and it is thus safe to begin any initialization routines or to begin operation.
Moving now to FIG. 3, a schematic diagram of an embodiment of a power sensing unit configured to detect power from another power domain is shown. In the embodiment shown, power sensing unit includes a level shifter circuit 102 and a sniffer circuit 103. In this embodiment of power-sensing unit 100, the pwrokU input is the gate terminal of transistor Q4, while the upstream power input (pwrU) is the gate terminal of transistor Q6.
Assuming power is present in the downstream power domain, but no power is present in the upstream power domain, transistor Q6 will remain off. Transistors Q7, Q8, and Q9 remain on, as their respective gate terminals are hardwired to ground. Thus, the junction connecting transistors Q6 and Q7 is pulled up to voltage VD. This voltage is transferred via a wire or hysteresis buffer 107 to transistor Q5. With sufficient voltage on its gate terminal, transistor Q5 is turned on, and thus pulls the voltage present on the pwrokD output down to ground. Wire/hysteresis buffer 107 may slow the turning on or off of transistor Q5, by making sure upstream power is fully turned on or off before causing it to change states.
When power is present in the upstream power domain, transistor Q6 is turned on. With transistor Q6 turned on, the voltage present on the junction between transistors Q6 and Q7 is sufficiently pulled down, and this voltage is transferred through the wire/hysteresis buffer 107 to the gate terminal of transistor Q5, thereby turning it off. At this point, the pwrokD output is dependent upon the state of the pwrokU input. If the pwrokU input is a logic 0 then the output of inverter 105 is a logic 1 and with upstream power present, the voltage on the gate of Q3 is sufficient to turn Q3 on an pull pwrokD to ground, thereby turning on Q1 and turning off Q2, while Q4 is also off. If the pwrokU input is a logic 1, the output of inverter 105 is a logic 0 and Q3 is off, and if power is present in the upstream domain there is sufficient voltage to turn on Q4 which causes Q2 to be turned on and thus the pwrokD output is pulled to a logic 1, while Q1 is turned off.
Turning now to FIG. 4, a schematic diagram of another embodiment of power sensing circuit is shown, wherein the level shifter circuit is configured to assert a default condition while a power ok signal is deasserted. This embodiment includes a level shifter circuit 102 that is similar to that discussed in reference to FIG. 3, although it includes an input for a sane signal which is provided to the gate terminals of transistors Q1 and Q5. The sane signal may be provided from a downstream power domain, including the downstream power domain shown here. In one embodiment, the sane input may be directly coupled to the output of the same downstream power domain. In other embodiments, the sane input may be provided from a power domain that is further downstream (with the use of a level shifter, which is required to cross from one power domain to another). It is also noted that additional logic may be used to produce the sane signal, either in the power domain to which it is provided or another downstream power domain where it may be generated.
Assuming that both upstream power has been detected and the pwrokD signal from the upstream power domain is asserted, an asserted sane signal causes transistor Q5 to be turned on and transistor Q1 to be turned off. This will allow the output of level shifter 102 to be controlled by its input, since the output follows the input whenever the sane signal is a logic 1. If for any reason, the received sane signal becomes de-asserted transistor Q5 will be turned off while transistor Q1 will be turned on. This will cause transistor Q3 to be turned off, while transistor Q7 will be turned on, causing a de-assertion of the output signal. Transistor Q5 may interrupt the pulldown of Q4 when upstream power is present but sane is low (i.e. logic 0), thereby allowing Q1 to turn on without contention, turning on Q7 and pulling pwrokD low.
Power sensing unit 100 in this particular embodiment also includes a sniffer circuit 103, which may generate the sane signal. Upstream power (VU) may turn on transistor Q16. This results in the signal coupled to the input of inverter 115 being pulled low. In the embodiment shown, the pulling low of this node may be delayed by the wire/hysterisis buffer 107, although embodiments without this delay are possible and contemplated. The pulling low of the input of inverter 115 thus results in the sane signal being asserted. The sane signal asserted by inverter 115 may be provided to the sane input of level shifter 102 or to a sane input of another level shifter in another power domain.
The use of the sane signal in the embodiment discussed above may prevent potentially illegal behavior of the circuit of level shifter 102, and may also prevent potential damage to the circuitry in certain situations. For example, if upstream power is lost, both the inputs to transistors Q4 and Q6 fall substantially to ground. If no sane signal was present (and thus no Q5 and no input to Q1), it is possible that the junction of transistors Q4 and Q2, along with the pwrokD output of the downstream power domain would fall to a mid-rail voltage. In this situation, significant crowbar currents may be flowing in embodiments not configured to utilize the sane signal. These currents could potentially damage transistors within the circuit. Furthermore, if the pwrokD output is at mid-rail, it is possible that a power-sensing unit of a downstream power domain could interpret it to be asserted. Thus, the use of a sane signal as shown in this embodiment may ensure that the pwrokD signal is pulled down to ground and is thus not misinterpreted as being asserted, while preventing potential circuit damage due to crowbar currents. In other words, coupling the gate of transistor Q5 to receive the sane signal prevents the input signal provided to Q4 (pwrokU) from controlling the output of the circuit when sane is de-asserted. The logical control provided by the pwrokU signal is thus dependent on the sane signal first being asserted.
The circuits shown above are examples of circuits that may be used to implement the various functions required by power sensing units. Other circuits that accomplish the level shifting functions and/or the power sensing (i.e. ‘sniffer’ circuits) are also possible and contemplated. In general, the circuits used to implement the power sensing units may be configured to the specific implementation in which they are used as well as their respective positions in the power sequencing hierarchy.
Turning now to FIG. 5, a block diagram of one embodiment of a computer system having a processor with multiple power domains is shown. In the embodiment shown, computer system 200 includes processor 202, which is coupled to bus bridge 204 via processor bus 203. Bus bridge 204 is coupled to peripheral devices 206, 208, and 210 via buses 205, 207, and 209, respectively.
Computer system 200 includes a plurality of power sources, as indicated by the various voltage symbols shown in the drawing (i.e. VDDA, VDDB, VDDio, and VTT). Embodiments having additional power sources are possible and contemplated, as are embodiments having fewer power sources than shown here.
Processor 202 in this particular embodiment includes multiple power domains, and is thus coupled to receive multiple power supply voltages. Processor 202 may include a power-sensing unit in each of the power domains. The power-sensing units of the various power domains may be coupled together in a manner similar to that shown in FIGS. 1A-1C and FIG. 2, wherein each power-sensing unit may be required to both detect the presence of power in an upstream power domain as well as receiving a power ok signal from the upstream power domain. Upon startup of computer system 200, processor 202 may be held in a reset state until each of the power-sensing units of the respective power domains has asserted a power ok signal.
It should be noted that this system is exemplary. Other electronic systems may also utilize multi-voltage integrated circuits having the same power-up scheme as that described above. The multi-voltage integrated circuits in such electronic systems may include processors or other types of integrated circuits. Furthermore, other embodiments of such electronic systems may include more than one multi-voltage integrated circuit having the power-up scheme described herein.
While the present invention has been described with reference to particular embodiments, it will be understood that the embodiments are illustrative and that the invention scope is not so limited. Any variations, modifications, additions, and improvements to the embodiments described are possible. These variations, modifications, additions, and improvements may fall within the scope of the inventions as detailed within the following claims.