Disclosure of Invention
The embodiment of the invention provides a voltage self-adaptive regulation method and device of an integrated circuit and electronic equipment, which are used for adaptively regulating the relation between voltage and frequency and improving the working performance and energy efficiency ratio of the circuit.
According to an aspect of the present invention, there is provided a voltage adaptive regulation method of an integrated circuit, including:
Pre-configuring an expected operating frequency and an operating voltage of the current operating cycle of the integrated circuit and controlling the integrated circuit to operate after the expected operating frequency and a maximum current threshold allowed under the operating voltage;
regulating and controlling the working frequency of the integrated circuit based on the magnitude relation between the actual working current of the integrated circuit and a preset maximum current threshold value in the operation process;
Detecting the actual working frequency of the integrated circuit at the end of the current operation period;
And adaptively adjusting the working voltage preconfigured for the next operation period of the integrated circuit according to the difference value of the expected working frequency and the actual working frequency.
Optionally, adjusting the operating frequency of the integrated circuit based on the magnitude relation between the actual operating current of the integrated circuit and the preconfigured maximum current threshold in the operation process includes:
Controlling the integrated circuit to operate according to the expected operating frequency and the pre-configured operating voltage, and monitoring whether the operating voltage of the integrated circuit exceeds the maximum operating current threshold in the operating process;
if the integrated circuit exceeds the threshold value, controlling the integrated circuit to reduce the working frequency;
And if the operating frequency is not exceeded, controlling the integrated circuit to maintain the operation of the expected operating frequency.
Optionally, adaptively adjusting an operating voltage preconfigured to a next operating period of the integrated circuit according to a difference between the expected operating frequency and the actual operating frequency, including:
if the detected actual working frequency is smaller than the expected working frequency, lifting the preset working voltage of the next working period, and increasing the preset maximum working current threshold;
And if the detected actual working frequency is equal to the expected working frequency, reducing the preconfigured working voltage of the next working period and reducing the preconfigured maximum working current threshold value.
Optionally, pre-configuring an expected operating frequency, an operating voltage, and a maximum current threshold allowed at the expected operating frequency and the operating voltage of the integrated circuit further comprises:
determining an expected operating frequency of the integrated circuit;
Acquiring an operating voltage corresponding to the expected operating frequency from a voltage frequency relation storage table; wherein, in the voltage frequency relation storage table, each working frequency corresponds to a plurality of working voltages;
And determining the maximum current threshold of the integrated circuit according to the expected operating frequency and the acquired operating voltage.
Optionally, if the actual operating frequency is detected to be smaller than the expected operating frequency, raising the operating voltage preconfigured for the next operating period includes:
Acquiring a voltage value which corresponds to the expected working frequency and is larger than the working voltage of the current operation period from a voltage frequency relation storage table;
pre-configuring the acquired voltage value which corresponds to the expected working frequency and is larger than the working voltage of the current operation period into the working voltage of the next operation period;
If the actual working frequency is detected to be equal to the expected working frequency, reducing the preconfigured working voltage of the next working period, including:
acquiring a voltage value which corresponds to the expected working frequency and is smaller than the working voltage of the current operation period from a voltage frequency relation storage table;
and pre-configuring the acquired voltage value which corresponds to the expected working frequency and is smaller than the working voltage of the current operation period as the working voltage of the next operation period.
Optionally, the method for adaptively adjusting the voltage of the integrated circuit further includes:
detecting operation abnormality information in the operation process of the integrated circuit, and updating the voltage frequency storage table according to the operation abnormality information.
Optionally, updating the voltage frequency storage table according to the operation abnormality information includes:
judging whether the integrated circuit can repair the abnormality through voltage regulation according to the operation abnormality information;
If yes, determining a voltage abnormality type, and adjusting working voltage corresponding to each working frequency in the voltage frequency storage table according to the voltage abnormality type so as to realize self-adaptive adjustment of the voltage frequency storage table aiming at long-term and aging working scenes; wherein the voltage abnormality types include a voltage higher type and a voltage lower type.
According to another aspect of the present invention, there is provided a voltage adaptive adjustment apparatus of an integrated circuit, comprising:
An operating parameter pre-configuration unit for pre-configuring an expected operating frequency, an operating voltage and a maximum current threshold allowed under the expected operating frequency and the operating voltage of a current operating cycle of the integrated circuit;
An operation control unit for controlling the operation of the integrated circuit according to the expected operating frequency and operating voltage;
The regulating and controlling unit is used for regulating and controlling the working frequency of the integrated circuit based on the magnitude relation between the actual working current of the integrated circuit and a preset maximum current threshold value in the operation process;
the detection unit is used for detecting the actual working frequency when the current running period of the integrated circuit is ended;
The working parameter pre-configuration unit is also used for adaptively adjusting the working voltage pre-configured for the next operation period of the integrated circuit according to the difference value between the expected working frequency and the actual working frequency.
Optionally, the voltage adaptive adjustment device of the integrated circuit further includes:
and the voltage frequency storage table updating unit is used for detecting abnormal operation information in the operation process of the integrated circuit and updating the voltage frequency storage table according to the abnormal operation information.
According to another aspect of the present invention, there is provided an electronic apparatus including:
At least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
The memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of voltage adaptation adjustment of an integrated circuit according to any of the embodiments of the present invention.
The embodiment of the invention provides a voltage self-adaptive adjustment method and device of an integrated circuit and electronic equipment, wherein the voltage self-adaptive adjustment method of the integrated circuit comprises the following steps: the method comprises the steps of pre-configuring expected operating frequency and operating voltage of a current operating period of the integrated circuit and controlling the integrated circuit to operate after maximum current threshold allowed under the expected operating frequency and the operating voltage; regulating and controlling the working frequency of the integrated circuit based on the magnitude relation between the actual working current of the integrated circuit and the preconfigured maximum current threshold value in the operation process; detecting the actual working frequency of the integrated circuit when the current operation period is finished; and adaptively adjusting the working voltage pre-configured for the next operation period of the integrated circuit according to the difference value between the expected working frequency and the actual working frequency. According to the technical scheme provided by the invention, each frequency can correspond to various voltages, after the corresponding voltage frequency working interval is defined according to the original hardware design specification frame, the chip in the integrated circuit can self-adaptively adjust the self-voltage and frequency relation according to the actual working condition, so that the proper voltage frequency relation under different working conditions is obtained, and the working performance and the energy efficiency ratio of the circuit are improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
An embodiment of the present invention provides a voltage adaptive adjustment method for an integrated circuit, and fig. 1 is a flowchart of the voltage adaptive adjustment method for an integrated circuit provided by the embodiment of the present invention, and referring to fig. 1, the voltage adaptive adjustment method for an integrated circuit includes:
S110, after the expected operating frequency and the operating voltage of the current operating period of the integrated circuit and the maximum current threshold allowed under the expected operating frequency and the operating voltage are preconfigured, the operation of the integrated circuit is controlled.
In particular, the voltage adaptation of the integrated circuit may operate at a fixed period. The expected operating frequency, operating voltage, and maximum current threshold allowed at the expected operating frequency and operating voltage for the current operating cycle are set at the beginning of each cycle, and the integrated circuit operation is controlled at the expected operating frequency and operating voltage during each cycle.
S120, regulating and controlling the working frequency of the integrated circuit based on the magnitude relation between the actual working current of the integrated circuit and the preconfigured maximum current threshold value in the operation process.
Specifically, after the integrated circuit is controlled to operate at the expected operating frequency and the operating voltage, when the actual operating current exceeds the safety threshold value, namely the maximum current threshold value allowed under the expected operating frequency and the operating voltage, the chip in the integrated circuit can be rapidly subjected to frequency reduction so as to ensure the stability of the operating state of the whole integrated circuit in a frequency reduction mode due to the effect of the threshold protection functions of the current, the voltage and the like. Thus, the actual operating frequency during the run-time period may be less than or equal to the pre-configured expected operating frequency during the initial phase of the run-time period.
S130, detecting the actual working frequency of the integrated circuit at the end of the current operation period.
And S140, adaptively adjusting the working voltage preconfigured to the next operation period of the integrated circuit according to the difference value of the expected working frequency and the actual working frequency.
Specifically, when the operation period is finished, the actual working frequency of the current operation period is detected. Comparing the actual working frequency with the pre-configured expected working frequency in the initial stage of the current working period, and determining the working voltage of the next working period of the integrated circuit according to the difference result so as to adjust the voltage frequency configuration of the next working period. That is, each frequency corresponds to a plurality of voltages, and the chip in the integrated circuit can adjust the working voltage according to the actual working condition. Fig. 2 is a graph of a frequency-voltage correspondence relationship provided in an embodiment of the present invention, and referring to fig. 2, a single voltage frequency curve L of a DVFS may be converted into a plurality of voltage frequency curves, so that each frequency corresponds to an adaptive voltage adjustment interval W. After the corresponding voltage frequency working interval is defined according to the original hardware design specification frame, the chip in the integrated circuit can adaptively adjust the self voltage and frequency relation according to the actual working condition to obtain the proper voltage frequency relation under different working conditions, thereby improving the working performance and the energy efficiency ratio of the circuit. The self-adaptive voltage regulation in a short period is realized, and the problem that the optimal energy efficiency ratio is obtained under the condition of no-work is solved.
In the prior art, the voltage corresponding to each frequency is a fixed value, that is, the chips in the integrated circuit all operate according to a voltage frequency curve. In order to ensure that a given voltage can run through all models, the voltage settings for each frequency will be relatively large. However, in the process of operating the chip at a frequency in the integrated circuit, the voltage actually required may be lower than the set voltage, which reduces the energy efficiency ratio of the product.
The voltage self-adaptive regulation method of the integrated circuit provided by the embodiment of the invention has the advantages that the whole self-adaptive voltage regulation is operated in a fixed period mode, and the frequency, the voltage and the maximum current allowed under the frequency voltage are set at the initial stage of each period. The circuit is continuously operated in the period process, and under the action of threshold protection functions such as current and voltage, when the current or voltage exceeds a safety threshold, rapid frequency reduction can occur so as to ensure the normal operation of the whole circuit, so that the actual operating frequency can be smaller than or equal to the preset frequency at the beginning of the period. And when the period is finished, detecting the actual working frequency, comparing the actual working frequency with the expected working frequency of the initial configuration of the period, and determining the voltage frequency configuration of the next working period according to the difference result. The single voltage frequency curve of the DVFS is converted into a section corresponding to voltage frequency, and a chip in the integrated circuit can adaptively adjust the self-voltage and frequency relation according to actual working conditions to obtain the most suitable voltage frequency configuration under each working condition, so that the working performance and the energy efficiency ratio of the circuit are improved.
Fig. 3 is a flowchart of another voltage adaptive adjustment method for an integrated circuit according to an embodiment of the present invention, and referring to fig. 3, the voltage adaptive adjustment method for an integrated circuit includes:
s210, determining the expected operating frequency of the integrated circuit; acquiring an operating voltage corresponding to the expected operating frequency from the voltage frequency relation storage table; in the voltage frequency relation storage table, each working frequency corresponds to a plurality of working voltages.
S220, determining the maximum current threshold of the integrated circuit according to the expected operating frequency and the acquired operating voltage.
S230, preconfiguring the determined expected operating frequency, operating voltage and maximum current threshold value into the expected operating frequency, operating voltage and maximum current threshold value allowed under the expected operating frequency and operating voltage of the current operating period of the integrated circuit.
Specifically, pre-configuring the expected operating frequency, operating voltage, and maximum current threshold allowed at the expected operating frequency and operating voltage of the integrated circuit further comprises: determining an expected operating frequency of the integrated circuit; acquiring an operating voltage corresponding to the expected operating frequency from the voltage frequency relation storage table; in the voltage frequency relation storage table, each working frequency corresponds to a plurality of working voltages.
It can be understood that in the early product definition stage, multiple sets of frequency-voltage corresponding relation combinations with the energy efficiency ratio higher than a preset value are debugged according to different application scenes of the integrated circuit; and storing the determined sets of frequency-voltage corresponding relation combinations in a frequency-voltage mapping table. Namely, a plurality of frequency and voltage lattices are added on the existing DVFS scheme corresponding to the single frequency voltage curve, and the specific number is not limited. In the actual operation process, according to the expected operating frequency of the integrated circuit, an operating voltage corresponding to the expected operating frequency is matched from the frequency-voltage mapping table. The different voltages for each frequency determine the maximum allowable operating current and the maximum current threshold of the integrated circuit may be determined based on the desired operating frequency and the obtained operating voltage.
The determined expected operating frequency, operating voltage and maximum current threshold are preconfigured as the expected operating frequency, operating voltage and maximum current threshold allowed at the expected operating frequency and operating voltage for the current operating cycle of the integrated circuit at the initial stage of the current operating cycle. The working voltage of the current operation period is the working voltage determined according to the operation condition of the previous operation period. And when the last operation period is finished, if the detected actual operation frequency of the period is lower than the expected operation frequency of the last operation period, indicating that the actual operation current of the integrated circuit exceeds the maximum current threshold value preconfigured in the last operation period when the integrated circuit works according to the preconfigured operation voltage of the last operation period, so that the integrated circuit has the condition of rapid frequency reduction. I.e. more current margin is required in the current operating situation, and thus the setting of the operating voltage is increased to relax the maximum operating current while increasing the setting of the maximum current threshold when configuring the operating parameters in the current operating cycle. And when the actual working frequency is detected to be equal to the expected working frequency, the fact that the working current actually generated in the previous working period is lower than the preset maximum current threshold value is indicated, and a space for tightening the working voltage is provided, so that the setting of the working voltage and the maximum current threshold value is reduced when the working parameters are configured in the current working period.
S240, controlling the integrated circuit to operate according to the expected operating frequency and the preconfigured operating voltage, and regulating the operating frequency of the integrated circuit based on the magnitude relation between the actual operating current of the integrated circuit and the preconfigured maximum current threshold value in the operation process.
Optionally, adjusting the operating frequency of the integrated circuit based on the magnitude relation between the actual operating current of the integrated circuit and the preconfigured maximum current threshold value in the operation process includes: controlling the integrated circuit to operate according to the expected operating frequency and the pre-configured operating voltage, and monitoring whether the operating voltage of the integrated circuit exceeds a maximum operating current threshold value in the operating process; if the frequency exceeds the preset frequency, the integrated circuit is controlled to reduce the working frequency; if not, the control integrated circuit maintains the expected operating frequency.
S250, detecting the actual working frequency of the integrated circuit when the current operation period is ended.
S260, judging the magnitude relation between the actual working frequency and the expected working frequency.
S270, if the detected actual working frequency is smaller than the expected working frequency, lifting the pre-configured working voltage of the next operation period, and increasing the pre-configured maximum working current threshold; if the detected actual operating frequency is equal to the expected operating frequency, the preconfigured operating voltage for the next operating cycle is reduced and the preconfigured maximum operating current threshold is reduced.
Specifically, when the current operation period is finished, detecting the actual operation frequency of the integrated circuit, and comparing the actual operation frequency with the expected operation frequency to determine whether the preset maximum current and the preset operation voltage in the current operation period meet the current operation scene. When the detected frequency in the period is lower than the expected frequency, the current margin is required in the current working situation, so that the working voltage can be increased in the next operation period, and the maximum working current is relaxed, namely the working voltage and the setting of the maximum current threshold value are increased in the initial stage of the next operation period. And when the actual working frequency is detected to be equal to the expected working frequency, the fact that the working current actually generated in the current working situation is lower than the preset maximum current threshold value is indicated, and a space for tightening the working voltage is provided, so that the working voltage and the maximum working current threshold value can be adjusted downwards in the next working period. I.e. the setting of the maximum current threshold and the operating voltage is reduced in the initial phase of the next operating cycle. The voltage is dynamically adjusted by continuously adjusting the voltage rising and falling mode and combining the actual working scene, and the optimal performance output is obtained, so that the working performance and the energy efficiency ratio of the integrated circuit are improved.
When the actual working frequency is detected to be smaller than the expected working frequency and the working voltage preconfigured in the next operation period is lifted, a voltage value which corresponds to the expected working frequency and is larger than the working voltage in the current operation period is obtained from a voltage frequency relation storage table; and pre-configuring the acquired voltage value which corresponds to the expected operating frequency and is larger than the operating voltage of the current operating period as the operating voltage of the next operating period.
If the actual working frequency is detected to be equal to the expected working frequency, when the working voltage preconfigured in the next operation period is reduced, a voltage value which corresponds to the expected working frequency and is smaller than the working voltage in the current operation period is obtained from the voltage frequency relation storage table; and pre-configuring the acquired voltage value which corresponds to the expected operating frequency and is smaller than the operating voltage of the current operating period as the operating voltage of the next operating period.
In the voltage self-adaptive adjusting method of the integrated circuit, in the early product definition stage, a plurality of sets of frequency-voltage corresponding relation combinations with the energy efficiency ratio higher than a preset value are debugged according to different application scenes of the integrated circuit and stored in a frequency-voltage mapping table. In operation, an operating voltage corresponding to the expected operating frequency is matched from the frequency-voltage mapping table according to the expected operating frequency of the integrated circuit. And in the actual working scene, comparing the actual working frequency with the expected working frequency to judge whether the preset maximum current and working voltage in the current running period meet the current working scene. The voltage is dynamically adjusted by continuously adjusting the voltage rising and falling and combining with the actual working scene, so that the optimal performance output is obtained, and the working performance and the energy efficiency ratio of the integrated circuit are improved.
Optionally, the voltage adaptive adjustment method of the integrated circuit further includes: detecting abnormal operation information in the operation process of the integrated circuit, and updating the voltage frequency storage table according to the abnormal operation information. The fault tolerance of the boundary circuit is increased, the frequency voltage storage table of the DVFS is adjusted according to the abnormal information diagnosis, and the long-term and aging working scenes can be aimed at, so that the self-adaptive adjustment along with the working years can be realized.
Wherein updating the voltage frequency storage table according to the operation abnormality information includes: judging whether the integrated circuit can repair the abnormality through voltage regulation according to the operation abnormality information; if yes, determining a voltage abnormality type, and adjusting working voltage corresponding to each working frequency in the voltage frequency storage table according to the voltage abnormality type so as to realize self-adaptive adjustment of the voltage frequency storage table aiming at long-term and aging working scenes; wherein the voltage abnormality types include a voltage higher type and a voltage lower type. Fig. 4 is a flowchart of updating a voltage frequency storage table according to abnormal operation information of an integrated circuit according to an embodiment of the present invention, and referring to fig. 4, updating a voltage frequency storage table according to abnormal operation information of an integrated circuit includes:
S310, receiving abnormal operation information of the integrated circuit.
S320, judging whether the abnormality of the integrated circuit is a known voltage abnormality according to the operation abnormality information; if not, executing step S330; if yes, go to step S340.
S330, ending the task and reporting the abnormality.
S340, judging the abnormal type of the integrated circuit, and if the abnormal type of the circuit is a voltage higher type, executing a step S350; if the circuit abnormality type is a low voltage type, step S360 is performed.
S350, reducing the voltage and rerun the integrated circuit.
S360, raising the voltage and rerun the integrated circuit.
S370, judging whether the integrated circuit abnormality is successfully repaired; if successful, executing step S380; if not, step S330 is performed.
S380, recording the regulated voltage, and regulating the working voltage corresponding to each working frequency in the voltage frequency storage table according to the voltage difference before and after regulation so as to update the voltage frequency storage table.
S390, operating the integrated circuit according to the updated voltage frequency storage table.
According to the voltage self-adaptive regulation method of the integrated circuit, provided by the embodiment of the invention, the abnormality which can be repaired by voltage regulation is diagnosed according to the type of the abnormal event, and the voltage under the conditions of corresponding frequency, working current, temperature and the like is pertinently regulated according to the occurrence condition (higher voltage or lower voltage) of the abnormality, so that a self-adaptive optimized voltage frequency table is finally obtained. The abnormal situation caused by voltage or aging reasons is partially known and can be solved by a self-repairing mode, so that the abnormal amplification is prevented, and the fault tolerance of the circuit is improved.
The embodiment of the invention also provides a voltage self-adaptive adjusting device of an integrated circuit, which is used for executing the voltage self-adaptive adjusting method of the integrated circuit according to any embodiment, and fig. 5 is a structural block diagram of the voltage self-adaptive adjusting device of the integrated circuit provided by the embodiment of the invention, and referring to fig. 5, the voltage self-adaptive adjusting device of the integrated circuit comprises:
An operation parameter pre-configuration unit 10 for pre-configuring an expected operation frequency, an operation voltage, and a maximum current threshold allowed at the expected operation frequency and the operation voltage of a current operation cycle of the integrated circuit;
An operation control unit 20 for controlling the operation of the integrated circuit according to the desired operating frequency and operating voltage;
a regulating unit 30, configured to regulate an operating frequency of the integrated circuit based on a magnitude relation between an actual operating current of the integrated circuit and a preconfigured maximum current threshold value during an operation process;
a detecting unit 40 for detecting an actual operating frequency at the end of a current operating cycle of the integrated circuit;
The operation parameter pre-configuration unit 10 also adaptively adjusts the operation voltage pre-configured for the next operation cycle of the integrated circuit according to the difference between the expected operation frequency and the actual operation frequency.
Optionally, the voltage adaptive adjustment device of the integrated circuit further includes:
And the voltage frequency storage table updating unit is used for detecting abnormal operation information in the operation process of the integrated circuit and updating the voltage frequency storage table according to the abnormal operation information.
The embodiment of the invention also provides electronic equipment, which comprises:
At least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
The memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of voltage adaptation adjustment of an integrated circuit as described in any of the embodiments above.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.