CN115390609B - Voltage adjustment method and device, electronic equipment and readable storage medium - Google Patents

Voltage adjustment method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN115390609B
CN115390609B CN202210943145.XA CN202210943145A CN115390609B CN 115390609 B CN115390609 B CN 115390609B CN 202210943145 A CN202210943145 A CN 202210943145A CN 115390609 B CN115390609 B CN 115390609B
Authority
CN
China
Prior art keywords
voltage
target
conversion module
monitoring result
output
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
CN202210943145.XA
Other languages
Chinese (zh)
Other versions
CN115390609A (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.)
Nanjing Semidrive Technology Co Ltd
Original Assignee
Nanjing Semidrive 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 Nanjing Semidrive Technology Co Ltd filed Critical Nanjing Semidrive Technology Co Ltd
Priority to CN202210943145.XA priority Critical patent/CN115390609B/en
Publication of CN115390609A publication Critical patent/CN115390609A/en
Application granted granted Critical
Publication of CN115390609B publication Critical patent/CN115390609B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05FSYSTEMS FOR REGULATING ELECTRIC OR MAGNETIC VARIABLES
    • G05F1/00Automatic systems in which deviations of an electric quantity from one or more predetermined values are detected at the output of the system and fed back to a device within the system to restore the detected quantity to its predetermined value or values, i.e. retroactive systems
    • G05F1/10Regulating voltage or current
    • G05F1/46Regulating voltage or current wherein the variable actually regulated by the final control device is dc
    • G05F1/56Regulating voltage or current wherein the variable actually regulated by the final control device is dc using semiconductor devices in series with the load as final control devices
    • G05F1/561Voltage to current converters
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02MAPPARATUS FOR CONVERSION BETWEEN AC AND AC, BETWEEN AC AND DC, OR BETWEEN DC AND DC, AND FOR USE WITH MAINS OR SIMILAR POWER SUPPLY SYSTEMS; CONVERSION OF DC OR AC INPUT POWER INTO SURGE OUTPUT POWER; CONTROL OR REGULATION THEREOF
    • H02M3/00Conversion of dc power input into dc power output
    • H02M3/02Conversion of dc power input into dc power output without intermediate conversion into ac
    • H02M3/04Conversion of dc power input into dc power output without intermediate conversion into ac by static converters
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02MAPPARATUS FOR CONVERSION BETWEEN AC AND AC, BETWEEN AC AND DC, OR BETWEEN DC AND DC, AND FOR USE WITH MAINS OR SIMILAR POWER SUPPLY SYSTEMS; CONVERSION OF DC OR AC INPUT POWER INTO SURGE OUTPUT POWER; CONTROL OR REGULATION THEREOF
    • H02M1/00Details of apparatus for conversion
    • H02M1/0003Details of control, feedback or regulation circuits

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Automation & Control Theory (AREA)
  • Power Engineering (AREA)
  • Power Sources (AREA)

Abstract

The application discloses a voltage adjustment method, a device, an electronic device and a readable storage medium, wherein the method comprises the following steps: acquiring an adjusting signal for adjusting the voltage of a target subsystem in a chip, wherein the adjusting signal comprises a target voltage to be adjusted; determining a voltage configuration parameter corresponding to the target voltage; controlling the output voltage of a voltage conversion module corresponding to the target subsystem according to the voltage configuration parameters; acquiring a voltage monitoring result of a voltage monitoring module corresponding to the target subsystem, wherein the voltage monitoring module is used for monitoring the voltage output by the voltage conversion module; and under the condition that the voltage monitoring result does not meet the first preset condition, adjusting the voltage configuration parameters according to the voltage monitoring result, and returning to control the output voltage of the voltage conversion module corresponding to the target subsystem according to the voltage configuration parameters until the voltage monitoring result meets the first preset condition. By implementing the method and the device, the voltage output by the voltage conversion module can be adaptively adjusted.

Description

Voltage adjustment method and device, electronic equipment and readable storage medium
Technical Field
The present disclosure relates to the field of system-on-chip technologies, and in particular, to a voltage adjustment method, a voltage adjustment device, an electronic device, and a readable storage medium.
Background
With the development of System on Chip (SoC), the SoC also has more operation modes, such as an operation mode/a sleep mode. The subsystem in the system-in-chip has different requirements for the operating voltage in different operating modes, e.g. the subsystem is in a high voltage power state in the operating mode, while the subsystem is switched to a lower operating voltage in the sleep mode. To meet the different voltage requirements of the subsystems, voltage conversion is typically implemented using a voltage conversion module (e.g., DC-DC/LDO).
However, due to process and device differences in the production process of the system-in-chip, there is often a certain deviation between the actual output voltage of the voltage conversion module and the ideal output voltage. For example, the operating voltage of the subsystem in the operation mode is 1.2V, and the actual output voltage of the voltage conversion module is 1.3V; the operating voltage of the subsystem in the sleep mode is 0.8V, and the actual output voltage of the voltage conversion module is 0.7V. Therefore, how to realize the adaptive adjustment of the output voltage of the voltage conversion module and output the voltage meeting the requirements is a problem to be solved.
Disclosure of Invention
In view of the foregoing, embodiments of the present application provide a voltage adjustment method, apparatus, electronic device, and readable storage medium, so as to at least solve the above-mentioned technical problems in the prior art.
According to a first aspect of the present application, an embodiment of the present application provides a voltage adjustment method, applied to a voltage conversion control module in a chip, the voltage adjustment method including: acquiring an adjusting signal for adjusting the voltage of a target subsystem in a chip, wherein the adjusting signal comprises a target voltage to be adjusted; determining a voltage configuration parameter corresponding to the target voltage; controlling the output voltage of a voltage conversion module corresponding to the target subsystem according to the voltage configuration parameters; acquiring a voltage monitoring result of a voltage monitoring module corresponding to the target subsystem, wherein the voltage monitoring module is used for monitoring the voltage output by the voltage conversion module; and under the condition that the voltage monitoring result does not meet the first preset condition, adjusting the voltage configuration parameters according to the voltage monitoring result, and returning to control the output voltage of the voltage conversion module corresponding to the target subsystem according to the voltage configuration parameters until the voltage monitoring result meets the first preset condition.
Optionally, before the voltage monitoring result of the voltage monitoring module corresponding to the target subsystem is obtained, the voltage adjustment method further includes: determining a counting result of the clock counting module;
In response to this, the control unit,
and under the condition that the counting result of the clock counting module meets a second preset condition, acquiring a voltage monitoring result of a voltage monitoring module corresponding to the target subsystem.
Optionally, the first preset condition includes: the voltage output by the voltage conversion module accords with the expected voltage range.
Optionally, adjusting the voltage configuration parameter according to the voltage monitoring result includes: determining a voltage compensation coefficient according to the voltage monitoring result; and adjusting the voltage configuration parameters according to the voltage compensation coefficient.
Optionally, determining the voltage compensation coefficient according to the voltage monitoring result includes: under the condition that the voltage output by the voltage conversion module is overvoltage according to the voltage monitoring result, generating a negative voltage compensation coefficient according to the voltage output by the voltage conversion module and the target voltage; under the condition that the voltage output by the voltage conversion module is determined to be under-voltage according to the voltage monitoring result, generating a positive voltage compensation coefficient according to the voltage output by the voltage conversion module and the target voltage.
Optionally, adjusting the voltage configuration parameter according to the voltage compensation coefficient includes: converting the format of the voltage compensation coefficient into the format of the voltage configuration parameter; and performing compensation operation on the voltage compensation coefficient and the voltage configuration parameter after the format conversion so as to adjust the voltage configuration parameter.
Optionally, before adjusting the voltage configuration parameter according to the voltage monitoring result, the voltage adjusting method further includes: determining voltage state information according to a voltage monitoring result;
in response to this, the control unit,
under the condition that the voltage state information is voltage warning state information, adjusting the voltage configuration parameters according to the voltage monitoring result; and under the condition that the voltage state information is the voltage error state information, switching the power supply of the target subsystem to the target voltage conversion module.
According to a second aspect of the present application, an embodiment of the present application provides a voltage adjustment device, applied to a voltage conversion control module in a chip, the device including: the first acquisition unit is used for acquiring an adjustment signal for adjusting the voltage of a target subsystem in the chip, wherein the adjustment signal comprises a target voltage to be adjusted; the determining unit is used for determining a voltage configuration parameter corresponding to the target voltage; the control unit is used for controlling the voltage conversion module corresponding to the target subsystem to output voltage according to the voltage configuration parameters; the second acquisition unit is used for acquiring a voltage monitoring result of the voltage monitoring module corresponding to the target subsystem, and the voltage monitoring module is used for monitoring the voltage output by the voltage conversion module; the adjusting unit is used for adjusting the voltage configuration parameters according to the voltage monitoring result when the voltage monitoring result does not meet the first preset condition, and returning to control the voltage conversion module corresponding to the target subsystem to output voltage according to the voltage configuration parameters until the voltage monitoring result meets the first preset condition.
According to a third aspect of the present application, an embodiment of the present application provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the voltage regulation method as in the first aspect or any implementation of the first aspect.
According to a fourth aspect of the present application, embodiments of the present application provide a computer-readable storage medium storing computer instructions for causing a computer to perform a voltage regulation method as in the first aspect or any implementation of the first aspect.
According to the voltage adjustment method, the device, the electronic equipment and the readable storage medium, an adjustment signal for adjusting the voltage of a target subsystem in a chip is obtained, wherein the adjustment signal comprises target voltage to be adjusted; determining a voltage configuration parameter corresponding to the target voltage; controlling the output voltage of a voltage conversion module corresponding to the target subsystem according to the voltage configuration parameters; acquiring a voltage monitoring result of a voltage monitoring module corresponding to the target subsystem, wherein the voltage monitoring module is used for monitoring the voltage output by the voltage conversion module; under the condition that the voltage monitoring result does not meet the first preset condition, adjusting the voltage configuration parameters according to the voltage monitoring result, and returning to control the voltage conversion module corresponding to the target subsystem to output voltage according to the voltage configuration parameters until the voltage monitoring result meets the first preset condition; therefore, when the working voltage of the target subsystem in the chip is regulated, the voltage monitoring module can monitor the voltage output by the voltage conversion module corresponding to the target subsystem in real time, and the voltage conversion control module can automatically regulate the voltage configuration parameters based on the voltage monitoring result of the voltage monitoring module, so that the voltage output by the voltage conversion module corresponding to the target subsystem meets a first preset condition, the voltage output by the voltage conversion module is adaptively regulated, the voltage conversion module outputs the voltage meeting the requirement, and the chip is ensured to have higher safety.
The foregoing description is only an overview of the technical solutions of the present application, and may be implemented according to the content of the specification in order to make the technical means of the present application more clearly understood, and in order to make the above-mentioned and other objects, features and advantages of the present application more clearly understood, the following detailed description of the present application will be given.
Drawings
Fig. 1 is a schematic flow chart of a voltage adjustment method in an embodiment of the present application;
FIG. 2 is a schematic diagram of a chip according to an embodiment of the present application;
FIG. 3 is a schematic flow chart of adjusting voltage by the CPU, the voltage conversion control module, the voltage conversion module, the voltage monitoring control module and the voltage monitoring module in the embodiment of the application;
fig. 4 is a schematic structural diagram of a voltage adjusting device according to an embodiment of the present application;
fig. 5 is a schematic hardware structure of an electronic device in an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of 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 apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled 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 embodiment of the application provides a voltage adjustment method, which is applied to a voltage conversion control module in a chip, and the voltage adjustment method is shown in fig. 1 and comprises the following steps:
s101, acquiring an adjusting signal for adjusting the voltage of a target subsystem in a chip, wherein the adjusting signal comprises a target voltage to be adjusted.
In the present embodiment, the chip includes a plurality of subsystems such as a central processing unit 1 (CPU-1), a digital signal processing subsystem (DSP subsystem, abbreviated as DSP), a graphics processor 1 (GPU-1), a central processing unit 1 (DPU-1), a Universal Serial Bus (USB), a UNIX File System (UFS), and the like. Each subsystem has different functional and performance requirements. As shown in fig. 2, the multiple subsystems are divided into multiple voltage regions or power domains in order to reduce the dynamic power consumption of the chip.
The chip has a plurality of operating modes, such as an operation mode/sleep mode, etc. The subsystem has different requirements for voltage in different modes of operation. The subsystem is in a high voltage power state in the run mode, while the subsystem is switched to a lower operating voltage in the sleep mode. To meet the different voltage requirements of the subsystems, voltage conversion is typically implemented using an on-chip voltage conversion module (e.g., DC-DC/LDO). One or more voltage conversion modules may be provided for each power domain.
In this embodiment, the voltage conversion control module is configured to control the voltage output by the voltage conversion module. The voltage conversion control module is connected with a Central Processing Unit (CPU) through a control bus.
In some embodiments, the target subsystem may be a subsystem that is running within the chip in the current operating mode of the chip.
In some embodiments, the target subsystem may be all subsystems within the chip in the current operating mode of the chip.
In some embodiments, when the operation mode of the chip is switched, the CPU generates an adjustment signal for adjusting the voltage of the target subsystem in the chip, and sends the adjustment signal to the voltage conversion control module, where the voltage conversion control module receives, through the control bus, the adjustment signal for adjusting the voltage of the target subsystem in the chip, which is sent by the central processing unit, so as to obtain the adjustment signal for adjusting the voltage of the target subsystem in the chip.
In some embodiments, the Chip is a System on Chip (SoC).
S102, determining a voltage configuration parameter corresponding to the target voltage.
In this embodiment, the voltage conversion control module may configure a voltage configuration parameter corresponding to the target voltage through the voltage configuration parameter circuit. By configuring different voltage configuration parameters, the operating voltage of the target subsystem in different operating modes can be satisfied, for example, 1.2V voltage is provided in the operating mode, and 0.8V voltage is provided in the sleep mode.
In some embodiments, the voltage configuration parameters may also be configured by the CPU, which then sends the voltage configuration parameters to the voltage conversion control module, such that the voltage conversion control module directly obtains the voltage configuration parameters.
And S103, controlling the voltage conversion module corresponding to the target subsystem to output voltage according to the voltage configuration parameters.
In this embodiment, as shown in fig. 2, the voltage conversion control module sends the voltage configuration parameters to the voltage conversion module, and the voltage conversion module outputs the voltage according to the voltage configuration parameters.
S104, acquiring a voltage monitoring result of a voltage monitoring module corresponding to the target subsystem, wherein the voltage monitoring module is used for monitoring the voltage output by the voltage conversion module.
In this embodiment, the voltage monitoring module may monitor in real time whether the operating voltages of different voltage domains in the chip meet the requirements, and generate a status signal when an overvoltage and an undervoltage are monitored. The voltage monitoring module is connected with the voltage conversion control module and is used for monitoring the voltage output by the voltage conversion module in real time, and the voltage monitoring result of the voltage monitoring module is sent to the voltage conversion control module.
In some embodiments, the voltage monitoring result of the voltage monitoring module corresponding to the target subsystem may be obtained through the voltage status sampling circuit. The voltage monitoring result includes, but is not limited to, voltage (true output voltage) output by the voltage conversion module, voltage state information including, but not limited to, voltage normal state information, voltage warning state information, and voltage error state information.
In some embodiments, as shown in FIG. 2, a voltage monitoring control module may be provided to control the voltage monitoring module. The voltage monitoring control module is connected with the CPU through a control bus. The CPU accesses the voltage monitoring control module through the control bus and configures monitoring parameters of the voltage monitoring module, wherein the monitoring parameters comprise, but are not limited to, monitoring voltage, threshold value of overvoltage error, overvoltage warning threshold value, threshold value of undervoltage error and undervoltage warning threshold value. The monitoring voltage is the target voltage, and the threshold value of the overvoltage error, the threshold value of the overvoltage warning, the threshold value of the undervoltage error and the threshold value of the undervoltage warning can be set according to actual needs, for example, the threshold value of the overvoltage error is set to be 110% of the target voltage, the threshold value of the overvoltage warning is 101% of the target voltage, the threshold value of the undervoltage error is 90% of the target voltage, and the threshold value of the undervoltage warning is 99% of the target voltage. The voltage monitoring control module sends the monitoring parameters of the voltage monitoring module to the voltage monitoring module, and the voltage monitoring module monitors the voltage output by the voltage conversion module in real time based on the monitoring parameters to obtain a voltage monitoring result.
S105, under the condition that the voltage monitoring result does not meet the first preset condition, adjusting the voltage configuration parameters according to the voltage monitoring result, and returning to control the voltage conversion module corresponding to the target subsystem to output voltage according to the voltage configuration parameters until the voltage monitoring result meets the first preset condition.
In some embodiments, the first preset condition comprises: the voltage output by the voltage conversion module accords with the expected voltage range.
In specific implementation, the voltage monitoring result can be analyzed by the voltage monitoring state judging circuit to judge whether the voltage monitoring result meets the first preset condition. Specifically, the voltage monitoring state judging circuit compares the voltage output by the voltage conversion module in the voltage monitoring result with the expected voltage corresponding to the target voltage, so as to determine whether the voltage output by the voltage conversion module meets the expected voltage range, namely, whether the voltage monitoring result meets the first preset condition is judged, if the voltage monitoring result does not meet the first preset condition, it is indicated that the voltage output by the voltage conversion module does not meet the requirement, then the voltage configuration parameter adaptive compensation circuit in the voltage monitoring control module can adjust the voltage configuration parameter based on the voltage monitoring result, and sends the adjusted voltage configuration parameter to the voltage conversion module, so that the voltage conversion module generates new output voltage according to the adjusted voltage configuration parameter, the voltage monitoring module monitors the new output voltage in real time, and feeds back the monitoring result to the voltage monitoring control module until the voltage output by the voltage conversion module meets the requirement. If the voltage monitoring result meets the first preset condition, the voltage output by the voltage conversion module does not need to be adjusted at the moment.
According to the voltage adjustment method provided by the embodiment of the application, the adjustment signal for adjusting the voltage of the target subsystem in the chip is obtained, and the adjustment signal comprises the target voltage to be adjusted; determining a voltage configuration parameter corresponding to the target voltage; controlling the output voltage of a voltage conversion module corresponding to the target subsystem according to the voltage configuration parameters; acquiring a voltage monitoring result of a voltage monitoring module corresponding to the target subsystem, wherein the voltage monitoring module is used for monitoring the voltage output by the voltage conversion module; under the condition that the voltage monitoring result does not meet the first preset condition, adjusting the voltage configuration parameters according to the voltage monitoring result, and returning to control the voltage conversion module corresponding to the target subsystem to output voltage according to the voltage configuration parameters until the voltage monitoring result meets the first preset condition; therefore, when the working voltage of the target subsystem in the chip is regulated, the voltage monitoring module can monitor the voltage output by the voltage conversion module corresponding to the target subsystem in real time, and the voltage conversion control module can automatically regulate the voltage configuration parameters based on the voltage monitoring result of the voltage monitoring module, so that the voltage output by the voltage conversion module corresponding to the target subsystem meets a first preset condition, the voltage output by the voltage conversion module is adaptively regulated, the voltage conversion module outputs the voltage meeting the requirement, and the chip is ensured to have higher safety.
In an optional embodiment, before the voltage monitoring result of the voltage monitoring module corresponding to the target subsystem is obtained in step S104, the voltage adjustment method further includes: determining a counting result of the clock counting module;
correspondingly, under the condition that the counting result of the clock counting module meets a second preset condition, the voltage monitoring result of the voltage monitoring module corresponding to the target subsystem is obtained.
Specifically, the voltage conversion control module is internally provided with a clock counting module. When the voltage conversion module and the voltage monitoring module start to work, the clock counting module starts to work at the same time. The second preset condition may be that the count result of the clock count module reaches a preset value. Therefore, when the counting result of the time counting module reaches a preset value, for example, 4' hF, the voltage conversion control module can collect the voltage monitoring result of the primary voltage monitoring module.
In this embodiment, by determining the counting result of the clock counting module and acquiring the voltage monitoring result of the voltage monitoring module corresponding to the target subsystem when the counting result of the clock counting module meets the second preset condition, the voltage monitoring result of the voltage monitoring module can be acquired under the condition that the voltage conversion module and the voltage monitoring module work stably, so that an accurate voltage monitoring result is obtained, and the frequency of acquiring the voltage monitoring result is reduced.
In an alternative embodiment, in step S105, adjusting the voltage configuration parameter according to the voltage monitoring result includes: determining a voltage compensation coefficient according to the voltage monitoring result; and adjusting the voltage configuration parameters according to the voltage compensation coefficient.
In one implementation, determining a voltage compensation coefficient based on the voltage monitoring result includes: under the condition that the voltage output by the voltage conversion module is overvoltage according to the voltage monitoring result, generating a negative voltage compensation coefficient according to the voltage output by the voltage conversion module and the target voltage; under the condition that the voltage output by the voltage conversion module is determined to be under-voltage according to the voltage monitoring result, generating a positive voltage compensation coefficient according to the voltage output by the voltage conversion module and the target voltage.
In specific implementation, the voltage output by the voltage conversion module in the voltage monitoring result can be compared with the target voltage to determine whether the voltage output by the voltage conversion module is overvoltage or undervoltage. When the voltage output by the voltage conversion module is overvoltage, a negative voltage compensation coefficient is generated, and the original voltage configuration parameters are subjected to negative compensation. When the voltage output by the voltage conversion module is under-voltage, a positive voltage compensation coefficient is generated, and the original voltage configuration parameters are positively compensated.
In the embodiment, by determining whether the voltage output by the voltage conversion module is overvoltage or undervoltage, a positive voltage compensation coefficient or a negative voltage compensation coefficient can be directly generated according to the actual situation of the voltage output by the voltage conversion module, so that the voltage output by the voltage conversion module is accurately compensated.
In one implementation, adjusting the voltage configuration parameter according to the voltage compensation coefficient includes: converting the format of the voltage compensation coefficient into the format of the voltage configuration parameter; and performing compensation operation on the voltage compensation coefficient and the voltage configuration parameter after the format conversion so as to adjust the voltage configuration parameter.
In the implementation, since the voltage configuration parameters are data in the complementary format, and the voltage compensation coefficients are not necessarily data in the complementary format, the voltage compensation coefficients need to be converted into data in the complementary format, and then the voltage compensation coefficients after the conversion format and the original voltage configuration parameters are subjected to compensation operation to obtain new voltage configuration parameters. The compensation operation may be embodied as an addition operation. The addition operation of the voltage compensation coefficient after the conversion format and the original voltage configuration parameter can be realized through an adder.
In this embodiment, the voltage compensation coefficient is converted into the format of the voltage configuration parameter, so that the voltage compensation coefficient can directly perform compensation operation with the voltage configuration parameter to adjust the voltage configuration parameter.
In this embodiment, by determining the voltage compensation coefficient and adjusting the voltage configuration parameter according to the voltage compensation coefficient, accurate compensation of the voltage configuration parameter can be achieved, so that the voltage conversion module can output a voltage meeting the requirement.
In an alternative embodiment, before the voltage configuration parameter is adjusted according to the voltage monitoring result in step S105, the voltage adjustment method further includes: determining voltage state information according to a voltage monitoring result;
correspondingly, under the condition that the voltage state information is voltage warning state information, adjusting the voltage configuration parameters according to the voltage monitoring result; and under the condition that the voltage state information is the voltage error state information, switching the power supply of the target subsystem to the target voltage conversion module.
In the implementation, if the voltage monitoring result has the voltage state information, the voltage state information can be directly obtained, so that the state of the voltage output by the voltage conversion module can be directly determined to be a voltage warning state or a voltage error state. When the state of the voltage output by the voltage conversion module is a voltage warning state, the voltage configuration parameters can be adjusted according to the voltage monitoring result. When the state of the voltage output by the voltage conversion module is a voltage error state, the condition that the voltage output by the voltage conversion module is too high or too low is indicated, the chip is influenced to work normally by the too high or too low voltage, the service life of the chip is even shortened, and the power supply of the chip target subsystem can be switched to another voltage conversion module or the power supply of the chip target subsystem can be realized through the chip external power supply for the purpose of chip safety.
In this embodiment, by judging that the voltage state information is the voltage warning state information and the voltage error state information, different processes can be performed according to different situations, so that when the voltage output by the voltage conversion module is too high or too low, the power supply is replaced in time, and the safety of the chip is ensured.
The voltage adjustment method of the embodiment of the present application is further described in the following specific implementation manner in the chip operation mode. The flow of the voltage regulation of the voltage system sub-module by the CPU, the voltage conversion control module, the voltage conversion module, the voltage monitoring control module and the voltage monitoring module is shown in fig. 3:
1, in an operation mode, a power management unit (Power Management Unit, PMU) starts a CPU, a voltage conversion control module, a voltage conversion module, a voltage monitoring control module and a voltage monitoring module to power up; the CPU accesses the voltage conversion control module through the control bus and configures voltage configuration parameters of the voltage conversion module to realize 1.2V output voltage; the CPU accesses the voltage monitoring control module through the control bus, configures the monitoring voltage of the voltage detection module to be 1.2V, sets the threshold value of the overvoltage error to be 1.32V (+10%), sets the threshold value of the overvoltage warning to be 1.22V (+1%), sets the threshold value of the undervoltage error to be 1.08V (-10%), and sets the threshold value of the undervoltage warning to be 1.18V (-1%).
2, a clock counting module circuit is arranged in the voltage conversion control module, when the voltage conversion module and the voltage monitoring module start to work, the clock counting module starts to work at the same time, and when the clock counting module is full of 4' hF, the voltage monitoring result of the voltage monitoring module can be acquired once. When the output voltage of the voltage conversion module accords with the expected range (1.18V-1.22V), the voltage monitoring module does not generate warning and error state information, and the voltage does not need to be regulated at the moment.
And 3, when the output voltage of the voltage conversion module is within the warning range (1.08V-1.18V/1.22V-1.32V), the voltage monitoring module generates warning state information, and after the voltage state sampling circuit in the voltage conversion control module samples the warning state information, the internal voltage monitoring state judging circuit judges whether the voltage is an overvoltage warning or an undervoltage warning.
1) When the under-voltage warning occurs, a positive compensation coefficient is generated, and the original voltage configuration parameters are positively compensated;
2) Generating a negative compensation coefficient after the overvoltage warning occurs, and realizing negative compensation on the original configuration parameters;
the voltage configuration parameter self-adaptive compensation circuit converts positive compensation coefficient or negative compensation coefficient into a complementary code format, performs compensation operation with the configuration parameter, and can realize corresponding operation function only by using one adder. And after the compensation coefficient and the configuration parameter are subjected to addition operation, obtaining a new configuration parameter, and giving the new configuration parameter to the voltage conversion module, wherein the voltage conversion module generates a new output voltage according to the compensated coefficient, and the voltage monitoring module monitors the new output voltage in real time and feeds back a voltage monitoring result to the voltage conversion control module until the voltage meets the requirement.
And 4, when the output voltage of the voltage conversion module exceeds the error threshold range, the voltage is higher than 1.32V or lower than 1.08V, and at the moment, the excessive high voltage or the excessive low voltage can influence the normal operation of the chip, even shorten the service life of the chip, and the voltage can be switched to another voltage conversion module for chip safety or chip power supply can be realized by using an external power supply of the chip.
And 5, when the chip is switched into a sleep mode or sleeps, the CPU can switch the output voltage of the voltage conversion module to be 0.8V, the voltage conversion control module only needs to modify the voltage configuration parameters, the voltage of the voltage conversion module is switched to be 0.8V, meanwhile, the CPU modifies the monitoring voltage of the voltage monitoring module to be 0.8V, and the voltage conversion control module can monitor and adaptively compensate the output voltage of the voltage conversion module.
The embodiment of the application also provides a voltage adjusting device, which is applied to a voltage conversion control module in a chip, as shown in fig. 4, and the device comprises:
the first obtaining unit 41 is configured to obtain an adjustment signal for adjusting a voltage of a target subsystem in a chip, where the adjustment signal includes a target voltage to be adjusted.
A determining unit 42, configured to determine a voltage configuration parameter corresponding to the target voltage.
The control unit 43 is configured to control the output voltage of the voltage conversion module corresponding to the target subsystem according to the voltage configuration parameter.
The second obtaining unit 44 is configured to obtain a voltage monitoring result of a voltage monitoring module corresponding to the target subsystem, where the voltage monitoring module is configured to monitor the voltage output by the voltage conversion module.
The adjusting unit 45 is configured to adjust the voltage configuration parameter according to the voltage monitoring result when the voltage monitoring result does not meet the first preset condition, and return to controlling the voltage conversion module corresponding to the target subsystem to output voltage according to the voltage configuration parameter until the voltage monitoring result meets the first preset condition.
According to the voltage adjusting device provided by the embodiment of the application, the adjusting signal for adjusting the voltage of the target subsystem in the chip is obtained, and the adjusting signal comprises the target voltage to be adjusted; determining a voltage configuration parameter corresponding to the target voltage; controlling the output voltage of a voltage conversion module corresponding to the target subsystem according to the voltage configuration parameters; acquiring a voltage monitoring result of a voltage monitoring module corresponding to the target subsystem, wherein the voltage monitoring module is used for monitoring the voltage output by the voltage conversion module; under the condition that the voltage monitoring result does not meet the first preset condition, adjusting the voltage configuration parameters according to the voltage monitoring result, and returning to control the voltage conversion module corresponding to the target subsystem to output voltage according to the voltage configuration parameters until the voltage monitoring result meets the first preset condition; therefore, when the working voltage of the target subsystem in the chip is regulated, the voltage monitoring module can monitor the voltage output by the voltage conversion module corresponding to the target subsystem in real time, and the voltage conversion control module can automatically regulate the voltage configuration parameters based on the voltage monitoring result of the voltage monitoring module, so that the voltage output by the voltage conversion module corresponding to the target subsystem meets a first preset condition, the voltage output by the voltage conversion module is adaptively regulated, the voltage conversion module outputs the voltage meeting the requirement, and the chip is ensured to have higher safety.
In some embodiments, the voltage adjustment device further comprises: a second determining unit 46, configured to determine a count result of the clock count module.
Correspondingly, the second obtaining unit 44 is configured to obtain the voltage monitoring result of the voltage monitoring module corresponding to the target subsystem when the count result of the clock counting module meets the second preset condition.
In some embodiments, the first preset condition comprises: the voltage output by the voltage conversion module accords with the expected voltage range.
In some embodiments, the adjusting unit 45 is configured to determine a voltage compensation coefficient according to the voltage monitoring result; and adjusting the voltage configuration parameters according to the voltage compensation coefficient.
In some embodiments, the adjusting unit 45 is configured to generate a negative voltage compensation coefficient according to the voltage output by the voltage conversion module and the target voltage when it is determined that the voltage output by the voltage conversion module is overvoltage according to the voltage monitoring result; under the condition that the voltage output by the voltage conversion module is determined to be under-voltage according to the voltage monitoring result, generating a positive voltage compensation coefficient according to the voltage output by the voltage conversion module and the target voltage.
In some embodiments, the adjusting unit 45 is configured to convert the format of the voltage compensation coefficient into the format of the voltage configuration parameter; and performing compensation operation on the voltage compensation coefficient and the voltage configuration parameter after the format conversion so as to adjust the voltage configuration parameter.
In some embodiments, the adjusting unit 45 is further configured to determine the voltage status information according to the voltage monitoring result.
Correspondingly, the adjusting unit 45 is configured to adjust the voltage configuration parameter according to the voltage monitoring result when the voltage status information is the voltage warning status information; and under the condition that the voltage state information is the voltage error state information, switching the power supply of the target subsystem to the target voltage conversion module.
According to embodiments of the present application, an electronic device and a readable storage medium are also provided.
Fig. 5 shows a schematic block diagram of an example electronic device 800 that may be used to implement embodiments of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the application described and/or claimed herein.
As shown in fig. 5, the apparatus 800 includes a computing unit 801 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 802 or a computer program loaded from a storage unit 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to the bus 804.
Various components in device 800 are connected to I/O interface 805, including: an input unit 806 such as a keyboard, mouse, etc.; an output unit 807 such as various types of displays, speakers, and the like; a storage unit 808, such as a magnetic disk, optical disk, etc.; and a communication unit 809, such as a network card, modem, wireless communication transceiver, or the like. The communication unit 809 allows the device 800 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The computing unit 801 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 801 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The calculation unit 801 performs the respective methods and processes described above, for example, a voltage adjustment method. For example, in some embodiments, the voltage regulation method may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as the storage unit 808. In some embodiments, part or all of the computer program may be loaded and/or installed onto device 800 via ROM 802 and/or communication unit 809. When a computer program is loaded into RAM 803 and executed by computing unit 801, one or more steps of the voltage adjustment method described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the voltage adjustment method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems-on-a-chip (SOCs), complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present application may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this application, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server incorporating a blockchain.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present application may be performed in parallel, sequentially, or in a different order, provided that the desired results of the technical solutions disclosed in the present application can be achieved, and are not limited herein.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present application, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
The foregoing is merely specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (8)

1. A voltage regulation method applied to a voltage conversion control module in a chip, the method comprising:
acquiring an adjusting signal for adjusting the voltage of a target subsystem in a chip, wherein the adjusting signal comprises a target voltage to be adjusted; the target subsystem comprises at least one of a Central Processing Unit (CPU), a digital signal processing subsystem (DSP), a graphic processor, a CPU (Central processing Unit) Distributed Processing Unit (DPU), a Universal Serial Bus (USB) and a UNIX File System (UFS); the target voltage is 1.2V;
determining a voltage configuration parameter corresponding to the target voltage;
controlling the output voltage of a voltage conversion module corresponding to the target subsystem according to the voltage configuration parameters;
determining a counting result of the clock counting module;
under the condition that the counting result of the clock counting module reaches 4' hF, acquiring a voltage monitoring result of a voltage monitoring module corresponding to the target subsystem, wherein the voltage monitoring module is used for monitoring the voltage output by the voltage conversion module;
under the condition that the voltage monitoring result does not meet a first preset condition, adjusting the voltage configuration parameters according to the voltage monitoring result, and returning to control the voltage conversion module corresponding to the target subsystem to output voltage according to the voltage configuration parameters until the voltage monitoring result meets the first preset condition; the first preset condition includes: the voltage output by the voltage conversion module accords with an expected voltage range; the desired voltage range is 1.18V to 1.22V.
2. The voltage adjustment method according to claim 1, wherein the adjusting the voltage configuration parameter according to the voltage monitoring result includes:
determining a voltage compensation coefficient according to the voltage monitoring result;
and adjusting the voltage configuration parameters according to the voltage compensation coefficient.
3. The voltage adjustment method according to claim 2, the determining a voltage compensation coefficient according to the voltage monitoring result, comprising:
under the condition that the voltage output by the voltage conversion module is overvoltage according to the voltage monitoring result, generating a negative voltage compensation coefficient according to the voltage output by the voltage conversion module and the target voltage;
under the condition that the voltage output by the voltage conversion module is determined to be under-voltage according to the voltage monitoring result, generating a positive voltage compensation coefficient according to the voltage output by the voltage conversion module and the target voltage.
4. The voltage adjustment method according to claim 2, the adjusting the voltage configuration parameter according to the voltage compensation coefficient, comprising:
converting the format of the voltage compensation coefficient into the format of the voltage configuration parameter;
And carrying out compensation operation on the voltage compensation coefficient after the format conversion and the voltage configuration parameter so as to adjust the voltage configuration parameter.
5. The voltage adjustment method according to claim 1, further comprising, before the adjusting the voltage configuration parameter according to the voltage monitoring result:
determining voltage state information according to the voltage monitoring result;
in response to this, the control unit,
when the voltage state information is voltage warning state information, adjusting the voltage configuration parameters according to the voltage monitoring result;
and under the condition that the voltage state information is voltage error state information, switching the power supply of the target subsystem to a target voltage conversion module.
6. A voltage regulation device for use in an on-chip voltage conversion control module, the device comprising:
the first acquisition unit is used for acquiring an adjustment signal for adjusting the voltage of a target subsystem in the chip, wherein the adjustment signal comprises a target voltage to be adjusted; the target subsystem comprises at least one of a Central Processing Unit (CPU), a digital signal processing subsystem (DSP), a graphic processor, a CPU (Central processing Unit) Distributed Processing Unit (DPU), a Universal Serial Bus (USB) and a UNIX File System (UFS); the target voltage is 1.2V;
A determining unit, configured to determine a voltage configuration parameter corresponding to the target voltage;
the control unit is used for controlling the output voltage of the voltage conversion module corresponding to the target subsystem according to the voltage configuration parameters;
the second acquisition unit is used for determining the counting result of the clock counting module; under the condition that the counting result of the clock counting module reaches 4' hF, acquiring a voltage monitoring result of a voltage monitoring module corresponding to the target subsystem, wherein the voltage monitoring module is used for monitoring the voltage output by the voltage conversion module;
the adjusting unit is used for adjusting the voltage configuration parameters according to the voltage monitoring result when the voltage monitoring result does not meet a first preset condition, and controlling the voltage conversion module corresponding to the target subsystem to output voltage according to the voltage configuration parameters until the voltage monitoring result meets the first preset condition; the first preset condition includes: the voltage output by the voltage conversion module accords with an expected voltage range; the desired voltage range is 1.18V to 1.22V.
7. An electronic device, comprising:
at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the voltage regulation method of any one of claims 1-5.
8. A computer-readable storage medium storing computer instructions for causing a computer to perform the voltage regulation method according to any one of claims 1 to 5.
CN202210943145.XA 2022-08-08 2022-08-08 Voltage adjustment method and device, electronic equipment and readable storage medium Active CN115390609B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210943145.XA CN115390609B (en) 2022-08-08 2022-08-08 Voltage adjustment method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210943145.XA CN115390609B (en) 2022-08-08 2022-08-08 Voltage adjustment method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN115390609A CN115390609A (en) 2022-11-25
CN115390609B true CN115390609B (en) 2024-01-26

Family

ID=84119457

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210943145.XA Active CN115390609B (en) 2022-08-08 2022-08-08 Voltage adjustment method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN115390609B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021046771A1 (en) * 2019-09-11 2021-03-18 华为技术有限公司 Security detection method and device
CN114201026A (en) * 2021-11-19 2022-03-18 锐捷网络股份有限公司 Voltage control method, voltage control device, storage medium and electronic equipment
CN114257309A (en) * 2022-01-17 2022-03-29 武汉光迅科技股份有限公司 Optical module equipment and control method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101232180B (en) * 2008-01-24 2012-05-23 东北大学 Power distribution system load obscurity model building device and method
US11074150B2 (en) * 2019-04-19 2021-07-27 Nxp B.V. Chip health monitor

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021046771A1 (en) * 2019-09-11 2021-03-18 华为技术有限公司 Security detection method and device
CN114201026A (en) * 2021-11-19 2022-03-18 锐捷网络股份有限公司 Voltage control method, voltage control device, storage medium and electronic equipment
CN114257309A (en) * 2022-01-17 2022-03-29 武汉光迅科技股份有限公司 Optical module equipment and control method

Also Published As

Publication number Publication date
CN115390609A (en) 2022-11-25

Similar Documents

Publication Publication Date Title
JP2014529777A (en) Improving the performance of digital circuits using current management
CN110795238B (en) Load calculation method and device, storage medium and electronic equipment
CN115211011A (en) Power supply method and device, electronic equipment and readable storage medium
CN115390609B (en) Voltage adjustment method and device, electronic equipment and readable storage medium
TWI449921B (en) Device for switching power consumption and methodthereof
CN109587774B (en) Energy efficiency control method, control device and communication equipment
CN115269145A (en) High-energy-efficiency heterogeneous multi-core scheduling method and device for offshore unmanned equipment
US10684667B2 (en) Dynamic battery power management based on battery internal impedance
CN116073384A (en) AC voltage stabilization control method for DC fault ride-through transmitting end sent by new energy
CN115242626B (en) Cloud resource allocation prediction method, device, equipment, storage medium and program product
CN116404923B (en) Control parameter adjusting device and method of excitation system and storage medium
CN114439683B (en) Wind driven generator torque control method, device, equipment and storage medium
WO2021120015A1 (en) Power limit determination method and apparatus
CN117117904B (en) Frequency modulation contribution evaluation method and device and electronic equipment
CN115361449B (en) Method, device, equipment and storage medium for adjusting IP resources
CN118068941A (en) Electronic equipment control method and device and electronic equipment
CN117559010A (en) Power control device and method of energy storage system, storage medium and energy storage system
CN117348712A (en) System power consumption control method, device, equipment and medium
CN117526380A (en) Charging power adjustment method, device, control system and storage medium
CN116905604A (en) Multi-mode control method, device, equipment and medium for hybrid engineering machinery
CN118199017A (en) DC bus voltage control method, device, equipment and storage medium
CN115912439A (en) Method, device and equipment for determining modulation signal of current transformer and storage medium
CN117096985A (en) External charging method, device, equipment and storage medium
CN116759669A (en) Battery control method, electronic equipment and readable storage medium
CN116436112A (en) Charging voltage adjusting method and device, electronic equipment and storage medium

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