Processor leakage constant scaling for dynamic power management with shared power rail
By applying a scaled leakage constant and adjusting shared power rail voltage based on frequency ratios, the system addresses inaccuracies in leakage power estimation, enhancing power management and thermal control in computing devices.
Patent Information
- Application Number
- US19/214828
- Authority / Receiving Office
- US · United States
- Patent Type
- Applications(United States)
- Current Assignee / Owner
- Filing Date
- 2025-05-21
- Publication Date
- 2026-11-26
Smart Images

Figure US20260376369A1-D00000_ABST
Abstract
Description
DESCRIPTION OF THE RELATED ART
[0001] A computing device may include components such as processors, memory, input and output components, etc. Processors may include, for example, central processing units (CPUs), graphics processing units (GPUs), digital signal processors (DSPs), neural processing units (NPUs), etc. Wireless computing devices may also include radio transceiver subsystems, also referred to as modems. The multiple components may be integrated in a “system-on-chip” or “SoC.” Mobile computing devices, such as cellular handsets, automotive computing devices, so-called Internet-of-Things devices, wearable devices, etc., are examples of computing devices that may include SoCs. Power management features may play a significant role in mobile computing devices, as they are generally battery powered and may involve thermal considerations (e.g., a handheld device maintaining a comfortable case temperature). Nevertheless, power management, including thermal management, may have uses in any type of computing device.
[0002] Power management addresses the competing goals of high performance versus power conservation and thermal mitigation. The amount of power a processor draws is largely a function of voltage and frequency. An example of a power management technique is dynamic clock and voltage scaling (DCVS), also known as dynamic voltage and frequency scaling (DVFS). In DCVS, the clock frequency and voltage supplied to a processor are controllable during runtime and may be adjusted based on operating conditions. For example, the clock frequency and voltage may be adjusted to achieve target levels of processing performance, power consumption, temperature, etc. When conditions indicate that the goal of high processing performance outweighs power saving or thermal mitigation goals, DCVS may increase the clock frequency and voltage. When conditions indicate that the goal of saving power or reducing a temperature outweighs the competing goal of high processing performance, DCVS may reduce the clock frequency and voltage. The term “performance state” or “Pstate” may be used to refer to a setting or combination of parameter values relating to frequency and voltage. There may be multiple Pstates, i.e., different combinations of parameters relating to frequency and voltage, from among which the computing device's power management controller can select to achieve different proportions of performance versus power conservation and thermal mitigation.
[0003] A computing device operating at a selected Pstate (i.e., frequency and voltage) may adjust the frequency or voltage to maintain operation within a predetermined envelope based on inputs that may include a leakage power estimate. The leakage power estimate may involve accumulating voltage samples over a time interval as well as obtaining one or more constant values from a lookup table. Leakage power estimation accuracy may depend upon maintaining correlations from the lookup table among the constant values, voltages and frequencies.SUMMARY OF THE DISCLOSURE
[0004] Systems, methods, and other examples of determining leakage power in a processor power control system are disclosed.
[0005] An exemplary method for determining processor circuitry leakage may include determining a processor frequency from among a plurality of selectable frequencies and determining a processor supply voltage from among a plurality of selectable voltages. The exemplary method may further include determining a scaled leakage constant based on a ratio of the processor frequency and a frequency corresponding to the processor supply voltage.
[0006] An exemplary system for determining processor circuitry leakage may include a plurality of processors and power control circuitry. The plurality of processors may be coupled to a shared processor supply voltage rail. The power control circuitry may be configured to determine a processor frequency for a processor from among a plurality of selectable frequencies and to determine a processor supply voltage for the shared processor supply voltage rail from among a plurality of selectable voltages. The power control circuitry may further be configured to determine a scaled leakage constant for the processor based on a ratio of the processor frequency and a frequency corresponding to the processor supply voltage.
[0007] An exemplary system-on-chip (SoC) may include at least a first processor group and a second processor group and associated power control circuitry. The first processor group and second processor group each may be coupled to a shared processor supply voltage rail. The power control circuitry may be configured to select a performance state (Pstate) from among a plurality of selectable Pstates. The Pstate may include a processor frequency and a processor supply voltage for the shared processor supply voltage rail. The power control circuitry may further be configured to determine a scaled leakage constant based on a ratio of the processor frequency and a frequency corresponding to the processor supply voltage. The power control circuitry may still further be configured to adjust the shared processor supply voltage rail based on the scaled leakage constant.BRIEF DESCRIPTION OF THE DRAWINGS
[0008] In the Figures, like reference numerals refer to like parts throughout the various views unless otherwise indicated. For reference numerals with letter character designations such as “101A” or “101B”, the letter character designations may differentiate two like parts or elements present in the same Figure. Letter character designations for reference numerals may be omitted when it is intended that a reference numeral encompass all parts having the same reference numeral in all Figures.
[0009] FIG. 1 is a block diagram of portions of a computing device relating to processor power control, in accordance with exemplary embodiments.
[0010] FIG. 2 is a functional block diagram illustrating using a scale factor lookup to determine leakage energy, in accordance with exemplary embodiments.
[0011] FIG. 3 illustrates an example of a performance state (Pstate) table associated with a first core cluster group, in accordance with exemplary embodiments.
[0012] FIG. 4 illustrates an example of a Pstate table associated with a second core cluster group, in accordance with exemplary embodiments.
[0013] FIG. 5 illustrates an example of a scale factor table and a leakage constant table associated with a first core cluster group, in accordance with exemplary embodiments.
[0014] FIG. 6 is a flow diagram illustrating a method for determining processor circuitry leakage, in accordance with exemplary embodiments.
[0015] FIG. 7 is a block diagram of an exemplary computing device, in accordance with exemplary embodiments.DETAILED DESCRIPTION
[0016] The word “exemplary” is used herein to mean “serving as an example, instance, or illustration.” The word “illustrative” may be used herein synonymously with “exemplary.” Any aspect described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other aspects.
[0017] As shown in FIG. 1, in an illustrative or exemplary embodiment a system 100 may include a system-on-chip (SoC) 102. The system 100 may also include a memory subsystem 104 with which the SoC 102 may conduct memory transactions. The system 100 may further include a power management integrated circuit (PMIC) 106 and other components (not shown) relating to powering the SoC 102. The system 100 may be included in any type of computing device, such as, for example, a cellular telephone or smartphone, a desktop, laptop, palmtop or tablet computer, a so-called Internet-of-Things device, a wearable device, an automotive computing device, etc. The system 100 may provide such a device with computing or processing functionality and, accordingly, the SoC 102 may include a central processing unit (CPU) subsystem 108. Although not shown for purposes of clarity, the SoC 102 may further include any number of other subsystems, such as, for example, a wireless connectivity subsystem, a graphics processing unit (GPU) subsystem, a digital signal processing (DSP) subsystem, a neural processing unit (NPU) subsystem, etc. One or more data communication interconnects may couple the SoC subsystems but are not shown for purposes of clarity. Rather, for purposes of clarity, communication paths among the illustrated components are illustrated in a conceptual manner using arrows. Some communication paths relevant to the solutions described herein are shown, and there may be other such communication paths.
[0018] The CPU subsystem 108 may include any number of core cluster groups 110 (e.g., a first core cluster group 110A, a second core cluster group 110B, etc., through an Nth core cluster group 110N). Although not individually shown for purposes of clarity, each core cluster group 110 may include any number of processor cores.
[0019] A shared power rail 112 may supply power to each core cluster group 110. In addition to the shared power rail 112, non-shared power rails 114, 116, 118, etc., may provide power to corresponding core cluster groups 110. Although only one shared power rail 112 is shown in the illustrated example, in other examples (not shown) there may be more than one shared power rail, and the descriptions herein apply to each such shared power rail. The PMIC 106 may drive the power rails 112, 114, 116, 118, etc.
[0020] The system 100 may include power control circuitry 120. Although for purposes of clarity the power control circuitry 120 is depicted as included in the CPU subsystem 108 and depicted separately from the core cluster groups 110, such power control circuitry may be located anywhere in the SoC 102 or system 100, and portions of such power control circuitry may be distributed among the core cluster groups 110 or other components. That is, individual core cluster groups 110 may perform or control some of the operations described herein for clarity as performed by the power control circuitry 120. Significantly, any of the core cluster groups 110 may provide a performance state (Pstate) request. The Pstate requests may be received by the power control circuitry 120 (or portion thereof, such as a Pstate controller 122). A Pstate request is generally associated with a frequency and a supply voltage. There may be multiple Pstates, i.e., different combinations of parameters relating to frequency and voltage, from among which a core cluster group 110 can select. For example, when a core cluster group 110 determines that a goal of high performance outweighs competing goals of power conservation or thermal mitigation, that core cluster group 110 may request a change to a Pstate corresponding to a higher operating frequency (i.e., clock frequency). Or, when a core cluster group 110 determines that a goal of power conservation or thermal mitigation outweighs the competing goal of high performance, that core cluster group 110 may request a change to a Pstate corresponding to a lower operating frequency. The Pstate controller 122 may receive Pstate requests from any one or more of the core cluster groups 110.
[0021] The Pstate controller 122 or other features of the power control circuitry 120 may use one or more Pstate tables 124 to process Pstate requests. The Pstate tables 124 may be provided in any manner, such as in register circuitry, static RAM, firmware, etc. The Pstate controller 122 or other features of the power control circuitry 120 may look up information relating to frequency and voltage in the Pstate tables 124 based on the requested Pstate. Using such information, the power control circuitry 120 may provide commands or other control signals to a clock controller 126 and the PMIC 106. In response, the clock controller 126 may select frequencies of clock signals provided to the core cluster groups 110. Similarly, in response to commands from the power control circuitry 120, the PMIC 106 may select voltages of the above-described power rails 112, 114, 116, 118, etc.
[0022] Generally, the frequency that the clock controller 126 provides to a core cluster group 110 is the frequency corresponding to the Pstate that that core cluster group 110 requested. Likewise, the voltage that the PMIC 106 provides on a non-shared power rail 114, 116, 118, etc., is the voltage corresponding to the Pstate that the corresponding core cluster group 110 requested. However, the voltage that the PMIC 106 provides to the shared power rail 112 may be determined by a voting method. For example, the power control circuitry 120 may compare the voltages corresponding to the Pstate requests it receives from the various core cluster groups 110, determine the highest or maximum of those voltages, and signal the PMIC 106 to provide that voltage on the shared power rail 112.
[0023] The power control circuitry 120 may adjust the voltages that it provides on the shared power rail 112 and non-shared power rails 114, 116, 118, etc. The power control circuitry 120 may also adjust the clock frequencies that it provides to the core cluster groups 110. Such adjustments may include adjustments made in a feedback-control manner. Feedback information that the power control circuitry 120 may use to adjust (e.g., throttle) the voltage rails or clock frequency may include estimates or determinations of leakage power or energy in the associated core cluster group 110. A leakage module 128 may be included to determine this leakage power. The leakage module 128 may be included in dynamic power management (DPM) circuitry 130 or other circuitry of the power control circuitry 120. Although the DPM circuitry 130 may adjust the power rail voltages based on measurements or other inputs in addition to leakage power, the solutions described herein relate to the leakage power aspect. Although not depicted in FIG. 1 in a distributed manner for purposes of clarity, portions of such DPM circuitry, including leakage modules, may be distributed among the core cluster groups.
[0024] Leakage power may be modeled as set forth in Equation 1 below:Pleak,s=Vs•Ileak=Vs•(kTemp•Vs2)=kTemp•Vs3, (1)where s is an index indicating a Pstate, Pleak,s is the leakage power during operation in Pstate s, Vs is the supply voltage corresponding to Pstate s, Ileak is the leakage current during operation in Pstate s, and kTemp is a temperature-dependent scale factor. Temperature may be measured in the SoC 102 using sensors (not shown in FIG. 1).Leakage may also be characterized in terms of a unitless quantity that may be referred to as energy credits, cleak,s:Pleak,s=kTemp•Vs3=(Culp•cleak,s)•Vs2•Fs, (2)cleak,s=(kTemp•Vs•Ts) / Culp, (3)where Fs is the clock frequency corresponding to the Pstate s, Ts is the clock period for that frequency, and Culp is the capacitance for a unit-of-least-precision (e.g., picofarads (pF) per unit).Leakage may be determined dynamically over a time interval of processor operation. For example, the leakage module 128 may determine leakage energy by accumulating (i.e., summing) voltage samples over a time interval. Leakage energy during processor operation in a Pstate s over a time interval, Eleak,s, may be determined as follows:Eleak,s=∫Pleak,sdt, (4)Eleak,s=Σ(kTemp•Vs3•Ts), (5)accumulated every clock cycle (at the frequency Fs) over time,Eleak,s=Σ(Culp•cleak,s)•Vs2), (6)accumulated every clock cycle (at the frequency Fs) over time.In FIG. 2, a system 200 shown in functional block diagram form may illustrate an example of operations involved in determining (dynamic) leakage energy, Eleak, or a related quantity that may be referred to as leakage charge, Qleak. The system 200 may represent an example of operations performed by the leakage circuitry module 128 (FIG. 1). A determination 202 of the above-referenced quantity cleak,s may be made using, for example, lookup tables, based on the Pstate and a measured temperature. That is, for each Pstate (i.e., combination of clock frequency (or equivalently, clock period Ts) and supply voltage Vs) there may be a corresponding quantity (kTemp•Vs•Ts) / Culp. The lookup may also be based on which of a number of power rails is supplying the power, such that the quantities may be listed in the lookup table on a per-Pstate, per-temperature (or temperature range), and per-rail basis. A multiplication operation 204, in which cleak,s is multiplied by the quantity CulpVs, may then be used to determine the leakage energy Eleak. In addition, or alternatively, a multiplication operation 206, in which cleak,s is multiplied by the quantity CulpVs2, may be used to determine the leakage charge Qleak. Either or both of the leakage energy and leakage charge may be used to provide a leakage estimate.The quantities or constants CulpVs and CulpVs2 may also be obtained from lookup tables based on the Pstate. The solutions described herein may address issues or caveats in using such information in determining leakage. In some cases, such as those described herein involving a shared power rail, using a straightforward correspondence in a lookup table between a constant (e.g., CulpVs or CulpVs2) and a Pstate frequency to look up the constant may result in inaccurate summation of voltage samples over time, because the sampling frequency (i.e., frequency of operation determined in response to a Pstate request) may differ from the Pstate frequency corresponding to the shared-rail voltage determined in response to the Pstate request. The following examples may help illustrate this issue.In FIG. 3 and FIG. 4, respectively, Pstate tables 300 and 400 may be provided for two of the above-described core cluster groups 110 (FIG. 1). For example, the Pstate table 300 (FIG. 3) may be provided for the first core cluster group 110A (FIG. 1), and the Pstate table 400 (FIG. 4) may be provided for the second core cluster group 110B (FIG. 1). Each row of each Pstate table 300 and 400 corresponds to a different Pstate.A first column of each table 300 (FIGS. 3) and 400 (FIG. 4) may indicate a Pstate. In the illustrated examples, the first column lists 15 Pstates, indicated by index numbers from 0 to 14 in corresponding rows. This number of Pstates is intended only as an example, and in other examples there may be any other number of Pstates.A second column of each table 300 (FIGS. 3) and 400 (FIG. 4) may indicate a frequency corresponding to each Pstate. The frequencies are shown in square brackets and may be in units of gigahertz (GHz). For example, the second column, first row of the table 300 indicates a correspondence between a frequency of 4.5 GHz and the first Pstate (indicated as Pstate “0” in the first column and as Pstate “P0” in the second column). The frequencies listed in the second column are intended only as examples and may have other values in other examples.A third column of each table 300 (FIGS. 3) and 400 (FIG. 4) may indicate a supply voltage of a non-shared voltage rail for each Pstate for the corresponding core cluster group 110. That is, the third column of the table 300 indicates a supply voltage of a non-shared voltage rail supplied to the first core cluster group 110A, and the third column of the table 400 indicates a supply voltage of a non-shared voltage rail supplied to the second core cluster group 110B. The voltages are shown in square brackets and may be in units of millivolts (mV). For example, in the third column, first row of the table 300 a correspondence is indicated between a voltage of 1088 mV and the first Pstate. The first non-shared voltage rail is also indicated in the format “Cx,” where x is an index corresponding to the Pstate. For example, “C0” is indicated in the third column, first row, “C1” is indicated in the third column, second row, etc. The voltages listed in the third column are intended only as examples and may have other values in other examples.A fourth column of each table 300 and 400 may indicate the constants described above with regard to FIG. 2 for the corresponding non-shared voltage rail Cx: the above-described constant CulpVs may be indicated by the abbreviation “CV”; the above-described constant CulpVs2 may be indicated by the abbreviation “CV2”; and the above-described constant (kTemp•Vs•Ts) / Culp) may be indicated by the abbreviation “ConstKVT.” The constants together may be indicated in the fourth column in the form of “CV_CV2_ConstKVT_STx,” where “x” is an index corresponding to the Pstate.
[0034] A fifth column of each table 300 (FIGS. 3) and 400 (FIG. 4) may indicate a supply voltage of a shared voltage rail for each Pstate for the corresponding core cluster group 110 (FIG. 1). That is, the fifth column of the table 300 indicates a supply voltage of a shared voltage rail as supplied to the first core cluster group 110A, and the fifth column of the table 400 indicates a supply voltage of the shared voltage rail as supplied to the second core cluster group 110B. The voltages are shown in square brackets and may be in units of millivolts. For example, in the fifth column, first row of the table 300 a correspondence is indicated between a voltage of 1050 mV and the first Pstate. The shared voltage rail is also indicated in the format “Mx,” where x is an index corresponding to the Pstate. For example, “M0” is indicated in the fifth column, first row, “M1” is indicated in the fifth column, second row, etc. The voltages listed in the fifth column are intended only as examples and may have other values in other examples.
[0035] A sixth column of each table 300 (FIGS. 3) and 400 (FIG. 4) may indicate the constants described above with regard to FIG. 2 for the corresponding shared voltage rail Mx. The constants together may be indicated in the sixth column in the same form described above with regard to the fourth column: “CV_CV2_ConstKVT_ST_x,” where “x” is an index corresponding to the Pstate.
[0036] In a first example, the first core cluster group 110A (FIG. 1) may request a change from Pstate “8” (or “P8”) to Pstate “3” (or “P3”), while the second core cluster group 110B (FIG. 1) may be operating in Pstate “9” (or “P9”) and request no change in Pstate. In this example, in response to the request from the first core cluster group 110A, the power control circuitry 120 (FIG. 1) may change the frequency of the clock signal supplied to the first core cluster group 110A (via the clock controller 126) from the frequency corresponding to Pstate P8, which the ninth row, second column of the Pstate table 300 (FIG. 3) indicates is 2 GHz, to the frequency corresponding to Pstate P3, which the fourth row, second column of the Pstate table 300 indicates is 4 GHz. Similarly, the power control circuitry 120 may change the non-shared rail voltage Cx supplied to the first core cluster group 110A from the non-shared rail voltage Cx corresponding to Pstate P8, which the ninth row, third column of the Pstate table 300 indicates is 780 mV, to the non-shared rail voltage Cx corresponding to Pstate P3, which the fourth row, third column of the Pstate table 300 indicates is 1000 mV.
[0037] With regard to the shared rail, however, the power control circuitry 120 (FIG. 1) may compare the shared-rail voltage Mx corresponding to the Pstate request it receives from the first core cluster group 110A (FIG. 1) with the shared-rail voltage Mx corresponding to the Pstate request it receives from the second core cluster group 110B (FIG. 1), and select the highest or maximum of those voltages. In the illustrated example, the voltage corresponding to the request for Pstate P3 by the first core cluster group 110A is 950 mV, indicated in the fourth row, fifth column of the table 300, while the shared-rail voltage Mx corresponding to Pstate P9 in which the second core cluster group 110B is operating is 700 mV, indicated in the 10th row, fifth column of the table 400. As 950 mV is the maximum or greater of 950 mV and 700 mV, the power control circuitry 120 may select 950 mV as the shared-rail voltage Mx to be provided to both the first core cluster group 110A and the second core cluster group 110B.
[0038] In a second example, the first core cluster group 110A (FIG. 1) may request a change from Pstate P8 to Pstate P14, while the second core cluster group 110B (FIG. 1) may be operating in Pstate P9 and request no change in Pstate. In this example, in response to the request from the first core cluster group 110A, the power control circuitry 120 (FIG. 1) may change the frequency of the clock signal supplied to the first core cluster group 110A from the frequency corresponding to Pstate P8, which the ninth row, second column of the Pstate table 300 (FIG. 3) indicates is 2 GHz, to the frequency corresponding to Pstate P14, which the 15th row, second column of the Pstate table 300 indicates is 1 GHz. Similarly, the power control circuitry 120 may change the non-shared rail supply voltage Cx being supplied to the first core cluster group 110A from the non-shared rail voltage Cx corresponding to Pstate P8, which the ninth row, third column of the Pstate table 300 indicates is 780 mV, to the non-shared rail voltage Cx corresponding to Pstate P14, which the 15th row, third column of the Pstate table 300 indicates is 650 mV.
[0039] With regard to the shared rail, however, the power control circuitry 120 (FIG. 1) may compare the shared-rail voltage Mx corresponding to the Pstate request it receives from the first core cluster group 110A (FIG. 1) with the shared-rail voltage Mx corresponding to the Pstate request it receives from the second core cluster group 110B (FIG. 1), and select the highest or maximum of those voltages. In the illustrated example, the shared-rail voltage Mx corresponding to the request for Pstate P14 by the first core cluster group 110A is 650 mV, indicated in the 15th row, fifth column of the table 300, while the shared-rail voltage Mx corresponding to Pstate P9 in which the second core cluster group 110B is operating is 700 mV, indicated in the 10th row, fifth column of the table 400. As 700 mV is the maximum or greater of 650 mV and 700 mV, the power control circuitry 120 may select 700 mV as the shared-rail voltage to be provided to both the first core cluster group 110A and the second core cluster group 110B.
[0040] In a third example, the first core cluster group 110A (FIG. 1) may request a change from Pstate P8 to Pstate P3, while the second core cluster group 110B (FIG. 1) may request a change from Pstate P9 to Pstate P12. In this example, in response to the request from the first core cluster group 110A, the power control circuitry 120 (FIG. 1) may change the frequency of the clock signal supplied to the first core cluster group 110A from the frequency corresponding to Pstate P8, which the ninth row, second column of the Pstate table 300 (FIG. 3) indicates is 2 GHz, to the frequency corresponding to Pstate P3, which the fourth row, second column of the Pstate table 300 indicates is 4 GHz. Similarly, the power control circuitry 120 may change the non-shared rail supply voltage Cx supplied to the first core cluster group 110A from the non-shared rail voltage Cx corresponding to Pstate P8, which the ninth row, third column of the Pstate table 300 (FIG. 3) indicates is 780 mV, to the non-shared rail voltage Cx corresponding to Pstate P3, which the fourth row, third column of the Pstate table 300 indicates is 1000 mV.
[0041] In response to the request from the second core cluster group 110B (FIG. 1), the power control circuitry 120 (FIG. 1) may change the frequency of the clock signal supplied to the second core cluster group 110B from the frequency corresponding to Pstate P9, which the 10th row, second column of the Pstate table 400 (FIG. 4) indicates is 2.5 GHz, to the frequency corresponding to Pstate P12, which the 13th row, second column of the Pstate table 400 indicates is 1.6 GHz. Similarly, the power control circuitry 120 may change the non-shared rail supply voltage Cx supplied to the second core cluster group 110B from the non-shared rail voltage Cx corresponding to Pstate P9, which the 10th row, third column of the Pstate table 400 indicates is 780 mV, to the non-shared rail voltage Cx corresponding to Pstate P12, which the 13th row, third column of the Pstate table 400 indicates is 680 mV.
[0042] With regard to the shared rail, however, the power control circuitry 120 (FIG. 1) may compare the shared-rail voltage Mx corresponding to the Pstate request it receives from the first core cluster group 110A (FIG. 1) with the shared-rail voltage Mx corresponding to the Pstate request it receives from the second core cluster group 110B (FIG. 1), and select the highest or maximum of those voltages. In the illustrated example, the shared-rail voltage Mx corresponding to the Pstate request for Pstate P3 by the first core cluster group 110A is 950 mV, indicated in the fourth row, fifth column of the table 300 (FIG. 3), while the shared-rail voltage Mx corresponding to the request for P12 by the second core cluster group 110B is 680 mV, indicated in the 13th row, fifth column of the table 400 (FIG. 4). As 950 mV is the maximum or greater of 950 mV and 680 mV, the power control circuitry 120 may select 950 mV as the shared-rail voltage to be provided to both the first core cluster group 110A and the second core cluster group 110B.
[0043] The above-described constants in the Pstate tables 300 (FIGS. 3) and 400 (FIG. 4) for the first and second core cluster groups 110A and 110 B, respectively (and in other such Pstate tables (not shown) for other such core cluster groups 110), are pre-determined or calculated for inclusion in the tables 300 and 400 with reference to corresponding sampling frequencies. That is, the “CV” constant (i.e., CulpVs), the “CV2” constant, (i.e., CulpVs2), and the “ConstKVT” (i.e., kTempVsTs) / Culp) constant, indicated together in the fourth and sixth columns of the tables 300 and 400, when used to determine leakage, only yield accurate leakage values when the voltages are sampled at the correct or corresponding sampling frequency. With reference to the exemplary Pstate tables 300 and 400, the corresponding sampling frequency is the frequency indicated in the second column, because that is the frequency of operation of the core cluster group 110 (generally, determined in response to a Pstate request by that core cluster group 110). For example, using the constants CV_CV2_ConstKVT_ST8 to determine leakage for the first core cluster group 110A may yield accurate results when the voltages are sampled at the frequency of Pstate P8, which the ninth row, second column of the table 300 (FIG. 3) indicates is 2GHz.
[0044] As the three examples described above illustrate, in response to a Pstate request from a core cluster group 110, the clock frequency and non-shared rail voltage Cx provided to that core cluster group 110 may change to the values corresponding to the requested Pstate. The non-shared rail voltage Cx indicated in the third column of the Pstate tables 300, 400, etc., supplied to a core cluster group 110 corresponds to the clock frequency indicated in the second column supplied to that core cluster group 110. However, due to the voting or maximum function used to determine the shared-rail voltage Mx, the shared-rail voltage Mx provided to a core cluster group 110 may not correspond to the Pstate (frequency) requested by that core cluster group 110. The shared rail voltage Mx supplied to such a core cluster group 110 may not correspond to the clock frequency at which that core cluster group 110 is actually sampling voltages. The following example may help illustrate this issue.
[0045] In this example, the first core cluster group 110A (FIG. 1) may request a change from Pstate P12 to Pstate P8. In Pstate P12 the first core cluster group 110A is operating at a frequency of 1.6 GHz (as indicated in the 13th row, second column of the table 300), a non-shared rail voltage Cx of 680 mV (as indicated in the 13th row, third column of the table 300), and a shared-rail voltage Mx of 680 mV (as indicated in the 13th row, fifth column of the table 300). In response to this Pstate request, the clock frequency supplied to the first core cluster group 110A may be changed to 2GHz (as indicated in the ninth row, second column of the table 300), and the non-shared rail voltage Cx may be changed to 780 mV (as indicated in the ninth row, third column of the table 300).
[0046] The value of the shared rail voltage Mx to be supplied to the first core cluster group 110A (FIG. 1) is based on a determination of the maximum shared-rail voltage Mx among all Pstate requests. In this example, the second core cluster group 110B (FIG. 1) may request a change to a Pstate having a shared-railed voltage Mx of 1000 mV. As the value 1000 mV corresponding to the Pstate request from the second core cluster group 110B is greater than the value 680 mV corresponding to the Pstate request from the first core cluster group 110A, the value 1000 mV is selected to be supplied to both core cluster groups 110A and 110B. Note in the table 300, however, that the value 1000 mV for the shared-rail voltage Mx corresponds to a frequency of 4.4 GHz (indicated in the second row, second column). In the table 300, the value 1000 mV for the shared-rail voltage Mx does not correspond to the frequency of 2 GHz at which the first core cluster group 110A is operating as it samples voltages. Determining leakage using voltage samples accumulated at a 2 GHz sampling rate (as in the ninth row of the table 300) but using constants obtained from the 13th row (i.e., corresponding to a frequency of 1.6 GHz) of the table 300 may result in inaccurate leakage determinations.
[0047] A solution to the above-described issue may include using a scaled constant. Applying the solution to the example above, a constant may be scaled by the ratio of the frequency corresponding to the shared-rail voltage Mx to the frequency at which the first core cluster group 110A is sampling: 4.4 GHz / 2 GHz. In the example, the second row of the table 300 indicates that the value of ConstKVT_ST1 (in the sixth column) corresponds to the shared rail voltage Mx of 1000 mV (in the fifth column) that is supplied to the first core cluster group 110A in response to the Pstate request. Accordingly, a scaled constant that is this value of ConstKVT_ST 1 multiplied by a scale factor of 4.4 / 2 may be used in determining the leakage for the first core cluster group 110A: ConstKVT_scaled=ConstKVT_ST1•(4.4 / 2)=ConstKVT_ST1•(2.2).
[0048] Although the scale factor may be computed dynamically (e.g., by the leakage module 128 of the DPM circuitry 130, or by a processor core, etc.), another solution may include using pre-determined scale factors. In FIG. 5, a first table 500 indicates a correspondence between each Pstate and a corresponding frequency (as in the above-described tables 300 (FIGS. 3) and 400 (FIG. 4)) and further indicates a correspondence between each Pstate and a scale factor. A second table 502 indicates a correspondence between each of the shared-rail voltages Mx and a leakage constant. Although the tables 500 and 502 are shown separately for purposes of clarity, alternatively, a single table (not shown) that combines the tables 500 and 502 may be used.
[0049] As in the tables 300 and 400, each row of the table 500 corresponds to a different Pstate, the first column of the table 500 indicates that Pstate using an index number, and the second column of the table 500 indicates a frequency corresponding to that Pstate. The third column of the table 500 indicates a scale factor corresponding to the Pstate and its frequency and is shown in the form “Px_scale_val,” where “x” is the Pstate index number. The table 500 may be associated with, for example the first cluster group 110A, but it should be understood that a similar table may be associated with each of the cluster groups 110, as in the example described above in which the table 300 (FIG. 3) is associated with the first cluster group 110A (FIG. 1), the table 400 (FIG. 4) is associated with the second cluster group 110B (FIG. 1), etc. The table 500 may represent a modification to (e.g., an additional portion of) the above-described Pstate table 300. That is, tables 300 and 500 may be combined into one table or may be separate but used in the manner of a single table. Still other ways of organizing and using tables of the types described herein will occur to one of ordinary skill in the art in view of these examples, and these examples should not be construed as limiting.
[0050] Each row of the second table 502 corresponds to a different shared-rail voltage Mx. The first column of the table 502 lists the shared-rail voltages Mx in the same manner as listed in the fifth column of the tables 300 (FIGS. 3) and 400 (FIG. 4). The second column of the table 502 lists leakage constants in the form “ConstKVT_Mx.” The second table 502 may be associated with, for example the first cluster group 110A, but it should be understood that a similar table may be associated with each of the cluster groups 110 (FIG. 1), as in the example described above in which the table 300 is associated with the first cluster group 110A, the table 400 is associated with the second cluster group 110B, etc. Like the first table 500, the second table 502 may represent a modification to (e.g., an additional portion of) the above-described Pstate table 300.
[0051] In the second table 502, each leakage constant ConstKVT_Mx listed in the second column reflects the time sample reference that is equivalent to the highest operating (i.e., sampling) frequency point, which is Pstate P0 in the illustrated examples. In the example illustrated in the first table 500 (FIG. 5), the highest operating frequency point (i.e., Pstate P0) is 4.5 GHz, as indicated in the first row, second column. In the first table 500, each scale factor (in the third column) represents the ratio of the corresponding frequency (in the second column) to the highest operating frequency point (which, as noted above, is 4.5 GHz in this example). This scale factor may be looked up in the table 500 based on the frequency at which the first core cluster group 110A is operating. The leakage constant ConstKVT_Mx may be looked up in the table 502 based on the shared-rail voltage Mx. The scale factor may then be applied to the leakage constant (e.g., by multiplying the leakage constant by the scale factor). These lookup operations, as well as the application of the scale factor to the leakage constant, may be performed by, for example, the leakage module 128 (FIG. 1).
[0052] The leakage module 128 (FIG. 1) may apply the scale factor (from the third column of the table 500) to the leakage constant (from the second column of the table 502) by, for example, using bit-shifting operations to effectively perform a multiplication operation in register transfer-level logic circuitry rather than using higher-level arithmetic logic to perform a (e.g., floating point) multiplication operation. The scale factor may be represented as a binary word consisting of a group of integer bits and a group of fractional bits. An operation equivalent to multiplication by the scale factor may comprise shifting the leakage constant (i.e., a binary word) left by a number of bit positions indicated by the integer bits, and shifting the leakage constant right by a number of bit positions indicated by the fractional bits. For example, the scale factor may be represented by 12 bits, where the six higher-order bits are the integer bits, and the six lower-order bits are the fractional bits. In such an example, the scale factor for Pstate P0 may be represented by 000001.000000 (i.e., a decimal value of one), because each scale factor (in the third column of the above-described table 500) represents the ratio of the corresponding frequency (in the second column) to the highest operating frequency point, i.e., Pstate P0. Accordingly, the scale factor for Pstate P1 may be represented by 000001.000001 (i.e., where the fractional bits represent a decimal value of 1 / 64 or 1.015625), the scale factor for Pstate P2 may be represented by 000001.000011, etc. Note that the use of 12 bits to represent the integer and fractional bits of the scale factor is intended only as an example, and more or fewer bits could be used in other examples. Using 12 bits, scale factors up to 111111.111111 could be provided in a Pstate table that could support 128 levels of finer frequency states (not shown) for increased granularity.
[0053] In FIG. 6, a method 600 for determining processor circuitry leakage is illustrated in flow diagram form. As indicated by block 602, the method 600 may include determining a processor frequency from among a plurality of selectable frequencies. Determining the processor frequency may comprise selecting or otherwise determining a Pstate, where the processor frequency corresponds to a selected Pstate. The processor frequency may be associated with any one or more processors, such as, for example, a group of two or more processor cores of a core cluster group. Determining the processor frequency may be performed or controlled by, for example, Pstate control circuitry. In some examples, the method 600 may be performed only when the Pstate is changed.
[0054] As indicated by the block 604, the method 600 may also include determining a processor supply voltage from among a plurality of selectable voltages. The supply voltage may be associated with the Pstate. The supply voltage may be supplied via, for example, a voltage rail shared among a plurality of processors or cores. For example, the voltage rail may be shared among two or more core cluster groups, each including one or more processor cores. Determining the processor supply voltage may be performed or controlled by, for example, the Pstate control circuitry.
[0055] As indicated by the block 606, the method 600 may further include determining a scaled leakage constant that is based on a ratio of the processor frequency and a frequency corresponding to the processor supply voltage. Determining the scaled leakage constant may be performed or controlled by, for example, power control circuitry (e.g., by a leakage module of such power control circuitry). Determining the scaled leakage constant may comprise determining a leakage constant corresponding to the supply voltage and determining a scale factor corresponding to the processor frequency. Determining the scaled leakage constant may then further comprise applying the scale factor to the leakage constant. The scale factor may be applied to the leakage constant by a multiplication or equivalent operation, such as bit shifting. (The term “multiplication” or “multiplying” may be used herein broadly to include all such operations.) Determining the scaled leakage constant may be performed or controlled by, for example, the power control circuitry (e.g., a leakage module of the power control circuitry). The power control circuitry or leakage module may use one or more lookup tables to determine the leakage constant based on the supply voltage and to determine the scale factor based on the processor frequency.
[0056] As indicated by the block 608, the method 600 may also include determining processor leakage power based on the processor supply voltage and the scaled leakage constant. For example, the processor supply voltage may be sampled and accumulated at a rate corresponding to the processor frequency, where the scaled leakage constant is applied to the samples. A processor operating at the processor frequency may perform or control the sampling and accumulation. The power control circuitry may use the determined processor leakage power as feedback in controlling power supplied to the processor circuitry. For example, the power control circuitry may use dynamic voltage and frequency scaling (DVFS) to adjust one or both of the supply voltage and clock frequency based on feedback that may include the processor leakage power.
[0057] FIG. 7 illustrates an example of a portable computing device (PCD) 700, in which exemplary embodiments of systems and methods for determining processor circuitry leakage may be provided. The PCD 700 may be, for example, a laptop or palmtop computer, cellular telephone or smartphone, personal digital assistant, navigation device, smartbook, portable game console, satellite telephone, automotive device, Internet-of-Things (IOT) device, etc. Nevertheless, in other examples, systems and methods for determining processor circuitry leakage may be provided in data center servers or any other types of computing devices having processors.
[0058] The PCD 700 may include an SoC 702. The SoC 702 may be an example of above-described SoC 102 (FIG. 1). The SoC 702 may include a CPU 704, a GPU 706, a digital signal processor (DSP) 707, an analog signal processor 708, a modem / modem subsystem 754, or other processors. The CPU 704 may include one or more CPU cores, such as a first CPU core 704A, a second CPU core 704B, etc., through an Nth CPU core 704N. The CPU cores 704A-704N may be examples of the core cluster groups 110-110N described above with regard to FIG. 1.
[0059] A display controller 710 and a touch-screen controller 712 may be coupled to the CPU 704. A touchscreen display 714 external to the SoC 702 may be coupled to the display controller 710 and the touch-screen controller 712. The PCD 700 may further include a video decoder 716 coupled to the CPU 704. A video amplifier 718 may be coupled to the video decoder 716 and the touchscreen display 714. A video port 720 may be coupled to the video amplifier 718. A universal serial bus (USB) controller 722 may also be coupled to CPU 704, and a USB port 724 may be coupled to the USB controller 722. A subscriber identity module (SIM) card 726 may also be coupled to the CPU 704.
[0060] The CPU 704 may be coupled to one or more memories, with which the CPU 704 or other processors may initiate memory transactions. The one or more memories may include both volatile and non-volatile memories. Examples of volatile memories may include static random access memory (SRAM) 728 and dynamic random access memory (DRAM) 730 and 731. Such memories may be internal to the SoC 702, as in the case of the SRAM 728 and DRAM 730, or external to the SoC 702, as in the case of the DRAM 731. A DRAM controller 732 coupled to the CPU 704 may control the writing of data to, and reading of data from, the DRAMs 730 and 731.
[0061] A stereo audio CODEC 734 may be coupled to the analog signal processor 708. Further, an audio amplifier 736 may be coupled to the stereo audio CODEC 734. First and second stereo speakers 738 and 740, respectively, may be coupled to the audio amplifier 736. In addition, a microphone amplifier 742 may be coupled to the stereo audio CODEC 734, and a microphone 744 may be coupled to the microphone amplifier 742. A frequency modulation (FM) radio tuner 746 may be coupled to the stereo audio CODEC 734. An FM antenna 748 may be coupled to the FM radio tuner 746. Further, stereo headphones 750 may be coupled to the stereo audio CODEC 734. Other devices that may be coupled to the CPU 704 include one or more digital (e.g., CCD or CMOS) cameras 752.
[0062] The RF transceiver or modem subsystem 754 may be coupled to the analog signal processor 708 and the CPU 704. An RF switch 756 may be coupled to the modem subsystem 754 and an RF antenna 758. In addition, a keypad 760, a mono headset with a microphone 762, and a vibrator device 764 may be coupled to the analog signal processor 708.
[0063] The SoC 702 may have one or more internal or on-chip thermal sensors 770A and may be coupled to one or more external or off-chip thermal sensors 770B. An analog-to-digital converter (ADC) controller 772 may convert voltage drops produced by the thermal sensors 770A and 770B to digital signals. A power supply 774 and a PMIC 776 may supply power to the SoC 702. The PMIC 776 may be an example of the PMIC 106 described above with regard to FIG. 1.
[0064] Implementation examples are described in the following numbered clauses.
[0065] 1. A method for determining processor circuitry leakage, comprising:
[0066] determining, by power control circuitry, a processor frequency from among a plurality of selectable frequencies;
[0067] determining, by the power control circuitry, a processor supply voltage from among a plurality of selectable voltages; and
[0068] determining, by the power control circuitry, a scaled leakage constant based on a ratio of the processor frequency and a frequency corresponding to the processor supply voltage.
[0069] 2. The method of claim 1, wherein the processor supply voltage is supplied via a voltage rail shared among a plurality of processors, and wherein one of the plurality of processors is configured to operate at the processor frequency.
[0070] 3. The method of claim 1 or 2, further comprising:
[0071] accumulating processor supply voltage samples based on the processor frequency; and
[0072] determining processor leakage power based on accumulated processor supply voltage samples and the scaled leakage constant.
[0073] 4. The method of any of claims 1-3, wherein determining the processor frequency corresponds to determining one of a plurality of performance states, each corresponding to a frequency.
[0074] 5. The method of any of claims 1-4, wherein determining a scaled leakage constant comprises performing a table lookup.
[0075] 6. The method of any of claims 1-5, wherein determining a scaled leakage constant comprises:
[0076] performing a table lookup of a leakage constant using the processor supply voltage;
[0077] performing a table lookup of a scale factor using the processor frequency; and
[0078] multiplying the leakage constant by the scale factor.
[0079] 7. The method of any of claims 1-6, wherein the scale factor is represented by a binary number consisting of integer bits and fractional bits, and multiplying comprises bit shifting left using the integer bits and bit shifting right using the fractional bits.
[0080] 8. A system, comprising:
[0081] a plurality of processors coupled to a shared processor supply voltage rail; and
[0082] power control circuitry associated with the plurality of processors and configured to:
[0083] determine a processor frequency for at least one processor of the plurality of processors from among a plurality of selectable frequencies;
[0084] determine a processor supply voltage for the at least one processor from among a plurality of selectable voltages; and
[0085] determine a scaled leakage constant for the at least one processor based on a ratio of the processor frequency and a frequency corresponding to the processor supply voltage.
[0086] 9. The system of claim 8, wherein the power control circuitry is further configured to control providing a clock signal having the processor frequency to the at least one processor.
[0087] 10. The system of claim 8 or 9, wherein the power control circuitry is further configured to:
[0088] accumulate processor supply voltage samples based on the processor frequency; and
[0089] determine processor leakage power based on accumulated processor supply voltage samples and the scaled leakage constant.
[0090] 11. The system of any of claims 8-10, wherein the power control circuitry is configured to select one of a plurality of performance states, each corresponding to a frequency, and the processor frequency and the processor supply voltage correspond to a selected performance state.
[0091] 12. The system of any of claims 8-11, wherein the power control circuitry being configured to determine a scaled leakage constant comprises the power control circuitry configured to perform a table lookup.
[0092] 13. The system of any of claims 8-12, wherein the power control circuitry being configured to determine a scaled leakage constant comprises the power control circuitry configured to:
[0093] perform a table lookup of a leakage constant using the processor supply voltage;
[0094] perform a table lookup of a scale factor using the processor frequency; and
[0095] multiply the leakage constant by the scale factor.
[0096] 14. The system of any of claims 8-13, wherein the scale factor is represented by a binary number consisting of integer bits and fractional bits, and the power control circuitry being configured to multiply the leakage constant by the scale factor comprises the power control circuitry configured to left-shift bits of the scale factor using the integer bits and right-shift bits of the scale factor using the fractional bits.
[0097] 15. A system-on-chip (SoC), comprising:
[0098] at least a first processor group and a second processor group, the first processor group and second processor group each coupled to a shared processor supply voltage rail; and
[0099] power control circuitry associated with each of the first processor group and the second processor group and configured to:
[0100] select a performance state (Pstate) from among a plurality of selectable Pstates, the Pstate including a processor frequency and including a processor supply voltage for the shared processor supply voltage rail;
[0101] determine a scaled leakage constant based on a ratio of the processor frequency and a frequency corresponding to the processor supply voltage; and
[0102] adjust the shared processor supply voltage rail based on the scaled leakage constant.
[0103] 16. The SoC of claim 15, wherein the power control circuitry being configured to adjust the shared processor supply voltage rail by comprises the power control circuitry configured to:
[0104] accumulate processor supply voltage samples based on the processor frequency;
[0105] determine processor leakage power based on accumulated processor supply voltage samples and the scaled leakage constant; and
[0106] adjust the shared processor supply voltage rail based on the processor leakage power.
[0107] 17. The SoC of claim 15 or 16, wherein the power control circuitry being configured to determine a scaled leakage constant comprises the power control circuitry configured to perform a table lookup.
[0108] 18. The SoC of any of claims 15-17, wherein the power control circuitry being configured to determine a scaled leakage constant comprises the power control circuitry configured to:
[0109] perform a table lookup of a leakage constant using the processor supply voltage;
[0110] perform a table lookup of a scale factor using the processor frequency; and
[0111] multiply the leakage constant by the scale factor.
[0112] 19. The SoC of any of claims 15-18, wherein the scale factor is represented by a binary number consisting of integer bits and fractional bits, and the power control circuitry being configured to multiply the leakage constant by the scale factor comprises the power control circuitry configured to left-shift bits of the scale factor using the integer bits and right-shift bits of the scale factor using the fractional bits.
[0113] 20. The SoC of any of claims 15-19, wherein the power control circuitry is configured to refrain from determining the leakage constant and determining the scaled leakage constant until the Pstate is changed.
[0114] Alternative embodiments will become apparent to one of ordinary skill in the art to which the invention pertains. Therefore, although selected aspects have been illustrated and described in detail, it will be understood that various substitutions and alterations may be made therein.
Claims
1. A method for determining processor circuitry leakage, comprising:determining, by power control circuitry, a processor frequency from among a plurality of selectable frequencies;determining, by the power control circuitry, a processor supply voltage from among a plurality of selectable voltages; anddetermining, by the power control circuitry, a scaled leakage constant based on a ratio of the processor frequency and a frequency corresponding to the processor supply voltage.
2. The method of claim 1, wherein the processor supply voltage is supplied via a voltage rail shared among a plurality of processors, and wherein one of the plurality of processors is configured to operate at the processor frequency.
3. The method of claim 1, further comprising:accumulating processor supply voltage samples based on the processor frequency; anddetermining processor leakage power based on accumulated processor supply voltage samples and the scaled leakage constant.
4. The method of claim 1, wherein determining the processor frequency corresponds to determining one of a plurality of performance states, each corresponding to a frequency.
5. The method of claim 1, wherein determining a scaled leakage constant comprises performing a table lookup.
6. The method of claim 5, wherein determining a scaled leakage constant comprises:performing a table lookup of a leakage constant using the processor supply voltage;performing a table lookup of a scale factor using the processor frequency; andmultiplying the leakage constant by the scale factor.
7. The method of claim 6, wherein the scale factor is represented by a binary number consisting of integer bits and fractional bits, and multiplying comprises bit shifting left using the integer bits and bit shifting right using the fractional bits.
8. A system, comprising:a plurality of processors coupled to a shared processor supply voltage rail; andpower control circuitry associated with the plurality of processors and configured to:determine a processor frequency for at least one processor of the plurality of processors from among a plurality of selectable frequencies;determine a processor supply voltage for the at least one processor from among a plurality of selectable voltages; anddetermine a scaled leakage constant for the at least one processor based on a ratio of the processor frequency and a frequency corresponding to the processor supply voltage.
9. The system of claim 8, wherein the power control circuitry is further configured to control providing a clock signal having the processor frequency to the at least one processor.
10. The system of claim 8, wherein the power control circuitry is further configured to:accumulate processor supply voltage samples based on the processor frequency; anddetermine processor leakage power based on accumulated processor supply voltage samples and the scaled leakage constant.
11. The system of claim 8, wherein the power control circuitry is configured to select one of a plurality of performance states, each corresponding to a frequency, and the processor frequency and the processor supply voltage correspond to a selected performance state.
12. The system of claim 8, wherein the power control circuitry being configured to determine a scaled leakage constant comprises the power control circuitry configured to perform a table lookup.
13. The system of claim 12, wherein the power control circuitry being configured to determine a scaled leakage constant comprises the power control circuitry configured to:perform a table lookup of a leakage constant using the processor supply voltage;perform a table lookup of a scale factor using the processor frequency; andmultiply the leakage constant by the scale factor.
14. The system of claim 13, wherein the scale factor is represented by a binary number consisting of integer bits and fractional bits, and the power control circuitry being configured to multiply the leakage constant by the scale factor comprises the power control circuitry configured to left-shift bits of the scale factor using the integer bits and right-shift bits of the scale factor using the fractional bits.
15. A system-on-chip (SoC), comprising:at least a first processor group and a second processor group, the first processor group and second processor group each coupled to a shared processor supply voltage rail; andpower control circuitry associated with each of the first processor group and the second processor group and configured to:select a performance state (Pstate) from among a plurality of selectable Pstates, the Pstate including a processor frequency and including a processor supply voltage for the shared processor supply voltage rail;determine a scaled leakage constant based on a ratio of the processor frequency and a frequency corresponding to the processor supply voltage; andadjust the shared processor supply voltage rail based on the scaled leakage constant.
16. The SoC of claim 15, wherein the power control circuitry being configured to adjust the shared processor supply voltage rail by comprises the power control circuitry configured to:accumulate processor supply voltage samples based on the processor frequency;determine processor leakage power based on accumulated processor supply voltage samples and the scaled leakage constant; andadjust the shared processor supply voltage rail based on the processor leakage power.
17. The SoC of claim 15, wherein the power control circuitry being configured to determine a scaled leakage constant comprises the power control circuitry configured to perform a table lookup.
18. The SoC of claim 17, wherein the power control circuitry being configured to determine a scaled leakage constant comprises the power control circuitry configured to:perform a table lookup of a leakage constant using the processor supply voltage;perform a table lookup of a scale factor using the processor frequency; andmultiply the leakage constant by the scale factor.
19. The SoC of claim 18, wherein the scale factor is represented by a binary number consisting of integer bits and fractional bits, and the power control circuitry being configured to multiply the leakage constant by the scale factor comprises the power control circuitry configured to left-shift bits of the scale factor using the integer bits and right-shift bits of the scale factor using the fractional bits.
20. The SoC of claim 15, wherein the power control circuitry is configured to refrain from determining the leakage constant and determining the scaled leakage constant until the Pstate is changed.
