The present invention relates to an electronic device as well as to a method of performing a power management in an electronic device.
The ability to manage the power dissipation of electronic devices, in particular mobile devices driven by batteries, is becoming more and more important. By means of the power management, the power dissipation of mobile devices is managed in order to increase the running time of the device based on its available battery power. To perform an effective power management, the operating state of hardware blocks or functional units in the electronic device must be determined and the transition into a new operating state has to be controlled. The actual state of the hardware block or functional unit can be determined by observing the system behavior or the behavior of an application running on the system. The energy which is supplied to the electronic device can be controlled by means of dynamic frequency and voltage scaling DVFS, i.e. by controlling the supply voltage and/or the clock frequency. However, to control the energy delivered, any power management must be able to investigate and analyze the internal behavior of a system or its external communication. Thus, the power management has to be implemented in the system or device in the neighborhood of the required functionality, i.e. the power management must be implemented in the monitoring and analyzing infrastructure of a device or system. Hence, the requirements of such a system would be higher as the processor will have to run at higher frequencies or some additional hardware infrastructure needs to be implemented.
It is therefore an object of the present invention to provide an electronic device as well as a method of performing a power management in an electronic device, which are able to perform a power management without adding a significant additional infrastructure to the electronic device.
This object is solved by an electronic device according to claim 1 as well as by a method for determining the workload of an electronic device according to claim 4.
Therefore, an electronic device is provided which comprises at least one functional unit for performing a processing. The functional unit receives a supply current. The electronic device furthermore comprises a supply current monitor for monitoring the supply current in order to determine an average supply current. The electronic device furthermore comprises a characterization unit for determining a relation between the average supply current and an operating frequency of the functional unit. Furthermore, a slope calculation unit is provided to determine the slope of the relation. Moreover, a power management unit is provided to control the operation of the functional unit according to the results of the slope calculation unit in order to control the power dissipation of the functional unit.
According to an aspect of the present invention, the electronic device furthermore comprises an optimal energy point calculation unit for determining whether the monitored average supply current relates to an operation of the functional block at an optimal energy point. The power management unit is adapted to control the operation of the functional block according to the results of the optimal energy point calculation unit.
The invention also relates to a method for performing a power management in an electronic device. A processing is performed by at least one functional unit. The functional unit receives a supply current. The supply current to the at least one functional unit is monitored to determine an average supply current. A relation between the average supply current and an operating frequency of the functional unit is determined. A slope of this relation is determined and a power management is performed for the operation of the functional unit according to the results of the slope calculation to control the power dissipation of the at least one functional unit.
The present invention relates to the idea to perform a power management of an electronic device or parts thereof by monitoring its supply lines. In particular, the supply current is monitored to determine the operating state of the electronic device or parts thereof. To determine the operating state of the electronic device or parts thereof, the supply current-frequency relation of the device or parts thereof is determined. The slope of the relation between the current-frequency is examined. This can for example be done by oscillating the execution frequency to measure the supply current. In addition or alternatively, the supply voltage can be oscillated to measure the supply current. Furthermore, an optimal energy operation point is determined, which could also be done by oscillating the clock frequency and/or the supply voltage. In other words, the average supply current needs to be monitored or measured. The measured supply current is analyzed to determine the operating state of the electronic device or parts thereof. It is furthermore determined whether the electronic device or parts thereof operate at an optimal energy point. This can be done as described above by oscillating the supply voltage and/or the clock frequency. A power management is performed according to the analysis of the supply current and/or whether the electronic device or parts thereof operate at an optimal energy point. The power management of the workload may include adding or removing functionality, and switching on or off of hardware.
A power management of a hardware block is preferably performed based on the supply current of the hardware block. It should be noted that the average supply current linearly depends on the working frequency (e.g. the clock frequency) of a hardware block, wherein the slope of the relationship is different for the various states of the hardware block. By measuring the average supply current of the hardware block, in particular by determining the slope of the average current-frequency function, the actual state of the hardware block can be determined. Based on the knowledge of the actual state of the hardware block, a power management can be performed during runtime by deciding whether to switch the hardware into a different power mode or not. As the average supply current is used as basic parameter for performing or deciding the power management, such a power management can be performed from the outside of the hardware block merely by monitoring the supply lines of the hardware block instead of analyzing its internal or external behavior.
Preferred embodiments of the invention are defined in the dependent claims.
These and other aspects of the invention will be apparent from and elucidated with reference to the embodiment(s) described hereinafter with reference to the drawings.
Furthermore, from
It should be noted that the current-frequency characteristics will be different for each processor or each hardware block or each functional unit. Typically, the current-frequency characteristics will be such that substantially two lines with two different slopes will be apparent in the current-frequency characteristics, wherein a first line with a first slope will correspond to the region PII and wherein a second line with a second slope will correspond to the region PII.
For some processors or hardware blocks, the second upper line, i.e. the region PII, can be flat or horizontal if the hardware block is powered down while it is idle. The first line may have a steep or vertical slope (i.e. the region PI) if the hardware blocks are switched off when they can not fully execute the required functionality. Accordingly, the slope, i.e. the angle of the slope, of the first region PI is typically larger than the slope, i.e. the angle of the slope of the second region PII. Hence, executing functionality is more costly in terms of energy than an idleness.
By detecting the angle of the slope in a current-frequency relationship, it can be determined whether the hardware block is operating at the optimal energy point. Such information may be used for power management.
Accordingly, the present invention shows an easy way to determine the workload and the operating mode/state of a hardware block and to determine whether the hardware block is working at an optimal energy point or not. This can be performed by examining the supply lines of the hardware block.
In contrast to the graph of
Furthermore, additional functional units may be provided to implement the basic principle of the current invention. Therefore, a supply current monitor SCM is coupled to the supply lines SL for measuring the current which is supplied to the hardware block HB, i.e. it serves for performing current monitoring, current averaging or averaging time. Therefore, the supply current monitor SCM outputs an average supply current Iavg. Furthermore, a characterization unit CU, a sloped calculation unit SCU, an optimal energy point calculation unit OPC, and a power management unit PMU is provided. The characterization unit CU serves to analyze the average supply current to determine the workload of the hardware block. The input of the characterization unit CU corresponds to the average supply current Iavg. The slope calculation unit SCU is used to determine the slope of the current-frequency relation of the electronic device and/or the hardware block HB. The optimal energy point calculation unit OPC determines whether the monitored average supply current Iavg corresponds to a workload or operating state which corresponds to the optimal energy point OEP or not. The result of the slope calculation in the slope calculation unit SCU and the results of the optimal energy point calculations are output to the power managing unit PMU. The power managing unit PMU serves to control the power dissipation of the hardware block e.g. by switching off/on parts of the hardware block according to the results of the power management.
In other words, the average supply current Isupply is monitored and analyzed to determine the workload or operating state of the hardware block. The average supply current Iavg is also analyzed to determine whether the hardware block HB is operating at an optimal energy or not. Based on the results of the analysis with respect to the operating state and the optimal energy operation of the hardware block, power management policies can be implemented in order to manage the power dissipation of the hardware block.
In the characterization unit CU a relation between the supply current and the operating frequency is determined. This relation may be determined off-line or online. If the relation is to be determined online, average supply current is measured for several execution frequencies and/or supply voltages. In order to determine the slopes of the relations, the executing frequency and/or the supply voltage can be oscillated in order to measure average supply currents at different points in order to determine the slope of the relation.
The optimal energy point OEP can be determined e.g. by means of the optimal energy point calculation unit OPC. This can for example be performed by oscillating the execution frequency like the clock frequency and/or by oscillating the supply voltage. During these oscillations, the supply current is measured and from these measurements it is determined e.g. in the optimal energy point calculation unit whether two different slopes are present or not. If a dynamic frequency scaling DFS (
Alternatively or in addition, the function of the average supply current is measured starting from a maximum frequency and reducing the frequency while the supply current is measured. In such a case a patrioal linearization can be present. The slopes of the line segments are decreasing with a decreasing frequency and the slopes of the segments which pass through the optimal frequency fopt raises again and decreases thereafter. If the slopes of the line segments are calculated, the optimal frequency can be determined as in the case of the dynamic voltage and frequency scaling according to
The power management unit PMU can be performed by executing at low power but in real time, by scaling the quality of the executed functionality and/or by executing at an optimal energy point. If the hardware block is executing at low power but in real time, the hardware block is kept in the lower part of the region PI. Thereafter, the operation of the hardware block is observed to determine whether its operation decreases (then increases the voltage and frequency) or whether it goes up (then decreases the frequency and voltage). If the hardware block is operated by scaling the quality of the executed functionality based on the power management, the hardware block is kept in the higher part of the region PI and it is observed whether its operation goes down or goes up. If its operation goes down, then the voltage and frequency must be increased. On the other hand, if its operation goes up, then the frequency and the voltage must be decreased.
If the operation of the hardware block is performed at the optimal energy point, the average current consumption of the hardware block is monitored and the frequency and voltage settings of the hardware block are changed in order to react to changes in the application. This is performed to keep the hardware block as close as possible to the optimal energy point.
The characterization of the hardware block may be performed offline and the results thereof may be stored in a memory. This will speed up the process of determining the state of the hardware block. The current-frequency relation can be stored as a set of analytical formulas, as a table, slope angles or as ranges. During the performance of the power management, the average supply current is measured and can be compared to a stored relationship or model in order to determine the actual state of the hardware block. The power management is performed either to increase or decrease the energy delivered to the hardware block. This can be performed by the frequency and voltage relation.
If a feedback is included, the average supply current is measured, the frequency and voltage settings are changed accordingly and the changes of the frequency and voltage settings will lead to changes in the supply current.
Therefore, the power management unit PMU is coupled to the power supply unit and the clock generation unit CGU. The power management unit PMU will therefore control the power supply unit PSU such that the power supply unit PSU will output a specific supply voltage. The power management unit PMU will control the clock generation unit CGU such that the clock generation unit CGU will output a clock frequency according to the request of the power management unit PMU.
The above described principles of the present invention can be implemented in any integrated circuit, however especially in those integrated circuits for which a low power dissipation is important. For example, a good example of such integrated circuits which need to be power managed are microprocessors used in mobile phones or other portable devices which operated on batteries.
While the invention has been illustrated and described in detail in the drawings and foregoing description, such illustration and description are to be considered illustrative or exemplary and not restrictive; the invention is not limited to the disclosed embodiments.
Other variations to the disclosed embodiments can be understood and effected by those skilled in the art in practicing the claimed invention, from a study of the drawings, the disclosure, and the appended claims.
In the claims, the word “comprising” does not exclude other elements or steps, and the indefinite article “a” or “an” does not exclude a plurality. A single unit or other unit may fulfill the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measured cannot be used to advantage.
Any reference signs in the claims should not be construed as limiting the scope.
Number | Date | Country | Kind |
---|---|---|---|
07106718.5 | Apr 2007 | EP | regional |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/IB2008/051440 | 4/15/2008 | WO | 00 | 6/3/2010 |