Power supply voltage adjusting method, device, equipment and medium

CN118939057AActive Publication Date: 2024-11-12INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411037619.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-11-12
Estimated Expiration
2044-07-31

AI Technical Summary

Technical Problem

In the prior art, the integrated circuit ignores the voltage drop of the sub-power supply voltage, which causes the sub-power supply voltage to fluctuate when the main power supply voltage changes, and there is a problem of the sub-power supply voltage being too high or too low, which affects the normal operation of the circuit.

Method used

By obtaining the voltage values ​​of the main power supply and the sub-power supply, calculate the voltage margin of each sub-power supply, and compare it with the margin threshold, the main power supply voltage is automatically adjusted according to the comparison results to ensure the stability of all power supply.

Benefits of technology

Automatic adjustment of all power supply power supplies of the load circuit is realized, reducing the risk of machine abnormality caused by high or low sub-power supply voltage, and ensuring the normal operation of the machine.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118939057A_ABST
    Figure CN118939057A_ABST
Patent Text Reader

Abstract

The invention discloses a power supply voltage adjusting method and device, equipment and a medium, and belongs to the technical field of power supplies, and the method comprises the steps: obtaining the voltage values of a main power supply and a plurality of sub power supplies; obtaining a margin threshold value; setting the voltage value of the main power supply as a standard voltage; calculating the voltage margin of each sub-power supply according to the standard voltage and the voltage values of the plurality of sub-power supplies; comparing the voltage margin of each sub power supply with the margin threshold value; in response to the condition that the voltage margin of at least one sub-power supply is greater than or equal to a margin threshold value, determining a voltage regulation value of the main power supply according to comparison calculation of the voltage margins of the plurality of sub-power supplies and the margin threshold value; and automatically adjusting the power supply voltage through the controller and the main power supply voltage adjusting value. According to the invention, detection and automatic adjustment of all the power supplies of the load circuit can be realized, and the risk of machine abnormity caused by too high or too low voltage of the sub-power supply is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of power supply technology, and in particular to a power supply voltage regulation method, device, equipment and medium. Background Art

[0002] At present, integrated circuits generally require multiple different power supplies to meet working requirements. However, due to limited board space, for power supplies with different power supply pins but the same voltage value, multiple power supplies will be combined into one power supply as the main power supply on the premise of meeting the timing requirements. The sub-power supply is separated from the main power supply by magnetic beads or inductors for power supply. However, since this method has only one power module, there is only one voltage feedback point and often only the voltage feedback adjustment is performed on the position of the main power, ignoring the voltage drop effect of other sub-power supply voltages. That is, when the main power supply voltage changes, the sub-power supply voltage will also fluctuate, and there is a risk that the sub-power supply voltage is too high or too low, causing the circuit to fail to work normally. Therefore, it is very necessary to develop a method that can meet all power supply requirements and can automatically adjust the main power voltage. Summary of the invention

[0003] In order to overcome the above technical defects, the purpose of the present application is to provide a power supply voltage adjustment method, device, equipment and medium, the method comprising: obtaining the voltage values ​​of the main power supply and several sub-power supplies; obtaining the margin threshold; setting the voltage value of the main power supply to the standard voltage; calculating the voltage margin of each sub-power supply according to the standard voltage and the voltage values ​​of several sub-power supplies; comparing the voltage margin of each sub-power supply with the margin threshold; in response to the voltage margin of at least one sub-power supply being greater than or equal to the margin threshold, determining the main power supply voltage adjustment value according to the voltage margin of the several sub-power supplies and the margin threshold comparison calculation; automatically adjusting the power supply voltage through the controller and the main power supply voltage adjustment value. The present application can realize the detection and automatic adjustment of all power supplies of the load circuit, reducing the risk of machine abnormality caused by high or low sub-power supply voltage.

[0004] The specific technical solutions provided by the embodiments of this application are as follows:

[0005] In a first aspect, the present application provides a power supply voltage regulation method, the method is applied to a power supply voltage regulation system, the system includes a load circuit, an analog-to-digital conversion circuit, a controller, a main power supply and a plurality of sub-power supplies, the output end of the main power supply is connected to the input end of each sub-power supply, the first output end of each sub-power supply is connected to the input end of the load circuit, the second output end of each sub-power supply is connected to the input end of the analog-to-digital conversion circuit, the output end of the analog-to-digital conversion circuit is connected to the input end of the controller, and the output end of the controller is connected to the input end of the main power supply, the method includes:

[0006] Obtaining voltage values ​​of the main power supply and several sub-power supplies through the analog-to-digital conversion circuit; obtaining a margin threshold;

[0007] Setting the voltage value of the main power supply to a standard voltage;

[0008] Calculating a voltage margin of each sub-power supply according to the standard voltage and voltage values ​​of a plurality of sub-power supplies;

[0009] Comparing the voltage margin of each sub-power supply with the margin threshold;

[0010] In response to a voltage margin of at least one sub-power supply being greater than or equal to a margin threshold, a main power supply voltage adjustment value is determined by comparing and calculating the voltage margins of the plurality of sub-power supplies and the margin threshold, wherein the main power supply voltage adjustment value includes a first voltage adjustment value and a second voltage adjustment value;

[0011] The power supply voltage is automatically adjusted by the controller and the main power supply voltage adjustment value.

[0012] In one embodiment, before obtaining the voltage values ​​of the main power supply and the plurality of sub-power supplies through the analog-to-digital conversion circuit, the process includes:

[0013] Marking each acquisition channel of the analog-to-digital conversion circuit, and making the voltage value acquired by each acquisition channel correspond to each sub-power supply;

[0014] Sub-power supplies with the same power-on sequence are grouped into the same main power supply group.

[0015] In one embodiment, the step of calculating the voltage margin of each sub-power supply according to the standard voltage and voltage values ​​of a plurality of sub-power supplies includes:

[0016] The voltage margin of each sub-power supply is calculated by the formula: sub-power supply voltage margin = (sub-power supply voltage value - standard voltage) / standard voltage.

[0017] In one embodiment, the step of determining the main power supply voltage adjustment value by comparing and calculating the voltage margins of the plurality of sub-power supplies and the margin thresholds includes:

[0018] When the voltage value of any sub-power supply is less than the standard voltage and the absolute value of the voltage margin of the sub-power supply is greater than the margin threshold, a first voltage margin difference is obtained by comparing and calculating the voltage margins of the sub-power supplies;

[0019] The step of calculating and obtaining a first voltage margin difference by comparing the voltage margins of the sub-power supplies includes:

[0020] Obtaining voltage margins of several sub-power supplies whose voltage values ​​are less than the standard voltage;

[0021] Determining a first voltage margin by comparing the voltage margins of the plurality of sub-power supplies whose voltage values ​​are less than the standard voltage;

[0022] The first voltage margin difference is calculated by the formula: first voltage margin - margin threshold = first voltage margin difference;

[0023] Obtaining voltage margins of several sub-power supplies whose voltage values ​​are greater than the standard voltage;

[0024] Determining a second voltage margin by comparing the voltage margins of the plurality of sub-power supplies whose voltage values ​​are greater than the standard voltage;

[0025] The third voltage margin is calculated by the formula: second voltage margin + first voltage margin difference = third voltage margin;

[0026] Determining whether the third voltage margin is less than or equal to a margin threshold;

[0027] The judging whether the third voltage margin is less than or equal to a margin threshold comprises:

[0028] Determining whether the third voltage margin is less than or equal to a margin threshold;

[0029] In response to the third voltage margin being less than or equal to the margin threshold, the first voltage adjustment value is calculated by the formula: first voltage adjustment value=standard voltage+first voltage margin difference×standard voltage.

[0030] In one embodiment, the step of determining the voltage adjustment value of the main power supply by comparing and calculating the voltage margins of the plurality of sub-power supplies and the margin thresholds further includes:

[0031] When the voltage value of any sub-power supply is greater than the standard voltage and the absolute value of the voltage margin of the sub-power supply is greater than the margin threshold, a second voltage margin difference is obtained by comparing and calculating the voltage margins of the sub-power supplies;

[0032] The step of calculating and obtaining a second voltage margin difference by comparing the voltage margins of the sub-power supplies includes:

[0033] Obtaining voltage margins of several sub-power supplies whose voltage values ​​are greater than the standard voltage;

[0034] Determining a fourth voltage margin by comparing the voltage margins of the plurality of sub-power supplies whose voltage values ​​are greater than the standard voltage;

[0035] The second voltage margin difference is calculated by the formula: fourth voltage margin - margin threshold = second voltage margin difference;

[0036] Obtaining voltage margins of several sub-power supplies whose voltage values ​​are less than the standard voltage;

[0037] Determining a fifth voltage margin by comparing the voltage margins of the plurality of sub-power supplies whose voltage values ​​are less than the standard voltage;

[0038] The sixth voltage margin is calculated by the formula: fifth voltage margin - second voltage margin difference = sixth voltage margin;

[0039] Determining whether the sixth voltage margin is less than or equal to a margin threshold;

[0040] The judging whether the sixth voltage margin is less than or equal to a margin threshold comprises:

[0041] Determining whether the sixth voltage margin is less than or equal to a margin threshold;

[0042] In response to the sixth voltage margin being less than or equal to the margin threshold, the second voltage adjustment value is calculated by the formula: second voltage adjustment value=standard voltage-second voltage margin difference×standard voltage.

[0043] In one embodiment, the controller includes a register, and after the power supply voltage is automatically adjusted by the controller and the main power supply voltage adjustment value, the following steps are performed:

[0044] Obtaining an output voltage value of the register;

[0045] Determine whether the output voltage value of the register is a main power supply voltage adjustment value;

[0046] If yes, record the modification log; if no, modify the output voltage value of the register to the main power supply voltage adjustment value again according to the first preset number of times, and judge whether the output voltage value of the register is successfully modified;

[0047] In response to the output voltage value of the register being unsuccessfully modified, an early warning is issued and the modification is performed manually.

[0048] In one embodiment, the system further includes a baseboard management controller, a programmable logic device and an LED indicator light, the output end of the analog-to-digital conversion circuit is connected to the input end of the baseboard management controller, the first output end of the baseboard management controller is connected to the input end of the controller, the second output end of the baseboard management controller is connected to the input end of the programmable logic device, and the output end of the programmable logic device is connected to the LED indicator light, and the method further includes:

[0049] In response to the third voltage margin or the sixth voltage margin being greater than a margin threshold, manually adjusting the power supply voltage by the controller;

[0050] In response to the voltage margins of all sub-power supplies being less than the margin threshold, the adjustment process is terminated, and the voltage values ​​of the main power supply and each sub-power supply are recorded;

[0051] In response to the voltage margin of any sub-power supply being greater than a margin threshold, the baseboard management controller records an abnormal log, and the programmable logic device controls the LED indicator to send out an alarm signal.

[0052] In a second aspect, the present application further provides a power supply voltage regulation device, which is applied to a power supply voltage regulation system, wherein the system includes a load circuit, an analog-to-digital conversion circuit, a controller, a main power supply, and a plurality of sub-power supplies, wherein the output end of the main power supply is connected to the input end of each sub-power supply, the first output end of each sub-power supply is connected to the input end of the load circuit, the second output end of each sub-power supply is connected to the input end of the analog-to-digital conversion circuit, the output end of the analog-to-digital conversion circuit is connected to the input end of the controller, and the output end of the controller is connected to the input end of the main power supply, wherein the device includes:

[0053] An acquisition module, used to acquire voltage values ​​of the main power supply and several sub-power supplies through the analog-to-digital conversion circuit; and acquire a margin threshold value;

[0054] A setting module, used for setting the voltage value of the main power supply to a standard voltage;

[0055] A calculation module, configured to calculate a voltage margin of each sub-power supply according to the standard voltage and the voltage values ​​of the plurality of sub-power supplies; in response to the voltage margin of at least one sub-power supply being greater than or equal to a margin threshold, a main power supply voltage adjustment value is determined by comparing and calculating the voltage margins of the plurality of sub-power supplies with the margin threshold, wherein the main power supply voltage adjustment value includes a first voltage adjustment value and a second voltage adjustment value;

[0056] A comparison module, used for comparing the voltage margin of each sub-power supply with the margin threshold;

[0057] The regulating module is used to automatically regulate the power supply voltage through the controller and the main power supply voltage regulation value.

[0058] In a third aspect, a power supply voltage regulating device is also provided, comprising:

[0059] one or more processors;

[0060] A storage device for storing one or more programs;

[0061] When the one or more programs are executed by the one or more processors, the one or more processors implement the power supply voltage regulation method as described in any one of the first aspects.

[0062] In a fourth aspect, the present application further provides a computer device, the device comprising:

[0063] A memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the power supply voltage regulation method as described in any one of the first aspects.

[0064] In a fifth aspect, the present application further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of any power supply voltage regulation method described in the first aspect.

[0065] In a sixth aspect, the present application further provides a computer storage medium, the medium comprising:

[0066] A computer program is stored thereon, and when the computer program is executed by a processor, the steps of any power supply voltage regulation method described in the first aspect are implemented.

[0067] Compared with the prior art, the method described in the technical solution provided in the embodiment of the present application includes: obtaining the voltage values ​​of the main power supply and several sub-power supplies; obtaining the margin threshold; setting the voltage value of the main power supply to the standard voltage; calculating the voltage margin of each sub-power supply according to the standard voltage and the voltage values ​​of several sub-power supplies; comparing the voltage margin of each sub-power supply with the margin threshold; in response to the voltage margin of at least one sub-power supply being greater than or equal to the margin threshold, determining the main power supply voltage adjustment value according to the voltage margin of the several sub-power supplies and the margin threshold comparison calculation; automatically adjusting the power supply voltage through the controller and the main power supply voltage adjustment value. The present application can realize the detection and automatic adjustment of all power supplies of the load circuit, so that the power supply can supply power to the load more flexibly and accurately, reducing the risk of machine abnormality caused by high or low sub-power supply voltage, and ensuring the normal operation of the machine.

[0068] The technical solution provided in the embodiment of the present application has developed a method that can detect, calculate, balance the voltages of all load power supplies (including main power supplies and sub-power supplies) and automatically adjust the main power supply voltage, thereby realizing the detection and automatic adjustment of the circuit power supply voltage; at the same time, it can realize automatic balancing and adjustment of all power supply voltages of the load circuit based on the baseboard management controller to avoid machine failure. BRIEF DESCRIPTION OF THE DRAWINGS

[0069] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0070] Figure 1 A structural diagram of a power supply voltage regulation system provided in Embodiment 1 of the present application;

[0071] Figure 2 A first flow chart of the power supply voltage regulation method provided in Embodiment 1 of the present application;

[0072] Figure 3 A second flow chart of the power supply voltage regulation method provided in the second embodiment of the present application;

[0073] Figure 4 A diagram showing the relationship between the main power supply and the sub-power supply provided in Embodiment 2 of the present application;

[0074] Figure 5 A specific flow chart of the power supply voltage regulation method provided in Embodiment 2 of the present application;

[0075] Figure 6 A first structural diagram of a power supply voltage regulating device provided in Embodiment 3 of the present application;

[0076] Figure 7 A second structural diagram of the power supply voltage regulating device provided in Embodiment 3 of the present application;

[0077] Figure 8 The exemplary system provided for Embodiment 7 of the present application can be used to implement the various embodiments described in the present application. DETAILED DESCRIPTION

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

[0079] It should be noted that, unless the context clearly requires otherwise, words such as “include”, “including” and similar words throughout the specification and claims should be interpreted as including rather than exclusive or exhaustive; that is, the meaning is “including but not limited to”.

[0080] Furthermore, in the description of the present application, unless otherwise specified, “plurality” means two or more.

[0081] At present, in order to ensure that the power supply voltage at the circuit position meets the voltage requirement for the normal operation of the load circuit, a remote feedback method is often used. The voltage feedback point is selected at a power-consuming pin of the circuit. The feedback adjustment of the VR power supply control circuit ensures that the voltage at the feedback point is always at the set voltage to meet the power supply voltage requirement of the load circuit.

[0082] However, this method only considers whether the main power supply voltage meets the voltage requirement of the load circuit, but ignores whether the sub-power supply voltage meets the voltage requirement. It is easy for the sub-power supply voltage to fail to meet the load voltage requirement, resulting in the machine not being able to work properly.

[0083] Embodiment 1

[0084] The present application embodiment provides a power supply voltage regulation method, such as Figure 1 , 2 As shown, the method is applied to a power supply voltage regulation system, the system includes a load circuit, an analog-to-digital conversion circuit, a controller, a main power supply and a plurality of sub-power supplies, the output end of the main power supply is connected to the input end of each sub-power supply, the first output end of each sub-power supply is connected to the input end of the load circuit, the second output end of each sub-power supply is connected to the input end of the analog-to-digital conversion circuit, the output end of the analog-to-digital conversion circuit is connected to the input end of the controller, the output end of the controller is connected to the input end of the main power supply, the method includes:

[0085] Obtaining voltage values ​​of the main power supply and several sub-power supplies through the analog-to-digital conversion circuit; obtaining a margin threshold;

[0086] Setting the voltage value of the main power supply to a standard voltage;

[0087] Calculating a voltage margin of each sub-power supply according to the standard voltage and voltage values ​​of a plurality of sub-power supplies;

[0088] Comparing the voltage margin of each sub-power supply with the margin threshold;

[0089] In response to a voltage margin of at least one sub-power supply being greater than or equal to a margin threshold, a main power supply voltage adjustment value is determined by comparing and calculating the voltage margins of the plurality of sub-power supplies and the margin threshold, wherein the main power supply voltage adjustment value includes a first voltage adjustment value and a second voltage adjustment value;

[0090] The power supply voltage is automatically adjusted by the controller and the main power supply voltage adjustment value.

[0091] Specifically, the technical solution provided in the embodiment of the present application has developed a method that can detect, calculate, and balance the voltages of all load power supplies (including main power supplies and sub-power supplies) and automatically adjust the main power supply voltage, thereby realizing the detection and automatic adjustment of the circuit power supply voltage; at the same time, it can realize automatic balancing and adjustment of all power supply voltages of the load circuit based on the baseboard management controller to avoid machine failure.

[0092] The beneficial effects of the technical solution provided by the embodiment of the present application are:

[0093] The present application can realize the detection and automatic adjustment of all power supply sources of the load circuit, so that the power supply source can supply power to the load more flexibly and accurately, reducing the risk of machine abnormality caused by high or low sub-power supply voltage, and ensuring the normal operation of the machine.

[0094] Embodiment 2

[0095] The present application provides a method for regulating power supply voltage. Figure 3 As shown, the method is applied to a power supply voltage regulation system, the system includes a load circuit, an analog-to-digital conversion circuit, a controller, a main power supply and a plurality of sub-power supplies, the output end of the main power supply is connected to the input end of each sub-power supply, the first output end of each sub-power supply is connected to the input end of the load circuit, the second output end of each sub-power supply is connected to the input end of the analog-to-digital conversion circuit, the output end of the analog-to-digital conversion circuit is connected to the input end of the controller, the output end of the controller is connected to the input end of the main power supply, the method includes:

[0096] Step S01, marking each acquisition channel of the analog-to-digital conversion circuit, and making the voltage value collected by each acquisition channel correspond to each sub-power supply;

[0097] Sub-power supplies with the same power-on sequence are grouped into the same main power supply group.

[0098] Specifically, Figure 4 As shown, the voltage values ​​of all power supplies at the load circuit end are collected in real time, and the power supply voltages of all power supplies at the load circuit position are detected using an ADC conversion circuit (analog-to-digital conversion circuit). Each channel of the ADC conversion circuit is marked in advance so that the actual voltage value detected by each channel corresponds to the actual power supply name.

[0099] All detected power supplies are grouped, and all sub-power supplies belonging to the same main power supply will be considered as the same group. The same main power supply is defined as: the voltage value is the same and the power-on sequence is consistent. The sub-power supply is isolated from the main power supply only by a magnetic bead or inductor.

[0100] Step S02, obtaining voltage values ​​of the main power supply and a plurality of sub-power supplies through the analog-to-digital conversion circuit; obtaining a margin threshold;

[0101] Setting the voltage value of the main power supply to a standard voltage;

[0102] The voltage margin of each sub-power supply is calculated according to the standard voltage and voltage values ​​of the plurality of sub-power supplies.

[0103] Step S02 also includes:

[0104] Step S021 , calculating the voltage margin of each sub-power supply by the formula: sub-power supply voltage margin=(sub-power supply voltage value-standard voltage) / standard voltage.

[0105] Specifically, the power supply voltage value of the same group is compared with the standard voltage, and the voltage margin of all sub-power supplies is calculated through sub-power supply voltage margin = (sub-power supply voltage value - standard voltage) / standard voltage. At the same time, the calculated voltage margin of all sub-power supplies is compared with the margin threshold to determine whether the voltage margin of the sub-power supply is less than ±3% (this margin threshold is only for the case where the load circuit requires a voltage range of ±5% of the standard value; if the load circuit voltage requirement is in other ranges, the margin threshold needs to be modified according to the actual situation. For example, when the load circuit requires a voltage range of ±3% of the standard value, the margin threshold can be set to 2%).

[0106] Here, the margin threshold is 3%.

[0107] Step S03, comparing the voltage margin of each sub-power supply with the margin threshold;

[0108] In response to the voltage margin of at least one sub-power supply being greater than or equal to the margin threshold, a main power supply voltage adjustment value is determined by comparing and calculating the voltage margins of the plurality of sub-power supplies and the margin threshold, wherein the main power supply voltage adjustment value includes a first voltage adjustment value and a second voltage adjustment value.

[0109] Step S03 also includes:

[0110] Step S031, when the voltage value of any sub-power source is less than the standard voltage and the absolute value of the voltage margin of the sub-power source is greater than the margin threshold, a first voltage margin difference is obtained by comparing and calculating the voltage margins of the sub-power sources;

[0111] The step of calculating and obtaining a first voltage margin difference by comparing the voltage margins of the sub-power supplies includes:

[0112] Obtaining voltage margins of several sub-power supplies whose voltage values ​​are less than the standard voltage;

[0113] Determining a first voltage margin by comparing the voltage margins of the plurality of sub-power supplies whose voltage values ​​are less than the standard voltage;

[0114] The first voltage margin difference is calculated by the formula: first voltage margin - margin threshold = first voltage margin difference;

[0115] Obtaining voltage margins of several sub-power supplies whose voltage values ​​are greater than the standard voltage;

[0116] Determining a second voltage margin by comparing the voltage margins of the plurality of sub-power supplies whose voltage values ​​are greater than the standard voltage;

[0117] The third voltage margin is calculated by the formula: second voltage margin + first voltage margin difference = third voltage margin;

[0118] Determining whether the third voltage margin is less than or equal to a margin threshold;

[0119] The judging whether the third voltage margin is less than or equal to a margin threshold comprises:

[0120] Determining whether the third voltage margin is less than or equal to a margin threshold;

[0121] In response to the third voltage margin being less than or equal to the margin threshold, the first voltage adjustment value is calculated by the formula: first voltage adjustment value=standard voltage+first voltage margin difference×standard voltage.

[0122] Specifically, if the actual voltage value of a sub-power supply is lower than the standard voltage, and the absolute value of the voltage margin of the power supply is greater than 3%, the voltage of the main power supply needs to be increased to reduce the actual voltage margin.

[0123] First, by comparing the voltage margins of all sub-power supplies, it is confirmed that the maximum voltage margin (first voltage margin) of the sub-power supply that is less than the standard voltage is a, and the voltage margin difference b of the maximum voltage margin is obtained by (first voltage margin-margin threshold=first voltage margin difference) (the margin difference is always a positive number. If it is calculated to be a negative number, the absolute value, i.e., the first voltage margin difference, is taken). At the same time, the maximum voltage margin c (second voltage margin) of all power supplies in the same group that are greater than the standard voltage is found, and the maximum voltage margin d (third voltage margin) after adjustment is obtained by c+b. If d is less than or equal to the margin threshold, it is confirmed that the voltage adjustment value (first voltage adjustment value) is (standard voltage+first voltage margin difference×standard voltage). The value is transmitted to the VR controller through the PMBus protocol, and the voltage adjustment value (first voltage adjustment value) is written into the corresponding register (Vout Command register) of the power supply VR controller through the baseboard management controller to realize automatic adjustment of the output voltage.

[0124] Step S032, when the voltage value of any sub-power source is greater than the standard voltage and the absolute value of the voltage margin of the sub-power source is greater than the margin threshold, a second voltage margin difference is obtained by comparing and calculating the voltage margins of the sub-power sources;

[0125] The step of calculating and obtaining a second voltage margin difference by comparing the voltage margins of the sub-power supplies includes:

[0126] Obtaining voltage margins of several sub-power supplies whose voltage values ​​are greater than the standard voltage;

[0127] Determining a fourth voltage margin by comparing the voltage margins of the plurality of sub-power supplies whose voltage values ​​are greater than the standard voltage;

[0128] The second voltage margin difference is calculated by the formula: fourth voltage margin - margin threshold = second voltage margin difference;

[0129] Obtaining voltage margins of several sub-power supplies whose voltage values ​​are less than the standard voltage;

[0130] Determining a fifth voltage margin by comparing the voltage margins of the plurality of sub-power supplies whose voltage values ​​are less than the standard voltage;

[0131] The sixth voltage margin is calculated by the formula: fifth voltage margin - second voltage margin difference = sixth voltage margin;

[0132] Determining whether the sixth voltage margin is less than or equal to a margin threshold;

[0133] The judging whether the sixth voltage margin is less than or equal to a margin threshold comprises:

[0134] Determining whether the sixth voltage margin is less than or equal to a margin threshold;

[0135] In response to the sixth voltage margin being less than or equal to the margin threshold, the second voltage adjustment value is calculated by the formula: second voltage adjustment value=standard voltage-second voltage margin difference×standard voltage.

[0136] Specifically, similarly, if the actual voltage value of a sub-power supply is greater than the standard voltage, and the voltage margin of the power supply is greater than 3%, the voltage of the main power supply needs to be reduced to reduce the actual voltage margin.

[0137] First, the voltage margins of all sub-power supplies are compared to confirm the maximum voltage margin e (fourth voltage margin) among the sub-power supplies that are greater than the standard voltage, and the voltage margin difference f (second voltage margin difference) of the maximum voltage margin is obtained through (fourth voltage margin - margin threshold = second voltage margin difference), and at the same time, the minimum voltage margin g (fifth voltage margin) among all sub-power supplies in the same group that are less than the standard voltage is found, and the maximum voltage margin h (sixth voltage margin) after adjustment is obtained through gf. If the absolute value of h is less than or equal to the margin threshold, it is confirmed that the voltage adjustment value (second voltage adjustment value) is (standard voltage - second voltage margin difference × standard voltage), and the value is transmitted to the power supply VR controller through the PMBus protocol, and the voltage adjustment value is written into the corresponding register (Vout Command register) of the VR controller through the baseboard management controller to realize automatic adjustment of the output voltage.

[0138] Step S04: automatically adjusting the power supply voltage through the controller and the main power supply voltage adjustment value.

[0139] Step S05, obtaining the output voltage value of the register;

[0140] Determine whether the output voltage value of the register is a main power supply voltage adjustment value;

[0141] If yes, record the modification log; if no, modify the output voltage value of the register to the main power supply voltage adjustment value again according to the first preset number of times, and judge whether the output voltage value of the register is successfully modified;

[0142] In response to the output voltage value of the register being unsuccessfully modified, an early warning is issued and the modification is performed manually.

[0143] Specifically, active voltage regulation confirmation: after the voltage regulation value is written into the power supply VR controller, further confirmation is made as to whether the voltage modification is successful. Through the PMBus protocol, the baseboard management controller reads the corresponding register (Vout register) in the power supply VR controller to determine whether the actual register output voltage is modified according to the actual operating voltage. If the modification is successful, the modification log is recorded and no other register read and write operations are performed. If the modification is unsuccessful, the write command operation is performed again to write the main power supply voltage regulation value into the corresponding register and repeat the voltage confirmation step. This process is repeated 5 times. If the operation is not successful after 5 repetitions, a warning will be issued to facilitate the staff to locate and resolve the problem.

[0144] Among them, the first preset number of times is 5 times.

[0145] Step S06, the system further includes a baseboard management controller (BMC), a programmable logic device and an LED indicator light, the output end of the analog-to-digital conversion circuit is connected to the input end of the baseboard management controller, the first output end of the baseboard management controller is connected to the input end of the controller, the second output end of the baseboard management controller is connected to the input end of the programmable logic device, and the output end of the programmable logic device is connected to the LED indicator light, and the method further includes:

[0146] In response to the third voltage margin or the sixth voltage margin being greater than a margin threshold, manually adjusting the power supply voltage by the controller;

[0147] In response to the voltage margins of all sub-power supplies being less than the margin threshold, the adjustment process is terminated, and the voltage values ​​of the main power supply and each sub-power supply are recorded;

[0148] In response to the voltage margin of any sub-power supply being greater than a margin threshold, the baseboard management controller records an abnormal log, and the programmable logic device controls the LED indicator to send out an alarm signal.

[0149] Specifically, if the absolute value of the third voltage margin is greater than the margin threshold, it is determined that automatic voltage adjustment cannot be performed, and manual voltage adjustment operation is required after actual evaluation and confirmation by staff;

[0150] If the absolute value of the sixth voltage margin is greater than the margin threshold, it is determined that automatic voltage adjustment cannot be performed, and manual voltage adjustment operation is required after actual evaluation and confirmation by staff;

[0151] That is, if the automatic adjustment is not successful, the staff needs to evaluate and confirm before operation. After the staff evaluates and confirms the actual voltage modification, the voltage is adjusted by actively writing commands in the BMC to write the corresponding voltage adjustment value to the power supply VR register to meet the load requirements;

[0152] The voltage margins of all sub-power supplies are calculated to make judgments and adjustments. If the voltage margins of all sub-power supplies are less than the margin threshold, the voltage is not adjusted. At this time, only the voltage detection results are recorded to facilitate the search and review of the staff.

[0153] When the voltage margin of the sub-power supply exceeds the margin threshold, regardless of whether the voltage is automatically adjusted, a voltage abnormality warning will be issued to the outside, the BMC will record the relevant logs, and at the same time send an indication signal to the programmable logic device, which will control the corresponding LED indicator to send an indication alarm signal to the outside.

[0154] like Figure 5As shown, the technical solution of the present application proposes a method for regulating power supply voltage. In a certain project, there are 5 power supplies in the power supply of CPU, the main power supply voltage is 0.8V, and CPU_1, CPU_2, CPU_3, CPU_4 are all generated by CPU_0 after passing through magnetic beads, that is, CPU_0 is the main power supply, CPU_1, CPU_2, CPU_3, CPU_4 are sub-power supplies, at a certain moment, the voltage of CPU_0 is detected to be 0.8V (standard voltage), the voltage of CPU_1 is 0.808V, the voltage of CPU_2 is 0.772V, the voltage of CPU_3 is 0.768V, and the voltage of CPU_4 is 0.812V;

[0155] According to the detected sub-power supply voltage, the absolute values ​​of the voltage margins of the five power supplies are calculated to be 0, 1%, 3.5%, 4%, and 1.5%, respectively. The voltage values ​​of CPU_2 and CPU_3 are lower than the standard voltage, and the voltage margin is greater than 3%. The voltage needs to be raised for adjustment.

[0156] By comparing the voltage margins of the five sub-power supply voltages, it is found that the voltage margin of CPU_3 is the largest. The margin difference is calculated as 4%-3%=1% based on (voltage margin-margin threshold=margin difference). According to the voltage detection result, it is confirmed that the voltages of CPU_1 and CPU_4 are greater than the standard voltage, and the voltage margin of CPU_4 is the largest. The result after calculating the margin difference of CPU_4 is 1.5%+1%=2.5%. Since the result after the increase is less than the margin threshold of 3%, it is confirmed that the voltage adjustment value at this time is the standard value+margin difference×standard value: 0.8V+0.8×1%V=0.808V; the value is transmitted to the VR controller through the PMBus protocol, and the voltage adjustment value is written into the corresponding register of the power supply VR controller through the BMC to realize automatic adjustment of the output voltage; when adjusting the voltage greater than the margin threshold, after determining the adjustment voltage, the staff needs to perform manual voltage adjustment operation after actual evaluation and confirmation.

[0157] In addition, the automatic adjustment of the power supply voltage by the controller and the main power supply voltage adjustment value includes:

[0158] Obtaining the main power supply voltage adjustment value;

[0159] Data transmission with VR controller via PMBus protocol;

[0160] Sending the main power supply voltage adjustment value to the register of the VR controller through the baseboard management controller;

[0161] Regulating the voltage of the main power supply according to the main power supply voltage adjustment value of the register;

[0162] The step of regulating the voltage of the main power supply according to the main power supply voltage regulation value of the register comprises:

[0163] Establishing a communication connection between the controller and the client and setting communication parameters, wherein the communication connection includes I2C, SPI, PMBus or other digital buses, and the communication parameters include address and clock speed;

[0164] Obtaining a voltage setting of the register, wherein the voltage setting includes a voltage adjustment amplitude;

[0165] According to the register address and operation method, modify the value of the voltage regulating register by writing program code;

[0166] Sending a command through a programming interface to write the main power supply voltage adjustment value into the register; and setting a write error checking mechanism;

[0167] Measuring the actual voltage at the output end of the register by an oscilloscope to verify the actual voltage at the output end of the register; and performing fine adjustment in response to a deviation in the actual voltage at the output end of the register;

[0168] The adjusted main power supply voltage regulation value is saved to non-volatile memory.

[0169] The present application proposes a method for automatically adjusting the main power supply voltage to realize the detection and automatic adjustment of the circuit power supply voltage. The specific operation steps and register addresses will vary according to the model of the power management controller used. You can refer to the official documentation of the corresponding device for operation. By automatically adjusting the detection balance of all power supplies in the load circuit, the power supply can supply power to the load more flexibly and accurately, reducing the risk of machine abnormality caused by high or low sub-power supply voltage, thereby ensuring the normal operation of the machine.

[0170] The method for power supply voltage regulation provided in the embodiment of the present application may be further improved and optimized without departing from the technical solution of the present application, and these improvements and optimizations should also be regarded as within the scope of protection of the present application.

[0171] The power supply voltage regulation method of the present technical solution can be applied to power supply circuits of integrated circuits such as CPU, data processor (DPU, Data Processing Unit), and graphics processor (GPU, graphics processing unit).

[0172] The beneficial effects of the technical solution provided by the embodiment of the present application are:

[0173] The present application can realize the detection and automatic adjustment of all power supply sources of the load circuit, so that the power supply source can supply power to the load more flexibly and accurately, reducing the risk of machine abnormality caused by high or low sub-power supply voltage, and ensuring the normal operation of the machine.

[0174] The technical solution provided in the embodiment of the present application has developed a method that can detect, calculate, balance the voltages of all load power supplies (including main power supplies and sub-power supplies) and automatically adjust the main power supply voltage, thereby realizing the detection and automatic adjustment of the circuit power supply voltage; at the same time, it can realize automatic balancing and adjustment of all power supply voltages of the load circuit based on the baseboard management controller to avoid machine failure.

[0175] Embodiment 3

[0176] The present application provides a power supply voltage regulating device, such as Figure 6 As shown, the device includes a classification module, an acquisition module, a setting module, a calculation module, a comparison module, an adjustment module, a judgment module, and a processing module.

[0177] In this embodiment, the acquisition module is used to acquire the voltage values ​​of the main power supply and the plurality of sub-power supplies through the analog-to-digital conversion circuit; and acquire the margin threshold value;

[0178] A setting module, used for setting the voltage value of the main power supply to a standard voltage;

[0179] A calculation module, configured to calculate a voltage margin of each sub-power supply according to the standard voltage and the voltage values ​​of the plurality of sub-power supplies; in response to the voltage margin of at least one sub-power supply being greater than or equal to a margin threshold, a main power supply voltage adjustment value is determined by comparing and calculating the voltage margins of the plurality of sub-power supplies with the margin threshold, wherein the main power supply voltage adjustment value includes a first voltage adjustment value and a second voltage adjustment value;

[0180] A comparison module, used for comparing the voltage margin of each sub-power supply with the margin threshold;

[0181] The regulating module is used to automatically regulate the power supply voltage through the controller and the main power supply voltage regulation value.

[0182] In one of the embodiments, the classification module is used to mark each acquisition channel of the analog-to-digital conversion circuit, and correspond the voltage value collected by each acquisition channel to each sub-power supply;

[0183] Sub-power supplies with the same power-on sequence are grouped into the same main power supply group.

[0184] In one embodiment, the calculation module is used to calculate the voltage margin of each sub-power supply by using the formula: sub-power supply voltage margin=(sub-power supply voltage value-standard voltage) / standard voltage.

[0185] In one embodiment, the calculation module is used to obtain a first voltage margin difference by comparing and calculating the voltage margins of the sub-power supplies when the voltage value of any sub-power supply is less than the standard voltage and the absolute value of the voltage margin of the sub-power supply is greater than the margin threshold;

[0186] The step of calculating and obtaining a first voltage margin difference by comparing the voltage margins of the sub-power supplies includes:

[0187] Obtaining voltage margins of several sub-power supplies whose voltage values ​​are less than the standard voltage;

[0188] Determining a first voltage margin by comparing the voltage margins of the plurality of sub-power supplies whose voltage values ​​are less than the standard voltage;

[0189] The first voltage margin difference is calculated by the formula: first voltage margin - margin threshold = first voltage margin difference;

[0190] Obtaining voltage margins of several sub-power supplies whose voltage values ​​are greater than the standard voltage;

[0191] Determining a second voltage margin by comparing the voltage margins of the plurality of sub-power supplies whose voltage values ​​are greater than the standard voltage;

[0192] The third voltage margin is calculated by the formula: second voltage margin + first voltage margin difference = third voltage margin;

[0193] Determining whether the third voltage margin is less than or equal to a margin threshold;

[0194] The judging whether the third voltage margin is less than or equal to a margin threshold comprises:

[0195] Determining whether the third voltage margin is less than or equal to a margin threshold;

[0196] In response to the third voltage margin being less than or equal to the margin threshold, the first voltage adjustment value is calculated by the formula: first voltage adjustment value=standard voltage+first voltage margin difference×standard voltage.

[0197] In one embodiment, the calculation module is used to obtain a second voltage margin difference by comparing and calculating the voltage margins of the sub-power supplies when the voltage value of any sub-power supply is greater than the standard voltage and the absolute value of the voltage margin of the sub-power supply is greater than the margin threshold;

[0198] The step of calculating and obtaining a second voltage margin difference by comparing the voltage margins of the sub-power supplies includes:

[0199] Obtaining voltage margins of several sub-power supplies whose voltage values ​​are greater than the standard voltage;

[0200] Determining a fourth voltage margin by comparing the voltage margins of the plurality of sub-power supplies whose voltage values ​​are greater than the standard voltage;

[0201] The second voltage margin difference is calculated by the formula: fourth voltage margin - margin threshold = second voltage margin difference;

[0202] Obtaining voltage margins of several sub-power supplies whose voltage values ​​are less than the standard voltage;

[0203] Determining a fifth voltage margin by comparing the voltage margins of the plurality of sub-power supplies whose voltage values ​​are less than the standard voltage;

[0204] The sixth voltage margin is calculated by the formula: fifth voltage margin - second voltage margin difference = sixth voltage margin;

[0205] Determining whether the sixth voltage margin is less than or equal to a margin threshold;

[0206] The judging whether the sixth voltage margin is less than or equal to a margin threshold comprises:

[0207] Determining whether the sixth voltage margin is less than or equal to a margin threshold;

[0208] In response to the sixth voltage margin being less than or equal to the margin threshold, the second voltage adjustment value is calculated by the formula: second voltage adjustment value=standard voltage-second voltage margin difference×standard voltage.

[0209] In one of the embodiments, the judgment module is used to obtain the output voltage value of the register;

[0210] Determine whether the output voltage value of the register is a main power supply voltage adjustment value;

[0211] If yes, record the modification log; if no, modify the output voltage value of the register to the main power supply voltage adjustment value again according to the first preset number of times, and judge whether the output voltage value of the register is successfully modified;

[0212] In response to the output voltage value of the register being unsuccessfully modified, an early warning is issued and the modification is performed manually.

[0213] In one embodiment, the processing module is used to manually adjust the power supply voltage through the controller in response to the third voltage margin or the sixth voltage margin being greater than a margin threshold;

[0214] In response to the voltage margins of all sub-power supplies being less than the margin threshold, the adjustment process is terminated, and the voltage values ​​of the main power supply and each sub-power supply are recorded;

[0215] In response to the voltage margin of any sub-power supply being greater than a margin threshold, the baseboard management controller records an abnormal log, and the programmable logic device controls the LED indicator to send out an alarm signal.

[0216] Specifically, Figure 7 As shown, the embodiment of the present application also provides a power supply voltage regulation device, the device comprising: a voltage detection module, a voltage margin calculation module, an automatic regulation module, a voltage regulation confirmation module, and a voltage abnormality alarm module;

[0217] Voltage detection module: detects the actual voltage at the load end, and uses the ADC circuit to detect the actual voltage of all electronic power supplies at the load circuit end;

[0218] Voltage margin calculation module: Based on the collected power supply voltage information, all sub-power supplies are identified and grouped, all power supplies of the same main power supply are grouped together, and voltage margin calculation is performed on all sub-power supplies of the same group. The voltage margin calculation result is compared with the margin threshold to determine the maximum margin difference, and the maximum margin difference is balanced with the maximum margin voltage to confirm the main power supply adjustment voltage value that needs to be adjusted, and determine whether automatic adjustment can be performed;

[0219] Automatic adjustment module: Determines whether adjustment is required based on the voltage margin calculation result. If adjustment is required, the main power supply adjustment voltage value is calculated and transmitted to the VR controller through data transmission to adjust the register output voltage.

[0220] Voltage regulation confirmation module: After the voltage is regulated, the regulated voltage is further confirmed by obtaining the output voltage value of the VR register and comparing it with the actual main power regulated voltage value to confirm whether the regulation is successful;

[0221] Abnormal voltage alarm module: Based on the voltage detection results, an alarm signal is issued when the voltage margin exceeds the margin threshold. The alarm signal is still retained after automatic adjustment to facilitate staff inspection.

[0222] The beneficial effects of the technical solution provided by the embodiment of the present application are:

[0223] The present application can realize the detection and automatic adjustment of all power supply sources of the load circuit, so that the power supply source can supply power to the load more flexibly and accurately, reducing the risk of machine abnormality caused by high or low sub-power supply voltage, and ensuring the normal operation of the machine.

[0224] The technical solution provided in the embodiment of the present application has developed a method that can detect, calculate, balance the voltages of all load power supplies (including main power supplies and sub-power supplies) and automatically adjust the main power supply voltage, thereby realizing the detection and automatic adjustment of the circuit power supply voltage; at the same time, it can realize automatic balancing and adjustment of all power supply voltages of the load circuit based on the baseboard management controller to avoid machine failure.

[0225] Embodiment 4

[0226] The present invention also provides a power supply voltage regulating device, comprising:

[0227] one or more processors;

[0228] A storage device for storing one or more programs;

[0229] When the one or more programs are executed by the one or more processors, the one or more processors execute the power supply voltage regulation method described below:

[0230] Obtaining voltage values ​​of the main power supply and several sub-power supplies through the analog-to-digital conversion circuit; obtaining a margin threshold;

[0231] Setting the voltage value of the main power supply to a standard voltage;

[0232] Calculating a voltage margin of each sub-power supply according to the standard voltage and voltage values ​​of a plurality of sub-power supplies;

[0233] Comparing the voltage margin of each sub-power supply with the margin threshold;

[0234] In response to a voltage margin of at least one sub-power supply being greater than or equal to a margin threshold, a main power supply voltage adjustment value is determined by comparing and calculating the voltage margins of the plurality of sub-power supplies and the margin threshold, wherein the main power supply voltage adjustment value includes a first voltage adjustment value and a second voltage adjustment value;

[0235] The power supply voltage is automatically adjusted by the controller and the main power supply voltage adjustment value.

[0236] The beneficial effects of the technical solution provided by the embodiment of the present application are:

[0237] The present application can realize the detection and automatic adjustment of all power supply sources of the load circuit, so that the power supply source can supply power to the load more flexibly and accurately, reducing the risk of machine abnormality caused by high or low sub-power supply voltage, and ensuring the normal operation of the machine.

[0238] The technical solution provided in the embodiment of the present application has developed a method that can detect, calculate, balance the voltages of all load power supplies (including main power supplies and sub-power supplies) and automatically adjust the main power supply voltage, thereby realizing the detection and automatic adjustment of the circuit power supply voltage; at the same time, it can realize automatic balancing and adjustment of all power supply voltages of the load circuit based on the baseboard management controller to avoid machine failure.

[0239] Embodiment 5

[0240] The present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following power supply voltage regulation method can be executed:

[0241] Obtaining voltage values ​​of the main power supply and several sub-power supplies through the analog-to-digital conversion circuit; obtaining a margin threshold;

[0242] Setting the voltage value of the main power supply to a standard voltage;

[0243] Calculating a voltage margin of each sub-power supply according to the standard voltage and voltage values ​​of a plurality of sub-power supplies;

[0244] Comparing the voltage margin of each sub-power supply with the margin threshold;

[0245] In response to a voltage margin of at least one sub-power supply being greater than or equal to a margin threshold, a main power supply voltage adjustment value is determined by comparing and calculating the voltage margins of the plurality of sub-power supplies and the margin threshold, wherein the main power supply voltage adjustment value includes a first voltage adjustment value and a second voltage adjustment value;

[0246] The power supply voltage is automatically adjusted by the controller and the main power supply voltage adjustment value.

[0247] The beneficial effects of the technical solution provided by the embodiment of the present application are:

[0248] The present application can realize the detection and automatic adjustment of all power supply sources of the load circuit, so that the power supply source can supply power to the load more flexibly and accurately, reducing the risk of machine abnormality caused by high or low sub-power supply voltage, and ensuring the normal operation of the machine.

[0249] The technical solution provided in the embodiment of the present application has developed a method that can detect, calculate, balance the voltages of all load power supplies (including main power supplies and sub-power supplies) and automatically adjust the main power supply voltage, thereby realizing the detection and automatic adjustment of the circuit power supply voltage; at the same time, it can realize automatic balancing and adjustment of all power supply voltages of the load circuit based on the baseboard management controller to avoid machine failure.

[0250] Embodiment 6

[0251] The present application also provides a computer program product, including a computer program, which can implement the following power supply voltage regulation method when executed by a processor:

[0252] Obtaining voltage values ​​of the main power supply and several sub-power supplies through the analog-to-digital conversion circuit; obtaining a margin threshold;

[0253] Setting the voltage value of the main power supply to a standard voltage;

[0254] Calculating a voltage margin of each sub-power supply according to the standard voltage and voltage values ​​of a plurality of sub-power supplies;

[0255] Comparing the voltage margin of each sub-power supply with the margin threshold;

[0256] In response to a voltage margin of at least one sub-power supply being greater than or equal to a margin threshold, a main power supply voltage adjustment value is determined by comparing and calculating the voltage margins of the plurality of sub-power supplies and the margin threshold, wherein the main power supply voltage adjustment value includes a first voltage adjustment value and a second voltage adjustment value;

[0257] The power supply voltage is automatically adjusted by the controller and the main power supply voltage adjustment value.

[0258] The beneficial effects of the technical solution provided by the embodiment of the present application are:

[0259] The present application can realize the detection and automatic adjustment of all power supply sources of the load circuit, so that the power supply source can supply power to the load more flexibly and accurately, reducing the risk of machine abnormality caused by high or low sub-power supply voltage, and ensuring the normal operation of the machine.

[0260] The technical solution provided in the embodiment of the present application has developed a method that can detect, calculate, balance the voltages of all load power supplies (including main power supplies and sub-power supplies) and automatically adjust the main power supply voltage, thereby realizing the detection and automatic adjustment of the circuit power supply voltage; at the same time, it can realize automatic balancing and adjustment of all power supply voltages of the load circuit based on the baseboard management controller to avoid machine failure.

[0261] Embodiment 7

[0262] The present application provides a computer storage medium, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented:

[0263] Obtaining voltage values ​​of the main power supply and several sub-power supplies through the analog-to-digital conversion circuit; obtaining a margin threshold;

[0264] Setting the voltage value of the main power supply to a standard voltage;

[0265] Calculating a voltage margin of each sub-power supply according to the standard voltage and voltage values ​​of a plurality of sub-power supplies;

[0266] Comparing the voltage margin of each sub-power supply with the margin threshold;

[0267] In response to a voltage margin of at least one sub-power supply being greater than or equal to a margin threshold, a main power supply voltage adjustment value is determined by comparing and calculating the voltage margins of the plurality of sub-power supplies and the margin threshold, wherein the main power supply voltage adjustment value includes a first voltage adjustment value and a second voltage adjustment value;

[0268] The power supply voltage is automatically adjusted by the controller and the main power supply voltage adjustment value.

[0269] In one embodiment, before obtaining the voltage values ​​of the main power supply and the plurality of sub-power supplies through the analog-to-digital conversion circuit, the process includes:

[0270] Marking each acquisition channel of the analog-to-digital conversion circuit, and making the voltage value acquired by each acquisition channel correspond to each sub-power supply;

[0271] Sub-power supplies with the same power-on sequence are grouped into the same main power supply group.

[0272] In one embodiment, the step of calculating the voltage margin of each sub-power supply according to the standard voltage and voltage values ​​of a plurality of sub-power supplies includes:

[0273] The voltage margin of each sub-power supply is calculated by the formula: sub-power supply voltage margin = (sub-power supply voltage value - standard voltage) / standard voltage.

[0274] In one embodiment, the step of determining the main power supply voltage adjustment value by comparing and calculating the voltage margins of the plurality of sub-power supplies and the margin thresholds includes:

[0275] When the voltage value of any sub-power supply is less than the standard voltage and the absolute value of the voltage margin of the sub-power supply is greater than the margin threshold, a first voltage margin difference is obtained by comparing and calculating the voltage margins of the sub-power supplies;

[0276] The step of calculating and obtaining a first voltage margin difference by comparing the voltage margins of the sub-power supplies includes:

[0277] Obtaining voltage margins of several sub-power supplies whose voltage values ​​are less than the standard voltage;

[0278] Determining a first voltage margin by comparing the voltage margins of the plurality of sub-power supplies whose voltage values ​​are less than the standard voltage;

[0279] The first voltage margin difference is calculated by the formula: first voltage margin - margin threshold = first voltage margin difference;

[0280] Obtaining voltage margins of several sub-power supplies whose voltage values ​​are greater than the standard voltage;

[0281] Determining a second voltage margin by comparing the voltage margins of the plurality of sub-power supplies whose voltage values ​​are greater than the standard voltage;

[0282] The third voltage margin is calculated by the formula: second voltage margin + first voltage margin difference = third voltage margin;

[0283] Determining whether the third voltage margin is less than or equal to a margin threshold;

[0284] The judging whether the third voltage margin is less than or equal to a margin threshold comprises:

[0285] Determining whether the third voltage margin is less than or equal to a margin threshold;

[0286] In response to the third voltage margin being less than or equal to the margin threshold, the first voltage adjustment value is calculated by the formula: first voltage adjustment value=standard voltage+first voltage margin difference×standard voltage.

[0287] In one embodiment, the step of determining the voltage adjustment value of the main power supply by comparing and calculating the voltage margins of the plurality of sub-power supplies and the margin thresholds further includes:

[0288] When the voltage value of any sub-power supply is greater than the standard voltage and the absolute value of the voltage margin of the sub-power supply is greater than the margin threshold, a second voltage margin difference is obtained by comparing and calculating the voltage margins of the sub-power supplies;

[0289] The step of calculating and obtaining a second voltage margin difference by comparing the voltage margins of the sub-power supplies includes:

[0290] Obtaining voltage margins of several sub-power supplies whose voltage values ​​are greater than the standard voltage;

[0291] Determining a fourth voltage margin by comparing the voltage margins of the plurality of sub-power supplies whose voltage values ​​are greater than the standard voltage;

[0292] The second voltage margin difference is calculated by the formula: fourth voltage margin - margin threshold = second voltage margin difference;

[0293] Obtaining voltage margins of several sub-power supplies whose voltage values ​​are less than the standard voltage;

[0294] Determining a fifth voltage margin by comparing the voltage margins of the plurality of sub-power supplies whose voltage values ​​are less than the standard voltage;

[0295] The sixth voltage margin is calculated by the formula: fifth voltage margin - second voltage margin difference = sixth voltage margin;

[0296] Determining whether the sixth voltage margin is less than or equal to a margin threshold;

[0297] The judging whether the sixth voltage margin is less than or equal to a margin threshold comprises:

[0298] Determining whether the sixth voltage margin is less than or equal to a margin threshold;

[0299] In response to the sixth voltage margin being less than or equal to the margin threshold, the second voltage adjustment value is calculated by the formula: second voltage adjustment value=standard voltage-second voltage margin difference×standard voltage.

[0300] In one embodiment, the controller includes a register, and after the power supply voltage is automatically adjusted by the controller and the main power supply voltage adjustment value, the following steps are performed:

[0301] Obtaining an output voltage value of the register;

[0302] Determine whether the output voltage value of the register is a main power supply voltage adjustment value;

[0303] If yes, record the modification log; if no, modify the output voltage value of the register to the main power supply voltage adjustment value again according to the first preset number of times, and judge whether the output voltage value of the register is successfully modified;

[0304] In response to the output voltage value of the register being unsuccessfully modified, an early warning is issued and the modification is performed manually.

[0305] In one embodiment, the system further includes a baseboard management controller, a programmable logic device and an LED indicator light, the output end of the analog-to-digital conversion circuit is connected to the input end of the baseboard management controller, the first output end of the baseboard management controller is connected to the input end of the controller, the second output end of the baseboard management controller is connected to the input end of the programmable logic device, and the output end of the programmable logic device is connected to the LED indicator light, and the method further includes:

[0306] In response to the third voltage margin or the sixth voltage margin being greater than a margin threshold, manually adjusting the power supply voltage by the controller;

[0307] In response to the voltage margins of all sub-power supplies being less than the margin threshold, the adjustment process is terminated, and the voltage values ​​of the main power supply and each sub-power supply are recorded;

[0308] In response to the voltage margin of any sub-power supply being greater than a margin threshold, the baseboard management controller records an abnormal log, and the programmable logic device controls the LED indicator to send out an alarm signal.

[0309] The present application can detect and automatically adjust all power supplies of the load circuit, reducing the risk of machine abnormality caused by high or low sub-power supply voltage.

[0310] Figure 8 An exemplary system provided for Embodiment 7 of the present application that can be used to implement various embodiments described in the present application;

[0311] like Figure 8 As shown, in some embodiments, the system can be used as any of the above-mentioned devices for power supply voltage regulation in each of the described embodiments. In some embodiments, the system may include one or more computer-readable media (e.g., system memory or NVM / storage device) having results and one or more processors (e.g., (one or more) processors) coupled to the one or more computer-readable media and configured to execute the results to implement the module to perform the actions described in this application.

[0312] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0313] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0314] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A power supply voltage regulation method, the method is applied to a power supply voltage regulation system, the system comprises a load circuit, an analog-to-digital conversion circuit, a controller, a main power supply and a plurality of sub-power supplies, the output end of the main power supply is connected to the input end of each sub-power supply, the first output end of each sub-power supply is connected to the input end of the load circuit, the second output end of each sub-power supply is connected to the input end of the analog-to-digital conversion circuit, the output end of the analog-to-digital conversion circuit is connected to the input end of the controller, and the output end of the controller is connected to the input end of the main power supply, characterized in that: The method comprises: Obtaining voltage values ​​of the main power supply and several sub-power supplies through the analog-to-digital conversion circuit; obtaining a margin threshold; Setting the voltage value of the main power supply to a standard voltage; Calculating a voltage margin of each sub-power supply according to the standard voltage and voltage values ​​of a plurality of sub-power supplies; Comparing the voltage margin of each sub-power supply with the margin threshold; In response to a voltage margin of at least one sub-power supply being greater than or equal to a margin threshold, a main power supply voltage adjustment value is determined by comparing and calculating the voltage margins of the plurality of sub-power supplies and the margin threshold, wherein the main power supply voltage adjustment value includes a first voltage adjustment value and a second voltage adjustment value; The power supply voltage is automatically adjusted by the controller and the main power supply voltage adjustment value.

2. The power supply voltage regulation method according to claim 1, characterized in that: Before obtaining the voltage values ​​of the main power supply and the plurality of sub-power supplies through the analog-to-digital conversion circuit, the method includes: Marking each acquisition channel of the analog-to-digital conversion circuit, and making the voltage value acquired by each acquisition channel correspond to each sub-power supply; Sub-power supplies with the same power-on sequence are grouped into the same main power supply group.

3. The power supply voltage regulation method according to claim 1, characterized in that: The step of calculating the voltage margin of each sub-power supply according to the standard voltage and the voltage values ​​of the plurality of sub-power supplies comprises: The voltage margin of each sub-power supply is calculated by the formula: sub-power supply voltage margin = (sub-power supply voltage value - standard voltage) / standard voltage.

4. The power supply voltage regulation method according to claim 1, characterized in that: The step of determining the main power supply voltage adjustment value by comparing and calculating the voltage margins of the plurality of sub-power supplies and the margin thresholds includes: When the voltage value of any sub-power supply is less than the standard voltage and the absolute value of the voltage margin of the sub-power supply is greater than the margin threshold, a first voltage margin difference is obtained by comparing and calculating the voltage margins of the sub-power supplies; The step of calculating and obtaining a first voltage margin difference by comparing the voltage margins of the sub-power supplies includes: Obtaining voltage margins of several sub-power supplies whose voltage values ​​are less than the standard voltage; Determining a first voltage margin by comparing the voltage margins of the plurality of sub-power supplies whose voltage values ​​are less than the standard voltage; The first voltage margin difference is calculated by the formula: first voltage margin - margin threshold = first voltage margin difference; Obtaining voltage margins of several sub-power supplies whose voltage values ​​are greater than the standard voltage; Determining a second voltage margin by comparing the voltage margins of the plurality of sub-power supplies whose voltage values ​​are greater than the standard voltage; The third voltage margin is calculated by the formula: second voltage margin + first voltage margin difference = third voltage margin; Determining whether the third voltage margin is less than or equal to a margin threshold; The judging whether the third voltage margin is less than or equal to a margin threshold comprises: Determining whether the third voltage margin is less than or equal to a margin threshold; In response to the third voltage margin being less than or equal to the margin threshold, the first voltage adjustment value is calculated by the formula: first voltage adjustment value=standard voltage+first voltage margin difference×standard voltage.

5. The power supply voltage regulation method according to claim 4, characterized in that: The method of determining the main power supply voltage adjustment value by comparing and calculating the voltage margins of the plurality of sub-power supplies and the margin thresholds further includes: When the voltage value of any sub-power supply is greater than the standard voltage and the absolute value of the voltage margin of the sub-power supply is greater than the margin threshold, a second voltage margin difference is obtained by comparing and calculating the voltage margins of the sub-power supplies; The step of calculating and obtaining a second voltage margin difference by comparing the voltage margins of the sub-power supplies includes: Obtaining voltage margins of several sub-power supplies whose voltage values ​​are greater than the standard voltage; Determining a fourth voltage margin by comparing the voltage margins of the plurality of sub-power supplies whose voltage values ​​are greater than the standard voltage; The second voltage margin difference is calculated by the formula: fourth voltage margin - margin threshold = second voltage margin difference; Obtaining voltage margins of several sub-power supplies whose voltage values ​​are less than the standard voltage; Determining a fifth voltage margin by comparing the voltage margins of the plurality of sub-power supplies whose voltage values ​​are less than the standard voltage; The sixth voltage margin is calculated by the formula: fifth voltage margin - second voltage margin difference = sixth voltage margin; Determining whether the sixth voltage margin is less than or equal to a margin threshold; The judging whether the sixth voltage margin is less than or equal to a margin threshold comprises: Determining whether the sixth voltage margin is less than or equal to a margin threshold; In response to the sixth voltage margin being less than or equal to the margin threshold, the second voltage adjustment value is calculated by the formula: second voltage adjustment value=standard voltage-second voltage margin difference×standard voltage.

6. The power supply voltage regulation method according to claim 1, characterized in that: The controller includes a register, and after the power supply voltage is automatically adjusted by the controller and the main power supply voltage adjustment value, the method includes: Obtaining an output voltage value of the register; Determine whether the output voltage value of the register is a main power supply voltage adjustment value; If yes, record the modification log; if no, modify the output voltage value of the register to the main power supply voltage adjustment value again according to the first preset number of times, and judge whether the output voltage value of the register is successfully modified; In response to the output voltage value of the register being unsuccessfully modified, an early warning is issued and the modification is performed manually.

7. The power supply voltage regulation method according to claim 5, characterized in that: The system further includes a baseboard management controller, a programmable logic device and an LED indicator light, the output end of the analog-to-digital conversion circuit is connected to the input end of the baseboard management controller, the first output end of the baseboard management controller is connected to the input end of the controller, the second output end of the baseboard management controller is connected to the input end of the programmable logic device, and the output end of the programmable logic device is connected to the LED indicator light, and the method further includes: In response to the third voltage margin or the sixth voltage margin being greater than a margin threshold, manually adjusting the power supply voltage by the controller; In response to the voltage margins of all sub-power supplies being less than the margin threshold, the adjustment process is terminated, and the voltage values ​​of the main power supply and each sub-power supply are recorded; In response to the voltage margin of any sub-power supply being greater than a margin threshold, the baseboard management controller records an abnormal log, and the programmable logic device controls the LED indicator to send out an alarm signal.

8. A power supply voltage regulating device, the device is applied to a power supply voltage regulating system, the system comprises a load circuit, an analog-to-digital conversion circuit, a controller, a main power supply and a plurality of sub-power supplies, the output end of the main power supply is connected to the input end of each sub-power supply, the first output end of each sub-power supply is connected to the input end of the load circuit, the second output end of each sub-power supply is connected to the input end of the analog-to-digital conversion circuit, the output end of the analog-to-digital conversion circuit is connected to the input end of the controller, and the output end of the controller is connected to the input end of the main power supply, characterized in that: The device comprises: An acquisition module, used to acquire voltage values ​​of the main power supply and several sub-power supplies through the analog-to-digital conversion circuit; and acquire a margin threshold value; A setting module, used for setting the voltage value of the main power supply to a standard voltage; A calculation module, configured to calculate a voltage margin of each sub-power supply according to the standard voltage and the voltage values ​​of the plurality of sub-power supplies; in response to the voltage margin of at least one sub-power supply being greater than or equal to a margin threshold, a main power supply voltage adjustment value is determined by comparing and calculating the voltage margins of the plurality of sub-power supplies with the margin threshold, wherein the main power supply voltage adjustment value includes a first voltage adjustment value and a second voltage adjustment value; A comparison module, used for comparing the voltage margin of each sub-power supply with the margin threshold; The regulating module is used to automatically regulate the power supply voltage through the controller and the main power supply voltage regulation value.

9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the power supply voltage regulation method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the power supply voltage regulation method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Optimized power supply for an electronic system

    CN101663629A

  • Multiple voltage identification (VID) power architecture, a digital synthesizable low dropout regulator, and apparatus for improving reliability of power gates

    CN103984670A

  • Circuits and methods providing voltage adjustment as processor cores become active

    CN107949816A

  • Self-adaptive voltage regulation SoC system and control method

    CN114036895A

  • Power supply voltage adjusting method and system, storage medium and equipment

    CN114527859A