Adjustment method, chip and computer storage medium
By adding monitoring circuits and processors to the chip, the power consumption estimation parameters of the circuit to be adjusted are obtained in real time and adjusted, the problem of insufficient power consumption adjustment in the prior art is solved, and more fine and efficient power consumption control is achieved.
Patent Information
- Application Number
- CN202011126696.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-20
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2040-10-20
AI Technical Summary
The power consumption value adjustment method in existing chips has problems such as insufficient fineness and hysteresis adjustment, and the power consumption of the chip cannot be accurately controlled.
Adding a monitoring circuit to the chip, the processor can obtain the value of the power consumption estimated parameters of the circuit to be adjusted from the monitoring circuit and adjust the power consumption of the circuit to be adjusted according to these parameters.
By obtaining the power consumption estimate parameters of the circuit to be adjusted in real time, the processor can accurately adjust the power consumption, improve the service life of the circuit and chip, and achieve more refined power consumption control.
Smart Images

Figure CN114386355B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to a technology for estimating power consumption values of circuits in a chip, and more particularly to an adjustment method, a chip, and a computer storage medium. Background Art
[0002] At present, with the improvement of the processing performance of various processor cores and the development of technologies such as multimedia and artificial intelligence, more and more scenarios require a lot of computing, which will cause an increase in power consumption. The heat caused by the increase in power consumption will in turn limit the working performance of the chip. This makes power consumption control a key consideration in chip system design.
[0003] In order to control the power consumption of the chip system, it is mainly necessary to count the load conditions of the modules that need to control power consumption, and adjust the clock frequency or voltage of the module according to the changes in load, or use temperature sensors to reduce the clock frequency or voltage of the module when the temperature rises due to high power consumption, so as to control power consumption and reduce temperature.
[0004] However, although the above method monitors some indicators and status of the chip system, it only roughly judges the power consumption of the chip system based on the load or temperature of the module. Adjusting the power consumption of the module based on this has the problem of insufficient precision and delayed adjustment. It can be seen that the existing method for adjusting the power consumption value of the chip has the technical problem of insufficient precision. Summary of the invention
[0005] The embodiments of the present application provide an adjustment method, a chip, and a computer storage medium, which can accurately adjust the power consumption value of the chip.
[0006] The technical solution of this application is implemented as follows:
[0007] In a first aspect, an embodiment of the present application provides an adjustment method, which is applied to a chip, wherein the chip further includes: a monitoring circuit, a processor, and a circuit to be adjusted, and the method includes:
[0008] The monitoring circuit obtains the value of the power consumption estimation parameter of the circuit to be adjusted;
[0009] The processor obtains a value of a power consumption estimation parameter of the circuit to be adjusted from the monitoring circuit;
[0010] The processor adjusts the power consumption of the circuit to be adjusted according to the value of the power consumption estimation parameter.
[0011] In a second aspect, an embodiment of the present application provides a chip, the chip comprising:
[0012] A monitoring circuit, used for obtaining a value of a power consumption estimation parameter of a circuit to be adjusted of the chip;
[0013] A processor, configured to obtain a value of a power consumption estimation parameter of the circuit to be adjusted from the monitoring circuit;
[0014] The processor adjusts the power consumption of the circuit to be adjusted according to the value of the power consumption estimation parameter.
[0015] In a third aspect, an embodiment of the present application provides a chip, comprising: a monitoring circuit, a circuit to be adjusted, a processor, and a storage medium storing instructions executable by the processor; wherein, one end of the monitoring circuit is connected to the processor, and the other end of the monitoring circuit is connected to the circuit to be adjusted; the storage medium relies on the processor to perform operations through a communication bus, and when the instructions are executed by the processor, the adjustment method described in one or more of the above embodiments is executed.
[0016] In a fourth aspect, an embodiment of the present application provides a computer storage medium storing executable instructions. When the executable instructions are executed by one or more processors, the processor executes the adjustment method described in one or more of the above embodiments.
[0017] The embodiment of the present application provides an adjustment method, a chip and a computer storage medium. The method is applied to a chip. The chip also includes: a monitoring circuit, a processor and a circuit to be adjusted. The method includes: the monitoring circuit obtains the value of the power consumption estimation parameter of the circuit to be adjusted, the processor obtains the value of the power consumption estimation parameter of the circuit to be adjusted from the monitoring circuit, and the processor adjusts the power consumption of the circuit to be adjusted according to the value of the power consumption estimation parameter; that is, in the embodiment of the present application, a monitoring circuit is added to the chip, and the processor can obtain the value of the power consumption estimation parameter of the circuit to be adjusted from the monitoring circuit, that is, the processor obtains the circuit parameter of the circuit to be adjusted in the working state from the monitoring circuit, and the circuit parameter is used as a parameter for estimating the power consumption value of the circuit to be adjusted. Then, after the processor obtains the value of the power consumption estimation parameter, the processor adjusts the power consumption of the circuit to be adjusted according to the value of the power consumption estimation parameter. In this way, by adding the monitoring circuit, the value of the power consumption estimation parameter of the circuit to be adjusted under the current working circuit parameters can be obtained in real time, and the power consumption value of the circuit to be adjusted in the current state can be accurately estimated by using the value of the power consumption estimation parameter, so that the power consumption value of the circuit to be adjusted in the current state can be accurately grasped, which is conducive to more precise adjustment of the power consumption, thereby improving the service life of the circuit and the service life of the chip. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 A schematic diagram of a chip structure provided in an embodiment of the present application Figure 1 ;
[0019] Figure 2A flowchart of an optional adjustment method provided in an embodiment of the present application;
[0020] Figure 3 A schematic diagram of the structure of an optional SoC example provided in an embodiment of the present application;
[0021] Figure 4 A flowchart of an example of a method for establishing an optional power consumption estimation model provided in an embodiment of the present application;
[0022] Figure 5 A schematic diagram of a chip structure provided in an embodiment of the present application Figure 2 . DETAILED DESCRIPTION
[0023] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0024] Embodiment 1
[0025] The embodiment of the present application provides an adjustment method, which is applied to a chip. Figure 1 A schematic diagram of a chip structure provided in an embodiment of the present application Figure 1 ,like Figure 1 As shown, the chip 100 may include: a processor 11, a monitoring circuit 12 and a circuit to be adjusted 13, wherein one end of the monitoring circuit 12 is connected to the circuit to be adjusted 13, and the other end of the monitoring circuit 12 is connected to the processor 11; Figure 2 A flowchart of an optional adjustment method provided in an embodiment of the present application is provided, referring to Figure 2 As shown, the above adjustment method may include:
[0026] S201: The monitoring circuit 12 obtains the value of the power consumption estimation parameter of the circuit to be adjusted 13;
[0027] At present, in order to control the power consumption of the circuit, the bandwidth of the monitoring data is usually adopted or the module to be adjusted is monitored to see whether it is in working state or idle state. However, this method can only roughly reflect the state of the circuit to be adjusted at the current moment. Therefore, the power consumption adjustment can only be simply adjusted by waiting until the idle state, such as turning off the clock or turning off the power supply to adjust the power consumption of the circuit to be adjusted 13. Obviously, this method does not accurately obtain the specific operating conditions of the circuit to be adjusted 13, so adjusting the power consumption based on this obviously has the problem of not being precise enough.
[0028] In addition, with regard to the solution for monitoring the temperature of the circuit to be adjusted 13, the solution is to adjust the power consumption only when the power consumption value is too large, causing heat and causing the circuit temperature to rise. This will result in a delayed adjustment, and subsequent adjustments will cause the performance of the circuit to drop suddenly, affecting the service life of the circuit and thus affecting the user experience.
[0029] In order to adjust the power consumption more precisely, a monitoring circuit 12 is added inside the chip in the embodiment of the present application. The monitoring circuit 12 is connected to the processor 11 and the circuit to be adjusted 13 respectively, and can obtain the value of the power consumption estimation parameter of the circuit to be adjusted 13 in real time.
[0030] In an optional embodiment, S201 may include:
[0031] The monitoring circuit 12 monitors and obtains the value of the characteristic parameter of the circuit to be adjusted 13;
[0032] The monitoring circuit 12 determines the power consumption estimation value of the circuit to be adjusted 13 corresponding to the value of the characteristic parameter according to the preset power consumption estimation model;
[0033] The monitoring circuit 12 determines the power consumption estimation value as the value of the power consumption estimation parameter of the circuit to be adjusted 13;
[0034] The characteristic parameter is a circuit parameter that causes the power consumption value of the circuit to be adjusted 13 to change in the working state.
[0035] Specifically, here, the monitoring circuit 12 obtains the value of the characteristic parameter of the circuit to be adjusted 13, and a power consumption estimation model is set in the monitoring circuit 12. The monitoring circuit 12 can determine the power consumption estimation value of the circuit to be adjusted 13 corresponding to the value of the characteristic parameter according to the power consumption estimation model, and determine the power consumption estimation value as the value of the power consumption estimation parameter, so that the processor 11 can obtain the value from the monitoring circuit 12 for adjusting the power consumption of the circuit to be adjusted 13.
[0036] After the monitoring circuit 12 obtains the power consumption estimate of the circuit to be adjusted 13, the processor 11 first obtains the power consumption estimate of the circuit to be adjusted 13 from the monitoring circuit 12 in order to adjust the power consumption of the circuit to be adjusted 13. It should be noted here that the processor 11 can actively obtain the power consumption estimate of the circuit to be adjusted from the monitoring circuit 12, or the monitoring circuit 12 can send the determined power consumption estimate to the processor 11. The embodiment of the present application does not make any specific limitation on this.
[0037] In another optional embodiment, S201 may include:
[0038] The monitoring circuit 12 monitors and obtains the value of the characteristic parameter of the circuit to be adjusted 13;
[0039] The monitoring circuit 12 determines the value of the characteristic parameter of the circuit to be adjusted 13 as the value of the power consumption estimation parameter of the circuit to be adjusted 13;
[0040] The characteristic parameter is a circuit parameter that causes the power consumption value of the circuit to be adjusted 13 to change in the working state.
[0041] Specifically, here, the monitoring circuit 12 obtains the value of the characteristic parameter of the circuit to be adjusted 13, and determines the value of the characteristic parameter as the value of the power consumption estimation parameter, so that the processor 11 can obtain the value of the characteristic parameter from the monitoring circuit.
[0042] Here, the characteristic parameter may include one or more of the following: clock parameters, power supply parameters, first-in-first-out memory (FIFO, First Input First Output) parameters, state machine parameters, voltage parameters, temperature parameters and input signals, etc. For example, the clock parameter may be the clock frequency, the power supply parameter may be whether the power supply is in an open state or a closed state, the state machine parameter may be the parameters of the state register in the state machine and the parameters of the combinational logic circuit, the voltage parameter may include the voltage size, the input signal may be the type of input signal, etc. Here, the embodiments of the present application do not make specific limitations on this.
[0043] In this way, adding the monitoring circuit 12 in the chip can monitor and obtain the value of the characteristic parameter of the circuit to be adjusted 13 in real time.
[0044] S202: the processor 11 obtains the value of the power consumption estimation parameter of the circuit to be adjusted 13 from the monitoring circuit 12;
[0045] Specifically, when the value of the power consumption estimation parameter is the power consumption estimation value, the processor 11 adjusts the power consumption of the circuit to be adjusted 13 according to the power consumption estimation value; when the value of the power consumption estimation parameter is the value of the characteristic parameter, in an optional embodiment, S202 may include:
[0046] The processor 11 determines the power consumption estimation value of the circuit to be adjusted 13 corresponding to the value of the characteristic parameter according to the preset power consumption estimation model;
[0047] The processor 11 adjusts the power consumption of the circuit to be adjusted 13 according to the power consumption estimation value.
[0048] Specifically, after the monitoring circuit 12 obtains the value of the characteristic parameter of the circuit to be adjusted 13, the processor 11 first obtains the value of the characteristic parameter of the circuit to be adjusted 13 from the monitoring circuit 12 in order to estimate the power consumption estimate of the circuit to be adjusted 13. Here, it should be noted that the processor 11 can actively obtain the value of the characteristic parameter of the circuit to be adjusted 13 from the monitoring circuit 12, or the monitoring circuit 12 can send the obtained value of the characteristic parameter to the processor 11. The embodiment of the present application does not make any specific limitation on this.
[0049] Specifically, after obtaining the value of the characteristic parameter of the circuit to be adjusted, the processor 11 can determine the power consumption estimation value corresponding to the obtained value of the characteristic parameter through a pre-stored power consumption estimation model, wherein the pre-stored power consumption estimation model stores the correspondence between the value of the characteristic parameter and the power consumption estimation value for the circuit to be adjusted 13.
[0050] In order to establish a power consumption estimation model of the circuit to be adjusted 13, in an optional embodiment, before S203, the method may further include:
[0051] The processor 11 obtains characteristic parameters of the circuit to be adjusted, and obtains a set of sample values of the characteristic parameters;
[0052] The processor 11 calculates the power consumption calculated value of the circuit to be adjusted when it works under the sample value of the characteristic parameter by using a preset power consumption algorithm according to the set of sample values of the characteristic parameter;
[0053] The processor 11 determines the corresponding relationship between the sample value of the characteristic parameter and the calculated power consumption value as a preset power consumption estimation model.
[0054] Specifically, the processor 11 first obtains the characteristic parameters of the circuit to be adjusted 13. Here, it should be noted that different circuits to be adjusted 13 have different characteristic parameters due to the differences in components in the circuits. Therefore, in order to determine the characteristic parameters, it is necessary to analyze the circuit structure of the circuit to be adjusted 13 in advance to determine the characteristic parameters of the circuit to be adjusted 13. After determining the characteristic parameters, several groups of characteristic parameter values are determined to form a set of sample values of the characteristic parameters, and the power consumption estimation model is established using the set of sample values of the characteristic parameters.
[0055] The processor 11 stores a preset power consumption algorithm, which can calculate the power consumption calculation value corresponding to each sample value for the circuit 13 to be adjusted. Finally, the corresponding relationship between each sample value and the power consumption calculation value is determined as a preset power consumption estimation model. In this way, the power consumption estimation model is established for subsequent calls.
[0056] In addition, in order to improve the accuracy of the power consumption estimation model, in an optional embodiment, the processor 11 determines the correspondence between the sample value of the characteristic parameter and the calculated power consumption calculation value as a preset power consumption estimation model, specifically including:
[0057] The processor 11 obtains the actual power consumption value of the circuit to be adjusted 13 operating under the sample value of the characteristic parameter;
[0058] When the absolute value of the difference between the actual power consumption value under the sample value of the characteristic parameter and the power consumption calculation value under the sample value of the characteristic parameter is greater than or equal to the preset threshold, the processor 11 corrects the power consumption calculation value under the sample value of the characteristic parameter according to the actual power consumption value under the sample value of the characteristic parameter to obtain the corrected power consumption calculation value under the sample value of the characteristic parameter;
[0059] The processor 11 determines the corresponding relationship between the sample value of the characteristic parameter and the corrected power consumption calculation value under the sample value of the characteristic parameter as a preset power consumption estimation model.
[0060] Specifically, the processor 11 can obtain the actual power consumption value of the circuit 13 to be adjusted working under the sample value of the characteristic parameter. In actual applications, the actual power consumption value can be a value obtained by measuring the instrument. In the process of establishing the model, the processor 11 obtains the actual measurement value, compares the power consumption calculation value with the actual power consumption value, and calculates the time difference between the two. When the absolute value of the difference is greater than or equal to the preset threshold, it means that there is a large deviation in the power consumption calculation value, and the power consumption calculation value needs to be corrected, and the corrected power consumption calculation value is matched with the sample value to construct a power consumption estimation model. When the difference is less than the preset threshold, the power consumption calculation value is not corrected, and the power consumption calculation value is directly matched with the sample value to construct the power consumption estimation model. In this way, the accuracy of the power consumption estimation model can be improved.
[0061] S203: The processor 11 adjusts the power consumption of the circuit to be adjusted 13 according to the value of the power consumption estimation parameter.
[0062] When the value of the power consumption estimation parameter is the power consumption estimation value, the processor 11 adjusts the power consumption of the circuit to be adjusted 13 according to the power consumption estimation value; when the value of the power consumption estimation parameter is the value of the characteristic parameter, the processor 11 calculates the corresponding power consumption estimation value according to a preset power consumption estimation model, and adjusts the power consumption of the circuit to be adjusted 13 according to the power consumption estimation value.
[0063] Then, after the processor 11 obtains the power consumption estimation value of the circuit to be adjusted 13, it can understand whether the circuit to be adjusted 13 is in a state of high power consumption based on the power consumption estimation value, and can appropriately adjust the characteristic parameters of the circuit to be adjusted 13 to reduce the power consumption of the circuit to be adjusted 13, so as to avoid damage to the circuit to be adjusted due to excessive power consumption of the circuit to be adjusted 13.
[0064] Here, in order to more finely adjust the power consumption of the circuit to be adjusted 13, in an optional embodiment, the method may further include:
[0065] The processor 11 calculates the difference between the power consumption estimate value and the actual power consumption value;
[0066] When the absolute value of the difference is greater than or equal to a preset threshold, the processor 11 corrects the power consumption estimate value according to the actual power consumption value to obtain a corrected power consumption estimate value;
[0067] The processor 11 adjusts the power consumption of the circuit to be adjusted according to the corrected power consumption estimation value.
[0068] Specifically, the processor 11 calculates the difference between the power consumption estimate and the actual power consumption value. When the absolute value of the difference is greater than or equal to a preset threshold, it means that the power consumption estimate obtained by the power consumption estimation model has a large deviation. Therefore, here, the processor 11 continues to correct the power consumption estimate, and uses the corrected power consumption estimate to adjust the power consumption of the circuit 13 to be adjusted. In this way, the precision of the power consumption adjustment can be further enhanced.
[0069] It should be noted here that the above-mentioned correction of the power consumption estimation value can adopt a preset correction algorithm, and can also adopt preset correction parameters to correct the power consumption estimation value. The correction parameters here can be parameters related to environmental parameters, such as the temperature of the circuit 13 to be adjusted. Here, the embodiment of the present application does not make specific limitations on this.
[0070] In order to correct the power consumption estimate, in an optional embodiment, the processor 11 corrects the power consumption estimate according to the actual power consumption value to obtain the corrected power consumption estimate, including:
[0071] The processor 11 determines an average value of the actual power consumption value and the power consumption estimation value as the corrected power consumption estimation value.
[0072] Here, the average value of the actual power consumption value and the power consumption estimation value is used as the corrected power consumption estimation value, and the calculated value is combined with the actual measured value to be closer to the actual power consumption value. In this way, the power consumption value of the circuit to be adjusted 13 is determined more accurately, which is beneficial for the processor 11 to accurately adjust the power consumption of the circuit to be adjusted 13.
[0073] It should be noted that, when the value of the power consumption estimation parameter is the value of the characteristic parameter, the monitoring circuit 12 may be a circuit composed of a plurality of logic gate circuits, and the circuit may monitor a specific signal through the logic gate circuits.
[0074] When the value of the power consumption estimation parameter is the power consumption estimation value, the above-mentioned monitoring circuit 12 can be a circuit composed of multiple logic gate circuits, which can monitor specific signals through logic gate circuits, and can also obtain corresponding power consumption estimation values by searching for the values of characteristic parameters through logic gate circuits.
[0075] The following examples are used to illustrate the adjustment method described in one or more of the above embodiments.
[0076] Figure 3 A schematic diagram of the structure of an optional chip example provided in an embodiment of the present application, such as Figure 3 As shown, the chip includes: a processor 31, a power consumption estimation module A32, a power consumption estimation module B33, a module A34, a module B35, an operating environment control module A36 and an operating environment control module B37. In the structural framework of the above chip, the above adjustment method may include:
[0077] The power consumption estimation module A32 obtains the monitoring signal of the module A34 (equivalent to the above-mentioned characteristic parameters), the power consumption estimation module B33 obtains the monitoring signal of the module B35, the processor 31 obtains the monitoring signal of the module A34 from the power consumption estimation module A32, and determines the power consumption estimation value of the module A34 corresponding to the monitoring signal of the module A34 according to the preset power consumption estimation model, and can compare the power consumption estimation value of the module A34 with the actual power consumption value. When the absolute value of the difference between the two is greater than or equal to the preset threshold value, the power consumption estimation value of the module A34 is corrected according to the actual power consumption value, for example, the average value of the two is used as the corrected power consumption value. Finally, a control signal of the power consumption adjustment strategy is generated according to the corrected power consumption estimation value of the module A34, and the operating environment control module A36 is controlled according to the control signal, so that the operating environment of the module A34 is adjusted. The processor 31 obtains the monitoring signal of module B35 from the power consumption estimation module B33, and determines the power consumption estimation value of module B35 corresponding to the monitoring signal of module B35 according to the preset power consumption estimation model. The power consumption estimation value of module B35 can be compared with the actual power consumption value. When the absolute value of the difference between the two is greater than or equal to the preset threshold value, the power consumption estimation value of module B35 is corrected according to the actual power consumption value, for example, the average value of the two is used as the corrected power consumption value. Finally, a control signal of the power consumption adjustment strategy is generated according to the corrected power consumption estimation value of module B35, and the operating environment control module B37 is controlled according to the control signal, so that the operating environment of module B33 changes to change the power consumption of module B33, and finally the fine control of the power consumption of modules A32 and module B33 is achieved.
[0078] Through the above example, the current power consumption estimated value of module A34 and module B35 can be accurately estimated in real time according to the current working scenario and status, and power consumption management can be actively and accurately performed based on this power consumption estimated value to obtain a better energy efficiency ratio.
[0079] Figure 4 A flowchart of an example of a method for establishing an optional power consumption estimation model provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the method for establishing the power consumption estimation model may include:
[0080] S401: Determine a monitoring signal;
[0081] Specifically, for the modules with high power consumption that need to be monitored, the operation module is taken as an example to describe, analyze the circuit characteristics of the operation module, and determine which signals can be used to reflect the working status of its internal parts (equivalent to the above-mentioned characteristic parameters), for example, including but not limited to clock control, power switch, FIFO empty and full, state machine, voltage, frequency, temperature and other signals;
[0082] S402: Analyze monitoring signals and power consumption;
[0083] The power consumption and characteristic parameter data of the computing module when it is running in various scenarios are obtained and analyzed. For example, according to the power domains divided when the computing module is designed, the control signal of each power domain is obtained, and then the computing module is powered on at each design voltage, but the operation is not allowed to run. By controlling the opening and closing of a single power domain, the static power consumption of a single power domain when not running can be obtained at each voltage value.
[0084] For another example, the operation module is divided into circuits according to the logic gates controlled by the clock switch. Similar to the above method, when running various types of work, the control signal of the clock switch can clearly indicate whether the corresponding logic gate is in a working state or an idle state, and a correspondence is established between the signals of these states and the power consumption values of the current test. Then, when there are enough types of work, the dynamic power consumption of each logic gate area during operation can be obtained.
[0085] Furthermore, in order to improve the precision of power consumption adjustment, the circuit design of the operation module can be further analyzed, and the injection FIFO, bus handshake and other signals therein can be used as signals related to power consumption. The more types of signals related to power consumption selected, the more angles for monitoring the operation module, the more accurate the working status obtained, and the more accurate the correlation with power consumption.
[0086] S403: Establish a power consumption model.
[0087] Specifically, the power consumption of the circuit operation is divided into static power consumption and dynamic power consumption. After step S402, the static power consumption of the subdivided power domain at different voltages and the dynamic power consumption of each subdivided circuit at a certain voltage and clock frequency have been obtained. Then, when running the work, according to step S402, the total power consumption reflected by each signal can be calculated, and the relationship between the obtained signal and the power consumption can be matched, so that a model for estimating power consumption based on the signal can be obtained.
[0088] S404: Whether the model meets the accuracy requirement; if yes, execute S405; if no, execute S401;
[0089] This step is equivalent to model verification; for example, the difference between the power consumption estimate obtained based on the model and the actual power consumption value obtained by measurement is calculated. When the absolute value of the difference is less than a preset threshold, it means that the obtained model is accurate enough.
[0090] S405: If the power consumption estimated by the model is accurate enough, the signals determined in step S401 are aggregated into a dedicated module (equivalent to the above-mentioned monitoring circuit 12) for monitoring, and the model calculation is also solidified into this dedicated module.
[0091] If the power consumption estimation model is not accurate enough, return to execute S401 to redefine the power consumption estimation model. For example, the power consumption estimation model that has been determined can be modified. For example, model verification is a process in which, after establishing a model of power consumption and monitoring signals, the power consumption value estimated using the monitoring signal is compared with the actual power consumption value, and then the correction is performed.
[0092] For the dedicated module, it is used to receive the signal pulled from the computing module, and calculate the power consumption value for the processor to read through the model calculation logic solidified in this dedicated module; after obtaining the power consumption estimate, a power consumption management strategy can be formulated to actively, finely and in real time adjust the operating environment and status of the computing module to obtain a better energy efficiency ratio.
[0093] Through the above examples, modeling is performed based on the status information and power consumption data of various computing modules. After the model is established, these status information can be monitored in real time, and then the working power consumption of the current computing module can be accurately estimated based on the model, which can be used to actively, finely and in real time adjust the working state of the circuit and the corresponding power consumption to obtain the best energy efficiency ratio.
[0094] An embodiment of the present application provides an adjustment method, which is applied to a chip, and the chip also includes: a monitoring circuit, a processor and a circuit to be adjusted. The method includes: the monitoring circuit obtains the value of the power consumption estimation parameter of the circuit to be adjusted, the processor obtains the value of the power consumption estimation parameter of the circuit to be adjusted from the monitoring circuit, and the processor adjusts the power consumption of the circuit to be adjusted according to the value of the power consumption estimation parameter; that is, in an embodiment of the present application, a monitoring circuit is added to the chip, and the processor can obtain the value of the power consumption estimation parameter of the circuit to be adjusted from the monitoring circuit, that is, the processor obtains the circuit parameter of the circuit to be adjusted in the working state from the monitoring circuit, and the circuit parameter is used as a parameter for estimating the power consumption value of the circuit to be adjusted. Then, after the processor obtains the value of the power consumption estimation parameter, the processor adjusts the power consumption of the circuit to be adjusted according to the value of the power consumption estimation parameter. In this way, by adding the monitoring circuit, the value of the power consumption estimation parameter of the circuit to be adjusted under the current working circuit parameters can be obtained in real time, and the power consumption value of the circuit to be adjusted in the current state can be accurately estimated by using the value of the power consumption estimation parameter, so that the power consumption value of the circuit to be adjusted in the current state can be accurately grasped, which is conducive to more precise adjustment of the power consumption, thereby improving the service life of the circuit and the service life of the chip.
[0095] Embodiment 2
[0096] Based on the same inventive concept, the present application embodiment provides a chip, such as Figure 1 As shown, the chip further includes: a monitoring circuit 12; wherein one end of the monitoring circuit 12 is connected to the processor 11, and the other end of the monitoring circuit 12 is connected to the circuit to be adjusted 13 of the chip; wherein,
[0097] A monitoring circuit 12, used for obtaining a value of a power consumption estimation parameter of a circuit to be adjusted 13 of the chip;
[0098] The processor 11 is used to obtain the value of the power consumption estimation parameter of the circuit to be adjusted 13 from the monitoring circuit 12;
[0099] The processor 11 is configured to adjust the power consumption of the circuit to be adjusted 13 according to the value of the power consumption estimation parameter.
[0100] In an optional embodiment, the monitoring circuit 12 obtains the value of the power consumption estimation parameter of the circuit to be adjusted 13 of the chip, including:
[0101] Monitor and obtain the value of the characteristic parameter of the circuit 13 to be adjusted;
[0102] According to a preset power consumption estimation model, determining a power consumption estimation value of the circuit to be adjusted 13 corresponding to the value of the characteristic parameter;
[0103] Determine the power consumption estimation value as the value of the power consumption estimation parameter of the circuit to be adjusted 13;
[0104] The characteristic parameter is a circuit parameter that causes the power consumption value of the circuit to be adjusted 13 to change in the working state.
[0105] In an optional embodiment, the monitoring circuit 12 obtains the value of the power consumption estimation parameter of the circuit to be adjusted 13, including:
[0106] Monitor and obtain the value of the characteristic parameter of the circuit 13 to be adjusted;
[0107] Determine the value of the characteristic parameter of the circuit to be adjusted 13 as the value of the power consumption estimation parameter of the circuit to be adjusted 13;
[0108] The characteristic parameter is a circuit parameter that causes the power consumption value of the circuit to be adjusted 13 to change in the working state.
[0109] In an optional embodiment, the processor 11 adjusts the power consumption of the circuit to be adjusted 13 according to the value of the power consumption estimation parameter, including:
[0110] According to a preset power consumption estimation model, determining a power consumption estimation value of the circuit to be adjusted 13 corresponding to the value of the characteristic parameter;
[0111] The power consumption of the circuit to be adjusted 13 is adjusted according to the power consumption estimation value.
[0112] In an optional embodiment, the processor 11 is further configured to:
[0113] Obtaining the actual power consumption value of the circuit to be adjusted 13 under the value of the characteristic parameter;
[0114] Calculate the difference between the estimated power consumption value and the actual power consumption value;
[0115] When the absolute value of the difference is greater than or equal to a preset threshold, the power consumption estimate is corrected according to the actual power consumption value to obtain a corrected power consumption estimate;
[0116] The power consumption of the circuit to be adjusted 13 is adjusted according to the corrected power consumption estimation value.
[0117] In an optional embodiment, the processor 11 corrects the power consumption estimate value according to the actual power consumption value, and obtains the corrected power consumption estimate value, including:
[0118] The processor 11 determines an average value of the actual power consumption value and the power consumption estimation value as the corrected power consumption estimation value.
[0119] In an optional embodiment, the processor 11 is further configured to:
[0120] Before the processor 11 determines the power consumption estimation value of the circuit to be adjusted 13 corresponding to the value of the characteristic parameter according to the preset power consumption estimation model, the characteristic parameter of the circuit to be adjusted 13 is obtained, and a set of sample values of the characteristic parameter is obtained;
[0121] According to the set of sample values of the characteristic parameters, a preset power consumption algorithm is used to calculate the power consumption calculation value of the circuit to be adjusted 13 working under the sample value of the characteristic parameter;
[0122] The corresponding relationship between the sample value of the characteristic parameter and the calculated power consumption calculation value is determined as a preset power consumption estimation model.
[0123] In an optional embodiment, the processor 11 determines the correspondence between the sample value of the characteristic parameter and the calculated power consumption calculation value as a preset power consumption estimation model, including:
[0124] The processor 11 obtains the actual power consumption value of the circuit to be adjusted 13 operating under the sample value of the characteristic parameter;
[0125] When the absolute value of the difference between the actual power consumption value under the sample value of the characteristic parameter and the power consumption calculation value under the sample value of the characteristic parameter is greater than or equal to the preset threshold, the processor 11 corrects the power consumption calculation value under the sample value of the characteristic parameter according to the actual power consumption value under the sample value of the characteristic parameter to obtain the corrected power consumption calculation value under the sample value of the characteristic parameter;
[0126] The processor 11 determines the corresponding relationship between the sample value of the characteristic parameter and the corrected power consumption calculation value under the sample value of the characteristic parameter as a preset power consumption estimation model.
[0127] Embodiment 3
[0128] Figure 5 A schematic diagram of a chip structure provided in an embodiment of the present application Figure 2 ,like Figure 5 As shown, an embodiment of the present application provides a chip 500, which includes: a monitoring circuit 51, a circuit to be adjusted 52, a processor 53 and a storage medium 54 storing instructions executable by the processor; wherein, one end of the monitoring circuit is connected to the processor 53, and the other end of the monitoring circuit 51 is connected to the circuit to be adjusted 52; the storage medium 54 relies on the processor 53 to perform operations through a communication bus 55, and when the instructions are executed by the processor, the adjustment method executed by the processor side in one or more of the above embodiments is executed.
[0129] It should be noted that in actual application, the various components in the terminal are coupled together via the communication bus 55. It is understandable that the communication bus 55 is used to realize the connection and communication between these components. In addition to the data bus, the communication bus 55 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Figure 5 Various buses are labeled as communication buses 55.
[0130] An embodiment of the present application provides a computer storage medium storing executable instructions. When the executable instructions are executed by one or more processors, the processors execute the adjustment method described in one or more of the above embodiments.
[0131] Among them, the computer-readable storage medium can be a ferromagnetic random access memory (FRAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM) and other memories.
[0132] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of hardware embodiments, software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0133] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0134] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0135] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0136] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.
Claims
1. An adjustment method, characterized in that: The method is applied to a chip, the chip includes a monitoring circuit, a processor and a circuit to be adjusted, and the method includes: The monitoring circuit obtains the value of the power consumption estimation parameter of the circuit to be adjusted; The processor obtains a value of a power consumption estimation parameter of the circuit to be adjusted from the monitoring circuit; The processor adjusts the power consumption of the circuit to be adjusted according to the value of the power consumption estimation parameter; Wherein, the method further comprises: The processor determines the power consumption estimation value of the circuit to be adjusted and the actual power consumption value of the circuit to be adjusted under the characteristic parameter value; wherein the characteristic parameter is a circuit parameter that causes the power consumption value of the circuit to be adjusted to change in a working state; Calculating a difference between the estimated power consumption value and the actual power consumption value; When the absolute value of the difference is greater than or equal to a preset threshold, the processor corrects the power consumption estimation value according to the actual power consumption value to obtain a corrected power consumption estimation value; The processor adjusts the power consumption of the circuit to be adjusted according to the corrected power consumption estimation value.
2. The method according to claim 1, characterized in that: The monitoring circuit obtains the value of the power consumption estimation parameter of the circuit to be adjusted, including: The monitoring circuit monitors and obtains the value of the characteristic parameter of the circuit to be adjusted; The monitoring circuit determines the power consumption estimation value of the circuit to be adjusted corresponding to the value of the characteristic parameter according to a preset power consumption estimation model; The monitoring circuit determines the power consumption estimation value as a value of the power consumption estimation parameter of the circuit to be adjusted.
3. The method according to claim 1, characterized in that The monitoring circuit obtains the value of the power consumption estimation parameter of the circuit to be adjusted, including: The monitoring circuit monitors and obtains the value of the characteristic parameter of the circuit to be adjusted; The monitoring circuit determines the value of the characteristic parameter of the circuit to be adjusted as the value of the power consumption estimation parameter of the circuit to be adjusted.
4. The method according to claim 3, characterized in that: The processor adjusts the power consumption of the circuit to be adjusted according to the value of the power consumption estimation parameter, including: The processor determines, according to a preset power consumption estimation model, a power consumption estimation value of the circuit to be adjusted corresponding to the value of the characteristic parameter; The processor adjusts the power consumption of the circuit to be adjusted according to the power consumption estimation value.
5. The method according to claim 1, characterized in that The processor corrects the power consumption estimate value according to the actual power consumption value to obtain a corrected power consumption estimate value, including: The processor determines an average of the actual power consumption value and the power consumption estimation value as the corrected power consumption estimation value.
6. The method according to claim 4, characterized in that Before the processor determines the power consumption estimation value of the circuit to be adjusted corresponding to the value of the characteristic parameter according to a preset power consumption estimation model, the method further includes: The processor obtains characteristic parameters of the circuit to be adjusted, and obtains a set of sample values of the characteristic parameters; The processor calculates, according to the set of sample values of the characteristic parameters, a preset power consumption algorithm to obtain a power consumption calculation value of the circuit to be adjusted operating under the sample values of the characteristic parameters; The processor determines the corresponding relationship between the sample value of the characteristic parameter and the calculated power consumption calculation value as the preset power consumption estimation model.
7. The method according to claim 6, characterized in that The processor determines the corresponding relationship between the sample value of the characteristic parameter and the calculated power consumption calculation value as the preset power consumption estimation model, including: The processor obtains an actual power consumption value of the circuit to be adjusted when the circuit operates under the sample value of the characteristic parameter; When the absolute value of the difference between the actual power consumption value under the sample value of the characteristic parameter and the power consumption calculation value under the sample value of the characteristic parameter is greater than or equal to a preset threshold, the processor corrects the power consumption calculation value under the sample value of the characteristic parameter according to the actual power consumption value under the sample value of the characteristic parameter to obtain the corrected power consumption calculation value under the sample value of the characteristic parameter; The processor determines the corresponding relationship between the sample value of the characteristic parameter and the corrected power consumption calculation value under the sample value of the characteristic parameter as the preset power consumption estimation model.
8. A chip, characterized in that: include: A monitoring circuit, used for obtaining a value of a power consumption estimation parameter of a circuit to be adjusted of the chip; A processor, configured to obtain a value of a power consumption estimation parameter of the circuit to be adjusted from the monitoring circuit; The processor is used to adjust the power consumption of the circuit to be adjusted according to the value of the power consumption estimation parameter; Wherein, the processor is further used for: Determine the power consumption estimate of the circuit to be adjusted and the actual power consumption value of the circuit to be adjusted under the characteristic parameter value; wherein the characteristic parameter is a circuit parameter that causes the power consumption value of the circuit to be adjusted to change in the working state; Calculating a difference between an estimated power consumption value of the circuit to be adjusted and an actual power consumption value of the circuit to be adjusted; When the absolute value of the difference is greater than or equal to a preset threshold, correcting the power consumption estimate value according to the actual power consumption value to obtain a corrected power consumption estimate value; The power consumption of the circuit to be adjusted is adjusted according to the corrected power consumption estimate value.
9. The chip according to claim 8, characterized in that: The monitoring circuit obtains the value of the power consumption estimation parameter of the circuit to be adjusted, including: Monitoring and obtaining the value of the characteristic parameter of the circuit to be adjusted; Determining, according to a preset power consumption estimation model, a power consumption estimation value of the circuit to be adjusted corresponding to the value of the characteristic parameter; The power consumption estimation value is determined as a value of the power consumption estimation parameter of the circuit to be adjusted.
10. The chip according to claim 8, characterized in that: The monitoring circuit obtains the value of the power consumption estimation parameter of the circuit to be adjusted, including: Monitoring and obtaining the value of the characteristic parameter of the circuit to be adjusted; The value of the characteristic parameter of the circuit to be adjusted is determined as the value of the power consumption estimation parameter of the circuit to be adjusted.
11. The chip according to claim 10, characterized in that: The processor adjusts the power consumption of the circuit to be adjusted according to the value of the power consumption estimation parameter, including: Determining, according to a preset power consumption estimation model, a power consumption estimation value of the circuit to be adjusted corresponding to the value of the characteristic parameter; The power consumption of the circuit to be adjusted is adjusted according to the power consumption estimation value.
12. A chip, characterized in that: The chip includes: a monitoring circuit, a circuit to be adjusted, a processor and a storage medium storing instructions executable by the processor; wherein one end of the monitoring circuit is connected to the processor, and the other end of the monitoring circuit is connected to the circuit to be adjusted; the storage medium relies on the processor to perform operations through a communication bus, and when the instructions are executed by the processor, the adjustment method described in any one of claims 1 to 7 is executed.
13. A computer storage medium, characterized in that: Executable instructions are stored, and when the executable instructions are executed by one or more processors, the processors execute the adjustment method described in any one of claims 1 to 7.
Citation Information
Patent Citations
Semiconductor integrated circuit
JP2010134637A