CN116185164A - Voltage regulating method and related device - Google Patents

Voltage regulating method and related device Download PDF

Info

Publication number
CN116185164A
CN116185164A CN202310161934.2A CN202310161934A CN116185164A CN 116185164 A CN116185164 A CN 116185164A CN 202310161934 A CN202310161934 A CN 202310161934A CN 116185164 A CN116185164 A CN 116185164A
Authority
CN
China
Prior art keywords
voltage
frequency
target
chip
value
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.)
Pending
Application number
CN202310161934.2A
Other languages
Chinese (zh)
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.)
Zeku Technology Shanghai Corp Ltd
Original Assignee
Zeku Technology Shanghai Corp 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 Zeku Technology Shanghai Corp Ltd filed Critical Zeku Technology Shanghai Corp Ltd
Priority to CN202310161934.2A priority Critical patent/CN116185164A/en
Publication of CN116185164A publication Critical patent/CN116185164A/en
Pending legal-status Critical Current

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
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3296Power saving characterised by the action undertaken by lowering the supply or operating voltage
    • 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)
  • Dc-Dc Converters (AREA)
  • Control Of Voltage And Current In General (AREA)
  • Power Sources (AREA)

Abstract

The embodiment of the application discloses a voltage regulating method and a related device, wherein the method comprises the following steps: acquiring a target working frequency; determining a voltage value corresponding to the target working frequency according to the target working frequency, wherein the voltage value is used for representing the required working voltage of the chip at the target working frequency; determining a target working voltage according to the voltage value; voltage adjustment is performed based on the target operating voltage. The scheme of this application is favorable to reducing the power consumption waste of chip.

Description

Voltage regulating method and related device
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a voltage adjustment method and a related device.
Background
The real-time operating system (Real Time Operating System, RTOS for short) refers to an operating system which can accept and process external events or data quickly enough, and the processing result can control the production process or make a quick response to the processing system within a specified time, schedule all available resources to complete real-time tasks, and control all real-time tasks to run in coordination and consistency.
Currently, a real-time operating system is dynamically frequency-modulated and voltage-modulated according to a scene or according to a load through a software system, so that power consumption is reduced, however, the power consumption reduced by the method is limited.
Disclosure of Invention
The embodiment of the application provides a voltage regulating method and a related device, so as to reduce the power consumption of a chip.
In a first aspect, an embodiment of the present application provides a voltage adjustment method applied to the chip of an electronic device; the method comprises the following steps:
acquiring a target working frequency;
determining a voltage value corresponding to the target working frequency according to the target working frequency, wherein the voltage value is used for representing the magnitude of the working voltage required by the chip at the target working frequency;
determining a target working voltage according to the voltage value;
and performing voltage regulation based on the target operating voltage.
In a second aspect, embodiments of the present application provide a voltage adjustment device applied to the chip of an electronic device; the device comprises:
an acquisition unit configured to acquire a target operating frequency;
the first determining unit is used for determining a voltage value corresponding to the target working frequency according to the target working frequency, wherein the voltage value is used for representing the magnitude of the working voltage required by the chip at the target working frequency;
a second determining unit configured to determine a target operating voltage according to the voltage value;
and the voltage regulating unit is used for regulating the voltage based on the target working voltage.
In a third aspect, embodiments of the present application provide an electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the first aspect of embodiments of the present application.
In a fourth aspect, embodiments of the present application provide a computer storage medium storing a computer program for electronic data exchange, wherein the computer program causes a computer to perform some or all of the steps as described in the first aspect of the present embodiment.
It can be seen that, in this embodiment, by first obtaining the target operating frequency, and then determining a voltage value corresponding to the target operating frequency according to the target operating frequency, the voltage value is used to represent the magnitude of the operating voltage required by the chip at the target operating frequency; then determining a target working voltage according to the voltage value; and then voltage regulation is performed based on the target operating voltage. Therefore, in the application, the voltage value required by the chip is determined through the target working frequency, and the target working voltage required by the chip under the target working frequency is determined according to the voltage value, so that the voltage required by the chip is regulated based on the target working voltage, and the differential regulation for different chips can be realized, thereby being beneficial to optimizing the power consumption of the chip and reducing the power consumption.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a diagram illustrating a composition example of an electronic device provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of a software framework of a chip according to an embodiment of the present disclosure;
fig. 3 is a schematic flow chart of a voltage regulation method according to an embodiment of the present application;
fig. 4 is a schematic diagram of a flow chart of frequency modulation and voltage regulation in a voltage regulation method according to an embodiment of the present application;
FIG. 5a is a block diagram of the functional units of a voltage regulator according to an embodiment of the present application;
fig. 5b is a functional unit block diagram of another voltage regulator according to an embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will clearly and completely describe the technical solution in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The terms first, second and the like in the description and in the claims of the present application and in the above-described figures, are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
The chips are produced in mass, and the characteristics of the chips are different due to the influence of the production process. The power supply voltage requirements required by chips of different characteristics are different when running the same load program (operating at the same frequency). In current applications, a minimum operating voltage is designed for the same lot of chips in combination with the feature profile of the lot of chips. However, for a good chip, the minimum operating voltage may be higher than the minimum operating voltage that the chip is actually adapted to, resulting in an increase in power consumption due to the excessively high supplied voltage. For example, if the minimum operating voltage set for the same batch of chips is 0.7V, the 0.7V may correspond to the worst two of the 100 chips, the voltage required for the other 98 chips is lower than 0.7V, the best possible chip is only 0.65V, and the middle chip can normally operate only 0.67V, so that the voltage is additionally 0.05V for the best chip, and power consumption is wasted. And power consumption is positively correlated with the square of voltage, the effect of voltage on power consumption is very large.
In order to solve the above problems, the present application provides a voltage regulation method, where the target operating frequency required by the load of the chip is obtained first, where the load includes an application program installed in the electronic device; inquiring a frequency voltage set of the chip according to the target working frequency, and determining a voltage value corresponding to the target working frequency, wherein the frequency voltage set comprises a corresponding relation between the working frequency and the working voltage of the chip, and the voltage value is used for representing the required working voltage of the chip at the target working frequency; then determining a target working voltage according to the voltage value; and then adjusting the working voltage of the chip to the target working voltage. Therefore, in the application, the voltage value corresponding to the target working frequency of the chip is obtained by calling the frequency voltage set of the chip, and then the working voltage of the chip is regulated according to the voltage value, so that the more proper voltage value between the chip and the target working frequency can be obtained according to the difference of the chip, and the working voltage of the chip can be regulated, thereby more pertinently optimizing the power consumption of the chip, and being beneficial to further reducing the power consumption waste.
Embodiments of the present application are described below with reference to the accompanying drawings.
The technical scheme of the application can be applied to electronic equipment, and the electronic equipment can be mobile terminals such as smart phones, tablet computers and wearable equipment.
The electronic device 100 in the present application may include a processor 110, a memory 120, a communication interface 130, and one or more programs 121, where the one or more programs 121 are stored in the memory 120 and configured to be executed by the processor 110, and the one or more programs 121 include instructions for executing any of the steps of the method embodiments described above, as shown in fig. 1.
Wherein the communication interface 130 is used to support communication of the electronic device 100 with other devices. The processor 110 may be, for example, a central processing unit (Central Processing Unit, CPU), a general purpose processor, a digital signal processor (Digital Signal Processor, DSP), an Application-specific integrated circuit (Application-Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic device, transistor logic device, hardware components, or any combination thereof. Which may implement or perform the various exemplary logic blocks, units and circuits described in connection with the disclosure of embodiments of the present application. The processor may also be a combination that performs the function of a computation, e.g., a combination comprising one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
The memory 120 may be volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The nonvolatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an electrically Erasable EPROM (EEPROM), or a flash memory. The volatile memory may be random access memory (random access memory, RAM) which acts as an external cache. By way of example but not limitation, many forms of random access memory (random access memory, RAM) are available, such as Static RAM (SRAM), dynamic Random Access Memory (DRAM), synchronous Dynamic Random Access Memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced Synchronous Dynamic Random Access Memory (ESDRAM), synchronous Link DRAM (SLDRAM), and direct memory bus RAM (DR RAM).
In particular implementations, the processor 110 is configured to perform any of the steps performed by the electronic device in the method embodiments described below, and when performing data transmission such as sending, optionally invoke the communication interface 130 to perform the corresponding operations.
It should be noted that the above schematic structural diagram of the electronic device is merely an example, and more or fewer devices may be specifically included, which is not limited only herein.
Referring to fig. 2, fig. 2 is a schematic diagram illustrating a software framework of a chip according to an embodiment of the present application. The chip is deployed with an AVS (adaptive voltage scale, adaptive voltmeter) state machine, a dynamic frequency and voltage regulator module (DVFS), and a voltage control module (PMIC driver). The AVS state machine is used for controlling the current state of the chip, and can call the voltage control module to give a command of controlling voltage to the PMIC (Power Management IC ) when receiving the request of the dynamic frequency modulation and voltage regulation module, so that the voltage of the chip is regulated through the PMIC. The dynamic frequency and voltage modulation module is used for detecting and adjusting the working frequency of the chip and can interact with the AVS state machine to send a request for adjusting the working voltage of the chip to the AVS state machine. The voltage control module can issue a command for controlling the voltage to the PMIC (Power Management IC ) according to the control of the AVS state machine, so as to control the PMIC to regulate the voltage of the chip.
As shown in fig. 2, the chip may further be provided with a sensor control module (PVT driver), where the sensor control module is configured to detect an actual temperature, an actual operating voltage, and an actual operating frequency of the chip through a temperature sensor, a voltage sensor, and an actual frequency sensor integrated with the chip, and transmit detected data to an AVS state machine, so that the AVS state machine can dynamically adjust the actual operating voltage and the actual operating frequency of the chip, and the actual operating voltage and the actual operating frequency required by the chip.
As shown in fig. 2, the above-described chip may also be deployed with a power management framework (PM) for comprehensively managing power supply of the electronic device.
Referring to fig. 3, fig. 3 is a flowchart of a voltage regulation method according to an embodiment of the present application, and the method may be applied to a chip of an electronic device. As shown in fig. 3, the voltage adjustment method includes:
s210, acquiring a target working frequency.
The target operating frequency refers to an operating frequency required by the load operation of the chip supporting electronic equipment. The load of the electronic device may be an application program installed on the electronic device.
In a specific implementation, the dynamic frequency and voltage modulation module can detect the load condition of the electronic equipment in real time, and when the load condition changes, the dynamic frequency and voltage modulation module can acquire the target working frequency required by the changed load. For example, when the electronic device enables a certain application program, the dynamic frequency and voltage modulation module may obtain a frequency required by the chip to support the electronic device to operate after the application program is enabled, where the frequency is a target working frequency.
Specifically, the memory of the electronic device may store an application frequency set, where the application frequency set includes a correspondence between an application program and a working frequency required for the chip to support its operation. When the electronic equipment starts a certain application program, the dynamic frequency and voltage modulation module can inquire the application frequency set so as to acquire the working frequency required by starting the load, then calculates the required comprehensive working frequency according to the started application and the specific use condition of the application, and determines the comprehensive working frequency as the target working frequency.
S220, determining a voltage value corresponding to the target working frequency according to the target working frequency, wherein the voltage value is used for representing the magnitude of the working voltage required by the chip at the target working frequency.
In one possible example, the determining a voltage value corresponding to the target operating frequency according to the target operating frequency includes: acquiring a frequency voltage set of the chip; inquiring the frequency voltage set according to the target working frequency, and determining the voltage value corresponding to the target working frequency in the frequency voltage set, wherein the frequency voltage set comprises the corresponding relation between the working frequency and the working voltage of the chip.
The frequency voltage set is stored in a memory of a chip or a memory of an electronic device, and the like, and is not limited herein. The data in the frequency voltage set is the data recorded by multiple tests on the chip before the chip is assembled in the electronic equipment (such as in the chip production process). Specifically, the chip is integrated with a frequency sensor and a pressure sensor, which can record the minimum operating voltage of the chip at different operating frequencies during testing, and record the corresponding relation between the operating frequency and the operating voltage (i.e. the minimum operating voltage) in the frequency voltage set.
In a specific implementation, the set of frequency voltages for the chip may be stored in a memory of the chip. When the dynamic frequency and voltage modulation module reads the frequency and voltage set, the frequency and voltage set of the chip can be obtained by reading data in a memory of the chip. And then inquiring the corresponding voltage value in the frequency voltage set according to the target working frequency. In the example, the frequency voltage set of the chip is stored in the storage of the chip, so that the storage of the frequency voltage set is convenient, the correspondence between the frequency voltage set and the chip is stronger, and data confusion is avoided. Meanwhile, the frequency voltage set of the chip is stored in the memory of the chip, so that data loss can be avoided.
In particular, the set of frequency voltages may be stored in a tabular form. The dynamic frequency and voltage modulation module can obtain a voltage value corresponding to the target working frequency in a table look-up mode.
In this example, the voltage value corresponding to the target operating frequency of the chip is obtained by calling the frequency voltage set of the chip, and then the operating voltage of the chip is adjusted according to the voltage value, so that the operating voltage of the chip can be adjusted by obtaining the voltage value more appropriate for the chip and the target operating frequency according to the difference of the chip, thereby optimizing the power consumption of the chip more pertinently, and being beneficial to further reducing the power consumption waste.
Or, in other examples, a preset calculation formula corresponding to the chip may be configured according to a voltage frequency variation relationship of the chip, so that when the target operating frequency is obtained, the target operating frequency is brought into the preset calculation formula, so as to calculate and obtain a voltage value corresponding to the target operating frequency.
S230, determining a target working voltage according to the voltage value.
The target working voltage refers to the working voltage required by the load operation of the chip supporting electronic equipment.
In the specific implementation, the target working voltage can be equal to the voltage value, so that the consistency of the voltage value required by the chip and the actually provided target working voltage is ensured, and the accuracy of the output voltage is ensured. Or, a certain difference exists between the target working voltage and the voltage value, so that the problem of circuit aging and the like is avoided to influence the operation.
And S240, performing voltage regulation based on the target operating voltage.
In a specific implementation, after the dynamic frequency modulation voltage regulation module determines the target voltage value, a request for regulating the working voltage of the chip to the target working voltage may be generated, and the request may be sent to the AVS state machine. And then the AVS state machine sends an instruction for increasing the working voltage or reducing the working voltage to the voltage control module according to the request, so that the voltage control module is controlled to give an instruction for adjusting the working voltage of the chip to the target working voltage to the power management IC, and the working voltage of the chip is adjusted through the power management IC.
It can be seen that, in this embodiment, the target operating frequency required by the load of the chip is obtained first, where the load includes an application program installed in the electronic device; inquiring a frequency voltage set of the chip according to the target working frequency, and determining a voltage value corresponding to the target working frequency, wherein the frequency voltage set comprises a corresponding relation between the working frequency and the working voltage of the chip, and the voltage value is used for representing the required working voltage of the chip at the target working frequency; then determining a target working voltage according to the voltage value; and then adjusting the working voltage of the chip to the target working voltage. Therefore, in the application, the voltage value required by the chip is determined through the target working frequency, and the target working voltage required by the chip under the target working frequency is determined according to the voltage value, so that the voltage required by the chip is regulated based on the target working voltage, and the differential regulation for different chips can be realized, thereby being beneficial to optimizing the power consumption of the chip and reducing the power consumption.
In one possible example, the determining a voltage value corresponding to the target operating frequency according to the target operating frequency includes: and acquiring a preset voltage redundancy value of the chip, wherein the target working voltage is the sum of the voltage value and the preset voltage redundancy value.
The preset voltage redundancy value is a preset parameter, which can be calculated according to the historical use condition of the circuit, and is not limited herein.
In a specific implementation, after the voltage value is obtained, the dynamic frequency modulation and voltage regulation module can sum the voltage value and a preset voltage redundancy value, so that the target working voltage of the chip is obtained. The voltage value is the minimum working voltage of the chip under the target working frequency, which is obtained by testing the chip, and due to the voltage drop caused by the circuit board, the chip aging and other problems, in practical application, the working voltage of the chip can be adjusted more accurately by adding a preset voltage redundancy value to the target working voltage on the basis of the voltage value, so that the chip can be ensured to support the load to run.
It can be seen that, in this example, by determining the target operating voltage as the sum of the voltage value and the preset voltage redundancy value, the voltage drop caused by the circuit board and the influence caused by the chip aging can be avoided, thereby improving the accuracy of the chip operating voltage adjustment.
In one possible example, before the determining the voltage value corresponding to the target operating frequency according to the target operating frequency, the method further includes: judging whether the target working frequency is equal to a current frequency value or not, wherein the current frequency value is used for representing the current working frequency of the chip; and when the target working frequency is not equal to the current frequency value, executing the step of determining a voltage value corresponding to the target working frequency according to the target working frequency.
The current frequency value is the working frequency currently used by the chip.
In a specific implementation, referring to fig. 4, when the dynamic frequency modulation voltage regulation module detects that the load of the electronic device changes, the target working frequency can be obtained first, so as to determine the frequency required by the load operation after the chip support changes. And then comparing the target working frequency with the current frequency value. If the target operating frequency is equal to the current frequency value, the fact that the load is changed indicates that the operating frequency of the chip supporting load operation is not changed, and the operating frequency and the operating voltage of the chip do not need to be changed at the moment, namely, actions do not need to be performed for the load change at the moment. If the working frequency is not equal to the current frequency value of the chip, the change of the load is indicated to influence the working frequency and the working voltage required by the chip, the working frequency required by supporting the current load to operate is determined to be the target working frequency, the voltage value corresponding to the target working frequency is queried in the frequency voltage set of the chip by referring to the scheme, the voltage value and the preset voltage redundancy value are summed to obtain the target working voltage, and then the working voltage of the chip is regulated according to the target working voltage.
It can be seen that in this example, by adjusting the operating frequency and operating voltage before. The working frequency of the chip is determined whether to be changed or not by comparing the target working frequency with the current frequency value, so that the working frequency and the working voltage of the chip are adjusted when the working frequency is changed.
In one possible example, the performing voltage adjustment based on the target operating voltage includes: comparing the target working frequency with a current frequency value; when the target working frequency is smaller than the current frequency value, the current frequency value is reduced to the target working frequency, and then the working voltage of the chip is regulated to be the target working voltage; when the target working frequency is larger than the current frequency value, the working voltage of the chip is adjusted to be the target working voltage, and then the current frequency value is increased to the target working frequency.
In a specific implementation, referring to fig. 4, when the target operating frequency and the current frequency value are inconsistent, it indicates that the operating frequency and the operating voltage of the chip need to be adjusted. When the working frequency and the working voltage of the chip are adjusted, the voltage value determined according to the target working frequency and the preset voltage redundancy value can be summed to obtain the target working voltage. And then comparing the target working frequency with the current frequency value, if the target working frequency is larger than the current frequency value, the working frequency of the chip needs to be increased, and at the moment, the current working voltage of the chip needs to be adjusted to be the target working voltage, and then the current frequency value of the chip is adjusted to be the target working frequency, so that the purposes of boosting and then increasing the frequency are achieved. If the target working frequency is smaller than the current frequency value, the working frequency of the chip needs to be reduced, and at the moment, the current frequency value of the chip needs to be adjusted to the target working frequency, and then the working voltage of the chip is adjusted to the target working voltage, so that the frequency reduction and the voltage reduction are realized.
Specifically, after the dynamic frequency modulation voltage regulation module obtains the target operating frequency and the target operating voltage, a frequency modulation voltage regulation request may be sent to the AVS state machine, where the frequency modulation voltage regulation request carries the target operating frequency and the target operating voltage. After receiving the frequency modulation and voltage regulation request, the AVS state machine can compare the target working frequency with the current frequency value, and then send a voltage regulation command to the voltage control module according to the comparison result so as to call the power management IC to regulate the working voltage of the chip. The chip may further include a clock module (not shown), and after the AVS state machine receives the fm voltage adjustment request, a frequency adjustment command may be sent to the clock module according to the comparison result, so as to adjust the working frequency of the chip.
For example, if the target operating frequency is greater than the current frequency value, that is, when the frequency needs to be increased and the voltage needs to be boosted, the AVS state machine may first send a voltage adjustment instruction to the voltage control module to adjust the operating voltage of the chip, and then send a frequency adjustment instruction to the clock module when receiving a message that the operating voltage of the chip sent by the sensor control module has been adjusted to the target operating voltage, so as to readjust the operating frequency of the chip, so as to ensure accuracy of the adjustment sequence.
It can be seen that in this example, when the target operating frequency and the current frequency value are not equal, the magnitudes of the target operating frequency and the current frequency value may be determined, so as to determine whether the chip needs to increase the frequency and increase the voltage or decrease the frequency and decrease the voltage. Therefore, the voltage is firstly increased and then the frequency is increased when the frequency is increased and the voltage is increased, so that optimal performance power consumption optimization is safely realized, and the frequency is firstly reduced and then the voltage is reduced when the frequency is reduced and the voltage is reduced, so that the optimization of the power consumption of the chip is realized.
In one possible example, when the target operating frequency is greater than the current frequency value, before the adjusting the operating voltage of the chip to the target operating voltage, the method further includes: comparing the target working frequency with the current frequency value again; if the target working frequency is larger than the current frequency value, adjusting the working voltage of the chip to the target working voltage, and then increasing the current frequency value to the target working frequency; and if the target working frequency is smaller than the current frequency value, executing the step of raising the current frequency value to the target working frequency.
In particular, referring to fig. 4, when it is determined that the target operating frequency is greater than the current frequency value, i.e., after it is determined that an up-conversion boost is required. Before the working voltage of the chip is regulated, the target working frequency and the current frequency value can be compared again, so that the accuracy is improved. And then when the target working frequency is larger than the current frequency value as a result of reconfirmation, adjusting the working voltage of the chip to be the target working voltage, and adjusting the working frequency of the chip to be the target working frequency. If the target working frequency is smaller than the current frequency value as the reconfirming result, the comparison result is doubtful, and the frequency and voltage modulation process can be finished by adjusting the working frequency of the chip to the target working frequency at the moment without adjusting the working voltage of the chip.
It can be seen that in this example, when the target operating frequency is greater than the current frequency value, the accuracy and reliability of the operating voltage adjustment of the chip can be improved by confirming the magnitudes of the target operating frequency and the current frequency value again before adjusting the operating voltage of the chip.
In one possible example, when the target operating frequency is less than the current frequency value, before the adjusting the operating voltage of the chip to the target operating voltage, the method further includes: again comparing the target working frequency with the current frequency value; and when the target working frequency is larger than the current frequency value, adjusting the working voltage of the chip to the target working voltage.
In particular, referring to fig. 4, when it is determined that the target operating frequency is less than the current frequency value, that is, after it is determined that the frequency reduction and voltage reduction are required. The working frequency of the chip can be adjusted to be the target working frequency, and then the target working frequency and the current frequency value are compared again before the working voltage of the chip is adjusted. If the target working frequency is larger than the current frequency value, the result of the previous comparison is doubtful, and the frequency and voltage regulation process can be directly ended at the moment. If the target working frequency is smaller than the current frequency value as a result of the reconfirmation, the working voltage of the chip can be adjusted to be the target working voltage.
It can be seen that in this example, when the target operating frequency is smaller than the current frequency value, by confirming the magnitudes of the target operating frequency and the current frequency value again before adjusting the operating voltage of the chip, the accuracy and reliability of the operating voltage adjustment of the chip can be improved.
The present application may divide functional units of a server according to the above method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated in one processing unit. The integrated units may be implemented in hardware or in software functional units. It should be noted that, in the embodiment of the present application, the division of the units is schematic, which is merely a logic function division, and other division manners may be implemented in actual practice.
Fig. 5a is a functional unit block diagram of a voltage regulator according to an embodiment of the present application. The voltage regulating device 30 may be applied on a chip of an electronic apparatus, the voltage regulating device 30 comprising:
an acquisition unit 310 for acquiring a target operating frequency;
a first determining unit 320, configured to determine a voltage value corresponding to the target operating frequency according to the target operating frequency, where the voltage value is used to characterize a magnitude of an operating voltage required by the chip at the target operating frequency;
a second determining unit 330 for determining a target operating voltage according to the voltage value;
a voltage adjustment unit 340 for performing voltage adjustment based on the target operating voltage.
In one possible example, in the determining the voltage value corresponding to the target operating frequency according to the target operating frequency, the first determining unit is specifically configured to: acquiring a frequency voltage set of the chip; inquiring the frequency voltage set according to the target working frequency, and determining the voltage value corresponding to the target working frequency in the frequency voltage set, wherein the frequency voltage set comprises the corresponding relation between the working frequency and the working voltage of the chip.
In one possible example, in said determining the target operating voltage from said voltage value, said second determining unit is specifically configured to: and acquiring a preset voltage redundancy value of the chip, wherein the target working voltage is the sum of the voltage value and the preset voltage redundancy value.
In one possible example, the voltage adjustment device further includes a judging unit, configured to judge whether the target operating frequency and a current frequency value are equal or not, where the current frequency value is used to characterize the magnitude of the current operating frequency of the chip, before the voltage value corresponding to the target operating frequency is determined according to the target operating frequency; and when the target working frequency is not equal to the current frequency value, executing the step of determining a voltage value corresponding to the target working frequency according to the target working frequency.
In one possible example, the voltage adjustment device further includes a frequency adjustment unit for, in terms of the voltage adjustment based on the target operating voltage: comparing the target working frequency with a current frequency value; when the target working frequency is smaller than the current frequency value, the current frequency value is reduced to the target working frequency, and then the working voltage of the chip is regulated to be the target working voltage; when the target working frequency is larger than the current frequency value, the working voltage of the chip is adjusted to be the target working voltage, and then the current frequency value is increased to the target working frequency.
In one possible example, when the target operating frequency is greater than the current frequency value, the frequency adjustment unit is configured to, before the adjusting the operating voltage of the chip to the target operating voltage: comparing the target working frequency with the current frequency value again; if the target working frequency is larger than the current frequency value, adjusting the working voltage of the chip to the target working voltage, and then increasing the current frequency value to the target working frequency; and if the target working frequency is smaller than the current frequency value, the current frequency value is increased to the target working frequency.
In one possible example, when the target operating frequency is smaller than the current frequency value, the frequency adjusting unit is configured to, before the adjusting the operating voltage of the chip to the target operating voltage: again comparing the target working frequency with the current frequency value; and when the target working frequency is larger than the current frequency value, adjusting the working voltage of the chip to the target working voltage.
In the case of an integrated unit, the functional unit composition block diagram of the voltage regulating device 40 provided in the embodiment of the present application is shown in fig. 5 b. In fig. 5b, the voltage regulating device 40 includes: a processing module 420 and a communication module 410. The processing module 420 is configured to control and manage actions of the voltage regulating device 30, such as steps performed by the acquisition unit 310, the first determination unit 320, the second determination unit 330, and the voltage regulating unit 340, and/or other processes for performing the techniques described herein. The communication module 410 is used to support interactions between the voltage regulating device 40 and other equipment. As shown in fig. 5b, the voltage regulating device 40 may further comprise a memory module 430, the memory module 430 being configured to store program codes and data of the voltage regulating device 40.
The processing module 420 may be a processor or controller, such as a central processing unit (Central Processing Unit, CPU), a general purpose processor, a digital signal processor (Digital Signal Processor, DSP), an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various exemplary logic blocks, modules and circuits described in connection with the disclosure of embodiments of the present application. The processor may also be a combination that performs the function of a computation, e.g., a combination comprising one or more microprocessors, a combination of a DSP and a microprocessor, and the like. The communication module 410 may be a transceiver, an RF circuit, or a communication interface, etc. The storage module 430 may be a memory.
All relevant contents of each scenario related to the above method embodiment may be cited to the functional description of the corresponding functional module, which is not described herein. The voltage adjustment device may perform the steps performed by the chip of the electronic device in the voltage adjustment method shown in fig. 3.
The embodiment of the application also provides a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, where the computer program causes a computer to execute part or all of the steps of any one of the methods described in the embodiments of the method, where the computer includes a server.
It should be noted that, for simplicity of description, the foregoing method embodiments are all expressed as a series of action combinations, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required in the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, such as the above-described division of units, merely a division of logic functions, and there may be additional manners of dividing in actual implementation, such as multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, or may be in electrical or other forms.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units described above, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a memory, including several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the above-mentioned method of the various embodiments of the present application. And the aforementioned memory includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that all or a portion of the steps in the various methods of the above embodiments may be implemented by a program that instructs associated hardware, and the program may be stored in a computer readable memory, which may include: flash disk, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
The foregoing has outlined rather broadly the more detailed description of embodiments of the present application, wherein specific examples are provided herein to illustrate the principles and embodiments of the present application, the above examples being provided solely to assist in the understanding of the methods of the present application and the core ideas thereof; meanwhile, as those skilled in the art will have modifications in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. A method of voltage regulation, the method comprising:
acquiring a target working frequency;
determining a voltage value corresponding to the target working frequency according to the target working frequency, wherein the voltage value is used for representing the magnitude of the working voltage required by the chip at the target working frequency;
determining a target working voltage according to the voltage value;
and performing voltage regulation based on the target operating voltage.
2. The method of claim 1, wherein the determining a voltage value corresponding to the target operating frequency from the target operating frequency comprises:
acquiring a frequency voltage set of the chip;
inquiring the frequency voltage set according to the target working frequency, and determining the voltage value corresponding to the target working frequency in the frequency voltage set, wherein the frequency voltage set comprises the corresponding relation between the working frequency and the working voltage of the chip.
3. The method according to claim 1 or 2, wherein said determining a target operating voltage from said voltage value comprises:
and acquiring a preset voltage redundancy value of the chip, wherein the target working voltage is the sum of the voltage value and the preset voltage redundancy value.
4. The method of claim 1, wherein prior to said determining a voltage value corresponding to said target operating frequency from said target operating frequency, said method further comprises:
judging whether the target working frequency is equal to a current frequency value or not, wherein the current frequency value is used for representing the current working frequency of the chip;
and when the target working frequency is not equal to the current frequency value, executing the step of determining a voltage value corresponding to the target working frequency according to the target working frequency.
5. The method of claim 4, wherein the performing voltage adjustment based on the target operating voltage comprises:
comparing the target working frequency with a current frequency value;
when the target working frequency is smaller than the current frequency value, the current frequency value is reduced to the target working frequency, and then the working voltage of the chip is regulated to be the target working voltage;
when the target working frequency is larger than the current frequency value, the working voltage of the chip is adjusted to be the target working voltage, and then the current frequency value is increased to the target working frequency.
6. The method of claim 5, wherein the adjusting the operating voltage of the chip to the target operating voltage is preceded by adjusting the operating voltage of the chip when the target operating frequency is greater than the current frequency value, the method further comprising:
comparing the target working frequency with the current frequency value again;
if the target working frequency is larger than the current frequency value, adjusting the working voltage of the chip to the target working voltage, and then increasing the current frequency value to the target working frequency;
and if the target working frequency is smaller than the current frequency value, executing the step of raising the current frequency value to the target working frequency.
7. The method of claim 5, wherein the adjusting the operating voltage of the chip to the target operating voltage is preceded by adjusting the operating voltage of the chip when the target operating frequency is less than the current frequency value, the method further comprising:
again comparing the target working frequency with the current frequency value;
and when the target working frequency is larger than the current frequency value, adjusting the working voltage of the chip to the target working voltage.
8. A voltage regulating device, characterized by being applied to the chip of an electronic apparatus; the device comprises:
an acquisition unit configured to acquire a target operating frequency;
the first determining unit is used for determining a voltage value corresponding to the target working frequency according to the target working frequency, wherein the voltage value is used for representing the magnitude of the working voltage required by the chip at the target working frequency;
a second determining unit configured to determine a target operating voltage according to the voltage value;
and the voltage regulating unit is used for regulating the voltage based on the target working voltage.
9. An electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the steps in the method according to any one of claims 1-7.
CN202310161934.2A 2023-02-23 2023-02-23 Voltage regulating method and related device Pending CN116185164A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310161934.2A CN116185164A (en) 2023-02-23 2023-02-23 Voltage regulating method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310161934.2A CN116185164A (en) 2023-02-23 2023-02-23 Voltage regulating method and related device

Publications (1)

Publication Number Publication Date
CN116185164A true CN116185164A (en) 2023-05-30

Family

ID=86434249

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310161934.2A Pending CN116185164A (en) 2023-02-23 2023-02-23 Voltage regulating method and related device

Country Status (1)

Country Link
CN (1) CN116185164A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117492552A (en) * 2024-01-03 2024-02-02 芯瞳半导体技术(山东)有限公司 Dynamic voltage frequency adjustment method, controller, device, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117492552A (en) * 2024-01-03 2024-02-02 芯瞳半导体技术(山东)有限公司 Dynamic voltage frequency adjustment method, controller, device, equipment and storage medium
CN117492552B (en) * 2024-01-03 2024-04-16 芯瞳半导体技术(山东)有限公司 Dynamic voltage frequency adjustment method, controller, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
JP5524623B2 (en) Speed binning for dynamic and adaptive power control
US10389251B2 (en) Setting operating points for circuits in an integrated circuit chip
CN116185164A (en) Voltage regulating method and related device
US20090276638A1 (en) Power control device and power control method applied to computer system
EP1769311B1 (en) Adaptive voltage adjustment
CN116566020B (en) Charging and discharging power control method and device of energy storage system
CN111361458B (en) Power calculation method and device and electronic equipment
CN110365243B (en) Inverter voltage adjusting method and device, inverter and computer readable medium
CN116522018A (en) Electric power carbon emission monitoring method, device and equipment
WO2023159987A1 (en) Power demand response adjustment method and apparatus, and computer device and storage medium
CN108235422B (en) Antenna power setting method and electronic device
CN116073384A (en) AC voltage stabilization control method for DC fault ride-through transmitting end sent by new energy
EP4167090A1 (en) Memory operating-frequency adjustment method, smart terminal, and storage medium
CN114069821A (en) Switching power supply circuit control method and device and power supply system
CN115395534A (en) Frequency droop control method and device for photovoltaic inverter
CN112542868B (en) Charging control circuit, method and system and electronic equipment
WO2019000218A1 (en) Adaptive settling time notification in voltage regulator
CN112065703A (en) Segmented control method and device for operating frequency of compressor
CN113412459A (en) Power supply adjusting system, method and device, chip and electronic equipment
US20230205286A1 (en) Frequency control method and apparatus
CN117492552B (en) Dynamic voltage frequency adjustment method, controller, device, equipment and storage medium
CN113864984B (en) APF automatic debugging method and device for air conditioner, computer equipment and storage medium
CN112906076B (en) Control method and system of over-current protection chip and related components
CN118312005A (en) Circuit work adjusting method, circuit module and chip
CN114070010A (en) Parallel operation control method and device and parallel operation system

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