Adaptive voltage frequency adjustment method and device

By obtaining the clock signal and delay information for counting operations, and judging whether to adjust the voltage and frequency according to the voltage and frequency adjustment rules, the problem of slow response speed and complex control in the existing technology is solved, efficient voltage and frequency adjustment is achieved, and energy consumption is reduced. Consumption.

CN114546090BActive Publication Date: 2024-09-20SHANGHAI BIREN TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202210158474.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-21
Publication Date
2024-09-20
Estimated Expiration
2042-02-21

AI Technical Summary

Technical Problem

Existing voltage and frequency adjustment solutions need to detect each path in the chip one by one, resulting in slow response speed, complex control and high power consumption.

Method used

By pre-obtaining the delay information of the clock signal and monitoring path, performing counting calculations and judging whether to adjust the voltage and frequency according to the voltage and frequency adjustment rules, the adjustment process is simplified and the response speed is improved.

Benefits of technology

It effectively improves the response speed, simplifies the voltage and frequency adjustment control process, reduces energy consumption, and ensures that the chip consumes as little power as possible during normal operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114546090B
    Figure CN114546090B
Patent Text Reader

Abstract

The present invention provides an adaptive voltage and frequency adjustment method and device, the method comprising: obtaining a counting result based on a pre-acquired clock signal and pre-acquired delay information of each monitoring path; judging whether to adjust the voltage and whether to adjust the frequency according to the counting result and a pre-set voltage and frequency adjustment rule; and adjusting the voltage and / or frequency accordingly according to the judgment result obtained. The present invention drives a counter to count by using a pre-acquired clock signal and pre-acquired delay information of each monitoring path, and judges whether the frequency needs to be adjusted and whether the voltage needs to be adjusted according to the obtained counting result and the pre-set voltage and frequency adjustment rule, so as to make corresponding adjustments according to the judgment result, avoid the delay caused by detecting each monitoring path one by one, thereby effectively improving the response speed, simplifying the process of voltage and frequency adjustment control, and ensuring that energy consumption is reduced as much as possible when the chip is operating normally.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of integrated circuits, and in particular to an adaptive voltage and frequency adjustment method and device. Background Art

[0002] With the development of dynamic voltage frequency scaling (DVFS) technology, DVFS is widely used in various processors today to effectively manage the power consumption of electronic systems to avoid waste.

[0003] The current voltage and frequency adjustment scheme mainly detects the frequency adjustment requirements issued by each path in the chip or external interrupts through the detection unit, retrieves the new frequency and new voltage through the pre-built-in voltage-frequency upper limit relationship, and then configures them to the voltage adjustment unit and the clock adjustment unit respectively.

[0004] However, since the voltage and frequency adjustment scheme needs to detect each path in the chip one by one, the detection workload is large and the response speed is slow, which can easily cause performance loss or large power loss. In addition, since the DVFS strategy requires reducing the frequency first and then reducing the voltage when optimizing power consumption, and requires increasing the voltage first and then increasing the frequency when optimizing performance, in order to safely achieve the optimal performance and power consumption optimization, complex timing control is required to ensure safety, and its response speed is limited by the frequency stabilization speed of the clock module and the output stabilization speed of the power module, the response is slow and the control complexity is high. Summary of the invention

[0005] The present invention provides an adaptive voltage frequency adjustment method and device, which are used to solve the defect of slow response speed due to one-by-one detection of each path in the prior art, simplify the voltage frequency adjustment control process, and improve the response speed.

[0006] The present invention provides an adaptive voltage and frequency adjustment method, comprising: obtaining a counting result based on a pre-acquired clock signal and pre-acquired delay information of each monitoring path; judging whether to adjust the voltage and whether to adjust the frequency according to the counting result and a pre-set voltage and frequency adjustment rule; and adjusting the voltage and / or frequency accordingly according to the judgment result obtained by the judgment.

[0007] According to an adaptive voltage and frequency adjustment method provided by the present invention, the counting result is obtained based on the pre-acquired clock signal and the pre-acquired delay information of each monitoring path, including: based on the pre-acquired clock signal, performing an AND gate logic operation on the pre-acquired delay information of each monitoring path to obtain a first operation result; based on the pre-acquired clock signal, performing frequency conversion processing on the pre-acquired delay information of each monitoring path, and performing an AND gate logic operation on the delay after the frequency conversion processing to obtain a second operation result; performing an XENOR gate logic operation on the first operation result and the second operation result to obtain a logic operation result, and according to the logic operation result, driving a counter to count to obtain a counting result.

[0008] According to an adaptive voltage and frequency adjustment method provided by the present invention, the determination of whether to adjust the voltage and whether to adjust the frequency is based on the counting result and the preset voltage and frequency adjustment rule, including: based on the counting result, using the preset voltage and frequency adjustment rule, determining the standard voltage and standard frequency corresponding to each of the monitoring paths; based on the counting result, obtaining the monitoring voltage and monitoring frequency of the corresponding monitoring path; comparing the monitoring voltage with the standard voltage to determine whether to adjust the voltage; comparing the monitoring frequency with the standard frequency to determine whether to adjust the frequency.

[0009] According to an adaptive voltage frequency adjustment method provided by the present invention, the voltage adjustment includes: comparing the monitoring voltage obtained in advance based on the counting result with the preset voltage, and increasing the voltage step accordingly based on the monitoring voltage being less than the preset voltage; otherwise, reducing the voltage step;

[0010] The frequency adjustment includes: comparing the monitoring frequency obtained in advance based on the counting result with the preset frequency, and increasing the frequency step accordingly based on the monitoring frequency being less than the preset frequency; otherwise, reducing the frequency step.

[0011] According to an adaptive voltage frequency adjustment method provided by the present invention, before obtaining the counting result based on the pre-acquired clock signal and the pre-acquired delay information of each monitoring path, the method includes: acquiring the clock signal corresponding to each of the monitoring paths.

[0012] According to an adaptive voltage and frequency adjustment method provided by the present invention, the acquisition of the clock signal corresponding to each of the monitoring paths includes: acquiring a register to generate a clock signal corresponding to each of the monitoring paths based on an input signal; returning the clock signal output by the register based on an inverter, and performing an AND gate logic operation in combination with a pre-acquired trigger signal to obtain the input signal of the register.

[0013] According to an adaptive voltage and frequency adjustment method provided by the present invention, before obtaining the input signal of the register, it also includes: obtaining a trigger signal based on preset adaptive voltage and frequency adjustment parameters, wherein the adaptive voltage and frequency adjustment parameters include at least one of a start signal, a system clock signal, a configuration time and a reset number.

[0014] According to an adaptive voltage and frequency adjustment method provided by the present invention, before obtaining the counting result based on the pre-acquired clock signal and the pre-acquired delay information of each monitoring path, it also includes: obtaining the delay information of each monitoring path in the delay package based on the clock signal; or, based on the clock signal, monitoring each monitoring path, and storing the delay information obtained by monitoring in the delay package.

[0015] The present invention also provides an adaptive voltage and frequency adjustment device, comprising: a value detection module, which obtains counting results corresponding to each monitoring path based on a pre-acquired clock signal and monitoring information obtained by pre-monitoring each monitoring path; a system control module, which determines whether to adjust the voltage and whether to adjust the frequency according to the counting results and pre-set voltage and frequency adjustment rules; and an adjustment module, which adjusts the voltage and / or frequency accordingly according to the judgment result obtained by the judgment.

[0016] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any of the above-mentioned adaptive voltage and frequency adjustment methods are implemented.

[0017] The adaptive voltage and frequency adjustment method and device provided by the present invention drive the counter to count through the pre-acquired clock signal and the pre-acquired delay information of each monitoring path, and judge whether the frequency needs to be adjusted and whether the voltage needs to be adjusted according to the obtained counting result and the pre-set voltage and frequency adjustment rule, so as to make corresponding adjustments according to the judgment result, avoid the delay caused by detecting each monitoring path one by one, thereby effectively improving the response speed, simplifying the process of voltage and frequency adjustment control, and ensuring that energy consumption is reduced as much as possible when the chip is operating normally. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0019] Figure 1It is a flow chart of the adaptive voltage and frequency adjustment method provided by the present invention;

[0020] Figure 2 It is one of the circuit schematic diagrams of the adaptive voltage-frequency adjustment method provided by the present invention;

[0021] Figure 3 This is the second circuit diagram of the adaptive voltage-frequency adjustment method provided by the present invention;

[0022] Figure 4 It is a structural schematic diagram of the adaptive voltage and frequency adjustment device provided by the present invention;

[0023] Figure 5 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

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

[0025] Figure 1 A schematic flow chart of an adaptive voltage and frequency adjustment method of the present invention is shown, the method comprising:

[0026] S11, obtaining a counting result based on a pre-acquired clock signal and pre-acquired delay information of each monitoring path;

[0027] S12, judging whether to adjust the voltage and whether to adjust the frequency according to the counting result and the preset voltage and frequency adjustment rules;

[0028] S13, adjusting the voltage and / or frequency accordingly according to the judgment result.

[0029] It should be noted that S1N in this specification does not represent the sequence of the adaptive voltage and frequency adjustment method. Figure 2-Figure 3 The adaptive voltage and frequency adjustment method of the present invention is described.

[0030] Step S11, obtaining a counting result based on the pre-acquired clock signal and the pre-acquired delay information of each monitoring path.

[0031] In this embodiment, a counting result is obtained based on a pre-acquired clock signal and pre-acquired delay information of each monitoring path, including: performing an AND gate logic operation on the pre-acquired delay information of each monitoring path based on the pre-acquired clock signal to obtain a first operation result; performing frequency conversion processing on the pre-acquired delay information of each monitoring path based on the pre-acquired clock signal, and performing an AND gate logic operation on the delay after the frequency conversion processing to obtain a second operation result; performing an XENOR logic operation on the first operation result and the second operation result to obtain a logic operation result, and driving a counter to count according to the logic operation result to obtain a counting result.

[0032] It should be noted that when obtaining the first operation result, it is necessary to perform an AND gate logic operation on the delay information of all monitoring paths acquired in advance to obtain the first operation result; and, when obtaining the second operation result, it is necessary to perform frequency conversion processing on the delay information of all monitoring paths acquired in advance, and perform an AND gate logic operation on the delay information after frequency conversion processing to obtain the second operation result.

[0033] In addition, the logical operation result is obtained by performing an XNOR gate logic operation on the second operation result obtained by frequency conversion processing and the first operation result without frequency conversion processing. By performing an XNOR gate logic operation on the operation results obtained by frequency conversion processing and the operation results without frequency conversion processing, it is convenient to obtain the monitoring path with the largest delay from each monitoring path, so as to facilitate the subsequent frequency and / or voltage judgment of the monitoring path. In addition, the frequency conversion processing can adjust the corresponding monitoring frequency when the monitoring frequency corresponding to the delay information meets the normal operation of the chip, so as to reduce energy consumption and extend the service life of the corresponding hardware equipment.

[0034] In this embodiment, the first operation result is obtained by performing an AND gate logic operation on the delay information corresponding to all the acquired monitoring paths. If the delay information corresponding to all the acquired monitoring paths is 1, the first operation result is 1, otherwise, the first operation result is 0; similarly, the second operation result is obtained by performing an AND gate logic operation on all the delay information after frequency conversion processing. If the delay information corresponding to all the acquired monitoring paths is 1, the second operation result is 1, otherwise, the second operation result is 0.

[0035] The logic operation result is obtained by performing an XNOR gate logic operation on the first operation result and the second operation result. If the first operation result and the second operation result are different, the obtained logic operation result is 0; otherwise, the obtained logic operation result is 1.

[0036] It should be added that the critical path may be a path with a delay greater than a preset threshold among the chip paths selected in advance based on a priori or experience. The specific selection of the critical path may be set according to actual design requirements and is not further limited here.

[0037] In an optional embodiment, before obtaining the counting result based on the pre-acquired clock signal and the pre-acquired delay information of each monitoring path, the method includes: obtaining the clock signal corresponding to each monitoring path. It should be noted that the clock signal in this embodiment can be derived from a register or other circuits, such as a system clock signal, etc., which is not further limited here. The following example is taken as an example that the clock signal is derived from a register, specifically:

[0038] Obtaining the clock signal corresponding to each monitoring path includes: obtaining a register to generate a clock signal corresponding to each monitoring path based on an input signal; returning the clock signal output by the register based on an inverter, and performing an AND gate logic operation in combination with a pre-acquired trigger signal to obtain an input signal of the register.

[0039] In an optional embodiment, before obtaining the counting result based on the pre-acquired clock signal and the pre-acquired delay information of each monitoring path, it also includes: acquiring the delay information of each monitoring path in the delay package based on the clock signal; or, based on the clock signal, monitoring each monitoring path, and storing the delay information obtained from the monitoring into the delay package.

[0040] Specifically, refer to Figure 2 , the register generates a clock signal based on the input signal and sends it to the delay package, so as to subsequently associate the clock signal with the delay information of each monitoring path obtained; when the register sends the clock signal to the delay package, the inverter returns the clock signal transmitted by the register to the delay package to the AND gate logic circuit. At the same time, the AND gate logic circuit also receives a trigger signal sent by the control logic circuit. The AND gate logic circuit performs an AND gate logic operation based on the trigger signal and the returned clock signal to obtain the input signal of the register and input it to the register, so as to trigger the register, so that the register generates a clock signal based on the input signal.

[0041] In an alternative embodiment, reference Figure 3 , before obtaining the input signal of the register, that is, before the AND gate logic circuit receives the trigger signal sent by the control logic circuit, it also includes: the control logic circuit obtains the trigger signal based on the input adaptive voltage frequency adjustment (Adaptive Voltage Frequency Scaling, referred to as AVFS) parameter. It should be noted that in this embodiment, the adaptive voltage frequency adjustment parameter includes at least one of the AVFS start signal, the system clock signal, the AVFS configuration time and the number of AVFS resets. The specific parameter configuration can be set according to the actual design requirements and is not further limited here.

[0042] Step S12, judging whether to adjust the voltage and whether to adjust the frequency according to the counting result and the preset voltage and frequency adjustment rule.

[0043] Specifically, according to the counting results and the pre-set voltage and frequency adjustment rules, it is determined whether to adjust the voltage and whether to adjust the frequency, including: based on the counting results, using the pre-set voltage and frequency adjustment rules to determine the standard voltage and standard frequency corresponding to each monitoring path; based on the counting results, obtaining the monitoring voltage and monitoring frequency of the corresponding monitoring path; comparing the monitoring voltage with the standard voltage to determine whether to adjust the voltage; comparing the monitoring frequency with the standard frequency to determine whether to adjust the frequency.

[0044] It should be noted that comparing the monitored voltage with the standard voltage includes: if the monitored voltage meets the standard voltage, the voltage is not adjusted; otherwise, the voltage is adjusted; similarly, comparing the monitored frequency with the standard frequency includes: if the monitored frequency meets the standard frequency, the frequency is not adjusted; otherwise, the frequency is adjusted.

[0045] In addition, the voltage and frequency adjustment rules include the count value and the standard voltage and standard frequency corresponding to the count value. For example, the voltage and frequency adjustment rules refer to the following table:

[0046] counters value Standard voltage voltage Standard frequency frequency 1000 0.85v 1GHZ 900 0.82v 900MHZ 850 0.8v 800MHZ 1100 0.89v 1100MHZ 1150 0.92v 1150MHZ

[0047] Based on the counting results, the standard voltage and standard frequency corresponding to each monitoring path are determined using the pre-set voltage and frequency adjustment rules, including: based on the counting results, searching for the counting value that meets the counting results in the voltage and frequency adjustment rules; and determining the corresponding standard frequency and standard voltage based on the count value found.

[0048] It should be noted that the count value, standard frequency and standard voltage in the voltage-frequency adjustment rule can be set according to actual design or usage requirements. This is only an exemplary reference and does not further limit the voltage-frequency adjustment rule.

[0049] Step S13, adjusting the voltage and / or frequency accordingly according to the judgment result.

[0050] In this embodiment, adjusting the voltage includes: comparing the monitoring voltage obtained in advance based on the counting result with the preset voltage, and increasing the voltage step accordingly based on the monitoring voltage being less than the preset voltage; otherwise, reducing the voltage step. It should be noted that the preset voltage can be set in advance based on experience, prior conditions, actual design requirements or usage requirements, and is not further limited here.

[0051] In addition, adjusting the frequency includes: comparing the monitoring frequency obtained in advance based on the counting result with the preset frequency, and increasing the frequency step accordingly based on the monitoring frequency being less than the preset frequency; otherwise, decreasing the frequency step. Similarly, the preset frequency can be set in advance based on experience, prior conditions, actual design requirements or usage requirements, and is not further limited here.

[0052] In an optional embodiment, the adaptive voltage-frequency adjustment method includes:

[0053] Acquire a clock signal generated by a register, wherein the clock signal is returned to the register for storage based on an inverter;

[0054] Based on the clock signal, the delay information of each monitoring path is obtained;

[0055] Based on the clock signal and the delay information, a counting result is obtained;

[0056] According to the counting result and the preset voltage and frequency adjustment rule, the voltage and / or frequency are adjusted to obtain a judgment result, and according to the judgment result, the voltage and / or frequency are adjusted accordingly.

[0057] To summarize, the embodiments of the present invention drive the counter to count through the pre-acquired clock signal and the pre-acquired delay information of each monitoring path, and judge whether the frequency needs to be adjusted and whether the voltage needs to be adjusted according to the obtained counting result and the pre-set voltage and frequency adjustment rule, so as to make corresponding adjustments according to the judgment result, avoiding the delay caused by detecting each monitoring path one by one, thereby effectively improving the response speed, simplifying the voltage and frequency adjustment control process, and ensuring that energy consumption is reduced as much as possible when the chip is operating normally.

[0058] The adaptive voltage-frequency adjustment device provided by the present invention is described below. The adaptive voltage-frequency adjustment device described below and the adaptive voltage-frequency adjustment method described above can be referred to each other.

[0059] Figure 4 A schematic structural diagram of an adaptive voltage and frequency adjustment device is shown, the device comprising:

[0060] The value detection module 41 obtains the counting result corresponding to each monitoring path based on the pre-acquired clock signal and the monitoring information obtained by pre-monitoring each monitoring path;

[0061] The system control module 42 determines whether to adjust the voltage and whether to adjust the frequency according to the monitoring information, the counting results and the preset voltage and frequency adjustment rules;

[0062] The adjustment module 43 adjusts the voltage and / or frequency accordingly according to the judgment result.

[0063] In this embodiment, the value detection module 41 includes: a first AND gate logic calculation unit, which performs an AND gate logic operation on the delay information of each monitoring path acquired in advance based on a pre-acquired clock signal to obtain a first operation result; a second AND gate logic calculation unit, which performs frequency conversion processing on the delay information of each monitoring path acquired in advance based on the pre-acquired clock signal, and performs an AND gate logic operation on the delay after the frequency conversion processing to obtain a second operation result; an XNOR gate logic calculation unit, which performs an XNOR gate logic operation on the first operation result and the second operation result to obtain a logic operation result, and drives the counter to count according to the logic operation result to obtain a counting result.

[0064] It should be noted that the first operation result is obtained by performing an AND gate logic operation on the delay information corresponding to all the acquired monitoring paths. If the delay information corresponding to all the acquired monitoring paths is 1, the first operation result is 1, otherwise, the first operation result is 0; similarly, the second operation result is obtained by performing an AND gate logic operation on all the delay information after frequency conversion processing. If the delay information corresponding to all the acquired monitoring paths is 1, the second operation result is 1, otherwise, the second operation result is 0.

[0065] In addition, the logic operation result is obtained by performing an XNOR gate logic operation on the first operation result and the second operation result. If the first operation result and the second operation result are different, the obtained logic operation result is 0, otherwise, the obtained logic operation result is 1.

[0066] It should be added that the critical path may be a path with a delay greater than a preset threshold among the chip paths selected in advance based on a priori or experience. The specific selection of the critical path may be set according to actual design requirements and is not further limited here.

[0067] In an optional embodiment, the device further includes: a clock acquisition module, which acquires the clock signal corresponding to each monitoring path. It should be noted that the clock acquisition module in this embodiment can be a register or other circuit, that is, the clock signal can come from the register or other circuit, such as the clock signal of the system, etc., which is not further limited here. The following example is taken as an example that the clock signal comes from the register. Specifically, the clock acquisition module includes: a signal acquisition unit, which acquires the clock signal corresponding to each monitoring path generated by the register based on the input signal; a signal storage unit, which returns the clock signal output by the register based on the inverter, and performs an AND gate logic operation in combination with the pre-acquired trigger signal to obtain the input signal of the register.

[0068] In an optional embodiment, the device further includes: a delay information acquisition module, which is used to obtain the delay information of each monitoring path. Specifically, the delay information acquisition module includes: a delay information acquisition unit, which obtains the delay information of each monitoring path in the delay package based on the clock signal; or, the delay information acquisition module includes: a monitoring unit, which monitors each monitoring path based on the clock signal and stores the delay information obtained by monitoring in the delay package.

[0069] In an optional embodiment, the device further includes: a trigger signal acquisition module, which obtains a trigger signal based on an input adaptive voltage frequency scaling (Adaptive Voltage Frequency Scaling, referred to as AVFS) parameter. It should be noted that the trigger signal acquisition module can use a control logic circuit, and the adaptive voltage frequency scaling parameter includes at least one of an AVFS start signal, a system clock signal, an AVFS configuration time, and an AVFS reset number. The specific parameter configuration can be set according to actual design requirements and is not further limited here.

[0070] The system control module 42 includes: a standard determination unit, which determines the standard voltage and standard frequency corresponding to each monitoring path based on the counting result and using the preset voltage and frequency adjustment rules; a voltage and frequency acquisition unit, which acquires the monitoring voltage and monitoring frequency of the corresponding monitoring path based on the counting result; a first comparison unit, which compares the monitoring voltage with the standard voltage to determine whether to adjust the voltage; and a second comparison unit, which compares the monitoring frequency with the standard frequency to determine whether to adjust the frequency.

[0071] The standard determination unit includes: a search subunit, based on the counting result, searches for the count value that meets the counting result in the voltage and frequency adjustment rule; and a standard acquisition subunit determines the corresponding standard frequency and standard voltage according to the count value obtained by the search.

[0072] The first comparison unit includes: a first comparison sub-unit, based on the monitoring voltage meeting the standard voltage, the voltage is not adjusted, otherwise, the voltage is adjusted; similarly, the second comparison unit includes: a second comparison sub-unit, based on the monitoring frequency meeting the standard frequency, the frequency is not adjusted, otherwise, the frequency is adjusted.

[0073] It should be noted that the count value, standard frequency and standard voltage in the voltage-frequency adjustment rule can be set according to actual design or usage requirements. This is only an exemplary reference and does not further limit the voltage-frequency adjustment rule.

[0074] The adjustment module 43 includes: a voltage adjustment unit, which adjusts the voltage accordingly according to the judgment result; and a frequency adjustment unit, which adjusts the frequency accordingly according to the judgment result.

[0075] Specifically, the voltage adjustment unit includes: a first adjustment subunit, which compares the monitoring voltage obtained in advance based on the counting result with the preset voltage, and increases the voltage step accordingly based on the monitoring voltage being less than the preset voltage; otherwise, decreases the voltage step.

[0076] In addition, the frequency adjustment unit includes: a second adjustment subunit, which compares the monitoring frequency obtained in advance based on the counting result with the preset frequency, and increases the frequency step accordingly based on the monitoring frequency being less than the preset frequency; otherwise, decreases the frequency step.

[0077] It should be noted that the detection voltage and the monitoring frequency are acquired in advance based on the voltage and frequency acquisition unit of the system control module 42 .

[0078] In an optional embodiment, the adaptive voltage and frequency adjustment device includes:

[0079] A clock acquisition module generates a clock signal and sends it to the value detection module, and returns the clock signal to the register for storage based on an inverter;

[0080] A delay information acquisition module, which acquires the delay information of each monitoring path based on the clock signal;

[0081] The value detection module obtains the counting result based on the clock signal and delay information;

[0082] The system control module determines the voltage adjustment and / or frequency adjustment according to the counting result and the preset voltage and frequency adjustment rule to obtain a determination result;

[0083] The adjustment module adjusts the voltage and / or frequency accordingly according to the judgment result.

[0084] To summarize, the embodiments of the present invention drive the counter to count through the pre-acquired clock signal and the pre-acquired delay information of each monitoring path, and judge whether the frequency needs to be adjusted and whether the voltage needs to be adjusted according to the obtained counting result and the pre-set voltage and frequency adjustment rule, so as to make corresponding adjustments according to the judgment result, avoiding the delay caused by detecting each monitoring path one by one, thereby effectively improving the response speed, simplifying the voltage and frequency adjustment control process, and ensuring that energy consumption is reduced as much as possible when the chip is operating normally.

[0085] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5As shown, the electronic device may include: a processor 51, a communication interface 52, a memory 53 and a communication bus 54, wherein the processor 51, the communication interface 52 and the memory 53 communicate with each other through the communication bus 54. The processor 51 may call the logic instructions in the memory 53 to execute the adaptive voltage and frequency adjustment method, which includes: obtaining a counting result based on a pre-acquired clock signal and pre-acquired delay information of each monitoring path; judging whether to adjust the voltage and whether to adjust the frequency according to the monitoring information, the counting result and the pre-set voltage and frequency adjustment rule; and adjusting the voltage and / or frequency accordingly according to the judgment result obtained.

[0086] In addition, the logic instructions in the above-mentioned memory 53 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0087] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the adaptive voltage and frequency adjustment method provided by the above methods, and the method includes: obtaining a counting result based on a pre-acquired clock signal and pre-acquired delay information of each monitoring path; judging whether to adjust the voltage and whether to adjust the frequency according to the monitoring information, the counting result and the pre-set voltage and frequency adjustment rules; and adjusting the voltage and / or frequency accordingly according to the judgment result obtained.

[0088] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the adaptive voltage and frequency adjustment method provided by the above-mentioned methods, the method comprising: obtaining a counting result based on a pre-acquired clock signal and pre-acquired delay information of each monitoring path; judging whether to adjust the voltage and whether to adjust the frequency according to the monitoring information, the counting result and a pre-set voltage and frequency adjustment rule; and adjusting the voltage and / or frequency accordingly according to the judgment result obtained.

[0089] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.

[0090] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0091] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. An adaptive voltage-frequency adjustment method, It is characterized in that include: Obtaining a counting result based on a pre-acquired clock signal and pre-acquired delay information of each monitoring path; According to the counting result and the preset voltage and frequency adjustment rules, determining whether to adjust the voltage and whether to adjust the frequency; According to the judgment result obtained by the judgment, the voltage and / or frequency are adjusted accordingly; The obtaining of the counting result based on the pre-acquired clock signal and the pre-acquired delay information of each monitoring path includes: Based on the pre-acquired clock signal, performing an AND gate logic operation on the pre-acquired delay information of each monitoring path to obtain a first operation result; Based on the pre-acquired clock signal, frequency conversion processing is performed on the pre-acquired delay information of each monitoring path, and an AND gate logic operation is performed on the delay after the frequency conversion processing to obtain a second operation result; Performing an XEN-OR gate logic operation on the first operation result and the second operation result to obtain a logic operation result, and driving a counter to count according to the logic operation result to obtain a counting result; Before obtaining the counting result based on the pre-acquired clock signal and the pre-acquired delay information of each monitoring path, the method includes: Acquiring a clock signal corresponding to each of the monitoring paths; The acquiring of the clock signal corresponding to each of the monitoring paths includes: The acquisition register generates a clock signal corresponding to each of the monitoring paths based on an input signal; The clock signal output by the register is returned based on an inverter, and an AND gate logic operation is performed in combination with a trigger signal acquired in advance to obtain an input signal of the register.

2. The adaptive voltage-frequency adjustment method according to claim 1, It is characterized in that The determining whether to adjust the voltage and the frequency according to the counting result and the preset voltage and frequency adjustment rule includes: Based on the counting result, the standard voltage and standard frequency corresponding to each of the monitoring paths are determined by using a preset voltage and frequency adjustment rule; Based on the counting result, obtaining the monitoring voltage and monitoring frequency of the corresponding monitoring path; Comparing the monitored voltage with the standard voltage to determine whether to adjust the voltage; The monitoring frequency is compared with the standard frequency to determine whether to adjust the frequency.

3. The adaptive voltage-frequency adjustment method according to claim 1, It is characterized in that The voltage adjustment includes: Compare the monitoring voltage obtained in advance based on the counting result with the preset voltage, and if the monitoring voltage is less than the preset voltage, increase the voltage step accordingly; otherwise, decrease the voltage step; The frequency adjustment includes: The monitoring frequency obtained in advance based on the counting result is compared with the preset frequency, and based on the fact that the monitoring frequency is less than the preset frequency, the frequency step is correspondingly increased; otherwise, the frequency step is reduced.

4. The adaptive voltage-frequency adjustment method according to claim 1, It is characterized in that Before obtaining the input signal of the register, the method further includes: A trigger signal is obtained based on preset adaptive voltage-frequency adjustment parameters, wherein the adaptive voltage-frequency adjustment parameters include at least one of a start signal, a system clock signal, a configuration time, and a reset number.

5. The adaptive voltage-frequency adjustment method according to claim 1, It is characterized in that Before obtaining the counting result based on the pre-acquired clock signal and the pre-acquired delay information of each monitoring path, the method further includes: Obtaining delay information of each monitoring path in the delay packet based on the clock signal; or, Based on the clock signal, each monitoring path is monitored, and the delay information obtained by monitoring is stored in a delay packet.

6. An adaptive voltage and frequency adjustment device, It is characterized in that include: A value detection module, based on a pre-acquired clock signal and monitoring information obtained by pre-monitoring each monitoring path, obtains a counting result corresponding to each monitoring path; The system control module determines whether to adjust the voltage and whether to adjust the frequency according to the counting result and the preset voltage and frequency adjustment rules; An adjustment module, which adjusts the voltage and / or frequency accordingly according to the judgment result obtained by the judgment; The value detection module comprises: A first AND gate logic calculation unit performs an AND gate logic operation on the delay information of each monitoring path acquired in advance based on the pre-acquired clock signal to obtain a first operation result; The second AND gate logic calculation unit performs frequency conversion processing on the delay information of each monitoring path obtained in advance based on the pre-acquired clock signal, and performs an AND gate logic operation on the delay after the frequency conversion processing to obtain a second operation result; an XNOR logic calculation unit, performing an XNOR logic operation on the first operation result and the second operation result to obtain a logic operation result, and driving a counter to count according to the logic operation result to obtain a counting result; The device further comprises: A clock acquisition module, which acquires the clock signal corresponding to each monitoring path before obtaining the counting result based on the pre-acquired clock signal and the pre-acquired delay information of each monitoring path; The clock acquisition module comprises: A signal acquisition unit, wherein the acquisition register generates a clock signal corresponding to each of the monitoring paths based on an input signal; The signal storage unit returns the clock signal output by the register based on an inverter, and performs an AND gate logic operation in combination with a pre-acquired trigger signal to obtain an input signal of the register.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the steps of the adaptive voltage and frequency adjustment method according to any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Voltage adjustment device and method, mobile device and method for operating the same

    CN103218026A

  • Adaptive voltage adjusting system based on online monitoring and monitoring path screening method

    CN105183062A

  • Delay calculation circuit, chip operation frequency acquisition method and device and electronic equipment

    CN112667024A

  • Operating parameter control of an apparatus for processing data

    US20100217562A1

  • Adaptive clock generating apparatus and method thereof

    US20130222018A1