Processor power supply method and device, computer readable storage medium

By using multiple parallel BUCK circuits in the processor power supply system and adjusting the number of working phases according to changes in the number of instructions, the problem of insufficient transient response capability of switching power supplies is solved, and the efficient and low-loss power supply state of the processor is matched with the actual working state.

CN116661575BActive Publication Date: 2026-11-24GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210152174.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-18
Publication Date
2026-11-24
Estimated Expiration
2042-02-18

AI Technical Summary

Technical Problem

In existing processor power supply methods, switching power supplies have poor transient response capabilities, resulting in a high supply voltage margin, which increases operating losses and reduces operating efficiency. Furthermore, the power supply status does not match the actual operating status of the processor.

Method used

By using multiple parallel BUCK circuits, the number of working phases of the switching power supply is adjusted according to the changes in the number of instructions to be processed, so that multiple BUCK circuits work alternately to improve transient response capability. The number of phases is increased when the load change rate is large and decreased when the load change rate is small, ensuring that the power supply state matches the actual working state of the processor.

Benefits of technology

It improves the processor's efficiency, reduces the power supply voltage margin, lowers losses, and enables the power supply to operate at maximum efficiency while the processor runs at high performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116661575B_ABST
    Figure CN116661575B_ABST
Patent Text Reader

Abstract

This invention discloses a processor power supply method and apparatus, and a computer-readable storage medium. The method includes: acquiring changes in the number of instructions to be processed; adjusting the number of operating phases of a switching power supply according to the changes in the number of instructions, so as to control multiple BUCK circuits to work alternately according to the number of operating phases. Since multiple parallel BUCK circuits possess the characteristics of a high-frequency switching power supply, the transient response capability of the switching power supply can be improved, thereby reducing the supply voltage corresponding to each operating frequency level, reducing processor operating losses, and improving processor efficiency. At the same time, the power supply state of the switching power supply matches the actual operating state of the processor, further improving the efficiency of the switching power supply.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer equipment technology, and in particular to a processor power supply method and apparatus, and a computer-readable storage medium. Background Technology

[0002] Currently, most processor cores use switching power supplies, such as BUCK circuits, to power the processor core. Because the switching frequency of switching power supplies is relatively low (mostly 3MHz-6MHz), they have poor transient response to loads and often require a high margin of supply voltage to ensure stable and reliable operation of the processor. This leads to increased processor power consumption and lower efficiency. At the same time, switching power supplies cannot switch power supply states according to the actual operating state of the processor, resulting in energy waste and low efficiency. Summary of the Invention

[0003] This invention aims to at least partially solve one of the technical problems in related technologies. To this end, the first objective of this invention is to propose a processor power supply method that adjusts the number of operating phases of a switching power supply according to changes in the number of instructions to be processed. Based on the number of operating phases, multiple BUCK circuits are controlled to operate alternately. Since multiple parallel BUCK circuits possess the characteristics of a high-frequency switching power supply, the transient response capability of the switching power supply can be improved. This reduces the supply voltage corresponding to each operating frequency level, decreases processor operating losses, and improves processor efficiency. Simultaneously, the power supply state of the switching power supply matches the actual operating state of the processor, further enhancing the efficiency of the switching power supply.

[0004] A second objective of this invention is to provide a computer-readable storage medium.

[0005] The third objective of this invention is to provide a processor power supply device.

[0006] To achieve the above objectives, a first aspect of the present invention provides a processor power supply method, which supplies power to the processor through a switching power supply, the switching power supply including multiple parallel BUCK circuits, the method including: acquiring the instruction count change of the instructions to be processed; adjusting the number of working phases of the switching power supply according to the instruction count change, so as to control the multiple BUCK circuits to work alternately according to the number of working phases.

[0007] According to the processor power supply method of the present invention, the number of working phases of the switching power supply is adjusted according to the change in the number of instructions to be processed, so as to control multiple BUCK circuits to work alternately according to the number of working phases. Since multiple parallel BUCK circuits have the characteristics of high-frequency switching power supplies, the transient response capability of the switching power supply can be improved, thereby reducing the supply voltage corresponding to each working frequency level, reducing the processor's operating losses, improving the processor's working efficiency, and matching the power supply state of the switching power supply with the actual working state of the processor, thus improving the working efficiency of the switching power supply.

[0008] According to one embodiment of the present invention, obtaining the change in the number of instructions to be processed includes: obtaining the first number of instructions in the instruction queue at the current time and the second number of instructions in the instruction queue at the previous time; obtaining the difference between the first number of instructions and the second number of instructions; and obtaining the ratio between the difference and the second number of instructions to obtain the change in the number of instructions.

[0009] According to one embodiment of the present invention, adjusting the number of working phases of the switching power supply based on changes in the number of instructions includes: increasing the number of working phases of the switching power supply in response to a ratio greater than a positive preset threshold and the current number of working phases of the switching power supply being less than the total number of phases of the switching power supply; and decreasing the number of working phases of the switching power supply in response to a ratio less than a negative preset threshold and the current number of working phases of the switching power supply being greater than 1.

[0010] According to one embodiment of the present invention, before obtaining the change in the number of instructions to be processed, the method further includes: determining the processor load; and adjusting the processor's operating frequency according to the load.

[0011] According to one embodiment of the present invention, the method further includes: adjusting the number of operating phases of the switching power supply to one phase after adjusting the operating frequency of the processor.

[0012] According to one embodiment of the present invention, the method further includes: determining the power supply voltage of the processor according to the operating frequency, so as to control the duty cycle of the switching transistor in the BUCK circuit of each phase according to the power supply voltage, so that the BUCK circuit of each phase outputs the power supply voltage respectively.

[0013] According to one embodiment of the present invention, when the multi-phase BUCK circuit operates alternately, the switching frequency of the BUCK circuit operating in each phase is the same.

[0014] According to one embodiment of the present invention, the phase deviation of each working BUCK circuit is 360° / M, where M is the number of working phases.

[0015] To achieve the above objectives, a second aspect of the present invention provides a computer-readable storage medium storing a processor power supply program thereon, which, when executed by a processor, implements the aforementioned processor power supply method.

[0016] According to the computer-readable storage medium of the present invention, based on the aforementioned processor power supply method, the number of working phases of the switching power supply is adjusted according to the change in the number of instructions to be processed. Multiple BUCK circuits are controlled to work alternately based on the number of working phases. Since the multiple parallel BUCK circuits have the characteristics of a high-frequency switching power supply, the transient response capability of the switching power supply can be improved, thereby reducing the supply voltage corresponding to each operating frequency level, reducing the processor's operating losses, and improving the processor's operating efficiency. At the same time, the power supply state of the switching power supply matches the actual operating state of the processor, further improving the operating efficiency of the switching power supply.

[0017] To achieve the above objectives, a third aspect of the present invention provides a processor power supply device that supplies power to the processor via a switching power supply. The switching power supply includes multiple parallel BUCK circuits. The device includes: an acquisition module for acquiring changes in the number of instructions to be processed; and an adjustment module for adjusting the number of operating phases of the switching power supply according to the changes in the number of instructions, so as to control the multiple BUCK circuits to work alternately according to the number of operating phases.

[0018] According to the processor power supply device of the present invention, the number of working phases of the switching power supply is adjusted according to the change in the number of instructions to be processed, so as to control multiple BUCK circuits to work alternately according to the number of working phases. Since the multiple parallel BUCK circuits have the characteristics of high-frequency switching power supplies, the transient response capability of the switching power supply can be improved, thereby reducing the supply voltage corresponding to each working frequency level, reducing the processor's working loss, improving the processor's working efficiency, and matching the power supply state of the switching power supply with the actual working state of the processor, thus improving the working efficiency of the switching power supply.

[0019] Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description

[0020] Figure 1 This is a schematic diagram of the structure of a processor switching power supply according to an embodiment of the present invention;

[0021] Figure 2 This is a schematic flowchart of a processor power supply method according to an embodiment of the present invention;

[0022] Figure 3 for Figure 1The diagram shows the drive signal waveforms of the BUCK circuit in operation.

[0023] Figure 4 for Figure 1 A schematic diagram of the equivalent single-loop system of each phase BUCK circuit shown.

[0024] Figure 5 The waveforms show the processor's power supply voltage before and after improvement under load changes.

[0025] Figure 6 This is a block diagram of a processor power supply device according to an embodiment of the present invention. Detailed Implementation

[0026] Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain the present invention, and should not be construed as limiting the present invention.

[0027] It should be noted that, in the embodiments of the present invention, the processor is powered by a switching power supply, which includes multiple parallel BUCK circuits. That is, two or more parallel BUCK circuits can perform power conversion to output a supply voltage to power the processor.

[0028] As a concrete example, see reference Figure 1 As shown, the processor's power supply (i.e., switching power supply) may include four parallel BUCK circuits, denoted as Phase 1 BUCK circuit, Phase 2 BUCK circuit, Phase 3 BUCK circuit, and Phase 4 BUCK circuit. Phase 1 BUCK circuit includes a first switching transistor M11, a second switching transistor M12, and a first inductor L1. The first terminal of the first switching transistor M11 is connected to a DC power source (such as a battery), and the second terminal of the first switching transistor M11 is connected to the first terminal of the second switching transistor M12 and one terminal of the first inductor L1. The second terminal of the second switching transistor M12 is grounded, and the other terminal of the first inductor L1 is connected to the processor's power supply terminal. Phase 2 BUCK circuit includes a third switching transistor M21, a fourth switching transistor M22, and a second inductor L2. Phase 3 BUCK circuit includes a fifth switching transistor M31, a sixth switching transistor M32, and a third inductor L3. Phase 4 BUCK circuit includes a seventh switching transistor M41, an eighth switching transistor M42, and a fourth inductor L4. The specific circuit structure is as follows: Figure 1 As shown, details will not be repeated here. The power management chip is connected to the control terminals of the first switch M11 to the eighth switch M42 respectively. By controlling the conduction and shutdown of the first switch M11 to the eighth switch M42, it outputs the power supply voltage to power the processor.

[0029] It should be noted that, Figure 1 This is merely an illustrative example and is not intended to limit the scope of this application. For example, the number of phases may be reduced or increased, a filter inductor may be connected in parallel across the filter capacitor C, and the type of switching transistor is not limited, such as a MOSFET or an IGBT.

[0030] Figure 2 This is a schematic flowchart illustrating a processor power supply method according to an embodiment of the present invention. (See reference...) Figure 2 As shown, the processor power supply method may include the following steps:

[0031] Step S101: Obtain the change in the number of instructions to be processed.

[0032] It should be noted that the change in the number of instructions to be processed can be an increase or decrease in the number of instructions to be processed, or a percentage of that increase or decrease. Specifically, it can be the increase or decrease in the number of instructions in the instruction queue at the current moment compared to the number of instructions in the instruction queue at the previous moment, or the percentage of that increase or decrease in the number of instructions in the instruction queue at the previous moment. The percentage better reflects the degree of change in the number of instructions and facilitates the determination of the number of operating phases of the switching power supply; therefore, the percentage is preferred. In a specific embodiment, the processor can obtain the change in the number of instructions to be processed.

[0033] In some embodiments, obtaining the change in the number of instructions to be processed includes: obtaining the first number of instructions in the instruction queue at the current time and the second number of instructions in the instruction queue at the previous time; obtaining the difference between the first number of instructions and the second number of instructions; and obtaining the ratio between the difference and the second number of instructions to obtain the change in the number of instructions.

[0034] Specifically, the processor first obtains the number of instructions in the instruction queue at the current moment, denoted as the first instruction number K. n And obtain the number of instructions in the instruction queue at the previous moment, denoted as the second instruction number K. n-1 Then obtain the first instruction number K. n With the second instruction number K n-1 The difference K between n -K n-1 And calculate the difference K. n -K n-1 With the second instruction number K n-1 The ratio between (K) n -K n-1 ) / K n-1 The change in instructions is obtained. Due to the ratio (K) n -K n-1 ) / K n-1It reflects the proportion of the increase or decrease in the number of instructions at the current moment relative to the number of instructions at the previous moment, and therefore can truly reflect the degree of change in the number of instructions at the current moment.

[0035] Step S102: Adjust the number of working phases of the switching power supply according to the changes in the number of instructions, so as to control multiple BUCK circuits to work alternately according to the number of working phases.

[0036] It should be noted that when multiple BUCK circuits work alternately, each phase BUCK circuit can perform a switching switch once in each cycle. The multi-phase BUCK circuit is equivalent to performing multiple switching switches. When the switching frequency of each phase BUCK circuit is F, the overall effect is equivalent to the effect of a switching frequency of M*F (M is the number of working phases). This achieves an M-fold extension of the switching frequency of a single-phase power supply, reaching the performance of a high-frequency switching power supply. It has extremely fast voltage stabilization time and high transient response capability. At the same time, the switching frequency of each phase BUCK circuit is relatively low, reducing the switching losses caused by high switching frequencies.

[0037] Because the equivalent switching frequency produced by the alternating operation of BUCK circuits with different numbers of phases varies, the corresponding transient response capabilities also differ. Comparing transient response capabilities, a switching power supply with more operating phases generally exhibits the strongest performance, while a fewer operating phase results in poorer performance. Therefore, to achieve optimal operation for both the processor and the switching power supply, it is best to have more BUCK phases operating when the processor's load change rate is high, and fewer BUCK phases operating when the processor's load change rate is low. Specifically, the number of operating phases of the switching power supply can be adjusted by judging the change in the number of instructions pending processing in the instruction queue as a criterion for determining the load change rate. This involves increasing the number of operating phases when the load change rate is high to ensure high processor performance, and decreasing the number of operating phases when the load change rate is low to improve the power supply efficiency.

[0038] Specifically, after obtaining the change in the number of instructions to be processed through the aforementioned method, the processor can determine whether it is necessary to adjust the number of working phases of the switching power supply based on the change in the number of instructions. That is, it can determine whether it is necessary to adjust the number of working phases in the multiple parallel BUCK circuits. If adjustment is required, the processor determines the adjusted number of working phases of the switching power supply and sends the number of working phases to the power management chip through the communication line. The power management chip then controls the corresponding number of BUCK circuits to work alternately according to the number of working phases to output the supply voltage to power the processor.

[0039] For example, if the number of pending instructions increases significantly based on changes in the number of pending instructions, it indicates that the processor load will vary within a large range, meaning the load change rate is high. In this case, the number of operating phases of the switching power supply should be increased to improve the processor's transient response capability and ensure high-performance operation. Conversely, if the number of pending instructions decreases significantly based on changes in the number of pending instructions, it indicates that the processor load will vary within a small range, meaning the load change rate is low. In this case, the number of operating phases of the switching power supply should be decreased to reduce switching losses and improve power supply efficiency, rather than continuously controlling all phases of the switching power supply to work alternately. This would result in more phases of the BUCK circuit operating even when the processor load change rate is very low, causing additional switching losses in the switching power supply. This approach achieves high-performance operation of the processor while the switching power supply operates at maximum efficiency.

[0040] In some embodiments, adjusting the number of operating phases of the switching power supply according to changes in the number of instructions includes: increasing the number of operating phases of the switching power supply in response to a ratio greater than a positive preset threshold and the current number of operating phases of the switching power supply being less than the total number of phases of the switching power supply; and decreasing the number of operating phases of the switching power supply in response to a ratio less than a negative preset threshold and the current number of operating phases of the switching power supply being greater than 1.

[0041] It should be noted that the absolute values ​​of the positive and negative preset thresholds can be equal. For example, the positive preset threshold can be 50%, and the negative preset threshold can be -50%.

[0042] For example, when a processor receives instructions to be processed, the instruction changes such as the ratio (K) n -K n-1 ) / K n-1 Then, the current number of operating phases M of the switching power supply is obtained and compared with the value (K). n -K n-1 ) / K n-1 The ratio (K) is used to determine the number of working phases M. n -K n-1 ) / K n-1 If the number of working phases M is greater than 50% and less than the total number of phases of the switching power supply (i.e., the total number of BUCK circuits), it indicates that the number of instructions to be processed has increased significantly compared to the number of instructions at the previous moment. The processor load will vary within a large range, i.e., the load change rate is large. At the same time, the number of working phases of the switching power supply can continue to increase. Increasing the number of working phases of the switching power supply at this time improves the transient response capability of the switching power supply, enabling the processor to work stably and reliably even under a lower margin supply voltage. This reduces the processor's operating losses, improves its efficiency, and ensures that the processor works at high performance.

[0043] If the ratio (K) n -K n-1 ) / K n-1 If the voltage is less than -50% and the number of working phases M is greater than 1, it means that the number of instructions to be processed has decreased significantly compared to the number of instructions at the previous moment. The processor load will change within a small range, i.e., the load change rate is small. At the same time, the number of working phases of the switching power supply can be further reduced. At this time, reducing the number of working phases of the switching power supply can ensure that the processor can work stably and reliably under a low margin supply voltage, since the load change rate is small and the required transient response capability is not high. Therefore, even if the number of working phases is reduced, the processor can still work stably and reliably. This not only reduces the processor's operating losses, but also reduces the switching losses due to the reduced number of working phases of the switching power supply, thereby improving the power supply efficiency of the switching power supply. This achieves high-performance operation of the processor while the switching power supply operates at maximum efficiency.

[0044] It should be noted that if the ratio is greater than or equal to a negative preset threshold and less than or equal to a positive preset threshold, the number of operating phases of the switching power supply will remain unchanged. For example, if the ratio (K) n -K n-1 ) / K n-1 If the percentage is greater than or equal to -50% and less than 50%, then the number of operating phases M of the switching power supply remains unchanged.

[0045] Optionally, in some embodiments, when increasing / decreasing the number of operating phases of the switching power supply, only one phase can be added / removed based on the current number of operating phases M, i.e., the increase / decrease in phase number is 1 phase. For example, when the current number of operating phases M is 2 phases, if the ratio (K) n -K n-1 ) / K n-1 If the ratio is greater than 50%, the number of working phases will be increased to 3; if the ratio (K) n -K n-1 ) / K n-1 If the power consumption is less than -50%, the number of operating phases is reduced to one. This method allows the power supply status of the switching power supply to match the actual operating status of the processor, achieving high-performance operation of the processor while the switching power supply operates at maximum efficiency.

[0046] In other embodiments, when increasing / decreasing the number of operating phases of the switching power supply, the increase / decrease can be based on the current number of operating phases M, according to the ratio (K). n -K n-1 ) / K n-1The magnitude of the change increases or decreases the number of phases accordingly. Specifically, the ratio can be divided into multiple intervals, each interval corresponding to an increase or decrease in the number of phases. For example, if 50% to 75% is considered as one interval, the corresponding increase in the number of phases is 1 phase; if 75% to 100% is considered as one interval, the corresponding increase in the number of phases is 2 phases; if -50% to -75% is considered as one interval, the corresponding decrease in the number of phases is 1 phase; and if -75% to -100% is considered as one interval, the corresponding decrease in the number of phases is 2 phases.

[0047] In practical applications, assuming the current number of working phases M is 1 phase, if the ratio (K) n -K n-1 ) / K n-1 If the ratio is greater than 50% and less than 70%, then the number of working phases should be increased to 2; if the ratio (K) n -K n-1 ) / K n-1 If the ratio is greater than 70% but less than 100%, the number of operating phases will be increased to 3. For example, assuming the current number of operating phases M is 4, if the ratio (K...) n -K n-1 ) / K n-1 If the ratio is less than -50% and greater than -70%, the number of working phases will be reduced to 3; if the ratio (K) n -K n-1 ) / K n-1 If the power consumption is less than -70% and greater than -100%, the number of operating phases is reduced to 2. This further improves the matching degree between the power supply status of the switching power supply and the actual operating status of the processor, achieving high-performance operation of the processor while further improving the power supply efficiency of the switching power supply.

[0048] In the above embodiments, the number of working phases of the switching power supply is adjusted according to the change in the number of instructions to be processed, so as to control multiple BUCK circuits to work alternately according to the number of working phases. Since multiple parallel BUCK circuits have the characteristics of high-frequency switching power supplies, the transient response capability of the switching power supply can be improved, thereby reducing the supply voltage corresponding to each working frequency level, reducing the processor's operating losses, and improving the processor's working efficiency. At the same time, the power supply state of the switching power supply matches the actual working state of the processor, so that the switching power supply works in the most efficient way in each state of the processor, thereby achieving high-performance operation of the processor while the switching power supply works at maximum efficiency.

[0049] In some embodiments, before obtaining the change in the number of instructions to be processed, the processor power supply method further includes: determining the processor load; and adjusting the processor operating frequency according to the load.

[0050] It should be noted that the processor's operating frequency refers to the clock speed at which the processor core operates, which can be determined based on the processor's workload. The processor's workload mainly refers to the number of instructions and tasks contained in the threads to be processed, including the number of instructions and the complexity of the task. More instructions and a higher workload result in a heavier processor load and a higher operating frequency; fewer instructions and a lower workload result in a lighter processor load and a lower operating frequency.

[0051] For example, during processor operation, the processor obtains the number of instructions to be processed at the current or next moment and determines the required operating frequency based on this number. For instance, the number of instructions can be divided into intervals, each corresponding to a specific operating frequency. After obtaining the number of instructions to be processed at the current or next moment, the processor can determine which interval it falls within and thus obtain the corresponding operating frequency. Alternatively, the percentage of instructions (i.e., the ratio of the number of instructions at the current or next moment to the total number of instructions) can be divided into intervals, each corresponding to a specific operating frequency. After obtaining the number of instructions to be processed at the current or next moment, the processor calculates the ratio of this ratio to the total number of instructions, determines the interval within which the ratio falls, and thus obtains the corresponding operating frequency.

[0052] As another example, during processor operation, the processor obtains the workload of the instructions to be processed at the current or next moment, and determines the required operating frequency for the current or next moment based on the workload. The workload can be reflected by the average current consumed by the processor per cycle; that is, the processor can determine its operating frequency based on the average current consumed per cycle, where a higher average current results in a higher operating frequency.

[0053] As another example, during the processor's operation, if the processor can obtain the core utilization rate, the operating frequency can also be determined based on the core utilization rate, where the higher the core utilization rate, the higher the operating frequency.

[0054] It should be noted that in practical applications, any two or three of the above methods can be combined to determine the processor's load, thereby improving the accuracy of load assessment and consequently improving the accuracy of the operating frequency, making it more consistent with the processor's actual load requirements.

[0055] Furthermore, after adjusting the processor's operating frequency, the number of operating phases of the switching power supply is adjusted to one phase.

[0056] In other words, when the processor's operating frequency changes, the number of working phases of the switching power supply is first adjusted to 1 phase as the initial state after the operating frequency adjustment, so as to minimize the switching loss of the switching power supply and improve the power supply efficiency.

[0057] Furthermore, as a concrete example, during operation, the processor acquires its own load status in real time and determines whether its operating frequency needs adjustment based on the load. If adjustment is needed, the processor determines the adjusted operating frequency and operates at the adjusted frequency. Simultaneously, it sets the number of operating phases M of the switching power supply to 1 and sends a phase adjustment command to the power management chip via the communication line. The power management chip then controls one phase of the multi-phase BUCK circuit to operate, for example, controlling the first phase of the BUCK circuit to operate. Subsequently, the processor periodically acquires the number of instructions pending processing in the instruction queue and the number of operating phases M of the power supply at the same time, and performs a comparison between the number of instructions and the number of operating phases M. If (K... n -K n-1 ) / K n-1 If the percentage is greater than 50% and the number of working phases M = 1, then the number of working phases M is adjusted to 2, and a phase adjustment command is sent to the power management chip. The power management chip controls two phases in the multi-phase BUCK circuit to work alternately according to the phase adjustment command. For example, it can control the first phase BUCK circuit and the second phase BUCK circuit to work alternately. If (K n -K n-1 ) / K n-1 If the voltage is less than -50% and the number of operating phases M = 2, then the number of operating phases M is adjusted to 1, and a phase adjustment command is sent to the power management chip. The power management chip controls one phase of the multi-phase BUCK circuit to operate according to the phase adjustment command; for example, it can control the first phase of the BUCK circuit to operate. If (K n -K n-1 ) / K n-1 If the percentage is greater than or equal to -50% and less than or equal to 50%, then the number of working phases M remains unchanged.

[0058] In the above embodiments, the processor's operating frequency is determined according to the load conditions so that the processor's operating frequency can meet the actual load requirements. At the same time, after the frequency is adjusted, the switching power supply is first operated with one phase to reduce the switching loss of the switching power supply and improve the power supply efficiency. Then, the number of operating phases of the switching power supply is adjusted according to the increase or decrease of the number of instructions to be processed, so as to improve the power supply efficiency of the switching power supply while the processor is running at high performance.

[0059] In some embodiments, the processor power supply method further includes: determining the processor's power supply voltage according to the operating frequency, so as to control the duty cycle of the switching transistors in each phase of the BUCK circuit according to the power supply voltage, so that each phase of the BUCK circuit outputs the power supply voltage respectively.

[0060] It should be noted that the processor's operating frequency is positively correlated with the supply voltage; that is, the higher the operating frequency, the higher the supply voltage. As shown in Table 1, each operating frequency corresponds to a supply voltage, and the supply voltage increases with the increase of the operating frequency.

[0061] Table 1

[0062] processor operating frequency Power supply voltage 2.34GHz 1.12V 2.3GHz 1.09 2.26GHz 1.06 2.22GHz 1.04 2.17GHz 1.01 2.1GHz 0.98 2.02GHz 0.95 1.96GHz 0.91 1.83GHz 0.88 1.66GHz 0.84 1.46GHz 0.8 1.31GHz 0.76 1.15GHz 0.73 1GHz 0.7 0.76GHz 0.65 0.52GHz 0.6

[0063] In practical applications, Table 1 can be stored in the processor. After obtaining the operating frequency, the processor can obtain the supply voltage by looking up the table and send the supply voltage to the power management chip. The power management chip determines the duty cycle of each phase BUCK circuit based on the supply voltage (the duty cycle is the ratio of the supply voltage to the input voltage of multiple BUCK circuits) and controls the output supply voltage of each phase BUCK circuit according to the duty cycle.

[0064] In some embodiments, when the multi-phase BUCK circuits operate alternately, the switching frequency of each operating BUCK circuit is the same. The phase deviation of each operating BUCK circuit is 360° / M, where M is the number of operating phases.

[0065] Specifically, after the processor obtains the number of working phases M and the supply voltage of the switching power supply through the aforementioned method, it can send the number of working phases M and the supply voltage to the power management chip through the communication line. The power management chip determines the BUCK circuit that needs to be operated based on the number of working phases M, and determines the duty cycle of each phase BUCK circuit based on the supply voltage. Assuming that the number of working phases M is 4 phases, the drive signal frequency of these M phase BUCK circuits can be made to be the same (i.e., the switching frequency is the same), and the phases can be staggered by 360° / M.

[0066] Figure 3 The following are the drive signal waveforms of the upper transistor in each phase of the BUCK circuit when M*D (D is the duty cycle of the drive signal) is an integer. Figure 3 It can be seen that each phase BUCK circuit performs one switching switch in each cycle, and the 4-phase BUCK circuit is equivalent to performing 4 switching switches. When the switching frequency of each phase BUCK circuit is F, the overall effect is equivalent to the effect of a switching frequency of M*F (where M is 4), realizing an M-fold extension of the single-phase power supply switching frequency, achieving the performance of a high-frequency switching power supply, with extremely fast voltage stabilization time and high transient response capability. At the same time, the low switching frequency of each phase BUCK circuit reduces the switching losses caused by high switching frequencies, ensuring the performance of a high-frequency switching power supply while improving the efficiency of the power supply.

[0067] Figure 4An equivalent single-loop system for each phase BUCK circuit is presented. In this system, the power management chip acquires the voltage difference between the target supply voltage VOUTS and the actual supply voltage VOUT, and inputs this voltage difference to the voltage regulator Gc(S). After regulation by the voltage regulator Gc(S), the voltage reference signal Vcp is obtained. The inner voltage loop is considered as an equivalent power stage, with its inputs being the voltage reference signal Vcp and the DC power supply voltage VIN, and its output being the supply voltage VOUT. This equivalent single-loop system has a faster response speed, improving the loop response speed of each phase BUCK circuit and further reducing the voltage settling time.

[0068] As a concrete example, assuming the processor operates at a frequency of 2.34GHz with a supply voltage of 1.12V, and the number of operating phases M of the switching power supply is determined to be 4 phases based on the changing number of instructions to be processed, then the power management chip will control... Figure 1 A 4-phase BUCK circuit is used, with the turn-on times of the upper transistors (M11, M21, M31, and M41) in each phase of the BUCK circuit differing by 90°. The switching frequency and duty cycle of each phase of the BUCK circuit are obtained based on the 1.12V supply voltage, and each phase of the BUCK circuit is controlled based on these frequencies to output the supply voltage. Assuming the switching frequency of each phase of the BUCK circuit is F (F≥3MHz), the voltage settling time, output current ripple, and output voltage ripple are comparable to those of a BUCK circuit with a 4F switching frequency. Furthermore, each phase of the BUCK circuit only incurs switching losses at frequency F, which is far less than the switching losses at a 4F switching frequency. Figure 5 As shown, when the switching frequency of each phase BUCK circuit is 3MHz, under the same load change rate, the supply voltage is reduced by 5% compared to the 3MHz switching frequency. Similarly, the supply voltage at each operating frequency of the processor can be reduced by 5%, thereby reducing the processor's operating losses and improving the processor's operating efficiency.

[0069] When the number of operating phases M of the switching power supply is determined to be 1 phase based on the change in the number of instructions to be processed, the power management chip will control... Figure 1The single-phase BUCK circuit operates, and its switching frequency and duty cycle are obtained based on the 1.12V supply voltage. This switching frequency and duty cycle are then used to control the BUCK circuit and output the supply voltage. Although the transient response capability of the switching power supply decreases at this time, the load change rate also decreases. Therefore, the transient response capability of the switching power supply can still meet the processor's load change rate. Furthermore, since the switching power supply operates with only one phase, its switching loss is only 1 / 4 of that of a four-phase BUCK circuit operating simultaneously. This effectively reduces the switching loss of the switching power supply, improves power supply efficiency, and enables the power supply to operate at maximum efficiency while the processor operates at high performance.

[0070] In summary, the processor power supply method according to embodiments of the present invention, by utilizing the characteristics of a high-frequency switching power supply provided by multiple parallel BUCK circuits, can improve the transient response capability of the switching power supply, thereby reducing the supply voltage corresponding to each operating frequency level, reducing processor operating losses, and improving processor efficiency. Simultaneously, by acquiring the real-time changes in the number of instructions to be processed, the number of operating phases of the switching power supply is determined based on these changes, ensuring that the power supply state of the switching power supply matches the actual operating state of the processor. This avoids the additional switching losses caused by all phase BUCK circuits operating simultaneously in all operating states, which would result in low efficiency for both the processor and the switching power supply. Thus, the processor operates at high performance while the power supply operates at maximum efficiency.

[0071] Embodiments of the present invention also provide a computer-readable storage medium storing a processor power supply program thereon, which, when executed by a processor, implements the aforementioned processor power supply method.

[0072] According to the computer-readable storage medium of the present invention, based on the aforementioned processor power supply method, the number of working phases of the switching power supply is adjusted according to the change in the number of instructions to be processed. Multiple BUCK circuits are controlled to work alternately based on the number of working phases. Since the multiple parallel BUCK circuits have the characteristics of a high-frequency switching power supply, the transient response capability of the switching power supply can be improved, thereby reducing the supply voltage corresponding to each operating frequency level, reducing the processor's operating losses, and improving the processor's operating efficiency. At the same time, the power supply state of the switching power supply matches the actual operating state of the processor, further improving the operating efficiency of the switching power supply.

[0073] Figure 6 This is a block diagram of a processor power supply device according to an embodiment of the present invention. The processor is powered by a switching power supply, which includes multiple parallel BUCK circuits.

[0074] refer to Figure 6As shown, the processor power supply device includes: an acquisition module 10 and an adjustment module 20. The acquisition module 10 is used to acquire the change in the number of instructions to be processed; the adjustment module 20 is used to adjust the number of working phases of the switching power supply according to the change in the number of instructions, so as to control multiple BUCK circuits to work alternately according to the number of working phases.

[0075] According to one embodiment of the present invention, the acquisition module 10 is specifically used to: acquire the first instruction count in the instruction queue at the current time and the second instruction count in the instruction queue at the previous time; acquire the difference between the first instruction count and the second instruction count; and acquire the ratio between the difference and the second instruction count to obtain the change in the instruction count.

[0076] According to one embodiment of the present invention, the adjustment module 20 is specifically configured to: increase the number of working phases of the switching power supply in response to a ratio greater than a positive preset threshold and the current number of working phases of the switching power supply being less than the total number of phases of the switching power supply; and decrease the number of working phases of the switching power supply in response to a ratio less than a negative preset threshold and the current number of working phases of the switching power supply being greater than 1.

[0077] According to an embodiment of the present invention, the acquisition module 10 is further configured to: determine the processor load condition before acquiring the instruction number change of the instruction to be processed; the adjustment module 20 is further configured to: adjust the processor operating frequency according to the load condition.

[0078] According to one embodiment of the present invention, the adjustment module 20 is further configured to: adjust the number of working phases of the switching power supply to one phase after adjusting the operating frequency of the processor.

[0079] According to one embodiment of the present invention, the adjustment module 20 is further configured to: determine the power supply voltage of the processor according to the operating frequency, so as to control the duty cycle of the switching transistor in the BUCK circuit of each phase according to the power supply voltage, so that the BUCK circuit of each phase outputs the power supply voltage respectively.

[0080] According to one embodiment of the present invention, when the multi-phase BUCK circuit operates alternately, the switching frequency of the BUCK circuit operating in each phase is the same.

[0081] According to one embodiment of the present invention, the phase deviation of each working BUCK circuit is 360° / M, where M is the number of working phases.

[0082] According to the processor power supply device of the present invention, the number of working phases of the switching power supply is adjusted according to the change in the number of instructions to be processed, so as to control multiple BUCK circuits to work alternately according to the number of working phases. Since the multiple parallel BUCK circuits have the characteristics of high-frequency switching power supplies, the transient response capability of the switching power supply can be improved, thereby reducing the supply voltage corresponding to each working frequency level, reducing the processor's working loss, improving the processor's working efficiency, and matching the power supply state of the switching power supply with the actual working state of the processor, thus improving the working efficiency of the switching power supply.

[0083] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.

[0084] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0085] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0086] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this invention, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0087] In this invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," "linking," and "fixing," etc., should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components, unless otherwise explicitly limited. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.

[0088] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.

Claims

1. A processor power supply method, characterized in that, The processor is powered by a switching power supply, the switching power supply including multiple parallel BUCK circuits, the method comprising: Obtain the change in the number of instructions to be processed; The number of operating phases of the switching power supply is adjusted according to the changes in the number of instructions, so as to control multiple BUCK circuits to work alternately according to the number of operating phases; Before obtaining the change in the number of instructions to be processed, the method further includes: The load condition of the processor is determined based on at least two of the following: the core utilization of the processor, the number of instructions to be processed by the processor at the current time or the next time, and the workload of the instructions to be processed by the processor at the current time or the next time. Adjust the processor's operating frequency according to the load conditions; The method further includes: After adjusting the processor's operating frequency, the number of operating phases of the switching power supply is adjusted to one phase.

2. The processor power supply method according to claim 1, characterized in that, The change in the number of instructions to be processed includes: Get the first instruction count in the instruction queue at the current time and the second instruction count in the instruction queue at the previous time; Obtain the difference between the first number of instructions and the second number of instructions; The change in the number of instructions can be obtained by comparing the difference with the second number of instructions.

3. The processor power supply method according to claim 2, characterized in that, The step of adjusting the number of operating phases of the switching power supply according to the changes in the number of instructions includes: In response to the ratio being greater than a preset positive threshold and the current number of operating phases of the switching power supply being less than the total number of phases of the switching power supply, the number of operating phases of the switching power supply is increased; In response to the ratio being less than a preset negative threshold and the current number of operating phases of the switching power supply being greater than 1, the number of operating phases of the switching power supply is reduced.

4. The processor power supply method according to any one of claims 1-3, characterized in that, The method further includes: The power supply voltage of the processor is determined based on the operating frequency, and the duty cycle of the switching transistors in the BUCK circuit of each phase is controlled according to the power supply voltage, so that the BUCK circuit of each phase outputs the power supply voltage respectively.

5. The processor power supply method according to claim 4, characterized in that, When a multi-phase BUCK circuit operates alternately, the switching frequency of the BUCK circuit operating in each phase is the same.

6. The processor power supply method according to claim 5, characterized in that, The phase deviation of each working BUCK circuit is 360° / M, where M is the number of working phases.

7. A computer-readable storage medium, characterized in that, It stores a processor power supply program, which, when executed by the processor, implements the processor power supply method according to any one of claims 1-6.

8. A processor power supply device, characterized in that, The processor is powered by a switching power supply, the switching power supply including multiple parallel BUCK circuits, and the device includes: The acquisition module is used to acquire information on changes in the number of instructions to be processed. An adjustment module is used to adjust the number of working phases of the switching power supply according to the changes in the number of instructions, so as to control multiple BUCK circuits to work alternately according to the number of working phases; The acquisition module is further configured to: determine the load condition of the processor before acquiring the change in the number of instructions to be processed, the load condition being determined based on at least two of the following: the core occupancy of the processor, the number of instructions to be processed by the processor at the current time or the next time, and the task load of the instructions to be processed by the processor at the current time or the next time. The adjustment module is also used to: adjust the operating frequency of the processor according to the load conditions; The adjustment module is also used to: after adjusting the operating frequency of the processor, adjust the number of operating phases of the switching power supply to one phase.

Citation Information

Patent Citations

  • Power supply management method and power supply management system for multi-core CPU (central processing unit) and CPU

    CN102955549A

  • Improved efficiency of a multiphase switching power supply during low power mode

    CN1451201A