Chip power consumption control method and device and storage medium

By calculating the power consumption difference ratio value and frequency increase and deduction value, the target frequency value is quickly determined, which solves the problem of low frequency regulation efficiency of chips in the prior art, and achieves more efficient power consumption control and performance utilization.

CN119165945APending Publication Date: 2024-12-20SHANGHAI BIREN TECH CO LTD
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202411268871.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-10
Publication Date
2024-12-20

AI Technical Summary

Technical Problem

In the prior art, the chip frequency regulation efficiency is low, resulting in delayed performance response at high loads, and excessive power consumption during frequency reduction, which cannot quickly reach the target power consumption value, resulting in overtemperature protection.

Method used

By obtaining the difference between the target power consumption value and the current power consumption value, calculating the power consumption difference ratio, combining the current frequency value to calculate the frequency increase and deduction value, quickly determine the target frequency value, and adjust the working frequency and working voltage to achieve rapid approaching the target function Consumption value.

Benefits of technology

Improve frequency regulation efficiency, improve performance and temperature control, achieve smaller particle size frequency regulation, give full play to the chip performance, and control power consumption within the target range.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119165945A_ABST
    Figure CN119165945A_ABST
Patent Text Reader

Abstract

The invention provides a chip power consumption control method and device and a storage medium, and relates to the technical field of chip power consumption control, and the method comprises the steps: obtaining a target power consumption value, a current power consumption value and a current frequency value; determining a power consumption difference proportion value according to the current power consumption value and a target power consumption value; according to the current frequency value and the power consumption difference proportion value, obtaining a frequency increase and decrease value which is in positive correlation with the power consumption difference proportion value; determining a target frequency value according to the frequency increase / decrease value and the current frequency value; and adjusting the working frequency and the working voltage according to the target frequency value. The target frequency value meeting the target power consumption value condition can be quickly determined without step-by-step frequency increasing and decreasing, the frequency modulation efficiency can be improved, the performance and the temperature control performance can be improved, the working power consumption can be controlled to be close to the target power consumption value, and the power consumption requirement can be met. And meanwhile, smaller-granularity frequency modulation is realized, and the frequency for giving full play to the performance of the chip is obtained under the limitation of power consumption, so that the utilization efficiency of the performance of the chip is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of chip power consumption control, and in particular to a chip power consumption control method, device and storage medium. Background Art

[0002] During operation, the chip will dynamically adjust its frequency according to the performance load. By adjusting the chip's operating frequency, it optimizes power consumption and performance, improves energy efficiency, reduces heat generation, ensures system stability, and meets the performance requirements of different applications. Through frequency modulation, the device can provide sufficient computing power under high load, save power consumption under low load, and improve the user experience and overall reliability of the device.

[0003] When the chip is frequency modulated, it will be subject to power consumption, temperature and other restrictions. In the prior art, the chip will increase or decrease the frequency step by step according to the preset class power consumption and frequency when performing frequency modulation, that is, it will increase or decrease the frequency step by step during frequency modulation to tentatively find the level that meets the power consumption and performance requirements. However, the step-by-step control method has the problem of low frequency modulation efficiency, resulting in high performance requirements When the frequency is increased, the step-by-step increase in frequency will run at a low frequency for a period of time, causing the performance response to be delayed and the performance to be poor, or when the power consumption protection is triggered and the frequency needs to be reduced, the slow frequency reduction will cause the power consumption to be too high for a period of time and cause over-temperature protection. Summary of the invention

[0004] The present invention provides a chip power consumption control method, device and storage medium, which are used to solve the defect of low frequency modulation efficiency caused by step-by-step frequency increase and decrease when frequency modulation is performed based on power consumption in the prior art.

[0005] The present invention provides a chip power consumption control method, comprising: Get the target power consumption value, current power consumption value and current frequency value; Determining a power consumption difference ratio value according to the current power consumption value and the target power consumption value; According to the current frequency value and the power consumption difference ratio value, a frequency increase / decrease value is acquired, wherein the frequency increase / decrease value is positively correlated with the power consumption difference ratio value; Determining a target frequency value according to the frequency increase / decrease value and the current frequency value; According to the target frequency value, the operating frequency and the operating voltage are adjusted.

[0006] According to a chip power consumption control method provided by the present invention, determining a target frequency value according to the frequency increase / decrease value and the current frequency value includes: Based on the current frequency value and the frequency increase / decrease value, obtaining a calculated frequency value; The target frequency value is determined according to the calculated frequency value and a preset frequency limit range.

[0007] According to a chip power consumption control method provided by the present invention, determining the power consumption difference ratio value according to the current power consumption value and the target power consumption value includes: Divide the difference between the target power consumption value and the current power consumption value by the current power consumption value to obtain a quotient as the power consumption difference ratio value; Alternatively, a quotient of a difference between the target power consumption value and the current power consumption value divided by the target power consumption value is taken as the first deviation value; Using the first deviation value of the previous calculation cycle as the second deviation value; Taking the difference between the first deviation value and the second deviation value as the deviation change rate; The power consumption difference ratio value is calculated and determined according to the first deviation value, the deviation change rate and a preset coefficient.

[0008] According to a chip power consumption control method provided by the present invention, the frequency increase or decrease value is obtained according to the current frequency value and the power consumption difference ratio value, including: The product of the current frequency value and the power consumption difference ratio value is used as the frequency increase or decrease value; Alternatively, the product of the power consumption difference ratio value and the preset frequency upper and lower limit difference is used as the frequency increase or decrease value; The obtaining of the calculated frequency value based on the current frequency value and the frequency increase / decrease value includes: The calculated frequency value is obtained according to the sum of the current frequency value and the frequency increase / decrease value.

[0009] According to a chip power consumption control method provided by the present invention, the step of obtaining a target power consumption value, a current power consumption value, and a current frequency value includes: Acquire the target power consumption value and acquire the current power consumption value and the current frequency value according to a preset interval period; Wherein, each time the current power consumption value and the current frequency value are obtained according to the preset interval period, the target frequency value is correspondingly determined once.

[0010] According to a chip power consumption control method provided by the present invention, the current power consumption value is obtained by: According to the preset sampling time, the sampling power consumption is obtained; According to the preset interval period, an average value of the sampled power consumption within the preset interval period is calculated to obtain the current power consumption value.

[0011] According to a chip power consumption control method provided by the present invention, determining the target frequency value according to the calculated frequency value and a preset frequency limit range includes: According to the frequency limit range, determine the upper frequency limit value and the lower frequency limit value; When the calculated frequency value is greater than the frequency upper limit value, the target frequency value takes the frequency upper limit value; When the calculated frequency value is less than the frequency lower limit value, the target frequency value takes the frequency lower limit value; When the calculated frequency value is less than or equal to the upper frequency limit value and greater than or equal to the lower frequency limit value, the target frequency value takes the calculated frequency value.

[0012] According to a chip power consumption control method provided by the present invention, adjusting the operating frequency and the operating voltage according to the target frequency value includes: Determining a target voltage value according to the target frequency value; Determining whether to increase the frequency according to the target frequency value and the current frequency value; When upscaling: increasing the operating voltage according to the target voltage value; Increasing the operating frequency according to the target frequency value; When frequency is reduced: reducing the operating frequency according to the target frequency value; The operating voltage is reduced according to the target voltage value.

[0013] The present invention also provides an electronic device, comprising a memory, a processor, and a program stored in the memory and executable on the processor, wherein when the processor executes the program, a chip power consumption control method as described above is implemented.

[0014] The present invention also provides a non-transitory storage medium on which a program is stored. When the program is executed by a processor, a chip power consumption control method as described in any one of the above methods is implemented.

[0015] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the chip power consumption control method described in any one of the above is implemented.

[0016] A chip power consumption control method, device and storage medium provided by the present invention have at least the following beneficial effects: by obtaining a target power consumption value, a current power consumption value and a current frequency value, determining a power consumption difference ratio value according to the gap between the current power consumption value and the target power consumption value, and then calculating the frequency increase or decrease value according to the power consumption difference ratio value combined with the current frequency value. Since the frequency increase or decrease value is positively correlated with the power consumption difference ratio value, that is, the greater the gap between the current power consumption value and the target power consumption value, the greater the frequency increase or decrease value will be, and then determining the target frequency value according to the frequency increase or decrease value and the current frequency value, so that the operating frequency and the operating voltage are adjusted according to the target frequency value, that is, the frequency modulation process is performed, so that the operating power consumption can quickly approach the target power consumption value. In this way, the target frequency value is obtained based on the size of the power consumption gap, and there is no need to try to increase or decrease the frequency step by step. The target frequency value that meets the target power consumption value condition can be quickly determined, and the operating frequency and the operating voltage are adjusted according to the target frequency value, which is conducive to improving the frequency modulation efficiency, improving the performance and temperature control performance, and controlling the operating power consumption near the target power consumption value to meet the power consumption requirements. At the same time, it realizes frequency modulation with smaller granularity, and adjusts the operating frequency and operating voltage according to the target frequency value, so as to obtain the frequency that fully utilizes the chip performance under the power consumption limit, thereby improving the utilization efficiency of the chip performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0018] Figure 1 This is one of the flow charts of a chip power consumption control method provided by the present invention.

[0019] Figure 2 This is the second flow chart of a chip power consumption control method provided by the present invention.

[0020] Figure 3 This is the third flow chart of a chip power consumption control method provided by the present invention.

[0021] Figure 4 This is the fourth flow chart of a chip power consumption control method provided by the present invention.

[0022] Figure 5 It is a schematic diagram of the process of obtaining the target frequency value of one embodiment of a chip power consumption control method provided by the present invention.

[0023] Figure 6 It is a flow chart of one embodiment of a chip power consumption control method provided by the present invention. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0025] Existing chips use a step-by-step frequency modulation method to divide the frequency / voltage into several levels. When the frequency needs to be increased, it is tested one level at a time. After configuring the previous frequency / voltage, it is determined whether the power consumption exceeds the limit. If not, the next level of frequency / voltage is configured for testing to obtain the maximum frequency under the power consumption limit to meet the performance and power consumption requirements. Similarly, when the frequency is reduced or exceeds the power consumption limit, it is also tested one level at a time. This step-by-step frequency modulation method has the problem of low frequency modulation efficiency due to step-by-step testing and judgment. When the performance requirements of the running application are high, it is necessary to increase the frequency one level at a time at a low frequency, resulting in a relatively low-frequency operation stage, resulting in poor performance. At the same time, when frequency reduction protection is needed, the frequency is reduced one level at a time. When the load is large, there is a relatively high-frequency operation stage, resulting in a slow decrease in power consumption and heat generation, which triggers over-temperature protection.

[0026] The step-by-step frequency modulation method has the defect of low frequency modulation efficiency. At the same time, it can only perform frequency modulation according to the preset frequency / voltage levels, and cannot perform frequency modulation of smaller granularity. There may be a better frequency / voltage configuration between two levels, resulting in the defect of not being able to fully utilize the performance of the chip under power consumption constraints.

[0027] With regard to the problems and defects existing in step-by-step frequency modulation, the present invention provides a chip power consumption control method, device and storage medium to solve the above problems and defects.

[0028] Combine the following Figures 1 to 4 A chip power consumption control method of the present invention is described, comprising: S100: Obtaining a target power consumption value, a current power consumption value, and a current frequency value; S200: determining a power consumption difference ratio value according to the current power consumption value and the target power consumption value; S300: acquiring a frequency increase / decrease value according to the current frequency value and the power consumption difference ratio value, wherein the frequency increase / decrease value is positively correlated with the power consumption difference ratio value; S400: determining a target frequency value according to the frequency increase / decrease value and the current frequency value; S500: Adjusting the operating frequency and the operating voltage according to the target frequency value.

[0029] By obtaining the target power consumption value, the current power consumption value and the current frequency value, the power consumption difference ratio value is determined according to the difference between the current power consumption value and the target power consumption value, and then the frequency increase or decrease value is obtained by combining the power consumption difference ratio value with the current frequency value. Since the frequency increase or decrease value is positively correlated with the power consumption difference ratio value, that is, the greater the difference between the current power consumption value and the target power consumption value, the greater the frequency increase or decrease value will be, and then the target frequency value is determined according to the frequency increase or decrease value and the current frequency value, so that the operating frequency and the operating voltage are adjusted according to the target frequency value, that is, the frequency modulation process is performed, so that the operating power consumption can quickly approach the target power consumption value.

[0030] In this way, the target frequency value is obtained based on the size of the power consumption difference. There is no need to try to increase or decrease the frequency step by step. The target frequency value that meets the target power consumption value can be quickly determined. The operating frequency and operating voltage are adjusted according to the target frequency value, which is conducive to improving the frequency modulation efficiency, improving the performance and temperature control performance, and controlling the operating power consumption near the target power consumption value to meet the power consumption requirements. At the same time, a smaller granularity of frequency modulation is achieved. The operating frequency and operating voltage are adjusted according to the target frequency value, which can fully utilize the chip performance under the power consumption limit, thereby improving the utilization efficiency of the chip performance.

[0031] It should be noted that in some embodiments, the target power consumption value may be a preset maximum power consumption limit value. When running an application, model or other load, the maximum power consumption limit value is used as the target power consumption value to quickly increase the frequency to the maximum frequency that can be run under the maximum power consumption limit value, that is, the target frequency value, thereby achieving the effect of providing the best performance, which is conducive to timely meeting the performance requirements of the load. In some embodiments, the target power consumption value may also be updated based on the operating conditions of the chip, such as operating temperature, load level and other factors.

[0032] The current power consumption value may be obtained by collecting the current working voltage and working current, and the current frequency value may be obtained by collecting the current working frequency.

[0033] refer to Figure 2 In some embodiments of a chip power consumption control method of the present invention, the S400 includes: S410: Obtaining a calculated frequency value based on the current frequency value and the frequency increase / decrease value; S420: Determine the target frequency value according to the calculated frequency value and a preset frequency limit range.

[0034] The chip needs to operate stably within a suitable frequency range. After calculating the theoretically optimal calculated frequency value based on the current frequency value and the frequency increase or decrease value, the target frequency value is determined in combination with the actual preset frequency limit range of the chip. In this way, the target frequency value is ensured to be within the frequency limit range of the chip, and the operating frequency and operating voltage are subsequently adjusted according to the target frequency value, so that the chip can operate stably and improve reliability.

[0035] In some embodiments of a chip power consumption control method of the present invention, the S200 includes: The difference between the target power consumption value and the current power consumption value is divided by the current power consumption value to obtain a quotient as the power consumption difference ratio value.

[0036] Subtract the current power consumption value from the target power consumption value, obtain the difference between the two and divide it by the current power consumption value to obtain the power consumption difference ratio value, which can indicate the difference between the current power consumption value and the target power consumption value, and facilitate the subsequent proportional calculation to obtain the frequency increase or decrease value to achieve frequency modulation.

[0037] In some embodiments of the present invention, in addition to obtaining the power consumption difference ratio value by the above-mentioned calculation method, the difference between the target power consumption value and the current power consumption value may be divided by the target power consumption value, and the quotient may be used as the implementation method of the power consumption difference ratio value. In some embodiments, in addition to calculating the power consumption difference ratio value in a linear manner, the calculation method of the power consumption difference ratio value may be determined according to the required control curve. For example, if it is to be controlled in the form of a quadratic root curve, the power consumption difference ratio value may be obtained by dividing the difference between the target power consumption value and the current power consumption value by the current power consumption value, retaining the positive and negative signs of the quotient value and taking the absolute value of the quadratic root of the quotient value. In this way, in addition to calculating the power consumption difference ratio value in a linear manner, the power consumption difference ratio value may also be calculated by other methods such as a quadratic root curve, and the power consumption difference ratio value may be obtained according to different calculation methods so that the change curve of the power consumption difference ratio value meets the design requirements.

[0038] In some embodiments of a chip power consumption control method of the present invention, the S200 may also include: Taking the quotient of the difference between the target power consumption value and the current power consumption value divided by the target power consumption value as the first deviation value; Using the first deviation value of the previous calculation cycle as the second deviation value; Taking the difference between the first deviation value and the second deviation value as the deviation change rate; The power consumption difference ratio value is calculated and determined according to the first deviation value, the deviation change rate and a preset coefficient.

[0039] The difference between the target power consumption value and the current power consumption value is divided by the target power consumption value, and the quotient obtained is used as the first deviation value, which can reflect the degree of deviation between the current power consumption value and the target power consumption value. The first deviation value of the previous calculation cycle is used as the second deviation value, and the first deviation value of the current calculation cycle is subtracted from the second deviation value to obtain the deviation change rate, which can reflect the effect of the power consumption adjustment. According to the first error value and the deviation change rate of the current calculation cycle, combined with the preset coefficient, the power consumption difference ratio value is calculated to obtain the target frequency value obtained based on the power consumption difference ratio value, which is obtained by considering the degree of deviation of the power consumption and the adjustment effect of the previous cycle, which is conducive to making the target frequency value more accurate and improving the accuracy of frequency and power consumption control adjustment. In some embodiments of a chip power consumption control method of the present invention, S300 includes: The product of the current frequency value and the power consumption difference ratio value is used as the frequency increase or decrease value.

[0040] The current frequency value is multiplied by the power consumption difference ratio value, and the product is used as the frequency increase or decrease value to determine the amplitude value of the frequency modulation based on the power consumption difference. The larger the power consumption difference, the larger the frequency increase or decrease value, that is, the frequency increase or decrease value is positively correlated with the power consumption difference ratio value. The current frequency value changes during the power consumption and frequency adjustment process, so that the determination of the target frequency value will take the influence of the current frequency value into greater consideration.

[0041] In some embodiments of a chip power consumption control method of the present invention, the S300 may also include: The product of the power consumption difference ratio value and the preset frequency upper and lower limit difference is used as the frequency increase or decrease value.

[0042] By multiplying the preset frequency upper and lower limits by the power consumption difference ratio, and using the product as the frequency increase or decrease value, the amplitude value of the frequency modulation can also be determined based on the power consumption difference, so that the larger the power consumption difference, the larger the frequency increase or decrease value, that is, the frequency increase or decrease value is positively correlated with the power consumption difference ratio value. The preset frequency upper and lower limits are determined by the upper and lower limits of the frequency limit range, that is, they are unchanged during the power consumption and frequency adjustment process, so that the determination of the target frequency value will be more biased towards the influence of the power consumption difference ratio value.

[0043] In some embodiments of a chip power consumption control method of the present invention, the S410 includes: The calculated frequency value is obtained according to the sum of the current frequency value and the frequency increase / decrease value.

[0044] The current frequency value is added to the frequency increase or decrease value to obtain the calculated frequency value. According to the calculated frequency value, the frequency can be quickly adjusted to the maximum frequency value under the target power consumption value limit, thereby improving the frequency modulation efficiency.

[0045] In some embodiments of the present invention, in addition to the above-mentioned calculation method for obtaining the frequency increase and decrease value and calculating the frequency value, it is also possible to add weights, constants and other adjustment items for calculation based on the above-mentioned calculation method according to actual adjustment needs, so that the change curves of the frequency increase and decrease value and the calculated frequency value are more in line with the needs.

[0046] It is understandable that the calculated frequency value is the maximum frequency value under the theoretical target power consumption value limit, but it is necessary to comprehensively consider the frequency limit range of stable chip operation to determine the optimal target frequency value. The positive and negative signs of the difference between the target power consumption value and the current power consumption value are consistent with the positive and negative signs of the frequency increase and decrease value, so that the frequency can be increased when the target power consumption value is not reached, and the frequency can be reduced when the target power consumption value is exceeded.

[0047] In some embodiments of a chip power consumption control method of the present invention, the S100 includes: Acquire the target power consumption value and acquire the current power consumption value and the current frequency value according to a preset interval period; Wherein, each time the current power consumption value and the current frequency value are obtained according to the preset interval period, the target frequency value is correspondingly determined once.

[0048] Since the operating state of the chip is constantly changing, the current power consumption value and the current frequency value are periodically updated according to the preset interval period, and the calculated frequency value is obtained by combining the target power consumption value. Then, within the preset frequency limit range, the target frequency value is determined to achieve the target frequency value being updated according to the preset interval period, and then the operating frequency and the operating voltage are dynamically adjusted. When the operating state of the chip changes, the operating power consumption value can be stably kept close to the target power consumption value and run at the optimal operating frequency, which is conducive to improving stability.

[0049] refer to Figure 5 In some embodiments of a chip power consumption control method of the present invention, the current power consumption value is obtained by: According to the preset sampling time, the sampling power consumption is obtained; According to the preset interval period, an average value of the sampled power consumption within the preset interval period is calculated to obtain the current power consumption value.

[0050] According to the preset sampling time, sampling is performed periodically to obtain the sampled power consumption. According to the sampled power consumption obtained within the preset interval period, the average power consumption value is calculated as the current power consumption value, which can more accurately reflect the current power consumption and reduce the impact of power consumption fluctuations.

[0051] It is understandable that the calculation cycle corresponds to the interval cycle, that is, one calculation cycle is performed corresponding to each interval cycle to calculate and update the target frequency value. The sampling time is less than the interval cycle, that is, multiple samplings may be performed in one interval cycle.

[0052] In some embodiments of the present invention, the current power consumption value may also be based on a preset interval period, where sampling is performed only once in each interval period, and the acquired power consumption is used as the current power consumption value.

[0053] In some embodiments of the present invention, the preset interval period may be set to 1 millisecond, that is, a target frequency value is updated every 1 millisecond.

[0054] The current power consumption value and the current frequency value are updated at preset intervals, but the target power consumption value is not necessarily updated periodically. In some embodiments of the present invention, the target power consumption value may be maintained unchanged at the preset power consumption limit value to continuously provide optimal performance; in some embodiments, the target power consumption value may also be updated in response to changes in load and temperature. In this case, the update of the target power consumption value is related to the update time of the load and temperature.

[0055] refer to Figure 3 In some embodiments of a chip power consumption control method of the present invention, the S420 includes: S421: Determine an upper frequency limit and a lower frequency limit according to the frequency limit range; S422: When the calculated frequency value is greater than the frequency upper limit value, the target frequency value takes the frequency upper limit value; S423: When the calculated frequency value is less than the frequency lower limit value, the target frequency value takes the frequency lower limit value; S424: When the calculated frequency value is less than or equal to the upper frequency limit value and greater than or equal to the lower frequency limit value, the target frequency value is the calculated frequency value.

[0056] The upper frequency limit value and the lower frequency limit value of the frequency limit range are compared with the calculated frequency value. When the calculated frequency value is greater than the upper frequency limit value, the target frequency value takes the upper frequency limit value; when the calculated frequency value is less than the lower frequency limit value, the target frequency value takes the lower frequency limit value; when the calculated frequency value is between the upper frequency limit value and the lower frequency limit value, the target frequency value takes the calculated frequency value. In this way, combined with the theoretical maximum calculated frequency value under the target power consumption value limit and the frequency limit range of stable operation of the chip, the best target frequency value within the frequency limit range is obtained, which is conducive to stabilizing and fully exerting the performance of the chip.

[0057] In some embodiments of a chip power consumption control method of the present invention, the target frequency value can be calculated and obtained by the following formula:

[0058] in, To calculate the frequency value; is the current frequency value; is the target power consumption value; is the current power consumption value; is the target frequency value; is the upper frequency limit; is the lower frequency limit.

[0059] refer to Figure 5 In some embodiments of a chip power consumption control method of the present invention, a target frequency value may also be obtained through a PD controller, and the target frequency value is calculated and obtained by the following formula:

[0060] in, is the sampling power consumption; k is the number of sampling times performed at the preset sampling time within the preset interval period; is the average power consumption value, which is used as the current power consumption value; is the first deviation value; is the target power consumption value; is the deviation change rate; is the second deviation value, i.e., the first deviation value of the previous calculation cycle; PDO is the calculated value of the PD controller, which is used as the power consumption difference ratio value; P and D are the preset coefficients of the PD controller, which can be adjusted according to the needs; To calculate the frequency value; is the current frequency value; is the target frequency value; is the upper frequency limit; is the lower frequency limit; It is the difference between the upper and lower limits of the preset frequency.

[0061] refer to Figure 4 In some embodiments of a chip power consumption control method of the present invention, the S500 includes: S510: Determine a target voltage value according to the target frequency value; S520: Determine whether to increase the frequency according to the target frequency value and the current frequency value; When upscaling: S530: increasing the operating voltage according to the target voltage value; S540: increasing the operating frequency according to the target frequency value; When frequency is reduced: S550: reducing the operating frequency according to the target frequency value; S560: reducing the operating voltage according to the target voltage value.

[0062] In a stable state, the current operating frequency should be the maximum frequency that the current operating voltage can support in order to give full play to the performance. Otherwise, if the current operating frequency is not the maximum frequency of the current operating voltage, the current operating frequency can be maintained, and the operating voltage can be reduced to obtain lower power consumption and improve performance. Therefore, when determining the frequency increase based on the comparison between the target frequency value and the current frequency value, the operating voltage is first increased according to the target voltage value, and then the operating frequency is increased according to the target frequency value; when determining the frequency reduction based on the comparison between the target frequency value and the current frequency value, the operating frequency is first reduced according to the target frequency value, and then the operating voltage is reduced according to the target voltage value. In this way, the operating frequency is avoided from exceeding the maximum frequency that the operating voltage can support, and the chip is prevented from having operating errors and instability problems, which is conducive to improving the reliability of frequency modulation.

[0063] Frequency and voltage are related. The larger the voltage, the higher the frequency it can support. In some embodiments of the present invention, a voltage-frequency curve can be fitted based on multiple sets of preset frequencies and voltages, and the target voltage value can be determined based on the voltage-frequency curve and the target frequency value.

[0064] In some embodiments of a chip power consumption control method of the present invention, the target power consumption value is a preset maximum power consumption limit value, referring to Figure 6 , the specific frequency modulation process is: PMIC (Power Management IC) collects and updates real-time current and voltage; The Power PMU (Power Performance Monitoring Unit) queries and obtains updated real-time current and voltage as well as current frequency values ​​at a preset interval of 1 millisecond, and calculates the current power consumption value based on the real-time current and voltage; According to the difference between the updated current power consumption value and the target power consumption value, a power consumption difference ratio value is determined, and a frequency increase or decrease value is obtained by calculating the power consumption difference ratio value in combination with the current frequency value, and the current frequency value and the frequency increase or decrease value are added to obtain a calculated frequency value, and then the calculated frequency value is combined with the frequency limit range to determine the target frequency value; According to the target frequency value, determine whether to increase or decrease the frequency; When upscaling: According to the target voltage value, the output voltage of PMIC is increased through PMBUS (Power Management Bus). When the voltage is stable, FBDIV (Feedback Divider) and POSTDIV (Post Divider) are configured according to the target frequency value to gradually increase the operating frequency and complete the frequency increase. When frequency is reduced: According to the target frequency value, configure FBDIV and POSTDIV to gradually reduce the operating frequency; according to the target voltage value, reduce the output voltage of PMIC through PMBUS, and complete the frequency reduction when the voltage is stable.

[0065] The above-mentioned description of the frequency modulation process in some embodiments of the present invention is only an illustrative description to facilitate a clearer understanding of the technical solution, and does not limit the specific implementation methods of the present invention.

[0066] The present invention also provides an electronic device, which may include a memory, a processor, and a program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned chip power consumption control method when executing the program.

[0067] In addition, the logic instructions in the above-mentioned memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program code.

[0068] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute a chip power consumption control method provided by the above methods.

[0069] On the other hand, the present invention further provides a non-transitory readable storage medium having a program stored thereon, which is implemented when the program is executed by a processor to execute a chip power consumption control method provided by the above methods.

[0070] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0071] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0072] In the description of the present invention, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0073] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

[0074] All actions to obtain signals, information or data in this application are carried out in compliance with the relevant data protection laws and policies of the country where they are located, and with the authorization given by the owner of the corresponding device.

[0075] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A chip power consumption control method, characterized in that: include: Get the target power consumption value, current power consumption value and current frequency value; Determining a power consumption difference ratio value according to the current power consumption value and the target power consumption value; According to the current frequency value and the power consumption difference ratio value, a frequency increase / decrease value is acquired, wherein the frequency increase / decrease value is positively correlated with the power consumption difference ratio value; Determining a target frequency value according to the frequency increase / decrease value and the current frequency value; According to the target frequency value, the operating frequency and the operating voltage are adjusted.

2. A chip power consumption control method according to claim 1, characterized in that: The step of determining a target frequency value according to the frequency increase / decrease value and the current frequency value includes: Based on the current frequency value and the frequency increase / decrease value, obtaining a calculated frequency value; The target frequency value is determined according to the calculated frequency value and a preset frequency limit range.

3. A chip power consumption control method according to claim 2, characterized in that: The determining the power consumption difference ratio value according to the current power consumption value and the target power consumption value includes: Divide the difference between the target power consumption value and the current power consumption value by the current power consumption value to obtain a quotient as the power consumption difference ratio value; Alternatively, a quotient of a difference between the target power consumption value and the current power consumption value divided by the target power consumption value is taken as the first deviation value; Using the first deviation value of the previous calculation cycle as the second deviation value; Taking the difference between the first deviation value and the second deviation value as the deviation change rate; The power consumption difference ratio value is calculated and determined according to the first deviation value, the deviation change rate and a preset coefficient.

4. A chip power consumption control method according to claim 3, characterized in that: The obtaining of the frequency increase or decrease value according to the current frequency value and the power consumption difference ratio value includes: The product of the current frequency value and the power consumption difference ratio value is used as the frequency increase or decrease value; Alternatively, the product of the power consumption difference ratio value and the preset frequency upper and lower limit difference is used as the frequency increase or decrease value; The obtaining of the calculated frequency value based on the current frequency value and the frequency increase / decrease value includes: The calculated frequency value is obtained according to the sum of the current frequency value and the frequency increase / decrease value.

5. A chip power consumption control method according to claim 1, characterized in that: The obtaining of the target power consumption value, the current power consumption value and the current frequency value includes: Acquire the target power consumption value and acquire the current power consumption value and the current frequency value according to a preset interval period; Wherein, each time the current power consumption value and the current frequency value are obtained according to the preset interval period, the target frequency value is correspondingly determined once.

6. A chip power consumption control method according to claim 5, characterized in that: The current power consumption value is obtained by: According to the preset sampling time, the sampling power consumption is obtained; According to the preset interval period, an average value of the sampled power consumption within the preset interval period is calculated to obtain the current power consumption value.

7. A chip power consumption control method according to claim 2, characterized in that: The step of determining the target frequency value according to the calculated frequency value and a preset frequency limit range includes: According to the frequency limit range, determine the upper frequency limit value and the lower frequency limit value; When the calculated frequency value is greater than the frequency upper limit value, the target frequency value takes the frequency upper limit value; When the calculated frequency value is less than the frequency lower limit value, the target frequency value takes the frequency lower limit value; When the calculated frequency value is less than or equal to the upper frequency limit value and greater than or equal to the lower frequency limit value, the target frequency value takes the calculated frequency value.

8. A chip power consumption control method according to claim 1, characterized in that: The step of adjusting the operating frequency and the operating voltage according to the target frequency value includes: Determining a target voltage value according to the target frequency value; Determining whether to increase the frequency according to the target frequency value and the current frequency value; When upscaling: increasing the operating voltage according to the target voltage value; Increasing the operating frequency according to the target frequency value; When frequency is reduced: reducing the operating frequency according to the target frequency value; The operating voltage is reduced according to the target voltage value.

9. An electronic device comprising a memory, a processor, and a program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, a chip power consumption control method as described in any one of claims 1 to 8 is implemented.

10. A non-transitory storage medium having a program stored thereon, characterized in that: When the program is executed by a processor, a chip power consumption control method as described in any one of claims 1 to 8 is implemented.

11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, a chip power consumption control method as claimed in any one of claims 1 to 8 is implemented.

Citation Information

Cited By

  • Dynamic frequency adjustment method and device, chip and electronic equipment

    CN120743089A

  • A dynamic frequency adjustment method, device, chip and electronic equipment

    CN120743089B

  • Integral error range boundary determination method, temperature control method and related equipment

    CN121254937A

  • Integral error range boundary determination method and temperature control method and related devices

    CN121254937B