CN114063758B - Current value obtaining method, device and medium - Google Patents

Current value obtaining method, device and medium Download PDF

Info

Publication number
CN114063758B
CN114063758B CN202210046311.6A CN202210046311A CN114063758B CN 114063758 B CN114063758 B CN 114063758B CN 202210046311 A CN202210046311 A CN 202210046311A CN 114063758 B CN114063758 B CN 114063758B
Authority
CN
China
Prior art keywords
current value
register
pmbus
svid
curve
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210046311.6A
Other languages
Chinese (zh)
Other versions
CN114063758A (en
Inventor
赵国玲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202210046311.6A priority Critical patent/CN114063758B/en
Publication of CN114063758A publication Critical patent/CN114063758A/en
Application granted granted Critical
Publication of CN114063758B publication Critical patent/CN114063758B/en
Priority to PCT/CN2022/134788 priority patent/WO2023134315A1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

The method firstly obtains an actual current value actually loaded by pulling, in an M7 scheme, the actual current value is different from the current value actually obtained by a power chip, the current value of a PMBUS register is different from the current value of an SVID register, and therefore the current value needs to be corrected. Specifically, a first corrected current value after the correction of the PMBUS register is obtained according to the relation between the current value of the PMBUS register and the actual current value, and a second corrected current value after the correction of the SVID register is obtained according to the relation between the current value of the SVID register and the current value of the PMBUS register and the first corrected current value. After two corrections, the second corrected current value of the SVID register can correctly feed back the actual current value of the load, thereby ensuring that the CPU obtains the accurate power supply current of the power supply chip.

Description

Current value obtaining method, device and medium
Technical Field
The present disclosure relates to the field of circuits, and in particular, to a method, an apparatus, and a medium for obtaining a current value.
Background
The power supply chip for supplying power to the Central Processing Unit (CPU) of the server is continuously updated with the upgrading of technology and requirements, and in recent years, the power supply chip for supplying power to the CPU of the server has been changed from the M5 to the M6 and M7 schemes. FIG. 1 is a schematic block diagram of the relationship between the current values of the modules in the M6 scheme, as shown in FIG. 1, in the M6 scheme, the actual current value of the pull load is different from the actual current value from the power chip; however, the current value of the PMBUS register is equal to the current value of the actual Sense of the power chip and is also equal to the current value in the SVID register, so that the current value of the actual Sense of the power chip can be obtained only by obtaining the current value of the SVID register, and the accurate actual current value can be obtained by calibrating the current value of the SVID register.
However, since the schemes from M6 to M7 are upgraded and replaced, the internal registers of the chip are changed, the value in the PMBUS register cannot be directly acquired by the SVID register, but a certain conversion relationship exists so that the value can be the value in the SVID register. Fig. 2 is a schematic block diagram of the relationship between the current values of the modules in the M7 scheme, as shown in fig. 2, in the M7 scheme, not only the actual current value of the pull load is different from the actual Sense current value of the power chip, but also the current value of the PMBUS register is different from the current value in the SVID register, and if the test is still performed according to the existing test scheme, the finally obtained current value of the SVID register cannot correctly feed back the actual current value of the power chip; and because the CPU wants to obtain the power supply current of the power supply chip, the CPU can only obtain the power supply current from the SVID register with the same protocol as the CPU, and if the current value in the SVID register is not accurate, the CPU can not accurately control the power supply current of the power supply chip.
Therefore, how to obtain an accurate current value in the SVID register is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The application aims to provide a method, a device and a medium for obtaining a current value, which are used for obtaining an accurate current value in an SVID register.
In order to solve the above technical problem, the present application provides a method for obtaining a current value, including:
acquiring an actual current value pulled from a power supply chip;
obtaining a first corrected current value corrected by the PMBUS register according to the relation between the current value of the PMBUS register and the actual current value;
and obtaining a second corrected current value corrected by the SVID register according to the relation between the current value of the SVID register and the current value of the PMBUS register and the first corrected current value.
Preferably, the relationship between the current value of the PMBUS register and the actual current value is specifically constructed by a first relationship parameter, and before obtaining a first corrected current value corrected by the PMBUS register according to the relationship between the current value of the PMBUS register and the actual current value, the method further includes:
pulling and loading the actual current value according to a preset step length to obtain a current value curve of the PMBUS register;
judging whether a current value curve of the PMBUS register meets a first preset requirement or not;
if so, obtaining a first corrected current value corrected by the PMBUS register according to the relation between the current value of the PMBUS register and the actual current value;
and if not, adjusting the first relation parameter, and returning to the step of pulling and loading the actual current value according to a preset step length to obtain a current value curve of the PMBUS register.
Preferably, the relationship between the current value of the SVID register and the current value of the PMBUS register is specifically constructed by a second relationship parameter, and before obtaining a second corrected current value corrected by the SVID register according to the relationship between the current value of the SVID register and the current value of the PMBUS register and the first corrected current value, the method further includes:
pulling and loading the actual current value according to a preset step length to obtain a current value curve of the SVID register;
judging whether the current value curve of the SVID register meets a second preset requirement or not;
if so, obtaining a second corrected current value corrected by the SVID register according to the relationship between the current value of the SVID register and the current value of the PMBUS register and the first corrected current value;
and if not, adjusting the second relation parameter, and returning to the step of pulling and loading the actual current value according to a preset step length to obtain a current value curve of the SVID register.
Preferably, the first relation parameter includes a first slope parameter and a first spec parameter, and the relation between the current value of the PMBUS register and the actual current value is specifically that the current value of the PMBUS register is equal to the first slope parameter multiplied by the actual current value, and then the first spec parameter is added;
the adjusting the first relationship parameter comprises:
if the slope of the current value curve of the PMBUS register does not meet the first preset requirement, adjusting the first slope parameter;
if the size relationship between the current value curve of the PMBUS register and the spec curve of the PMBUS register does not meet the first preset requirement, adjusting the first spec parameter, wherein the spec curve of the PMBUS register is generated in advance;
the second relation parameter comprises a second slope parameter and a second spec parameter, and the relation between the current value of the SVID register and the current value of the PMBUS register is specifically that the current value of the SVID register is equal to the second slope parameter multiplied by the current value of the PMBUS register and then added with the second spec parameter;
the adjusting the second relationship parameter comprises:
if the slope of the current value curve of the SVID register does not meet the second preset requirement, adjusting the second slope parameter;
and if the size relation between the current value curve of the SVID register and the spec curve of the SVID register does not meet the second preset requirement, adjusting the second spec parameter, wherein the spec curve of the SVID is generated in advance.
Preferably, a distance between a maximum value spec curve and a minimum value spec curve among the spec curves of the PMBUS register is smaller than a distance between a maximum value spec curve and a minimum value spec curve among the spec curves of the SVID.
Preferably, the determining whether the current value curve of the PMBUS register meets a first preset requirement includes:
judging whether the slope of a current value curve of the PMBUS register meets the first preset requirement or not;
if the slope of the current value curve of the PMBUS register does not meet the first preset requirement, entering the step of adjusting the first slope parameter;
if the slope of the current value curve of the PMBUS register meets the first preset requirement, judging whether the size relation between the current value curve of the PMBUS register and the spec curve of the PMBUS register meets the first preset requirement or not;
if the size relationship between the current value curve of the PMBUS register and the spec curve of the PMBUS register does not meet the first preset requirement, entering the step of adjusting the first spec parameter;
if the size relationship between the current value curve of the PMBUS register and the spec curve of the PMBUS register meets the first preset requirement, the step of obtaining a first corrected current value corrected by the PMBUS register according to the relationship between the current value of the PMBUS register and the actual current value is carried out;
the judging whether the current value curve of the SVID register meets a second preset requirement comprises:
judging whether the slope of the current value curve of the SVID register meets the second preset requirement or not;
if the slope of the current value curve of the SVID register does not meet the second preset requirement, entering the step of adjusting the second slope parameter;
if the slope of the current value curve of the SVID register meets the second preset requirement, judging whether the size relationship between the current value curve of the SVID register and the spec curve of the SVID register meets the second preset requirement;
if the size relationship between the current value curve of the SVID register and the spec curve of the SVID register does not meet the second preset requirement, entering the step of adjusting the second spec parameter;
and if the size relationship between the current value curve of the SVID register and the spec curve of the SVID register meets the second preset requirement, the step of obtaining a second corrected current value corrected by the SVID register according to the relationship between the current value of the SVID register and the current value of the PMBUS register and the first corrected current value is carried out.
Preferably, the step of making the slope of the current value curve of the PMBUS register meet the first preset requirement is specifically:
the difference value between the slope of the current value curve of the PMBUS register and the slope of the spec curve of the PMBUS register is smaller than a first threshold value;
the step of making the slope of the current value curve of the SVID register meet the second preset requirement specifically is:
and the difference value between the slope of the current value curve of the SVID register and the slope of the spec curve of the SVID register is smaller than a second threshold value.
In order to solve the above technical problem, the present application further provides a device for obtaining a current value, including:
the acquisition module is used for acquiring an actual current value pulled and loaded from the power supply chip;
the first correction module is used for obtaining a first corrected current value corrected by the PMBUS register according to the relation between the current value of the PMBUS register and the actual current value;
and the second correction module is used for obtaining a second corrected current value corrected by the SVID register according to the relationship between the current value of the SVID register and the current value of the PMBUS register and the first corrected current value.
In order to solve the above technical problem, the present application further provides a device for obtaining a current value, including: a memory for storing a computer program;
and a processor for implementing the steps of the method for obtaining the current value when executing the computer program.
In order to solve the above technical problem, the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the above method for obtaining a current value.
The method for acquiring the current value provided by the application acquires the actual current value actually loaded by pulling, and the current value is corrected because the actual current value is different from the current value actually obtained by the power chip in the M7 scheme, and the current value of the PMBUS register is not equal to the current value in the SVID register. Specifically, a first corrected current value after the correction of the PMBUS register is obtained according to the relation between the current value of the PMBUS register and the actual current value, and a second corrected current value after the correction of the SVID register is obtained according to the relation between the current value of the SVID register and the current value of the PMBUS register and the first corrected current value. After two corrections, the second corrected current value of the SVID register can correctly feed back the current value to which the power chip actually senses, and can also feed back the actual current value of the pull load, so that the CPU is ensured to obtain the accurate power supply current of the power chip.
The application also provides a device and a medium for acquiring the current value, which correspond to the method, so that the method has the same beneficial effects as the method.
Drawings
In order to more clearly illustrate the embodiments of the present application, the drawings needed for the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
FIG. 1 is a schematic block diagram of the relationship between the current values of the modules in the M6 scheme;
FIG. 2 is a schematic block diagram of the relationship between the current values of the modules in the M7 scheme;
fig. 3 is a flowchart of a method for obtaining a current value according to an embodiment of the present disclosure;
fig. 4 is a structural diagram of an apparatus for obtaining a current value according to an embodiment of the present disclosure;
fig. 5 is a structural diagram of an apparatus for obtaining a current value according to another embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without any creative effort belong to the protection scope of the present application.
The core of the application is to provide a method, a device and a medium for acquiring a current value.
In order that those skilled in the art will better understand the disclosure, the following detailed description will be given with reference to the accompanying drawings.
The power supply chip mainly provides power supply service for a CPU of the server, and the CPU can acquire the current magnitude of the output end of the power supply chip so as to adjust the current magnitude according to actual conditions; since the protocol of the SVID register is the same as that of the CPU, the CPU needs to obtain the current value from the SVID register, generally, the power chip will be the actual current value of Sense, in the M7 scheme, the actual current value of the pull load is different from the current value actually reached by Sense of the power chip, the current value of the PMBUS register is also different from the current value in the SVID register, but the current value of the PMBUS register is the same as the current value actually reached by Sense of the power chip. Therefore, the actual current value needs to be corrected to obtain an accurate first corrected current value in the PMBUS register, and when the PMBUS register transmits the current value to the SVID register, the first corrected current value needs to be corrected again to obtain an accurate second corrected current value in the SVID register. The PMBUS register and the SVID register are registers of different protocols respectively. The PC controller can be connected with the power supply chip through the existing Dongle device, so that the current value of the PMBUS register can be displayed in the GUI, and various parameters can be adjusted; the SVID register current value can be read directly. In addition, the above manner of acquiring each current value is only one scheme provided in this embodiment, and the specific manner of acquiring is subject to actual conditions.
Fig. 3 is a flowchart of a method for obtaining a current value according to an embodiment of the present application, where the method includes the following steps:
s10: acquiring an actual current value pulled from a power supply chip;
the actual current value is obtained from the current output port of the power supply chip, and a large error occurs when the actual current value is received by the power supply chip Sense.
S11: obtaining a first corrected current value corrected by the PMBUS register according to the relation between the current value and the actual current value of the PMBUS register and the actual current value;
the current of the PMBUS register, namely the current from the power chip Sense, is the current actually reacted by the power chip, if the current value of the PMBUS register is not accurate, all the tests related to the current are not accurate, and therefore the current precision of the PMBUS register is the basis of all the tests. Therefore, the actual current value is corrected according to the relationship between the current value of the PMBUS register and the actual current value to obtain a first corrected current value, the relationship between the current value of the PMBUS register and the actual current value is not limited, and the relationship between the current value of the PMBUS register and the actual current value can be represented by formula (1), wherein the current value of the PMBUS register is IPMBUSThe actual current value is IoutThe relationship between the two is as follows:
IPMBUS=Gain1*Iout+Offset1 (1)
wherein Gain1 is the first slope parameter, Offset1 is the first spec parameter, when the obtained actual current value is IoutThen, the current value of the PMBUS register is I obtained from the formula (1)PMBUSHowever, it should be noted that the first slope parameter Gain1 and the first spec parameter Offset1 may not be accurate in the initial state, and may need to be adjusted to obtain the applicable parameters, and a specific adjustment process is not required.
S12: and obtaining a second corrected current value after the correction of the SVID register according to the relation between the current value of the SVID register and the current value of the PMBUS register and the first corrected current value.
Since the current value of the PMBUS register is different from the current value of the SVID register in the M7 scheme, after obtaining the accurate first corrected current value of the PMBUS register, it is necessary to continue correcting the first corrected current value to obtain the accurate second corrected current value of the SVID register, where the relationship between the current value of the SVID register and the current value of the PMBUS register is not limited, and formula (2) can be used as the relationship between the two, where the current value of the SVID register is ISVIDThe relationship between the two is as follows:
ISVID=Gain2*IPMBUS+Offset2 (2)
wherein Gain2 is the second slope parameter, Offset2 is the second spec parameter, and the first corrected current value is the current value I of the PMBUS registerPMBUSThe current value of the SVID register obtained from the formula (2) is ISVIDThe second corrected current value is obtained, and the CPU can directly obtain the second corrected current value, so that the accurate actual current value is obtained. However, it should be noted that the second slope parameter Gain2 and the second spec parameter Offset2 may not be accurate in the initial state, and may need to be adjusted to obtain suitable parameters, and a specific adjustment process is not required.
The method for acquiring the current value provided by the embodiment of the application acquires the actual current value actually loaded by pulling first, and because the current value actually acquired by the power chip is different from the actual current value acquired by the power chip in the M7 scheme, the current value of the PMBUS register is not equal to the current value in the SVID register, and therefore the current value needs to be corrected. Specifically, a first corrected current value after the correction of the PMBUS register is obtained according to the relation between the current value of the PMBUS register and the actual current value, and a second corrected current value after the correction of the SVID register is obtained according to the relation between the current value of the SVID register and the current value of the PMBUS register and the first corrected current value. After two corrections, the second corrected current value of the SVID register can correctly feed back the current value to which the power chip actually senses, and can also feed back the actual current value of the pull load, so that the CPU is ensured to obtain the accurate power supply current of the power chip.
In the above embodiments, it is mentioned that the first slope parameter Gain1 and the first spec parameter Offset1 may not be accurate in the initial state, and may need to be adjusted to obtain suitable parameters, so the embodiments of the present application provide a way to adjust the first slope parameter Gain1 and the first spec parameter Offset 1. The relationship between the current value of the PMBUS register and the actual current value is specifically constructed by a first relationship parameter, the first relationship parameter includes a first slope parameter Gain1 and a first spec parameter Offset1, and the specific relationship formula is formula (1) above. Before obtaining a first corrected current value corrected by the PMBUS register according to the relation between the current value and the actual current value of the PMBUS register and the actual current value, the method further comprises the following steps: pulling and loading an actual current value according to a preset step length to obtain a current value curve of the PMBUS register; judging whether a current value curve of the PMBUS register meets a first preset requirement or not; if so, obtaining a first corrected current value of the PMBUS register after correction according to the relation between the current value of the PMBUS register and the actual current value; if not, adjusting the first relation parameter, and returning to the step of pulling and loading the actual current value according to the preset step length to obtain the current value curve of the PMBUS register. As shown in equation (1), the relationship between the current value of the PMBUS register and the actual current value is specifically that the current value of the PMBUS register is equal to the first slope parameter Gain1 multiplied by the actual current value and then added with the first spec parameter Offset 1. Adjusting the first relationship parameter includes: if the slope of the current value curve of the PMBUS register does not meet the first preset requirement, adjusting a first slope parameter; and if the size relation between the current value curve of the PMBUS register and the spec curve of the PMBUS register does not meet the first preset requirement, adjusting a first spec parameter, wherein the spec curve of the PMBUS register is generated in advance.
The VRTT TOOL is connected with the PC controller through a USB line and then directly connected with the output end of the tested chip, and the PC controller can control the VRTT TOOL to pull and load different current values to the tested power chip according to a certain step length through an automatic test script. And correspondingly obtaining the current value of the PMBUS register according to the preset step length pulling and loading the actual current value, and forming a current value curve according to the current value of the PMBUS register. When an actual current value is loaded, the PC controller records the current value in the PMBUS register, and after the load-loading test is finished, the PC controller can form a current value curve of the PMBUS register. And calculating the slope of the current value curve of the PMBUS register, comparing the slope with the slope of the spec curve corresponding to the PMBUS register, and firstly, accurately adjusting the slope through a comparison result, namely adjusting a first slope parameter Gain 1. After the slope adjustment is finished, the test is carried out again, the debugging result is checked, the PC controller can compare the value of the curve current on the PMBUS register with the size of the spec curve, and if the current is wholly lower or higher, the first spec parameter offset1 is accurately adjusted. After the adjustment of both the first slope parameter Gain1 and the first spec parameter offset1 is complete, the parameters of equation (1) have been determined, which may be represented by the actual current value as IoutCalculating the current value of the PMBUS register as IPMBUSI.e. the first corrected current value.
According to the embodiment of the application, whether the current value curve of the PMBUS register meets the first preset requirement or not is judged, the first relation parameter can be adjusted, so that a proper first slope parameter Gain1 and a proper first spec parameter Offset1 are obtained, and the obtained first corrected current value is more accurate.
Similarly, in the above embodiments, it is mentioned that the second slope parameter Gain2 and the second spec parameter Offset2 may not be accurate in the initial state, and may need to be adjusted to obtain suitable parameters, so the embodiments of the present application provide a way to adjust the second slope parameter Gain2 and the second spec parameter Offset 2. The relationship between the current value of the SVID register and the current value of the PMBUS register is specifically constructed by a second relationship parameter, the second relationship parameter includes a second slope parameter Gain2 and a second spec parameter Offset2, the specific relationship formula is formula (2), and before obtaining a second corrected current value corrected by the SVID register according to the relationship between the current value of the SVID register and the current value of the PMBUS register and the first corrected current value, the method further includes: pulling and loading the actual current value according to a preset step length to obtain a current value curve of the SVID register; judging whether the current value curve of the SVID register meets a second preset requirement or not; if so, obtaining a second corrected current value corrected by the SVID register according to the relationship between the current value of the SVID register and the current value of the PMBUS register and the first corrected current value; and if not, adjusting the second relation parameter, and returning to the step of pulling and loading the actual current value according to the preset step length to obtain the current value curve of the SVID register. Specifically, as shown in equation (2), the relationship between the current value of the SVID register and the current value of the PMBUS register is that the current value of the SVID register is equal to the second slope parameter Gain2 multiplied by the current value of the PMBUS register, and then the second spec parameter Offset2 is added. Adjusting the second relationship parameter includes: if the slope of the current value curve of the SVID register does not meet a second preset requirement, adjusting a second slope parameter; and if the size relation between the current value curve of the SVID register and the spec curve of the SVID register does not meet a second preset requirement, adjusting a second spec parameter, wherein the spec curve of the SVID is generated in advance.
In the above embodiment, the VRTT TOOl is connected to the PC controller through the USB cable and then directly connected to the output terminal of the chip to be tested, and the PC controller may control the VRTT TOOl to pull different current values to the power chip to be tested according to a certain step length through the automatic test script. And then, the current value of the SVID register can be directly read through an SVID protocol, and a current value curve is formed according to the current value of the SVID register. And when the actual current value is loaded, the PC controller records the current value in the SVID register, and after the load-loading test is finished, the PC controller can form a current value curve of the SVID register. ComputingAnd comparing the slope of the current value curve of the SVID register with the slope of the spec curve corresponding to the SVID register, and firstly, accurately adjusting the slope through a comparison result, namely adjusting a second slope parameter Gain 2. After the slope adjustment is finished, the pull-load test is performed once again, the debugging result is checked, the PC controller compares the curve current value on the SVID register with the size of the spec curve, and if the current is wholly lower or higher, the second spec parameter offset2 is accurately adjusted. When the second slope parameter Gain1 and the second spec parameter offset2 are adjusted, the parameters of equation (2) are determined, and the current value I passing through the PMBUS register is determinedSVID(i.e., the first corrected current value) to calculate the current value of the SVID register as ISVIDI.e. the second corrected current value.
According to the embodiment of the application, whether the current value curve of the SVID register meets the first preset requirement or not is judged, the second relation parameter can be adjusted to obtain the appropriate second slope parameter Gain2 and the second spec parameter Offset2, so that the obtained second corrected current value is more accurate, the second corrected current value of the SVID register can more correctly feed back the actual current value of the load, and the CPU is ensured to obtain the accurate power supply current of the power chip.
In general, after the confirmation of each parameter, the current value curves obtained according to the equations (1) and (2) are between the maximum value spec curve and the minimum value spec curve among the spec curves. The distance between the maximum value spec curve and the minimum value spec curve in the spec curves of the PMBUS registers is smaller than the distance between the maximum value spec curve and the minimum value spec curve in the spec curves of the SVID, so that the finally obtained current value of the PMBUS registers is more accurate than the current value of the SVID registers, and the current value of the PMBUS registers is more accurate, so that the second corrected current value obtained according to the first corrected current value can be more accurate. If the current value of the PMBUS register is not accurate enough, no matter how the current value of the SVID register is corrected, an accurate second correction current value cannot be obtained, that is, the embodiment of the application can obtain a more accurate second correction current value with less cost.
Judging whether the current value curve of the PMBUS register meets a first preset requirement comprises the following steps: judging whether the slope of a current value curve of the PMBUS register meets a first preset requirement or not; if the slope of the current value curve of the PMBUS register does not meet a first preset requirement, entering a step of adjusting a first slope parameter; if the slope of the current value curve of the PMBUS register meets a first preset requirement, judging whether the size relationship between the current value curve of the PMBUS register and the spec curve of the PMBUS register meets the first preset requirement or not; if the size relation between the current value curve of the PMBUS register and the spec curve of the PMBUS register does not meet a first preset requirement, entering a step of adjusting a first spec parameter; and if the size relationship between the current value curve of the PMBUS register and the spec curve of the PMBUS register meets a first preset requirement, obtaining a first corrected current value corrected by the PMBUS register according to the relationship between the current value of the PMBUS register and the actual current value.
Judging whether the current value curve of the SVID register meets a second preset requirement comprises the following steps: judging whether the slope of the current value curve of the SVID register meets a second preset requirement or not; if the slope of the current value curve of the SVID register does not meet a second preset requirement, entering a step of adjusting a second slope parameter; if the slope of the current value curve of the SVID register meets a second preset requirement, judging whether the size relationship between the current value curve of the SVID register and the spec curve of the SVID register meets the second preset requirement or not; if the size relation between the current value curve of the SVID register and the spec curve of the SVID register does not meet a second preset requirement, entering a step of adjusting a second spec parameter; and if the size relationship between the current value curve of the SVID register and the spec curve of the SVID register meets a second preset requirement, obtaining a second corrected current value corrected by the SVID register according to the relationship between the current value of the SVID register and the current value of the PMBUS register and the first corrected current value.
The method and the device have the advantages that whether the current value curve of the PMBUS register meets the first preset requirement or not and whether the current value curve of the SVID register meets the second preset requirement or not are limited, the slope of the curve is adjusted firstly, and after the slope of the curve is adjusted, the size of the curve is adjusted again, so that the curve is between the maximum value spec curve and the minimum value spec curve in the spec curve. The current value curve can be more easily adjusted to meet the preset requirements.
The slope of the current value curve of the PMBUS register meeting a first preset requirement is specifically as follows: the difference value between the slope of the current value curve of the PMBUS register and the slope of the spec curve of the PMBUS register is smaller than a first threshold value; the specific step that the slope of the current value curve of the SVID register meets the second preset requirement is as follows: and the difference value between the slope of the current value curve of the SVID register and the slope of the spec curve of the SVID register is smaller than a second threshold value. The sizes of the first threshold and the second threshold are not limited, which is subject to the requirements of practical application.
The slope of the spec curve is used as a reference value to adjust the slopes of the current value curve of the PMBUS register and the current value curve of the SVID register, so that the two finally obtained current value curves are more in line with the preset requirement.
In the above embodiments, the method for obtaining the current value is described in detail, and the present application also provides embodiments corresponding to the apparatus for obtaining the current value. It should be noted that the present application describes the embodiments of the apparatus portion from two perspectives, one from the perspective of the function module and the other from the perspective of the hardware.
Based on the angle of the functional module, this embodiment provides an apparatus for obtaining a current value, fig. 4 is a structural diagram of the apparatus for obtaining a current value provided in this embodiment of the present application, and as shown in fig. 4, the apparatus includes:
an obtaining module 10, configured to obtain an actual current value drawn from a power chip;
the first correction module 11 is configured to obtain a first corrected current value corrected by the PMBUS register according to a relationship between a current value of the PMBUS register and an actual current value and the actual current value;
and a second correction module 12, configured to obtain a second corrected current value corrected by the SVID register according to a relationship between the current value of the SVID register and the current value of the PMBUS register and the first corrected current value.
Since the embodiment of the apparatus portion and the embodiment of the method portion correspond to each other, please refer to the description of the embodiment of the method portion for the embodiment of the apparatus portion, and details are not repeated here.
The apparatus for obtaining a current value provided in this embodiment corresponds to the above method, and therefore has the same beneficial effects as the above method.
Based on the angle of hardware, this embodiment provides another apparatus for obtaining a current value, fig. 5 is a structural diagram of the apparatus for obtaining a current value according to another embodiment of the present application, and as shown in fig. 5, the apparatus for obtaining a current value includes: a memory 20 for storing a computer program;
a processor 21 for implementing the steps of the method of obtaining a current value as mentioned in the above embodiments when executing the computer program.
The device for acquiring the current value provided by the embodiment may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like.
The processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The Processor 21 may be implemented in hardware using at least one of a Digital Signal Processor (DSP), a Field-Programmable Gate Array (FPGA), and a Programmable Logic Array (PLA). The processor 21 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with a Graphics Processing Unit (GPU) which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 21 may further include an Artificial Intelligence (AI) processor for processing computational operations related to machine learning.
The memory 20 may include one or more computer-readable storage media, which may be non-transitory. Memory 20 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used for storing a computer program 201, wherein after being loaded and executed by the processor 21, the computer program can implement the relevant steps of the method for obtaining a current value disclosed in any one of the foregoing embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202, data 203, and the like, and the storage manner may be a transient storage manner or a permanent storage manner. Operating system 202 may include, among others, Windows, Unix, Linux, and the like. Data 203 may include, but is not limited to, data related to the method of obtaining the current values, and the like.
In some embodiments, the device for obtaining the current value may further include a display 22, an input/output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.
It will be understood by those skilled in the art that the configurations shown in the figures do not constitute a limitation of the means for obtaining current values and may comprise more or less components than those shown.
The device for acquiring the current value provided by the embodiment of the application comprises a memory and a processor, wherein when the processor executes a program stored in the memory, the following method can be realized: a method for obtaining a current value.
The apparatus for obtaining a current value provided in this embodiment corresponds to the above method, and therefore has the same beneficial effects as the above method.
Finally, the application also provides a corresponding embodiment of the computer readable storage medium. The computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps as set forth in the above-mentioned method embodiments.
It is to be understood that if the method in the above embodiments is implemented in the form of software functional units and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially or partially implemented in the form of a software product, which is stored in a storage medium and performs all or part of the steps of the methods described in the embodiments of the present application, or all or part of the technical solution. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The computer-readable storage medium provided by the embodiment corresponds to the method, and therefore has the same beneficial effects as the method.
The method, the device and the medium for obtaining the current value provided by the present application are described in detail above. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the same element.

Claims (10)

1. A method of obtaining a current value, comprising:
acquiring an actual current value pulled from a power supply chip;
obtaining a first corrected current value corrected by the PMBUS register according to the relation between the current value of the PMBUS register and the actual current value; the specific calculation method is as follows:
IPMBUS=Gain1*Iout+Offset1
wherein the first corrected current value is IPMBUSThe actual current value is IoutGain1 is the first slope parameter, Offset1 is the first spec parameter;
obtaining a second corrected current value corrected by the SVID register according to the relation between the current value of the SVID register and the current value of the PMBUS register and the first corrected current value; the specific calculation method is as follows:
ISVID=Gain2*IPMBUS+Offset2
wherein the second corrected current value is ISVIDGain2 is the second slope parameter, and Offset2 is the second spec parameter.
2. The method according to claim 1, wherein the relationship between the current value of the PMBUS register and the actual current value is specifically constructed by a first relationship parameter, and before obtaining the first corrected current value corrected by the PMBUS register according to the relationship between the current value of the PMBUS register and the actual current value, the method further comprises:
pulling and loading the actual current value according to a preset step length to obtain a current value curve of the PMBUS register;
judging whether a current value curve of the PMBUS register meets a first preset requirement or not;
if so, obtaining a first corrected current value corrected by the PMBUS register according to the relation between the current value of the PMBUS register and the actual current value;
and if not, adjusting the first relation parameter, and returning to the step of pulling and loading the actual current value according to a preset step length to obtain a current value curve of the PMBUS register.
3. The method according to claim 2, wherein the relationship between the current value of the SVID register and the current value of the PMBUS register is constructed by a second relationship parameter, and before obtaining a second corrected current value corrected by the SVID register according to the relationship between the current value of the SVID register and the current value of the PMBUS register and the first corrected current value, the method further comprises:
pulling and loading the actual current value according to a preset step length to obtain a current value curve of the SVID register;
judging whether the current value curve of the SVID register meets a second preset requirement or not;
if so, obtaining a second corrected current value corrected by the SVID register according to the relationship between the current value of the SVID register and the current value of the PMBUS register and the first corrected current value;
if not, adjusting the second relation parameter, and returning to the step of pulling and loading the actual current value according to a preset step length to obtain a current value curve of the SVID register.
4. The method according to claim 3, wherein the first relation parameter includes a first slope parameter and a first spec parameter, and the relation between the current value of the PMBUS register and the actual current value is specifically that the current value of the PMBUS register is equal to the first slope parameter multiplied by the actual current value, and then the first spec parameter is added;
the adjusting the first relationship parameter comprises:
if the slope of the current value curve of the PMBUS register does not meet the first preset requirement, adjusting the first slope parameter;
if the size relationship between the current value curve of the PMBUS register and the spec curve of the PMBUS register does not meet the first preset requirement, adjusting the first spec parameter, wherein the spec curve of the PMBUS register is generated in advance;
the second relation parameter comprises a second slope parameter and a second spec parameter, and the relation between the current value of the SVID register and the current value of the PMBUS register is specifically that the current value of the SVID register is equal to the second slope parameter multiplied by the current value of the PMBUS register and then added with the second spec parameter;
the adjusting the second relationship parameter comprises:
if the slope of the current value curve of the SVID register does not meet the second preset requirement, adjusting the second slope parameter;
and if the size relation between the current value curve of the SVID register and the spec curve of the SVID register does not meet the second preset requirement, adjusting the second spec parameter, wherein the spec curve of the SVID is generated in advance.
5. The method for obtaining the current value according to claim 4, wherein the distance between the maximum value spec curve and the minimum value spec curve in the spec curves of the PMBUS register is smaller than the distance between the maximum value spec curve and the minimum value spec curve in the spec curves of the SVID.
6. The method for obtaining the current value according to claim 4 or 5, wherein the determining whether the current value curve of the PMBUS register meets a first preset requirement comprises:
judging whether the slope of a current value curve of the PMBUS register meets the first preset requirement or not;
if the slope of the current value curve of the PMBUS register does not meet the first preset requirement, entering the step of adjusting the first slope parameter;
if the slope of the current value curve of the PMBUS register meets the first preset requirement, judging whether the size relation between the current value curve of the PMBUS register and the spec curve of the PMBUS register meets the first preset requirement or not;
if the size relationship between the current value curve of the PMBUS register and the spec curve of the PMBUS register does not meet the first preset requirement, entering the step of adjusting the first spec parameter;
if the size relationship between the current value curve of the PMBUS register and the spec curve of the PMBUS register meets the first preset requirement, the step of obtaining a first corrected current value corrected by the PMBUS register according to the relationship between the current value of the PMBUS register and the actual current value is carried out;
the judging whether the current value curve of the SVID register meets a second preset requirement comprises:
judging whether the slope of the current value curve of the SVID register meets the second preset requirement or not;
if the slope of the current value curve of the SVID register does not meet the second preset requirement, entering the step of adjusting the second slope parameter;
if the slope of the current value curve of the SVID register meets the second preset requirement, judging whether the size relationship between the current value curve of the SVID register and the spec curve of the SVID register meets the second preset requirement;
if the size relationship between the current value curve of the SVID register and the spec curve of the SVID register does not meet the second preset requirement, entering the step of adjusting the second spec parameter;
and if the size relationship between the current value curve of the SVID register and the spec curve of the SVID register meets the second preset requirement, the step of obtaining a second corrected current value corrected by the SVID register according to the relationship between the current value of the SVID register and the current value of the PMBUS register and the first corrected current value is carried out.
7. The method according to claim 5, wherein the slope of the current value curve of the PMBUS register meeting the first preset requirement is specifically:
the difference value between the slope of the current value curve of the PMBUS register and the slope of the spec curve of the PMBUS register is smaller than a first threshold value;
the step of making the slope of the current value curve of the SVID register meet the second preset requirement specifically is:
and the difference value between the slope of the current value curve of the SVID register and the slope of the spec curve of the SVID register is smaller than a second threshold value.
8. An apparatus for obtaining a current value, comprising:
the acquisition module is used for acquiring an actual current value pulled and loaded from the power supply chip;
the first correction module is used for obtaining a first corrected current value corrected by the PMBUS register according to the relation between the current value of the PMBUS register and the actual current value; the specific calculation method is as follows:
IPMBUS=Gain1*Iout+Offset1
wherein the first corrected current value is IPMBUS, the actual current value is Iout, Gain1 is a first slope parameter, and Offset1 is a first spec parameter;
the second correction module is used for obtaining a second corrected current value corrected by the SVID register according to the relationship between the current value of the SVID register and the current value of the PMBUS register and the first corrected current value; the specific calculation method is as follows:
ISVID=Gain2*IPMBUS+Offset2
wherein the second corrected current value is ISVID, Gain2 is a second slope parameter, and Offset2 is a second spec parameter.
9. An apparatus for obtaining a current value, comprising a memory for storing a computer program;
a processor for implementing the steps of the method of obtaining a current value according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the method of obtaining a current value according to any one of claims 1 to 7.
CN202210046311.6A 2022-01-17 2022-01-17 Current value obtaining method, device and medium Active CN114063758B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210046311.6A CN114063758B (en) 2022-01-17 2022-01-17 Current value obtaining method, device and medium
PCT/CN2022/134788 WO2023134315A1 (en) 2022-01-17 2022-11-28 Current value obtaining method and device, and non-volatile readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210046311.6A CN114063758B (en) 2022-01-17 2022-01-17 Current value obtaining method, device and medium

Publications (2)

Publication Number Publication Date
CN114063758A CN114063758A (en) 2022-02-18
CN114063758B true CN114063758B (en) 2022-05-06

Family

ID=80231412

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210046311.6A Active CN114063758B (en) 2022-01-17 2022-01-17 Current value obtaining method, device and medium

Country Status (2)

Country Link
CN (1) CN114063758B (en)
WO (1) WO2023134315A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114063758B (en) * 2022-01-17 2022-05-06 苏州浪潮智能科技有限公司 Current value obtaining method, device and medium

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9787172B2 (en) * 2014-06-19 2017-10-10 Dell Products Lp Methods and systems for implementing adaptive FET drive voltage optimization for power stages of multi-phase voltage regulator circuits
US10635146B2 (en) * 2016-01-28 2020-04-28 Dell Products, L.P. Power monitoring calibration to a target performance level
CN107239127A (en) * 2017-06-09 2017-10-10 山东超越数控电子有限公司 A kind of VRM method for managing power supply based on server B MC
CN107273271A (en) * 2017-06-21 2017-10-20 联想(北京)有限公司 A kind of overclocking control method and electronic equipment
CN107817460A (en) * 2017-10-11 2018-03-20 郑州云海信息技术有限公司 A kind of device and method of batch calibration current sense
US11283935B2 (en) * 2019-12-30 2022-03-22 Texas Instruments Incorporated Configurable circuit telemetry system
US11515794B2 (en) * 2020-07-09 2022-11-29 Infineon Technologies Austria Ag Current estimation in a power supply
CN112799493B (en) * 2020-12-26 2022-12-27 苏州浪潮智能科技有限公司 Current automatic calibration circuit and calibration method for power supply VR chip
CN112782606A (en) * 2021-01-22 2021-05-11 苏州浪潮智能科技有限公司 Current precision testing method and system for power module in server
CN113868040B (en) * 2021-08-30 2023-07-25 浪潮(山东)计算机科技有限公司 Psys automatic test system, psys automatic test method, psys automatic test construction method and Psys automatic test construction device
CN114063758B (en) * 2022-01-17 2022-05-06 苏州浪潮智能科技有限公司 Current value obtaining method, device and medium

Also Published As

Publication number Publication date
CN114063758A (en) 2022-02-18
WO2023134315A1 (en) 2023-07-20

Similar Documents

Publication Publication Date Title
US11768736B2 (en) Storage system boot method and apparatus, and computer-readable storage medium
CN111984351B (en) Page adaptation method, electronic device and computer readable storage medium
CN107833568B (en) Screen brightness adjusting method and device and display terminal
EP2584471A1 (en) Method and terminal for selecting internal circuit according to USB interface status
CN110460505B (en) Parallel bus time sequence calibration method and device and receiving end equipment
CN111211937B (en) Method, device and system for testing stability of server link signals
CN114063758B (en) Current value obtaining method, device and medium
CN103389956A (en) Method and circuit used for dynamically optimizing bus frequency of inter-integrated circuit bus
CN111338616A (en) Protocol analysis code generation method and device and electronic equipment
US20240143443A1 (en) Method and apparatus for repairing hanging in communication bus, electronic device, and storage medium
CN112996020A (en) Bluetooth-based automatic testing method and device and Bluetooth testing terminal
CN115268564B (en) Method, system, apparatus, and medium for calibrating chip circuits
CN116521480A (en) Power consumption reading precision test system, method, device, equipment and storage medium
CN108235422B (en) Antenna power setting method and electronic device
CN113495225B (en) Power supply stability test method, system and equipment
CN113645088B (en) Automatic regulation method, system, device and medium for network card NCSI signal
CN112486621B (en) Horizontal and vertical screen adaptation method, device and storage medium based on IO level
CN109903803B (en) Method and system for testing storage module
CN114121138B (en) Memory voltage testing method, device, computing equipment and system
CN112558747A (en) Power capping method, system and related components of server
CN110989814A (en) Server protection method, device and equipment
CN112291556B (en) Color temperature debugging method and device, terminal equipment and readable storage medium
CN112163057B (en) Method and device for determining height of pole tower, electronic equipment and medium
CN112906076B (en) Control method and system of over-current protection chip and related components
CN111316523A (en) Cable through-current capacity detection method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant