A power consumption system, frequency control method, chip and storage medium
By calculating and setting a personalized target operating frequency for each power consumption unit based on the working voltage, the increase in power consumption caused by excessive voltage in the combined power supply structure is solved, and the energy efficiency of the power consumption system is improved.
Patent Information
- Application Number
- CN202211006115.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-22
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2042-08-22
AI Technical Summary
In the power consumption system, the combined power supply structure causes multiple power consumption units in the same voltage domain to share the same power supply voltage, resulting in voltage surplus and increasing system power consumption.
By providing each power consumption unit with a personalized target operating frequency, the performance management unit calculates the expected power consumption and maximum power consumption based on the working voltage, determines the appropriate target operating frequency, and controls the power supply status of the power consumption unit through the switching unit. Avoid excessive voltage.
It effectively reduces the system power consumption, avoids the increase in power consumption caused by excessive voltage of the power consumption unit, and improves the energy efficiency of the system.
Smart Images

Figure CN115390610B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of communication technology, and in particular to a power consumption system, a frequency control method, a chip, and a storage medium. Background Art
[0002] In the power consumption system, as the functions carried by the chip increase day by day and the operating frequency increases, the power consumption of the chip is getting higher and higher. The most commonly used low-power design directions are to optimize the chip architecture, upgrade the production process, reduce the chip operating voltage, use standard units of different speeds, use power supplies of different voltages in different regions, and shut down modules.
[0003] At present, for the power consumption system, a combined power supply structure can be adopted. However, the combined power supply structure provides the same working voltage for multiple power consumption units in the same voltage domain, which easily causes voltage excess in some power consumption units, thereby causing high system power consumption. Summary of the invention
[0004] The embodiments of the present application provide a power consumption system, a frequency control method, a chip and a storage medium. For each power consumption unit in the power consumption system, it is controlled to operate at a suitable operating frequency according to the operating voltage, thereby avoiding the phenomenon of voltage excess in the power consumption unit and reducing system power consumption.
[0005] The technical solution of the embodiment of the present application is implemented as follows:
[0006] The present application provides a power system, including:
[0007] A plurality of power consumption units belonging to the same voltage domain, and a plurality of performance management units connected to the plurality of power consumption units in a one-to-one correspondence;
[0008] A power management unit connected to the plurality of power consumption units, the power management unit being configured to provide the same operating voltage to the plurality of power consumption units;
[0009] Each of the performance management units is used to determine a target operating frequency corresponding to the power unit connected thereto according to the operating voltage, and control the power unit connected thereto to operate at the corresponding target operating frequency.
[0010] In the above power consumption system, the power management unit includes: a voltage conversion module, and the voltage conversion module is used to convert the input voltage of the power supply into the working voltage.
[0011] In the above-mentioned power consumption system, each of the performance management units is further used to: when the working voltage exceeds the expected voltage value corresponding to the power consumption unit connected thereto, obtain the current working frequency and the maximum working frequency of the power consumption unit connected thereto under the working voltage;
[0012] Calculating a first expected power consumption of an electric unit connected thereto operating at a corresponding current operating frequency under the operating voltage, and a second expected power consumption of an electric unit operating at a corresponding maximum operating frequency;
[0013] In a case where the second expected power consumption is lower than the first expected power consumption, the maximum operating frequency is determined as a target operating frequency corresponding to the power consumption unit connected thereto.
[0014] In the above power consumption system, each of the performance management units is further used to: respectively calculate the duty cycle and dynamic power consumption of the power consumption unit connected thereto operating at the corresponding current operating frequency under the operating voltage;
[0015] Obtaining the maximum leakage current of the power consumption unit connected thereto under the working voltage;
[0016] Calculate the first expected power consumption according to the maximum leakage current, and the dynamic power consumption and duty cycle of the power consumption unit connected thereto operating at the corresponding current operating frequency under the operating voltage;
[0017] The second expected power consumption is calculated according to the maximum leakage current, and the dynamic power consumption and duty cycle of the power consumption unit connected thereto operating at the corresponding maximum operating frequency under the operating voltage.
[0018] In the above power consumption system, each of the performance management units is further used to: when the working voltage corresponds to the expected voltage value of the power consumption unit connected thereto, determine the expected working frequency corresponding to the power consumption unit connected thereto as the corresponding target working frequency;
[0019] Among them, for each of the power-consuming units, there is a corresponding relationship between the expected operating frequency and the expected voltage value.
[0020] The above power consumption system further includes: a plurality of switch units corresponding to the plurality of power consumption units one by one;
[0021] Each of the switch units is connected between a power consumption unit and the power management unit, and is connected to a performance management unit connected to the connected power consumption unit;
[0022] Each of the performance management units is further used to make a switch decision for the power consumption unit connected thereto, and generate a switch instruction according to the decision result and send it to the switch unit connected thereto;
[0023] Each of the switch units is used to switch on or off the connection between the power consumption unit connected thereto and the power management unit according to the received switch instruction.
[0024] The above power consumption system further includes: a power consumption management unit, the power consumption management unit is connected to each of the performance management units and the power management unit;
[0025] Each of the performance management units is further used to monitor the power consumption units connected thereto, determine the expected operating frequency corresponding to the power consumption units connected thereto, and, for the power consumption units connected thereto, determine the corresponding expected voltage value according to the corresponding expected operating frequency and send it to the power consumption management unit;
[0026] The power consumption management unit is used to select a maximum voltage value from each received expected voltage value and send the maximum voltage value to the power management unit;
[0027] The power management unit is used to adjust the operating voltage to the maximum voltage value.
[0028] In the above power consumption system, each of the performance management units is further used to control the power consumption unit connected thereto to operate at the corresponding expected operating frequency when the expected operating frequency corresponding to the power consumption unit connected thereto is lower than the current operating frequency.
[0029] In the above-mentioned power consumption system, each of the performance management units is also used to control the power unit connected to it to operate at the corresponding expected operating frequency when the expected operating frequency corresponding to the power unit connected to it is higher than the current operating frequency and the operating voltage reaches the expected voltage value corresponding to the power unit connected to it.
[0030] In the above-mentioned power consumption system, the power management unit is further used to send a feedback signal indicating that the voltage adjustment is completed to the power consumption management unit after adjusting the working voltage to the maximum voltage value;
[0031] The power consumption management unit is further configured to send the maximum voltage value to each of the performance management units upon receiving the feedback signal.
[0032] In the above-mentioned power consumption system, the power consumption management unit, before sending the maximum voltage value to the power management unit, is further used to send a cancellation instruction to each of the performance management units when the operating voltage exceeds the maximum voltage value;
[0033] Each of the performance management units is further configured to control the power consumption unit connected thereto to operate at an operating frequency before the corresponding target operating frequency upon receiving the cancellation instruction.
[0034] The embodiment of the present application provides a frequency control method, which is applied to an electric power system, wherein the electric power system includes: a plurality of electric power units belonging to the same voltage domain, a plurality of performance management units connected to the plurality of electric power units in a one-to-one correspondence, and a power management unit connected to the plurality of electric power units, and the method includes:
[0035] Using the power management unit to provide the same operating voltage for the multiple power consumption units;
[0036] Each of the performance management units is utilized to determine the target operating frequency corresponding to the power consumption unit connected thereto according to the operating voltage, and the power consumption unit connected thereto is controlled to operate at the corresponding target operating frequency.
[0037] In the above method, using each of the performance management units to determine the target operating frequency corresponding to the power unit connected thereto according to the operating voltage, and controlling the power unit connected thereto to operate at the corresponding target operating frequency, includes:
[0038] Using each of the performance management units, when the operating voltage exceeds the expected voltage value corresponding to the power unit connected thereto, obtaining the current operating frequency and the maximum operating frequency corresponding to the power unit connected thereto under the operating voltage;
[0039] Calculate a first expected power consumption of an electric unit connected thereto at the corresponding current operating frequency under the operating voltage, and a second expected power consumption of an electric unit connected thereto at the corresponding maximum operating frequency;
[0040] In a case where the second expected power consumption is lower than the first expected power consumption, the maximum operating frequency is determined as a target operating frequency corresponding to the power consumption unit connected thereto.
[0041] In the above method, the calculating of the first expected power consumption of the electric unit connected thereto at the corresponding current operating frequency under the operating voltage and the second expected power consumption at the corresponding maximum operating frequency includes:
[0042] Calculate the duty cycle and dynamic power consumption of the power consumption units connected thereto at the corresponding current operating frequency under the operating voltage;
[0043] Obtaining the maximum leakage current of the power consumption unit connected thereto under the working voltage;
[0044] Calculate the first expected power consumption according to the maximum leakage current, and the dynamic power consumption and duty cycle of the power consumption unit connected thereto operating at the corresponding current operating frequency under the operating voltage;
[0045] The second expected power consumption is calculated according to the maximum leakage current, and the dynamic power consumption and duty cycle of the power consumption unit connected thereto operating at the corresponding maximum operating frequency under the operating voltage.
[0046] In the above method, the power consumption system further includes: a plurality of switch units corresponding to the plurality of power consumption units one by one, each of the switch units being connected between one power consumption unit and the power management unit, and being connected to a performance management unit connected to the connected power consumption unit; after the power management unit is used to provide the same working voltage to the plurality of power consumption units, the method further includes:
[0047] Using each of the performance management units, a switch decision is made for the power consumption unit connected thereto, and a switch instruction is generated according to the decision result and sent to the switch unit connected thereto;
[0048] Each of the switch units is used to open or close the connection between the power consumption unit connected thereto and the power management unit according to the received switch instruction.
[0049] The present application embodiment provides a chip, including:
[0050] A plurality of power consumption units belonging to the same voltage domain, and a plurality of performance management units connected to the plurality of power consumption units in a one-to-one correspondence;
[0051] The multiple power consumption units are connected to the same working voltage;
[0052] Each of the performance management units is used to determine a target operating frequency corresponding to the power unit connected thereto according to the operating voltage, and control the power unit connected thereto to operate at the corresponding target operating frequency.
[0053] An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed, the above-mentioned frequency control method is implemented.
[0054] The embodiment of the present application provides a power consumption system, a frequency control method, a chip and a storage medium. The power consumption system includes: multiple power consumption units belonging to the same voltage domain, and multiple performance management units connected to the multiple power consumption units in a one-to-one correspondence; a power management unit connected to the multiple power consumption units, the power management unit is used to provide the same working voltage for the multiple power consumption units; each performance management unit is used to determine the target working frequency corresponding to the power consumption unit connected thereto according to the working voltage, and control the power consumption unit connected thereto to work at the corresponding target working frequency. The power consumption system provided by the embodiment of the present application controls each power consumption unit in the power consumption system to work at a suitable working frequency according to the working voltage, thereby avoiding the phenomenon of voltage excess in the power consumption unit and reducing system power consumption. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 A schematic diagram of a power system provided in the prior art Figure 1 ;
[0056] Figure 2 A schematic diagram of a power system provided in the prior art Figure 2 ;
[0057] Figure 3 A schematic diagram of a power system provided in an embodiment of the present application Figure 1 ;
[0058] Figure 4 A schematic diagram of a power system provided in an embodiment of the present application Figure 2 ;
[0059] Figure 5 A schematic diagram of an exemplary performance management unit workflow provided in an embodiment of the present application;
[0060] Figure 6 A flow chart of a frequency control method provided in an embodiment of the present application;
[0061] Figure 7 A schematic diagram of the structure of a chip provided in an embodiment of the present application. DETAILED DESCRIPTION
[0062] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0063] The following will specifically describe the technical solution of the present application and how the technical solution of the present application solves the above technical problems through embodiments and in conjunction with the accompanying drawings. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
[0064] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.
[0065] The following is a basic introduction to the two power supply methods of the current power system.
[0066] Figure 1 A schematic diagram of a power system provided in the prior art Figure 1 .like Figure 1As shown, the power consumption system supports an independent power supply scheme. Specifically, after the power supply is input into the power management unit, N controllable voltage conversion modules are used to output N power supplies, which are respectively supplied to each power consumption unit, wherein these power consumption units may belong to the same chip. The power supply of each power consumption unit is independent. When the performance monitoring unit of a certain power consumption unit decides that the operating frequency of the power consumption unit needs to be adjusted and triggers the corresponding voltage adjustment, the performance monitoring unit sends the target voltage value Vt to be adjusted to the power consumption management unit in the chip. After receiving the instruction, the power consumption management unit sends an instruction to the power management unit, and the power management unit controls the corresponding voltage conversion module to adjust the supply voltage to Vt. If the voltage adjustment is for voltage and frequency increase, the frequency of the power consumption unit increases after the supply voltage adjustment is completed. If the voltage adjustment is for voltage and frequency reduction, the frequency of the power consumption unit is first reduced, and then Vt is sent to the power consumption management unit to achieve voltage reduction. If the voltage adjustment is for voltage and frequency increase, the power consumption unit will wait for the supply voltage to be adjusted to Vt before increasing the operating frequency.
[0067] It should be noted that for the above-mentioned independent power supply solution, multiple voltage conversion modules must be set in the power management unit, multiple independent power supply pins must be set on the chip pins, multiple independent power supply networks must be set inside the chip, and voltage conversion modules must be set on the interconnection signals between power consumption units. The system is relatively complex, and the power supply overhead and cost are high, which cannot be adapted to and deployed on complex chips with a large number of internal power consumption units.
[0068] Figure 2 A schematic diagram of a power system provided in the prior art Figure 2 .like Figure 2As shown, the power system supports a combined power supply scheme. Similar to the independent power supply, in the combined power supply scheme, after the power is input into the power management unit, M power supplies are output through M controllable voltage conversion modules. The difference is that the M power supplies are no longer directly shared by each power unit. Instead, the power units are grouped, each group forms a voltage domain, and the M power supplies are shared by all power units in the voltage domain. When the performance monitoring unit of a power unit in a certain voltage domain decides that the operating frequency of the power unit needs to be adjusted to Ft, and the corresponding operating voltage when Ft works is Vt, the performance monitoring unit k sends the target voltage value Vt to be adjusted to the power consumption management unit in the chip. After receiving the instruction, the power consumption management unit comprehensively considers the working voltage requirements of all N power units under the voltage domain, takes the maximum target working voltage value Vmax and sends an instruction to the power management unit, and the power management unit controls the voltage conversion module to adjust the supply voltage to Vmax. If the voltage adjustment is for voltage and frequency increase, the frequency of the power unit will increase after the voltage adjustment is completed. If the adjusted Ft is lower than the previous operating frequency, the power unit will first reduce its frequency and then send the target voltage value to be adjusted to the power management unit. If the adjusted Ft is higher than the previous operating frequency, the power unit will wait for the supply voltage to be adjusted to Vmax (>=Vt) before raising the operating frequency to Ft.
[0069] It should be noted that for the above-mentioned combined power supply solution, since multiple power consumption units in the same voltage domain share the same power supply, the power supply voltage of the final voltage domain is the maximum voltage value of each power consumption unit. For some power consumption units with lower working voltage requirements, their power supply voltage is greater than the required voltage. The existence of excess voltage causes an increase in power consumption.
[0070] In an embodiment of the present application, a power consumption system is provided, which can reduce system power consumption, and is described in detail below.
[0071] Figure 3 A schematic diagram of a power system provided in an embodiment of the present application Figure 1 .like Figure 3 As shown, in an embodiment of the present application, the power consumption system includes: a plurality of power consumption units 101 belonging to the same voltage domain, and a plurality of performance management units 102 connected to the plurality of power consumption units 101 in a one-to-one correspondence;
[0072] A power management unit 103 connected to the plurality of power consumption units 101, the power management unit 103 being used to provide the same operating voltage to the plurality of power consumption units 101;
[0073] Each performance management unit 102 is used to determine the target operating frequency corresponding to the power unit connected thereto according to the operating voltage, and control the power unit 101 connected thereto to operate at the corresponding target operating frequency.
[0074] It should be noted that in the embodiments of the present application, see Figure 4 , the power consumption system can be divided into M voltage domains, M is a natural number not less than 1, and the voltage domain 0 can include a certain number of power consumption units 101, and the working voltages of the power consumption units 101 in the same voltage domain are the same.
[0075] It should be noted that in the embodiments of the present application, the specific power consumption unit 101 and the number of power consumption units 101 can be set according to actual needs and application scenarios, and the embodiments of the present application are not limited thereto. The number of performance management units 102 is consistent with the number of power consumption units 101, and they are connected one-to-one.
[0076] In the examples of this application, see Figure 4 The power management unit 103 includes: a voltage conversion module 1031, which is used to convert the input voltage of the power supply into an operating voltage. In addition, the power management unit 103 may also include voltage conversion modules corresponding to other voltage domains.
[0077] It should be noted that, in an embodiment of the present application, in order to provide the same operating voltage to multiple power consumption units 101 belonging to the same voltage domain, a voltage conversion module 1031 can be deployed in the power management unit 103, so that the input voltage of the power supply is converted by the voltage conversion module 1031, and the converted operating voltage can be provided to each power consumption unit 101, wherein the size of the operating voltage can be changed by the power management unit 103 controlling the voltage conversion module 1031.
[0078] It can be understood that in the embodiments of the present application, for multiple power consumption units 101 belonging to the same voltage domain, the voltage conversion module 1031 provides the same operating voltage, but in actual needs, the voltage requirements of each power consumption unit 101 may be different, that is, the operating voltage provided by the voltage conversion module 1031 may not be consistent with the actual working state of the power consumption unit 101, for example, the operating voltage is too high. In this regard, each performance management unit 102 can determine the target operating frequency corresponding to the power consumption unit 101 connected thereto based on the operating voltage, so as to perform operating frequency control.
[0079] In the embodiment of the present application, each performance management unit 102 is further used to: when the operating voltage exceeds the expected voltage value corresponding to the power unit 101 connected thereto, obtain the current operating frequency and the maximum operating frequency corresponding to the power unit 101 connected thereto under the operating voltage;
[0080] Calculate the first expected power consumption of the power consumption unit 101 connected thereto under the working voltage and at the corresponding current working frequency, and the second expected power consumption of the power consumption unit 101 under the corresponding maximum working frequency;
[0081] When the second expected power consumption is lower than the first expected power consumption, the maximum operating frequency is determined as the target operating frequency corresponding to the power consumption unit connected thereto.
[0082] In the embodiment of the present application, each performance management unit 102 is further used to: respectively calculate the duty cycle and dynamic power consumption of the power consumption unit 101 connected thereto operating at the corresponding current operating frequency under the operating voltage;
[0083] Obtaining the maximum leakage current of the power consumption unit 101 connected thereto under the working voltage;
[0084] Calculate the first expected power consumption according to the maximum leakage current, and the dynamic power consumption and duty cycle of the power consumption unit 101 connected thereto operating at the corresponding current operating frequency under the operating voltage;
[0085] The second expected power consumption is calculated according to the maximum leakage current, and the dynamic power consumption and duty cycle of the power-consuming unit 101 connected thereto operating at the corresponding maximum operating frequency under the operating voltage.
[0086] Figure 5 The following is a schematic diagram of an exemplary performance management unit workflow provided in an embodiment of the present application. Figure 5As shown, in the embodiments of the present application, any performance management unit 103 may first obtain the current operating frequency Fc of the power-consuming unit 101 connected thereto, and at the same time obtain the maximum operating frequency Fmax at which the power-consuming unit 101 connected thereto can operate under the current voltage. Generally, if Fmax > Fc, it means that the power-consuming unit 101 can have a higher computing speed when operating at Fmax. However, usually the computing speed is not directly proportional to the operating frequency and is also affected by the data and signal states of the input and output channels. Further, the performance management unit 103 evaluates the duty cycle Tmax of the final actual operation and idle time when the power-consuming unit 101 operates at the frequency Fmax at this time, and the duty cycle Tc if it continues to operate at Fx. It can be concluded that when the operating voltage of the voltage domain is Vmax, the expected power consumption of the power-consuming unit 101 to complete the current task when operating at the frequency Fmax is Tmax×(Pmax + Lmax), and the expected power consumption of the power-consuming unit to complete the current task when operating at the frequency Fc is Tc×(Pc + Lmax). Wherein, Lmax is the maximum leakage current of the power-consuming unit 101 under the current operating voltage. If the power consumption required to operate at the frequency Tmax is lower than the power consumption required to operate at the frequency Tc, the performance management unit 103 determines the frequency Fmax as the target operating frequency corresponding to the power-consuming unit 101, thereby controlling the operating frequency of the power-consuming unit 101 to increase to the frequency Pmax.
[0087] It should be noted that, in the embodiments of the present application, let the ratio of Tmax to Tc be ρ, and ρ is less than 1, as shown in the following formula:
[0088] P1 = Tc×(Pc + Lmax) (1)
[0089] P2 = Tmax×(Pmax + Lmax) ≈ ρTc×(Pc / ρ + Lmax) = Tc×(Pc + ρLmax) (2)
[0090] Wherein, P1 is the expected power consumption of the power-consuming unit 101 when operating at the current operating frequency under the operating voltage, and P2 is the expected power consumption of the power-consuming unit when operating at the maximum operating frequency under the operating voltage. Since ρ < 1, it can be seen from the above formulas (1) and (2) that usually P2 < P1, and power consumption reduction can be achieved by increasing the frequency.
[0091] In the embodiments of the present application, each performance management unit 102 is further configured to, when the operating voltage is the expected voltage value corresponding to the power-consuming unit 101 connected thereto, determine the expected operating frequency corresponding to the power-consuming unit 101 connected thereto as the corresponding target operating frequency; wherein, for each power-consuming unit 101, there is a corresponding relationship between its corresponding expected operating frequency and expected voltage value.
[0092] It can be understood that in the embodiments of the present application, the expected voltage value corresponding to each power unit 101 corresponds to the expected operating frequency. For any power unit 101, if the magnitude of the operating voltage is the corresponding expected voltage value, then it is most appropriate for it to operate at the expected operating frequency. Therefore, its corresponding expected operating frequency can be directly determined as the target operating frequency.
[0093] In the embodiments of the present application, Figure 4 As shown, the power consumption system further includes: a plurality of switch units 104 belonging to the same voltage domain as the plurality of power consumption units 101;
[0094] Each switch unit 104 is connected between a power consumption unit 101 and a power management unit 103, and is connected to a performance management unit 102 connected to the connected power consumption unit 101;
[0095] Each performance management unit 102 is further used to make a switch decision for the power consumption unit 101 connected thereto, and generate a switch instruction according to the decision result and send it to the switch unit 104 connected thereto;
[0096] Each switch unit 104 is used to switch on or off the connection between the power consumption unit 101 connected thereto and the power management unit 103 according to the received switch instruction.
[0097] It is understandable that in the embodiments of the present application, Figure 4 As shown, a switch unit 104 is connected between each power consumption unit 101 and the power management unit 103. The switch unit 104 is controlled by the performance management unit 102 connected to the power consumption unit 101 connected thereto. The performance management unit 102 controls whether the power consumption unit 101 connected thereto is connected to the working voltage by sending a switch instruction to the switch unit 104.
[0098] For example, in the embodiments of the present application, reference is made to Figure 5 As shown in the process, when the performance management unit 102 detects that the power unit 101 has completed the current processing task, it can generate a decision result that the power unit 101 is to be shut down, and generate a switch instruction indicating that the power unit 101 needs to be shut down based on the decision result, which is sent to the switch unit 104 connected thereto. The switch unit 104 can disconnect the connection between the power unit 101 connected thereto and the power management unit 103 based on the switch instruction, thereby stopping supplying power to the power unit 101 to shut down the power unit 101.
[0099] It can be understood that in the embodiments of the present application, since the above-mentioned performance management unit 102 can control the operating frequency of the power unit 101 connected thereto according to the operating voltage, for example, when the voltage is in excess, the power unit 101 is controlled to operate at the maximum operating frequency. In this way, other modules that depend on the output of the power unit 101 can start working as early as possible and enter the shutdown state as early as possible, and the waiting time is shortened. Since the operating frequency of the current power unit 101 is increased, the power consumption of other downstream modules is reduced.
[0100] In the embodiments of the present application, Figure 4 As shown, the power consumption system further includes: a power consumption management unit 105, which is connected to each performance management unit 102 and the power management unit 103;
[0101] Each performance management unit 102 is further used to monitor the power consumption unit 101 connected thereto, determine the expected operating frequency corresponding to the power consumption unit 101 connected thereto, and, for the power consumption unit 101 connected thereto, determine the corresponding expected voltage value according to the corresponding expected operating frequency and send it to the power consumption management unit 105;
[0102] The power management unit 105 is used to select a maximum voltage value from the received expected voltage values and send the maximum voltage value to the power management unit 103;
[0103] The power management unit 103 is used to adjust the operating voltage to a maximum voltage value.
[0104] It should be noted that in the embodiments of the present application, for any power unit 101, the expected voltage value corresponding to its expected operating frequency, that is, the voltage value suitable for supporting the power unit 101 to operate at the expected operating frequency, is also the voltage size that the power unit 101 expects to access. Therefore, the performance management unit 102 connected to the power unit 101 can send the expected voltage value as the power unit 101 to the power consumption management unit 105, so that the power consumption management unit 105 can make voltage control decisions.
[0105] It can be understood that in an embodiment of the present application, the power consumption management unit 105 can receive the expected voltage values of different power consumption units 101 belonging to the same voltage domain, and use the maximum voltage value therein as the voltage value to be adjusted for the voltage domain, thereby indicating it to the power management unit 103, and the power management unit 103 can adjust the operating voltage to the maximum voltage value.
[0106] In an embodiment of the present application, each performance management unit 102 is further used to control the power unit 101 connected thereto to operate at the corresponding expected operating frequency when the expected operating frequency corresponding to the power unit 101 connected thereto is lower than the current operating frequency.
[0107] In an embodiment of the present application, each performance management unit 102 is also used to control the power unit 101 connected thereto to operate at the corresponding expected operating frequency when the expected operating frequency corresponding to the power unit 101 connected thereto is higher than the current operating frequency and the operating voltage reaches the expected voltage value corresponding to the power unit 101 connected thereto.
[0108] It should be noted that, in the embodiment of the present application, if the expected operating frequency corresponding to the power unit 101 is lower than the current operating frequency, the connected performance management unit 102 can directly control the power unit 101 to operate at the expected operating frequency. If the expected operating frequency corresponding to the power unit 101 is higher than the current operating frequency, the connected performance management unit 102 needs to wait for the operating voltage to reach the expected voltage value corresponding to the power unit 101 before controlling the power unit 101 to operate at the corresponding expected operating frequency.
[0109] In an embodiment of the present application, the power management unit 103 is further configured to send a feedback signal indicating completion of voltage adjustment to the power consumption management unit 105 after adjusting the operating voltage to the maximum voltage value;
[0110] The power consumption management unit 105 is further configured to send the maximum voltage value to each performance management unit 102 upon receiving the feedback signal.
[0111] It should be noted that, in the embodiment of the present application, two-way control and feedback are maintained between the power management unit 103 and the power consumption management unit 105. The power consumption management unit 105 can instruct the power management unit 103 to adjust the voltage, and the power management unit 103 can send a feedback signal to the power consumption management unit 105 after completing the voltage adjustment. The power consumption management unit 105 can learn from the feedback signal that the working voltage provided by the power management unit 103 has been adjusted to the maximum voltage value, and send the adjusted voltage value, i.e., the aforementioned maximum voltage value, to the performance management unit 102 connected to each power consumption unit 101, so that each performance management unit 102 can learn the size of the working voltage.
[0112] In an embodiment of the present application, the power consumption management unit 105, before sending the maximum voltage value to the power management unit 103, is further configured to send a cancel instruction to each performance management unit 102 when the operating voltage exceeds the maximum voltage value;
[0113] Each performance management unit 102 is further used to control the power consumption unit 101 connected thereto to operate at a corresponding historical operating frequency according to the cancellation instruction; the historical operating frequency corresponding to each power consumption unit 101 is the operating frequency used before operating at the corresponding target operating frequency.
[0114] It should be noted that in the embodiment of the present application, if the maximum voltage value is less than the working voltage, the working voltage is actually adjusted to the maximum voltage value as a voltage reduction process. In this case, considering that there is a power unit 101 in the voltage domain that has previously been controlled to work at the corresponding target working frequency according to the working voltage, it is necessary to cancel this operation before the voltage reduction is performed. After the cancellation takes effect, the power management unit 105 notifies the power management unit 103 to perform voltage reduction control. Among them, the power management unit 105 can wait for a preset time after sending the cancellation instruction, and then send the maximum voltage value to the power management unit 103 to ensure that the cancellation takes effect.
[0115] It can be understood that in the embodiments of the present application, for each power unit 101, the operating frequency control is performed by the performance management unit 102 connected thereto, and the performance management unit 102 can obtain the historical operating frequency corresponding to the power unit 101, wherein the historical operating frequency may be the same as the target operating frequency. Therefore, the power consumption management unit 105 sends a cancellation instruction to the performance management unit 102 connected to each power unit 101 in the voltage domain. After the performance management unit 102 receives the cancellation instruction, if the historical operating frequency is different from the target operating frequency, that is, the operating frequency is indeed adjusted, the operating frequency of the power unit 101 connected thereto is restored to the historical operating frequency. If the historical operating frequency is different from the target operating frequency, the operating frequency is not actually adjusted. Therefore, controlling the power unit 101 connected thereto to operate at the corresponding historical operating frequency is actually controlling the power unit 101 connected thereto to maintain the current operating frequency.
[0116] It can be understood that in the embodiments of the present application, a performance management unit 102 is deployed for each power consumption unit 101, and there is a control and feedback path between the performance management unit 102 and the power consumption management unit 105. The actual adjustment information of the voltage domain of the power consumption management unit 105 can be transmitted back to the performance management unit 102 through the feedback path. The performance management unit 102 has a frequency control function, so that the power consumption unit 101 can operate at a suitable operating frequency under the operating voltage.
[0117] It can be understood that in the embodiments of the present application, the phenomenon of voltage excess existing in the combined power supply scheme is avoided, and the system power consumption is reduced; considering that the flexible control of the power consumption unit 101 according to the working voltage has an effect on all units under the voltage domain, when multiple interacting power consumption units 101 are operating at a suitable working frequency under the working voltage, the data and signal interaction between each other can be further accelerated, the task processing time of the power consumption unit 101 during actual operation may be shorter, and the power consumption in some scenarios is lower, which further reduces the power consumption.
[0118] The embodiment of the present application provides an electric power system, including: multiple electric power units belonging to the same voltage domain, and multiple performance management units connected to the multiple electric power units in a one-to-one correspondence; a power management unit connected to the multiple electric power units, the power management unit is used to provide the same working voltage for the multiple electric power units; each performance management unit is used to determine the target working frequency corresponding to the electric power unit connected thereto according to the working voltage, and control the electric power unit connected thereto to work at the corresponding target working frequency. The electric power system provided by the embodiment of the present application controls each electric power unit in the electric power system to work at a suitable working frequency according to the working voltage, thereby avoiding the phenomenon of voltage excess in the electric power unit and reducing power consumption.
[0119] An embodiment of the present application also provides a frequency control method, which is applied to an electric power consumption system, wherein the electric power consumption system includes: multiple electric power consumption units belonging to the same voltage domain, multiple performance management units connected to the multiple electric power consumption units in a one-to-one correspondence, and a power management unit connected to the multiple electric power consumption units. Figure 6 A flow chart of a frequency control method provided in an embodiment of the present application. Figure 6 As shown, the frequency control method mainly includes the following steps:
[0120] S101. Use a power management unit to provide the same operating voltage for multiple power consumption units.
[0121] S102: Utilize each performance management unit to determine a target operating frequency corresponding to the power consumption unit connected thereto according to the operating voltage, and control the power consumption unit connected thereto to operate at the corresponding target operating frequency.
[0122] It should be noted that, in an embodiment of the present application, the power consumption system utilizes each performance management unit to determine, based on the operating voltage, a target operating frequency corresponding to the power consumption unit connected thereto, and controls the power consumption unit connected thereto to operate at the corresponding target operating frequency, including: utilizing each performance management unit to obtain, when the operating voltage exceeds the expected voltage value corresponding to the power consumption unit connected thereto, the current operating frequency and the maximum operating frequency corresponding to the power consumption unit connected thereto under the operating voltage; calculating the first expected power consumption of the power consumption unit connected thereto at the corresponding current operating frequency under the operating voltage, and the second expected power consumption of the power consumption unit connected thereto at the corresponding maximum operating frequency; when the second expected power consumption is lower than the first expected power consumption, determining the maximum operating frequency as the target operating frequency corresponding to the power consumption unit connected thereto.
[0123] It should be noted that, in an embodiment of the present application, each performance management unit calculates a first expected power consumption of an electric unit connected thereto at a working voltage and a corresponding current operating frequency, and a second expected power consumption at a corresponding maximum operating frequency, including: respectively calculating the duty cycle and dynamic power consumption of the electric unit connected thereto at the working voltage and the corresponding current operating frequency; obtaining the maximum leakage current of the electric unit connected thereto at the working voltage; calculating the first expected power consumption based on the maximum leakage current, and the dynamic power consumption and duty cycle of the electric unit connected thereto at the working voltage and the corresponding current operating frequency; calculating the second expected power consumption based on the maximum leakage current, and the dynamic power consumption and duty cycle of the electric unit connected thereto at the working voltage and the corresponding maximum operating frequency.
[0124] It should be noted that, in an embodiment of the present application, the power consumption system also includes: a plurality of switch units corresponding one-to-one to a plurality of power units, each switch unit being connected between a power unit and a power management unit, and being connected to a performance management unit connected to the connected power unit; the power consumption system utilizes the power management unit to convert the input voltage of the power supply into an operating voltage for a plurality of power units, and after providing the same operating voltage for a plurality of power units, further performs the following steps: utilizes each performance management unit to make a switching decision for the connected power units, and generates a switching instruction based on the decision result and sends it to the connected switch unit; utilizes each switch unit to turn on or off the connection between the power unit connected thereto and the power management unit according to the received switching instruction.
[0125] It can be understood that, in the embodiment of the present application, the power consumption system uses each switch unit to control whether the power consumption unit connected thereto is connected to the working voltage, that is, to achieve switch control of the power consumption unit 101 connected thereto.
[0126] The embodiment of the present application also provides a chip, Figure 7This is a schematic diagram of the structure of a chip provided in an embodiment of the present application. Figure 7 As shown, in an embodiment of the present application, the chip includes: a plurality of power consumption units 101 belonging to the same voltage domain, and a plurality of performance management units 102 connected to the plurality of power consumption units 101 in a one-to-one correspondence;
[0127] Multiple power consumption units 101 are connected to the same working voltage;
[0128] Each performance management unit 102 is used to determine the target operating frequency corresponding to the power unit 101 connected thereto according to the operating voltage, and control the power unit 101 connected thereto to operate at the corresponding target operating frequency.
[0129] It can be understood that in the embodiment of the present application, multiple power consumption units 101 belonging to the same voltage domain in the above-mentioned power consumption system, and multiple performance management units 102 connected to the multiple power consumption units 101 in a one-to-one correspondence, can be integrated on the same chip.
[0130] The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and the computer program implements the above-mentioned frequency control method when executed. The computer-readable storage medium can be a volatile memory (volatile memory), such as a random access memory (Random-Access Memory, RAM); or a non-volatile memory (non-volatile memory), such as a read-only memory (Read-Only Memory, ROM), a flash memory (flash memory), a hard disk (Hard Disk Drive, HDD) or a solid-state drive (Solid-State Drive, SSD); or it can be a respective device including one or any combination of the above memories, such as a mobile phone, a computer, a tablet device, a personal digital assistant, etc.
[0131] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of hardware embodiments, software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0132] The present application is described with reference to implementation flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0133] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which is implemented in the implementation flow diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0134] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing the steps in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0135] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by any technician familiar with the technical field within the technical scope disclosed in the utility application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. An electricity system, It is characterized in that include: A plurality of power consumption units belonging to the same voltage domain, and a plurality of performance management units connected to the plurality of power consumption units in a one-to-one correspondence; A power management unit connected to the multiple power consumption units, the power management unit comprising M voltage conversion modules, the voltage conversion modules corresponding to the voltage domains one by one; wherein the voltage conversion module is used to convert the input voltage of the power supply into the working voltage of each voltage domain, and provide the same working voltage for the multiple power consumption units in each voltage domain; the voltage conversion module is also used to adjust the working voltage to the maximum voltage value sent by the power consumption management unit; M is the number of voltage domains obtained after grouping the power consumption units, and is a natural number not less than 1; the maximum voltage value is the maximum value of each expected voltage value received by the power consumption management unit; Each of the performance management units is used to determine a target operating frequency corresponding to the power unit connected thereto according to the operating voltage, and control the power unit connected thereto to operate at the corresponding target operating frequency.
2. The power system according to claim 1, It is characterized in that Each of the performance management units is further used to: when the operating voltage exceeds the expected voltage value corresponding to the power unit connected thereto, obtain the current operating frequency and the maximum operating frequency corresponding to the power unit connected thereto under the operating voltage; Calculating a first expected power consumption of an electric unit connected thereto operating at a corresponding current operating frequency under the operating voltage, and a second expected power consumption of an electric unit operating at a corresponding maximum operating frequency; In a case where the second expected power consumption is lower than the first expected power consumption, the maximum operating frequency is determined as a target operating frequency corresponding to the power consumption unit connected thereto.
3. The power system according to claim 2, It is characterized in that Each of the performance management units is further used to: respectively calculate the duty cycle and dynamic power consumption of the power consumption unit connected thereto, operating at the corresponding current operating frequency under the operating voltage; Obtaining the maximum leakage current of the power consumption unit connected thereto under the working voltage; Calculate the first expected power consumption according to the maximum leakage current, and the dynamic power consumption and duty cycle of the power consumption unit connected thereto operating at the corresponding current operating frequency under the operating voltage; The second expected power consumption is calculated according to the maximum leakage current, and the dynamic power consumption and duty cycle of the power consumption unit connected thereto operating at the corresponding maximum operating frequency under the operating voltage.
4. The power system according to claim 1, It is characterized in that Each of the performance management units is further configured to: when the operating voltage is the expected voltage value corresponding to the power unit connected thereto, determine the expected operating frequency corresponding to the power unit connected thereto as the corresponding target operating frequency; Among them, for each of the power-consuming units, there is a corresponding relationship between the expected operating frequency and the expected voltage value.
5. The power system according to claim 1, It is characterized in that Also includes: A plurality of switch units corresponding one-to-one to the plurality of power consumption units; Each of the switch units is connected between a power consumption unit and the power management unit, and is connected to a performance management unit connected to the connected power consumption unit; Each of the performance management units is further used to make a switch decision for the power consumption unit connected thereto, and generate a switch instruction according to the decision result and send it to the switch unit connected thereto; Each of the switch units is used to switch on or off the connection between the power consumption unit connected thereto and the power management unit according to the received switch instruction.
6. The power system according to any one of claims 1 to 5, It is characterized in that Also includes: A power consumption management unit, the power consumption management unit is connected to each of the performance management units and the power management unit; Each of the performance management units is further used to monitor the power consumption units connected thereto, determine the expected operating frequency corresponding to the power consumption units connected thereto, and, for the power consumption units connected thereto, determine the corresponding expected voltage value according to the corresponding expected operating frequency and send it to the power consumption management unit; The power consumption management unit is used to select a maximum voltage value from the received expected voltage values and send the maximum voltage value to the power management unit.
7. The power system according to claim 6, It is characterized in that Each of the performance management units is further used to control the power unit connected thereto to operate at the corresponding expected operating frequency when the expected operating frequency corresponding to the power unit connected thereto is lower than the current operating frequency.
8. The power system according to claim 6, It is characterized in that Each of the performance management units is also used to control the power unit connected to it to operate at the corresponding expected operating frequency when the expected operating frequency corresponding to the power unit connected to it is higher than the current operating frequency and the operating voltage reaches the expected voltage value corresponding to the power unit connected to it.
9. The power system according to claim 6, It is characterized in that The power management unit is further configured to send a feedback signal indicating completion of voltage adjustment to the power consumption management unit after adjusting the operating voltage to the maximum voltage value; The power consumption management unit is further configured to send the maximum voltage value to each of the performance management units upon receiving the feedback signal.
10. The power system according to claim 6, It is characterized in that The power consumption management unit is further configured to send a cancellation instruction to each of the performance management units when the operating voltage exceeds the maximum voltage value before sending the maximum voltage value to the power management unit; Each of the performance management units is further used to control the power consumption unit connected thereto to operate at a corresponding historical operating frequency according to the cancellation instruction; the historical operating frequency corresponding to each power consumption unit is the operating frequency used before operating at the corresponding target operating frequency.
11. A frequency control method, It is characterized in that Applied to an electric power system, the electric power system includes: a plurality of electric power units belonging to the same voltage domain, a plurality of performance management units connected to the plurality of electric power units in a one-to-one correspondence, and a power management unit connected to the plurality of electric power units, the method includes: The power management unit includes M voltage conversion modules, and the voltage conversion modules correspond to the voltage domains one by one; the voltage conversion modules are used to convert the input voltage of the power supply into the working voltage of each voltage domain, and provide the same working voltage for the multiple power-consuming units in each voltage domain; the voltage conversion module is also used to adjust the working voltage to the maximum voltage value sent by the power consumption management unit; M is the number of voltage domains obtained after grouping the power-consuming units, and is a natural number not less than 1; the maximum voltage value is the maximum value of each expected voltage value received by the power consumption management unit; Each of the performance management units is utilized to determine the target operating frequency corresponding to the power consumption unit connected thereto according to the operating voltage, and the power consumption unit connected thereto is controlled to operate at the corresponding target operating frequency.
12. The method according to claim 11, wherein each of the performance management units is used to determine a target operating frequency corresponding to the power unit connected thereto according to the operating voltage, and controls the power unit connected thereto to operate at the corresponding target operating frequency, include: Using each of the performance management units, when the operating voltage exceeds the expected voltage value corresponding to the power unit connected thereto, obtaining the current operating frequency and the maximum operating frequency corresponding to the power unit connected thereto under the operating voltage; Calculate a first expected power consumption of an electric unit connected thereto at the corresponding current operating frequency under the operating voltage, and a second expected power consumption of an electric unit connected thereto at the corresponding maximum operating frequency; In a case where the second expected power consumption is lower than the first expected power consumption, the maximum operating frequency is determined as a target operating frequency corresponding to the power consumption unit connected thereto.
13. The method according to claim 12, It is characterized in that The calculating of the first expected power consumption of the electric unit connected thereto at the corresponding current operating frequency under the operating voltage and the second expected power consumption of the electric unit at the corresponding maximum operating frequency includes: Calculate the duty cycle and dynamic power consumption of the power consumption units connected thereto at the corresponding current operating frequency under the operating voltage; Obtaining the maximum leakage current of the power consumption unit connected thereto under the working voltage; Calculate the first expected power consumption according to the maximum leakage current, and the dynamic power consumption and duty cycle of the power consumption unit connected thereto operating at the corresponding current operating frequency under the operating voltage; The second expected power consumption is calculated according to the maximum leakage current, and the dynamic power consumption and duty cycle of the power consumption unit connected thereto operating at the corresponding maximum operating frequency under the operating voltage.
14. The method according to claim 11, It is characterized in that The power consumption system further includes: a plurality of switch units corresponding to the plurality of power consumption units one by one, each of the switch units being connected between one power consumption unit and the power management unit, and connected to a performance management unit connected to the connected power consumption unit; after providing the same working voltage to the plurality of power consumption units by using the power management unit, the method further includes: Using each of the performance management units, a switch decision is made for the power consumption unit connected thereto, and a switch instruction is generated according to the decision result and sent to the switch unit connected thereto; Each of the switch units is used to open or close the connection between the power consumption unit connected thereto and the power management unit according to the received switch instruction.
15. A chip, It is characterized in that include: A plurality of power consumption units belonging to the same voltage domain, and a plurality of performance management units connected to the plurality of power consumption units in a one-to-one correspondence; The multiple power-consuming units are connected to the same working voltage; the same working voltage is the working voltage of each voltage domain obtained after the M voltage conversion modules in the power management unit convert the input voltage of the power supply, and supplies power to the multiple power-consuming units in each voltage domain; the voltage conversion module is also used to adjust the working voltage to the maximum voltage value sent by the receiving power consumption management unit; M is the number of voltage domains obtained after grouping the power consumption units, and is a natural number not less than 1; The maximum voltage value is the maximum value of each expected voltage value received by the power consumption management unit; Each of the performance management units is used to determine a target operating frequency corresponding to the power unit connected thereto according to the operating voltage, and control the power unit connected thereto to operate at the corresponding target operating frequency.
16. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed, the frequency control method according to any one of claims 11 to 14 is implemented.
