Method and device for simulating temperature rise based on chip power consumption
By dividing the chip power consumption test values into multiple time intervals and performing time-averaging processing, the existing technology problems of large amounts of calculation and poor timeliness in simulating the transient power consumption and temperature rise of the chip are solved, and efficient temperature rise simulation is achieved. , improving calculation efficiency and accuracy.
Patent Information
- Application Number
- CN202410675340.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-05-28
AI Technical Summary
When the existing technology simulates the temperature rise of the chip's transient power consumption, the calculation amount is huge, which consumes a lot of computing time and storage space, resulting in low timeliness and the inability to obtain the internal temperature rise in real time.
By dividing the continuous power consumption test values into multiple time intervals, time-average processing is used to obtain the time-averaged power consumption test values, and temperature rise simulation is performed based on these values to reduce the amount of input data and improve calculation efficiency.
It significantly reduces the calculation time, reduces the amount of calculation, improves the timeliness and accuracy of simulated temperature rise, and can ensure the integrity and accuracy of the simulation while reducing the amount of input data.
Smart Images

Figure CN118246255B
Abstract
Description
Technical Field
[0001] The present application relates to the field of information processing, and more specifically, to a method and device for simulating temperature rise based on chip power consumption. Background Art
[0002] During the heat dissipation process of the chip, the heat change can be obtained at the bare die position in microseconds, while the heat change of the chip outside the package needs to wait for several seconds or even longer, and the internal temperature rise cannot be obtained in real time. However, the large changes in power consumption in transient performance scenarios will also cause drastic changes in temperature. In order to better simulate the real-time temperature rise in transient scenarios, it is necessary to use simulation tools to simulate the temperature changes by simulating the instantaneous power consumption.
[0003] However, transient simulation is based on convolution calculation. In order to achieve the corresponding accuracy and duration, the number of transient simulation steps will reach thousands or tens of thousands, which is too long and too inefficient.
[0004] Figure 1 This is a schematic diagram of the simulated temperature rise of the instantaneous power consumption of a chip in the prior art. The horizontal axis of the figure represents time in seconds, and the vertical axis represents temperature in degrees Celsius. Figure 1 What is shown in the figure is a 10-second simulated temperature rise curve with more than 10,000 steps. The simulation tool performs transient simulation and needs to perform convolution calculation on the power consumption value corresponding to each step. The amount of calculation is huge, which consumes a lot of computing time and storage space, resulting in low timeliness. Summary of the invention
[0005] In view of this, the present application provides a method and device for simulating temperature rise based on chip power consumption, as follows:
[0006] A method for simulating temperature rise based on chip power consumption, comprising:
[0007] Obtaining a number of power consumption test values of a number of consecutive test cycles to be processed;
[0008] According to the time sequence of the test cycle, the plurality of power consumption test values are divided into at least two groups of power consumption test value sets, and the time sequence of each power consumption test value in any power consumption test value set is continuous;
[0009] According to a preset time averaging rule, time averaging is performed on the at least two sets of power consumption test value sets respectively to obtain time-averaged power consumption test values corresponding to at least two time intervals;
[0010] A temperature rise simulation is performed according to the time-averaged power consumption test values corresponding to the at least two time intervals to obtain a temperature rise simulation result.
[0011] Optionally, the above-mentioned method for simulating temperature rise based on chip power consumption divides the plurality of power consumption test values into at least two sets of power consumption test value sets according to the time sequence of the test cycle, including:
[0012] At least two sets of power consumption test value sets are determined from the plurality of power consumption test values according to the time sequence of the test cycle, and the difference between any two power consumption test values in each power consumption test value set is less than a preset fluctuation threshold.
[0013] Optionally, in the above-mentioned method for simulating temperature rise based on chip power consumption, the at least two sets of power consumption test value sets are subjected to time averaging processing according to a preset time averaging rule to obtain time-averaged power consumption test values corresponding to at least two time intervals, including:
[0014] Determine a second duration corresponding to each set of power consumption test values based on a first duration corresponding to each power consumption test value in the same set of power consumption test values;
[0015] Based on each power consumption test value in any group of power consumption test value sets, the first time duration and the second time duration, time averaging processing is performed on the corresponding group of power consumption test value sets to obtain time-averaged power consumption test values corresponding to at least two time intervals.
[0016] Optionally, in the above-mentioned method for simulating temperature rise based on chip power consumption, the step of determining at least two sets of power consumption test value sets from the plurality of power consumption test values in the time sequence of the test cycle includes:
[0017] Determining at least two target power consumption test values among the plurality of power consumption test values;
[0018] Determine at least two power consumption test value ranges according to a preset ratio parameter and the at least two target power consumption test values, wherein the preset ratio parameter is used to limit the range of fluctuation ranges of each power consumption test value in the power consumption test value set;
[0019] Based on the at least two power consumption test value ranges, at least two groups of power consumption test value sets are determined from the several power consumption test values in a time sequence of the test cycle, and the power consumption test values in each power consumption test set belong to its corresponding power consumption test value range.
[0020] Optionally, the above-mentioned method for simulating temperature rise based on chip power consumption, before obtaining a plurality of power consumption test values of a plurality of consecutive test cycles to be processed, further comprises:
[0021] The preset ratio parameter is set according to a first preset number of power consumption test values and a second preset number of power consumption value test sets.
[0022] Optionally, the above-mentioned method for simulating temperature rise based on chip power consumption, after performing time averaging processing on the at least two sets of power consumption test value sets according to a preset time averaging rule to obtain the time-averaged power consumption test values corresponding to at least two time intervals, further includes:
[0023] Determine a correction factor corresponding to each set of power consumption test values;
[0024] Based on the correction coefficient, the time-averaged power consumption test value corresponding to each set of power consumption test value sets is corrected to obtain a corrected time-averaged power consumption test value.
[0025] Optionally, in the above-mentioned method for simulating temperature rise based on chip power consumption, the step of determining the correction coefficient corresponding to each set of power consumption test values includes:
[0026] According to the fluctuation of the power consumption test values in each power consumption test value set, a correction coefficient corresponding to the corresponding power consumption test value set is determined.
[0027] Optionally, in the above-mentioned method for simulating temperature rise based on chip power consumption, the step of determining the correction coefficient corresponding to the corresponding power consumption test value set according to the fluctuation of the power consumption test value in each set of power consumption test value sets includes:
[0028] Determine at least one first power consumption test value in each group of power consumption test value sets, where the first power consumption test value is a power consumption test value in the power consumption test value set to which it belongs that is greater than the time-averaged power consumption test value;
[0029] The correction coefficient corresponding to the corresponding power consumption test value set is determined based on each first power consumption test value in each power consumption test value set and the first duration corresponding to each first power consumption test value, the time-averaged power consumption test value and the second duration corresponding to the power consumption test value set.
[0030] Optionally, in the above-mentioned method for simulating temperature rise based on chip power consumption, the step of obtaining a plurality of power consumption test values to be processed includes:
[0031] Based on a data transmission channel with a target chip, obtaining a power consumption test value of the target chip during operation; or
[0032] A power consumption test value record stored in a preset storage area is obtained, wherein the power consumption test value record includes a plurality of power consumption test values.
[0033] A device for simulating temperature rise based on chip power consumption, comprising:
[0034] An acquisition module, used for acquiring a plurality of power consumption test values of a plurality of continuous test cycles to be processed;
[0035] A division module, used to divide the plurality of power consumption test values into at least two sets of power consumption test value sets according to the time sequence of the test cycle, and the time sequence of each power consumption test value in any power consumption test value set is continuous;
[0036] A processing module, configured to perform time-average processing on the at least two sets of power consumption test value sets respectively according to a preset time-average rule, to obtain time-average power consumption test values corresponding to at least two time intervals;
[0037] The simulation module is used to perform temperature rise simulation according to the time-averaged power consumption test values corresponding to the at least two time intervals to obtain a temperature rise simulation result.
[0038] The present application also provides an electronic device, including: a memory, a processor;
[0039] Wherein, the memory stores a processing program;
[0040] The processor is used to load and execute the processing program stored in the memory to implement each step of the method for simulating temperature rise based on chip power consumption as described in any one of the above items.
[0041] The present application also provides a readable storage medium on which a computer program is stored. The computer program is called and executed by a processor to implement the steps of any of the above-mentioned methods for simulating temperature rise based on chip power consumption.
[0042] The present application also provides the computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of any of the above-mentioned methods for simulating temperature rise based on chip power consumption. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are merely embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without creative work.
[0044] Figure 1 It is a schematic diagram of the simulated temperature rise of the instantaneous power consumption of a chip in the prior art;
[0045] Figure 2 It is a flow chart of a method for simulating temperature rise based on chip power consumption provided by an embodiment of the present application;
[0046] Figure 3 It is a schematic diagram of several power consumption test values provided in an embodiment of the present application;
[0047] Figure 4 It is a schematic diagram of power consumption test values after time averaging processing provided in an embodiment of the present application;
[0048] Figure 5 It is a flowchart of determining at least two sets of power consumption test value sets from the plurality of power consumption test values according to the time sequence of the test cycle provided by an embodiment of the present application;
[0049] Figure 6 It is a flowchart of performing time-average processing on at least two sets of power consumption test value sets according to a preset time-average rule to obtain time-average power consumption test values corresponding to at least two time intervals provided by an embodiment of the present application;
[0050] Figure 7 It is a flowchart of determining at least two sets of power consumption test value sets from a number of power consumption test values according to the time sequence of the test cycle provided by an embodiment of the present application;
[0051] Figure 8 is a flow chart of a correction process of a time-averaged power consumption test value provided in an embodiment of the present application;
[0052] Fig. 9 It is a flow chart of determining the correction coefficient corresponding to the corresponding power consumption test value set according to the fluctuation of the power consumption test value in each power consumption test value set provided by an embodiment of the present application;
[0053] Fig.10 It is a schematic diagram of a power consumption test value set provided in an embodiment of the present application;
[0054] Fig.11 It is a schematic diagram of the time-averaged power consumption test value provided in an embodiment of the present application;
[0055] Fig.12 It is a schematic diagram of the temperature rise effect in an application scenario of a method for simulating temperature rise based on chip power consumption provided by the present application;
[0056] Fig.13 It is a structural schematic diagram of a device for a method of simulating temperature rise based on chip power consumption provided in an embodiment of the present application. DETAILED DESCRIPTION
[0057] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0058] Figure 2This is a flow chart of a method for simulating temperature rise based on chip power consumption provided by an embodiment of the present application. The method is applied to a processor of an electronic device. The chip can be set in the electronic device or can be connected to the electronic device signal. The method includes the following steps:
[0059] Step S201: obtaining a plurality of power consumption test values of a plurality of consecutive test cycles to be processed;
[0060] In the present application, the power consumption of the chip to be simulated for temperature rise is tested for several consecutive cycles to obtain a power consumption test value corresponding to each test cycle. Since the power consumption of the chip is related to the temperature rise, the temperature rise is simulated based on the power consumption test value of the chip.
[0061] The method of obtaining the power consumption test value may include at least one of the following two methods:
[0062] Method 1: Based on the data transmission channel with the target chip, the power consumption test value of the target chip during operation is obtained;
[0063] The target chip is a chip whose temperature rise is to be simulated. During the operation of the chip, a power consumption test value of the target chip during the operation is obtained according to a test cycle.
[0064] Among them, the target chip can be connected to the processor of the electronic device through a data transmission channel signal. Every time the target chip runs a test cycle, the power consumption test value in the test cycle is obtained in real time, thereby realizing online testing of the target chip to obtain the power consumption test value and online simulation of the temperature rise of the power consumption test value.
[0065] Method 2: Obtain a power consumption test value record stored in a preset storage area, where the power consumption test value record includes a plurality of power consumption test values.
[0066] The chip to be simulated for temperature rise can be obtained offline, specifically, after the chip runs several consecutive test cycles, the power consumption test values of the several consecutive test cycles are uniformly received, and the power consumption test values of the several consecutive test cycles are stored in a preset storage area of the electronic device. When simulating the temperature rise, a stored power consumption test value record is obtained from the preset storage area, and the power consumption test value record includes the power consumption test values of several consecutive test cycles.
[0067] In some implementations, the two methods may be combined, and the power consumption test values are sorted according to the time sequence of the power consumption test values before executing subsequent steps.
[0068] Step S202: dividing the plurality of power consumption test values into at least two power consumption test value sets according to the time sequence of the test cycle, wherein the time sequence of each power consumption test value in any power consumption test value set is continuous;
[0069] Among them, the test cycles corresponding to the several power consumption test values are arranged in chronological order. Accordingly, the several power consumption test values are divided into multiple power consumption test value sets, and the test cycles of each power consumption test value in each power consumption test value set are continuous and uninterrupted in the chronological order.
[0070] Among them, in order to reduce the amount of data in the subsequent simulation of temperature rise process, the several power consumption test values are divided into multiple power consumption test value sets, and the power consumption test values in each power consumption test value set are processed into time-averaged power consumption test values, and the continuation of the time-averaged power consumption test values corresponds to the test duration corresponding to the power consumption test value set.
[0071] Figure 3 This is a schematic diagram of several power consumption test values provided in an embodiment of the present application. Each power consumption test value corresponds to a test cycle. In the schematic diagram, the dotted line indicates the division position of the power consumption test set, and the several power consumption test values are divided into 5 power consumption test value sets.
[0072] In order to ensure the integrity of input data in subsequent simulations, the fluctuation range of the power consumption test values in each power consumption test value set is within a certain range, and the fluctuation range can be determined by presetting a fluctuation threshold or according to the actual situation of the power consumption test value.
[0073] In some implementations, if the difference between any two power consumption test values in the determined power consumption test value set is less than a preset fluctuation threshold, then Figure 5 The process of dividing the power consumption test value set is described in detail.
[0074] In some implementations, when the power consumption test value is obtained as a whole from a preset storage area, multiple target power consumption test values can be determined therefrom first, and then the multiple power consumption test values are divided into multiple power consumption test value sets according to the target power consumption test value, and the fluctuation range of each power consumption test value in each power consumption test value set is within a certain range, and then Figure 7 The process is described in detail.
[0075] Step S203: performing time averaging processing on the at least two sets of power consumption test value sets respectively according to a preset time averaging rule to obtain time averaged power consumption test values corresponding to at least two time intervals;
[0076] A time averaging rule is preset to perform time averaging processing on the power consumption test values in each power consumption test value set to obtain a time average power consumption test value corresponding to a corresponding time interval.
[0077] The overall time corresponding to each power consumption test value set is taken as a time interval, and the time-averaged power consumption test value of the time interval is determined.
[0078] Among them, time averaging is a way of processing data according to time. In this embodiment, a time averaging rule is preset to calculate each power consumption test value in the overall duration of each group of power consumption test value sets, and obtain a time-averaged power consumption test value corresponding to the overall duration of the power consumption test value set, so as to reduce the amount of data output to the simulation model for subsequent simulation.
[0079] Among them, if the power consumption test value is obtained in real time, after a group of power consumption test value sets are determined in real time, time averaging processing is directly performed on the group of power consumption test value sets; if the power consumption test value is obtained offline, after each group of power consumption test value sets are determined, time averaging processing can be performed on each group of power consumption test value sets in turn.
[0080] Among them, since the power consumption test values in each group of power consumption test value sets fluctuate within a certain range, the fluctuation amplitude becomes larger for the change points of sudden rise or drop, and usually exceeds the fluctuation range of the adjacent power consumption test value sets and is retained. Time averaging processing is performed according to the fluctuation of power consumption in the time interval corresponding to the power consumption test set, and the change points of sudden rise or drop of the overall power consumption test value can be captured, and the peak data in the several power consumption test values to be processed are retained.
[0081] Figure 4 : is a schematic diagram of power consumption test values after time-averaged processing provided by an embodiment of the present application. In the schematic diagram, a time-averaged power consumption test value is used to represent each time interval. Figure 3 In the example, the corresponding time-averaged power consumption test values are determined for each of the five power consumption test value sets. The third power consumption test value set includes only one power consumption test value, which is a sudden rise value. The power consumption test value is taken as a power consumption test value set, and the peak data of the sudden rise is retained. The power consumption test value is taken as the time-averaged power consumption test value of the third power consumption test value set.
[0082] In some implementations, the time-averaged power consumption test value is determined based on the duration of each test cycle, the overall duration of each power consumption test value set, and each power consumption test value in the power consumption test value set. Figure 7 The process of determining the time-averaged power consumption test value is described in detail.
[0083] In some implementations, after obtaining the time-averaged power consumption test value corresponding to each set of power consumption test value sets, the time-averaged power consumption test value is also corrected to improve the accuracy of the time-averaged power consumption test value. Figure 8 The correction process of the time-averaged power consumption test value is explained in the figure.
[0084] Step S204: performing temperature rise simulation according to the time-averaged power consumption test values corresponding to the at least two time intervals to obtain a temperature rise simulation result.
[0085] Among them, the average power consumption test value corresponding to each time interval is used as input and input into the temperature rise simulation model to obtain the corresponding temperature rise simulation result. The temperature rise simulation result is the temperature rise corresponding to the length of the chip running for the corresponding time interval under the corresponding average power consumption test value.
[0086] Among them, several power consumption test values are grouped to obtain multiple sets of power consumption test value sets, and each set of power consumption test value sets is represented by only one time-averaged power consumption test value. Therefore, the amount of overall data can be reduced. Since the temperature rise transient calculation is based on convolution, the time complexity is O(m 2 ), m is the amount of simulation input data. By reducing the amount of overall input simulation data, the amount of simulation calculation can be reduced.
[0087] For example, if the original data consists of 10,000 groups, the average power consumption test value obtained is 1,000 groups of data, and the calculation time is reduced to 1 / 100 of the original time.
[0088] In this embodiment, since each test cycle is short, a large number of power consumption test values are generated. The large number of power consumption test values are divided into multiple power consumption test value sets in chronological order. The power consumption test values in each power consumption test value set are continuous and have a small fluctuation range. Therefore, in the process of averaging the power consumption test values in the same power consumption test value set to obtain the time-averaged power consumption test value, the change points of the sudden increase or decrease of the overall power consumption test value can be captured, ensuring the integrity of the input data in the subsequent simulation process. Therefore, the solution in this embodiment ensures the accuracy of the simulation while reducing the amount of input data of the subsequent simulation system.
[0089] The embodiment of the present application is an explanation of a process of dividing a plurality of power consumption test values into at least two groups of power consumption test value sets according to the time sequence of the test cycle, including:
[0090] At least two power consumption test value sets are determined from the plurality of power consumption test values according to the time sequence of the test cycle, and the difference between any power consumption test values in each power consumption test value set is less than a preset fluctuation threshold.
[0091] Figure 5 The flowchart of determining at least two sets of power consumption test value sets from the plurality of power consumption test values according to the time sequence of the test cycle provided by an embodiment of the present application includes the following steps:
[0092] Step S501: determining a first threshold range based on a target power consumption test value, where the target power consumption test value is the first power consumption test value in time order in any power consumption test value set;
[0093] In this embodiment, the process of dividing the power consumption test values received in real time into power consumption test value sets is described.
[0094] When the first power consumption test value is obtained, the power consumption test value is used as the target power consumption test value of the first power consumption test value set.
[0095] The target power consumption test value is used to determine a first threshold range, and the first threshold range is used to limit the fluctuation range of each power consumption test value in the power consumption test value set.
[0096] When it is determined for the first time that a certain power consumption test value does not belong to the previous power consumption test value set, the power consumption test value is sorted as the first power consumption test value in the next power consumption test value set.
[0097] A preset ratio parameter may be set, and the first threshold range may be determined according to the preset ratio parameter and the target power consumption test value.
[0098] For example, the preset ratio parameter is ±40%, and the target power consumption test value is 5W (watt), then the first threshold range is determined to be [3W, 7W].
[0099] The preset ratio parameter may be set according to a first preset number of power consumption test values and a second preset number of power consumption value test sets.
[0100] Among them, the second preset number of the power consumption test set represents the computing power of the simulation device for simulation. The larger the value of the second preset number, the greater the computing power of the simulation device, the larger the amount of data that can be processed, the larger the amount of data used by the simulation device for simulation, and the better the simulation effect; the smaller the value of the second preset number, the smaller the computing power of the simulation device, the smaller the amount of data that can be processed, the smaller the amount of data used by the simulation device for simulation, and the poorer the simulation effect.
[0101] Among them, the value of the preset proportion parameter can affect the size of the first threshold range. The looser the range definition, the longer the time interval corresponding to the power consumption test value set, the more power consumption test values contained in each power consumption test value set, and the greater the reduction in the larger power consumption test values in the power consumption test value set.
[0102] A preset floating power consumption value may be set, and the first threshold range may be determined according to the preset floating power consumption value and the target power consumption test value.
[0103] For example, the preset floating power consumption value is ±1W, and the target power consumption test value is 10W (watts), then the first threshold range is determined to be [9W, 11W].
[0104] Among them, the size of the preset floating power consumption value can affect the size of the first threshold range. The looser the range definition, the longer the time interval corresponding to the power consumption test value set, the more power consumption test values contained in each power consumption test value set, and the greater the reduction in the larger power consumption test values in the power consumption test value set.
[0105] In this embodiment, the fluctuation range of each power consumption test value in the power consumption test value set is defined to achieve control of the time averaging degree of a plurality of power consumption test values.
[0106] Step S502: Determine whether any power consumption test value that is time-sequenced after the target power consumption test value belongs to the first threshold range, and all power consumption test values that are time-sequenced between the any power consumption test value and the target power consumption test value belong to the first threshold range;
[0107] Wherein, for each power consumption test value that is time-sequenced after the target power consumption test value, a judgment is made as to whether it belongs to the first threshold range.
[0108] Among them, the test cycle of the power consumption test values in each power consumption test value set is continuous and uninterrupted in the time arrangement order, and the power consumption test values in the same power consumption test value set are within the fluctuation range limited by the first threshold range. By limiting each power consumption test value set within the fluctuation range of the corresponding first threshold range, the time point when the power consumption fluctuates can be captured.
[0109] Step S503: determining that the arbitrary power consumption test value and the target power consumption test value belong to the same power consumption test value set according to the arbitrary power consumption test value belonging to the first threshold range;
[0110] If the arbitrary power consumption test value belongs to the first threshold range, it is determined that the arbitrary power consumption test value and the target power consumption test value belong to the same power consumption test value set.
[0111] Wherein, it is continued to judge whether the power consumption test value at the subsequent time belongs to the first threshold range, and the process returns to step S502.
[0112] Step S504: Based on the fact that the arbitrary power consumption test value does not belong to the first threshold range, determine that the arbitrary power consumption test value and the target power consumption test value do not belong to the same group of power consumption test value sets; use the arbitrary power consumption test value as the target power consumption test value in the new power consumption test value set and return to execute the step of determining the first threshold range based on the target power consumption test value.
[0113] Among them, if the arbitrary power consumption test value does not belong to the first threshold range, the arbitrary power consumption test value and the target power consumption test value do not belong to the same group of power consumption test value sets, and the arbitrary power consumption test value is used as the target power consumption test value in the next power consumption test value set, and the process returns to step S501.
[0114] The first threshold range represents the fluctuation range of the power consumption test value set corresponding to the target power consumption test value.
[0115] As subsequent power consumption test values are continuously received, those within the fluctuation range are classified into the same set. When a received power consumption test value exceeds the fluctuation range and does not belong to a certain power consumption test value set, the power consumption test value is used as the first power consumption test value in the next power consumption test value set in time order to make judgments on subsequent sets.
[0116] As an example, the power consumption test values (unit W) include: 11.0, 10.5, 11.1, 10.7, 21.1, 15.1, 16.2, 16.1, 16.5, 14.8, 23.1, 24.0, 25.0. In this example, the preset ratio parameter is 10%. According to the first power consumption test value 11.0 as the target power consumption test value of the first set of power consumption test value sets, the first threshold range determined is [9.90, 12.1], and the first set of power consumption test value sets is determined to include 11.0, 10.5, 11.1 and 10.7; 21.1 does not belong to the first set of power consumption test value sets, and is determined as the second set of power consumption test value sets, which is used as the target power consumption test value. The first threshold range for determining the power consumption test value is [18.99, 23.21], and the subsequent 15.1 does not belong to the first threshold range, so it is determined that the second group of power consumption test value sets only includes 21.1; 15.1 is used as the target power consumption test value of the third group of power consumption test value sets, and the first threshold range determined is [13.59, 16.61], so it is determined that the third group of power consumption test value sets includes 15.1, 16.2, 16.1, 16.5 and 14.8; 23.1 is used as the target power consumption test value of the fourth group of power consumption test value sets, and the first threshold range determined is [20.79, 25.41], so it is determined that the fourth group of power consumption test value sets includes 23.1, 24.0 and 25.0.
[0117] In the present embodiment, for each power consumption test value set, a corresponding first threshold range is determined according to target power consumption test values of different numerical values. In the process of dividing each power consumption test value set, the fluctuation range of the power consumption test value set to which it belongs is determined according to the power consumption test value therein, and different power consumption test value sets have different fluctuation ranges. According to the fluctuation range of each power consumption test value set, the several power consumption test values are retained in segments, and the fluctuation of the several power consumption test values as a whole can be retained, which provides a basis for subsequent time averaging processing to capture the time point when the power consumption fluctuation occurs.
[0118] Figure 6The present invention provides a flowchart of performing time-average processing on at least two sets of power consumption test value sets according to a preset time-average rule to obtain time-average power consumption test values corresponding to at least two time intervals, including the following steps:
[0119] Step S601: determining a second duration corresponding to each set of power consumption test values based on a first duration corresponding to each power consumption test value in the same set of power consumption test values;
[0120] The time averaging process in this embodiment adopts a method of integrating and averaging the power consumption test values in the same set of power consumption test value sets, so as to eliminate the influence of the time averaging process on the peak value.
[0121] The power consumption test values in the power consumption test value set may be accumulated by averaging according to the number of test cycles, and the average value may be obtained according to the number of cycles to obtain the time-averaged power consumption test value.
[0122] The overall duration corresponding to a set of power consumption test value sets is determined as the second duration.
[0123] The time continuity of each power consumption test value in the power consumption test value set can be used to calculate the second time length based on the first time length corresponding to each power consumption test value included therein.
[0124] Among them, since the number of power consumption test values included in each power consumption test value set may be different, the obtained second time length is also different.
[0125] In some implementations, each power consumption test value corresponds to a moment, which is the moment when the power consumption test value is obtained during the operation of the chip, and the second duration of the power consumption test value set is determined based on the moment corresponding to each power consumption test value.
[0126] Among them, the first moment corresponding to the last power consumption test value in the time sorting in the previous power consumption test value set and the second moment corresponding to the last power consumption test value in the time sorting in the current power consumption test value set are first obtained, and the time difference between the second moment and the first moment is used as the second duration of the current power consumption test value set.
[0127] In some implementations, the test cycle corresponding to each power consumption test value is the same, and the test cycle can also be used as the first duration, and the number of power consumption test values included in the power consumption test value set is multiplied by the duration of the test cycle to obtain the second duration.
[0128] As an example, the power consumption test value set A includes 10 power consumption test values, the power consumption test value set B includes 2 power consumption test values, and the test period of each power consumption test value is 1ms (millisecond). Then the second time length of the power consumption test value set A is 10ms, and the second time length of the power consumption test value set B is 2ms.
[0129] Step S602: performing time averaging processing on the corresponding group of power consumption test value sets according to each power consumption test value in any group of power consumption test value sets, the first duration and the second duration, to obtain time-averaged power consumption test values corresponding to at least two time intervals.
[0130] Herein, step S602 is performed for each set of power consumption test values.
[0131] Among them, since the number of power consumption test values included in each power consumption test value set may be different, the obtained second time length is also different.
[0132] Correspondingly, according to the set time-average processing rule, time-average processing is performed on each power consumption test value in the same group of power consumption test value sets to obtain a corresponding time-average power consumption test value.
[0133] Among them, the time-averaged processing rule can be adopted as follows:
[0134] (1)
[0135] Where, f represents the power consumption test value, represents the time-averaged power consumption test value, △τ represents the second duration (the overall duration of the power consumption test value set), and τ represents time.
[0136] In this embodiment, time-averaging is performed on the power consumption test values in each group of power consumption test value sets to obtain a time-averaged power consumption test value corresponding to the group of power consumption test value sets. In the calculation process, time-averaging is performed on each power consumption test value in the group of power consumption test value sets based on the overall duration (second duration) corresponding to the group of power consumption test value sets and the first duration corresponding to each power consumption test value to obtain the time-averaged power consumption test value corresponding to the second duration. Moreover, time averaging is calculated using an integral average value to eliminate the influence of time averaging on the peak value, thereby improving the accuracy of time averaging.
[0137] Figure 7 The present invention provides a flowchart of determining at least two sets of power consumption test value sets from a plurality of power consumption test values according to the time sequence of the test cycle, including the following steps:
[0138] Step S701: determining at least two target power consumption test values from the plurality of power consumption test values;
[0139] The power consumption test values may be obtained in real time, or may be obtained by combining various power consumption test values for a period of time, or may be directly obtained pre-stored data.
[0140] Wherein, a plurality of target power consumption test values are determined among the plurality of power consumption test values.
[0141] In some implementations, a preset number of power consumption test values may be randomly selected from the plurality of power consumption test values, or several of the plurality of power consumption test values may be determined as target power consumption test values at fixed time intervals.
[0142] In some implementations, a power consumption test value that is later in time order and has a difference with an adjacent power consumption test value greater than a set value may be determined as a target power consumption test value from among the plurality of power consumption test values.
[0143] Step S702: determining at least two power consumption test value ranges according to a preset ratio parameter and the at least two target power consumption test values, wherein the preset ratio parameter is used to limit the range of fluctuation ranges of each power consumption test value in the power consumption test value set;
[0144] After the target power consumption test value is determined, a corresponding number of power consumption test value ranges are calculated according to the preset ratio parameters and each target power consumption test value.
[0145] The preset ratio parameter is used to limit the range of fluctuation of each power consumption test value in the power consumption test value set.
[0146] Among them, the preset proportion parameter is the upper and lower floating ratio of the target power consumption test value. According to the target power consumption test value and the preset proportion parameter, the corresponding power consumption test value range can be determined, and the power consumption test value range limits the power consumption test values included in the power consumption test value set to which the target power consumption test value belongs.
[0147] For example, the preset ratio parameter is ±10%, and the target power consumption test value is 5W, then the first threshold range is determined to be [4.5W, 5.5W].
[0148] In the embodiment of the present application, before dividing the power consumption test values into power consumption test value sets, a ratio parameter must be set first to determine the size of the power consumption test value fluctuation range in each power consumption test value set.
[0149] The preset ratio parameter is set according to a first preset number of power consumption test values and a second preset number of power consumption value test sets.
[0150] Among them, the second preset number of the power consumption test set represents the computing power of the simulation device performing the simulation. The larger the value of the second preset number, the greater the computing power of the simulation device and the larger the amount of data that can be processed; the smaller the value of the second preset number, the smaller the computing power of the simulation device and the smaller the amount of data that can be processed.
[0151] Among them, the value of the preset proportion parameter can affect the range of the power consumption test value range. The looser the range definition, the longer the time interval corresponding to the power consumption test value set, the more power consumption test values contained in each power consumption test value set, and the greater the reduction in the larger power consumption test values in the power consumption test value set.
[0152] Step S703: Based on the at least two power consumption test value ranges, at least two power consumption test value sets are determined from the plurality of power consumption test values in a time sequence of the test cycle, and the power consumption test values in each power consumption test set belong to its corresponding power consumption test value range.
[0153] Among them, after the corresponding power consumption test value range is determined according to the target power consumption test value, multiple power consumption test values that are adjacent to the target power consumption test value in sequence and are in the corresponding power consumption test value range are determined among several power consumption test values as a power consumption test value set corresponding to the target power consumption test value.
[0154] Among them, according to the time sequence of the test cycles of each power consumption test value, determine in turn whether the power consumption test values adjacent to the test cycles of each target power consumption test value belong to the corresponding power consumption test value range. If they belong to the corresponding power consumption test value range, continue to judge whether the power consumption test value adjacent to the test cycle time belongs to the corresponding power consumption test value range. Among them, if the power consumption test value adjacent to the test cycle of the target power consumption test value does not belong to the corresponding power consumption test value range, it can be determined whether the adjacent power consumption test value belongs to the power consumption test value set corresponding to other power consumption test values; if the power consumption test value adjacent to the test cycle of the target power consumption test value also belongs to the corresponding power consumption test value range, continue to judge whether other power consumption test values belong to the corresponding power consumption test value range in turn according to the arrangement order of the test cycle time, and so on.
[0155] Among them, since the target power consumption test value determined in step S703 may not be comprehensive enough, in step S703, the target power consumption test value can be further analyzed and determined in combination with the judgment process of each power consumption test value, and steps S702-S703 are executed cyclically based on the newly determined target power consumption test value until the several target power consumption test values all belong to the power consumption test value set.
[0156] In this embodiment, multiple target power consumption test values are determined from a number of power consumption test values, and a number of corresponding power consumption test value ranges are determined based on a preset ratio parameter and the multiple target power consumption test values. The preset ratio parameter is used to limit the range of fluctuation ranges of each power consumption test value in the power consumption test value set, and then a corresponding power consumption test value set is determined for the multiple power consumption test values based on the multiple power consumption test value ranges. Since the fluctuation range for each power consumption test value set is determined by the preset ratio parameter and the target power consumption test value selected from the multiple power consumption test values, the fluctuations occurring in the multiple power consumption test values are retained during the division of each power consumption test value set, which provides a basis for subsequent time averaging processing to capture the time point when power consumption fluctuations occur.
[0157] Figure 8 : is a flowchart of the correction process of the time-averaged power consumption test value provided in an embodiment of the present application, which specifically includes the following steps:
[0158] Step S801: determining a correction coefficient corresponding to each set of power consumption test value sets;
[0159] Among them, the time-averaged power consumption test value obtained by time-averaging a set of power consumption test value sets can represent the overall situation of the power consumption test values in the set of power consumption test value sets. However, each power consumption test value therein is different and there will be certain fluctuations. During the time-averaging process, the fluctuations within the power consumption test value set are ignored.
[0160] In this embodiment, a correction coefficient of each set of power consumption test values is determined, and the time-averaged power consumption test value is corrected according to the correction coefficient to eliminate the influence of the time-average processing on the fluctuation peak value.
[0161] The correction coefficient represents the fluctuation of each power consumption test value in the corresponding power consumption test value set.
[0162] Wherein, according to the fluctuation of the power consumption test values in each group of power consumption test value sets, the correction coefficient corresponding to the corresponding power consumption test value set is determined.
[0163] In some implementations, the correction coefficient may be determined based on the power consumption test value at the peak position in the power consumption test value set, and then Fig. 9 The process of determining the correction factor is described in detail.
[0164] If the power consumption test value is obtained in real time, after each set of power consumption test value sets is determined, time averaging processing may be performed on the set of power consumption test value sets, and then a correction coefficient for the set of power consumption test value sets may be determined.
[0165] Among them, if the power consumption test value is obtained offline, after determining each group of power consumption test value sets, time averaging processing can be performed on each group of power consumption test value sets in turn. After the time averaging processing is completed, the correction coefficient of each group of power consumption test value sets is determined.
[0166] Step S802: Based on the correction coefficient, the time-averaged power consumption test value corresponding to each set of power consumption test value sets is corrected to obtain a corrected time-averaged power consumption test value.
[0167] After the correction coefficient of each group of power consumption test value sets is determined, the time-averaged power consumption test value of the power consumption test value set of the corresponding group is corrected to obtain the corrected time-averaged power consumption test value.
[0168] Among them, the corrected average power consumption test value can be used using the following formula:
[0169] (2)
[0170] in, Indicates the corrected average power consumption test value, Indicates the average power consumption test value. Indicates the correction factor.
[0171] According to the above formula, for each set of power consumption test values, the corresponding correction coefficient is used to correct the time-averaged power consumption test value to obtain the corrected time-averaged power consumption test value.
[0172] In this embodiment, according to the fluctuation of the power consumption test value in each set of power consumption test value, the correction coefficient corresponding to the corresponding power consumption test value set is determined, and for each set of power consumption test value set, the corresponding time-averaged power consumption test value is corrected according to its corresponding correction coefficient to obtain the corrected time-averaged power consumption test value. Since the correction coefficient corresponding to each set of power consumption test value sets corresponds to its fluctuation, the time-averaged power consumption test value is corrected according to the correction coefficient, which can eliminate the influence of the time-averaged processing on the fluctuation peak, improve the accuracy of the input power consumption used as the simulated temperature rise, and thus improve the accuracy of the temperature rise simulation.
[0173] Fig. 9 The present invention provides a flowchart for determining a correction coefficient corresponding to a corresponding power consumption test value set according to fluctuations of power consumption test values in each power consumption test value set, including the following steps:
[0174] Step S901: determining at least one first power consumption test value in each power consumption test value set, where the first power consumption test value is a power consumption test value in the power consumption test value set to which it belongs that is greater than the time-average power consumption test value;
[0175] Among them, the time-averaged power consumption test value of a certain power consumption test value set is obtained by time-averaging each power consumption test value in the power consumption test value set. However, since the values of each power consumption test value in the power consumption test value set are different, there may be a difference between each power consumption test value and the time-averaged power consumption test value, and the difference is the pulsation amount of the power consumption test value.
[0176] The magnitude of the pulsation quantity represents the intensity of the pulsation. The larger the value of the pulsation quantity, the more intense the pulsation. Conversely, the slower the pulsation. The intensity of the pulsation can affect the accuracy of the time-averaged result.
[0177] In this embodiment, the time-averaged power consumption test value is corrected according to the severity of the pulsation of each power consumption test value in the power consumption test value set.
[0178] The correction coefficient is determined by determining the pulsation amount of the power consumption test value in the power consumption test value set whose value is greater than the time-averaged power consumption test value.
[0179] When determining the correction coefficient of a certain power consumption test value set, a first power consumption test value in the power consumption test value set that is greater than the time-averaged power consumption test value is determined, and the first power consumption test value belongs to a peak position in the power consumption test value set.
[0180] Step S902: Determine a correction coefficient corresponding to a corresponding power consumption test value set according to each first power consumption test value in each power consumption test value set and the first duration corresponding to each first power consumption test value, the time-averaged power consumption test value and the second duration corresponding to the power consumption test value set.
[0181] Among them, the difference between the power consumption test value and the time-averaged power consumption test value is the pulsation amount of the power consumption test value set to which it belongs. The intensity of the pulsation amount is a dimensionless number. In this embodiment, the correction coefficient is calculated by multiplying the time by the power consumption test value.
[0182] Among them, after determining the first power consumption test value, the value of the first power consumption test value greater than the average power consumption test value is determined based on the first time length corresponding to each first power consumption test value and the average power consumption test value, and the value is multiplied by the corresponding first time length to obtain the first value.
[0183] The second value is obtained by multiplying the time-averaged power consumption test value by the second duration corresponding to the power consumption test value set.
[0184] The first value is divided by the second value, and the resulting value is the correction coefficient corresponding to the power consumption test value set.
[0185] The formula for determining the correction coefficient is as follows:
[0186] (3)
[0187] in, represents the correction factor, Indicates the average power consumption test value. It represents the first power consumption test value that is greater than the time-average power consumption test value, a is the serial number of the first first power consumption test value in the power consumption test value set, b is the serial number of the last first power consumption test value in the power consumption test value set, i represents the serial number of the first power consumption test value in this power consumption test value set, n represents the number of power consumption test values in the power consumption test value set, and t represents the test cycle duration of each power consumption test value.
[0188] In some implementations, graphs are drawn for the power consumption test value set and the time-average power consumption test value, respectively, and the correction coefficient is obtained by dividing the partial area of each first power consumption test value that is larger than the time-average power consumption test value by the total area corresponding to the time-average power consumption test value.
[0189] Fig.10 It is a schematic diagram of a power consumption test value set provided in an embodiment of the present application, wherein the power consumption test value set includes power consumption test values of 9 test cycles (numbered 1 to 9 in the figure), the horizontal axis represents time, the width of each vertical rectangular bar represents the duration of a test cycle, t represents the test cycle, the vertical axis represents the value of the power consumption test value, the height of each vertical rectangular bar represents the power consumption test value corresponding to the test cycle, and the horizontal dotted line represents the value of the time-averaged power consumption test value, wherein the power consumption test values numbered 1, 4, 5, 7, and 8 (as the first power consumption test values) are greater than the time-averaged power consumption test value.
[0190] Fig.11 1 is a schematic diagram of a time-averaged power consumption test value provided in an embodiment of the present application. The time-averaged power consumption test value is obtained by time-averaging power consumption test values (numbered 1 to 9 in the figure) of 9 test cycles in a power consumption test value set. Fig.11 The width of each vertical rectangular bar in represents the duration t of a test cycle.
[0191] According to formula (3), combined with Fig.10 and Fig.11 , calculate the corresponding correction coefficient , where n is 9 and i is 1, 4, 5, 7, 8. The calculation formula is as follows:
[0192] (4)
[0193] in, Indicates the average power consumption test value. , , , , Indicates the first power consumption test value, yes Fig.11 The total area of the region corresponding to the average power consumption test value, yes Fig.10 The area corresponding to the pulsation peak.
[0194] In this embodiment, when determining the correction coefficient for each group of power consumption test value sets, a first power consumption test value that is greater than the time-averaged power consumption test value is determined in each group of power consumption test value sets. For each group of power consumption test value sets, for each first power consumption test value and the first time duration corresponding to each first power consumption test value, and the time-averaged power consumption test value and the second time duration corresponding to the power consumption test value set, a correction coefficient corresponding to the corresponding power consumption test value set is determined. The determined correction coefficient is combined with the pulsation situation in the power consumption test value set. The severity of the pulsation can affect the accuracy of the time-averaged result, can eliminate the influence of the time-averaged processing on the fluctuation peak, and improves the accuracy of the input power consumption ultimately used as the simulated temperature rise.
[0195] Fig.12 This is a schematic diagram of the temperature rise effect in an application scenario of a method for simulating temperature rise based on chip power consumption provided in the present application. In the schematic diagram, the received power consumption test value is time-averaged, and the time-averaged power consumption test value obtained after the power consumption test value is time-averaged is obtained. The temperature rise of the chip is simulated based on the time-averaged power consumption test value. In the figure, the horizontal axis represents time, and the unit is s, and the vertical axis represents temperature, and the unit is ℃.
[0196] A simulation model may be set up, and the time-averaged power consumption test value may be used as input. The simulation model outputs a temperature value based on the input data, and the change of the temperature value represents the temperature rise of the chip.
[0197] In this application scenario, the simulation model can be a trained neural network model.
[0198] Among them, the Fig.12 Two circles are used to circle the temperature rise simulation areas corresponding to the two peak values of the power consumption test value. The time-averaged power consumption test value after time-averaging processing can retain the fluctuation peak value, and the simulation effect is accurate.
[0199] Combination Figure 1 and Fig.12 It can be seen that according to the direct transient simulation of the original data, the peak values in the simulated temperature rise diagram are (2.916s, 44.71°C) and (9.192s, 53.78°C); using the solution in this application, the peak values in the simulated temperature rise diagram after time averaging are (2.907s, 45.8°C) and (9.192s, 54.67°C). The time point error is <10ms, and the temperature peak error is ~1°C.
[0200] Moreover, the method in this application is used to process transient power consumption (power consumption test value), and the original data of 10,000 groups can be processed as needed, such as Fig.12 The power consumption data can be reduced to 1000 sets of data. Since the temperature rise transient calculation is based on convolution, the time complexity is O(m 2 ) is reduced to 1 / 100 of the original value, so the calculation time is reduced to 1 / 100 of the original value.
[0201] Corresponding to the above-mentioned method embodiment of simulating temperature rise based on chip power consumption provided by the present application, the present application also provides a device embodiment applying the method of simulating temperature rise based on chip power consumption.
[0202] Fig.13 130 is a schematic diagram of a structure of a device for simulating temperature rise based on chip power consumption provided in an embodiment of the present application, the device comprising the following structures: an acquisition module 1301, a division module 1302, a processing module 1303 and a simulation module 1304;
[0203] The obtaining module 1301 is used to obtain a number of power consumption test values of a number of consecutive test cycles to be processed;
[0204] The division module 1302 is used to divide the plurality of power consumption test values into at least two power consumption test value sets according to the time sequence of the test cycle, and the time sequence of each power consumption test value in any power consumption test value set is continuous;
[0205] The processing module 1303 is used to perform time averaging processing on the at least two sets of power consumption test value sets respectively according to a preset time averaging rule to obtain time-averaged power consumption test values corresponding to at least two time intervals;
[0206] The simulation module 1304 is used to perform temperature rise simulation according to the time-averaged power consumption test values corresponding to the at least two time intervals to obtain a temperature rise simulation result.
[0207] Optionally, divide the modules into:
[0208] At least two power consumption test value sets are determined from the plurality of power consumption test values according to the time sequence of the test cycle, and the difference between any two power consumption test values in each power consumption test value set is less than a preset fluctuation threshold.
[0209] Optional, processing module, including:
[0210] A first determining unit, configured to determine a second duration corresponding to each set of power consumption test values based on a first duration corresponding to each power consumption test value in the same set of power consumption test values;
[0211] The processing unit is used to perform time averaging processing on the corresponding group of power consumption test value sets according to each power consumption test value in any group of power consumption test value sets, the first time length and the second time length in turn, to obtain the time-averaged power consumption test values corresponding to at least two time intervals.
[0212] Optionally, divide the modules into:
[0213] A second determining unit, configured to determine at least two target power consumption test values from the plurality of power consumption test values;
[0214] A third determining unit, configured to determine at least two power consumption test value ranges according to a preset ratio parameter and the at least two target power consumption test values in turn, wherein the preset ratio parameter is used to limit the range of fluctuation ranges of each power consumption test value in the power consumption test value set;
[0215] The division unit is used to determine at least two groups of power consumption test value sets from the several power consumption test values based on the at least two power consumption test value ranges and in a time sequence of the test cycle, wherein the power consumption test values in each power consumption test set belong to its corresponding power consumption test value range.
[0216] Optionally, also include:
[0217] The setting module is used to set the preset ratio parameter according to a first preset number of power consumption test values and a second preset number of power consumption value test sets before obtaining a plurality of power consumption test values of a plurality of consecutive test cycles to be processed.
[0218] Optionally, also include:
[0219] A determination module, configured to perform time averaging processing on the at least two sets of power consumption test value sets according to a preset time averaging rule, and after obtaining time-averaged power consumption test values corresponding to at least two time intervals, determine a correction coefficient corresponding to each set of power consumption test value sets;
[0220] The correction module is used to correct the time-averaged power consumption test value corresponding to each set of power consumption test value sets based on the correction coefficient to obtain a corrected time-averaged power consumption test value.
[0221] Optionally, determine whether the module is specifically used for:
[0222] According to the fluctuation of the power consumption test values in each power consumption test value set, a correction coefficient corresponding to the corresponding power consumption test value set is determined.
[0223] Optionally, determine the modules, including:
[0224] A fourth determining unit, configured to determine at least one first power consumption test value in each power consumption test value set, wherein the first power consumption test value is a power consumption test value in the power consumption test value set to which it belongs that is greater than the time-averaged power consumption test value;
[0225] The fifth determination unit is used to determine the correction coefficient corresponding to the corresponding power consumption test value set based on each first power consumption test value in each group of power consumption test value sets and the first time duration corresponding to each first power consumption test value, the time-averaged power consumption test value and the second time duration corresponding to the power consumption test value set.
[0226] Optionally, obtain modules including:
[0227] A first obtaining unit is configured to obtain a power consumption test value of the target chip during operation based on a data transmission channel with the target chip; or
[0228] The second obtaining unit is used to obtain a power consumption test value record stored in a preset storage area, where the power consumption test value record includes a plurality of power consumption test values.
[0229] It should be noted that for the functional explanation of each component structure in the chip power consumption simulation temperature rise device provided in the embodiment of the present application, please refer to the explanation in the aforementioned method embodiment, which will not be repeated in this embodiment.
[0230] In this embodiment, since each test cycle is short, a large number of power consumption test values are generated. The large number of power consumption test values are divided into multiple power consumption test value sets in chronological order. The power consumption test values in each power consumption test value set are continuous and have a small fluctuation range. Therefore, in the process of averaging the power consumption test values in the same power consumption test value set to obtain the time-averaged power consumption test value, the change points of the sudden increase or decrease of the overall power consumption test value can be captured, ensuring the integrity of the input data in the subsequent simulation process. Therefore, the solution in this embodiment ensures the accuracy of the simulation while reducing the amount of input data of the subsequent simulation system.
[0231] Corresponding to the above-mentioned method embodiment of simulating temperature rise based on chip power consumption provided by the present application, the present application also provides electronic equipment, readable storage medium and computer program product corresponding to the method of simulating temperature rise based on chip power consumption.
[0232] The electronic device includes: a memory and a processor;
[0233] Wherein, the memory stores a processing program;
[0234] The processor is used to load and execute the processing program stored in the memory to implement each step of the method for simulating temperature rise based on chip power consumption as described in any one of the above items.
[0235] For the specific implementation of the method of simulating temperature rise based on chip power consumption of the electronic device, reference may be made to the aforementioned embodiment of the method of simulating temperature rise based on chip power consumption.
[0236] The readable storage medium stores a computer program thereon, and the computer program is called and executed by a processor to implement the steps of any of the above-mentioned methods for simulating temperature rise based on chip power consumption.
[0237] Specifically, the computer program stored in the readable storage medium executes the method for simulating temperature rise based on chip power consumption, and reference may be made to the aforementioned embodiment of the method for simulating temperature rise based on chip power consumption.
[0238] The present application also provides the computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of any of the above-mentioned methods for simulating temperature rise based on chip power consumption.
[0239] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device provided in the embodiment, since it corresponds to the method provided in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0240] The above description of the embodiments provided enables professionals and technicians in the field to implement or use the present application. Various modifications to these embodiments will be apparent to professionals and technicians in the field, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features provided herein.
Claims
1. A method for simulating temperature rise based on chip power consumption, include: Obtaining a number of power consumption test values of a number of consecutive test cycles to be processed; According to the time sequence of the test cycle, the plurality of power consumption test values are divided into at least two groups of power consumption test value sets, and the time of each power consumption test value in any power consumption test value set is continuous; wherein the power consumption test value fluctuation range in each power consumption test value set is within a preset range, so that in the process of performing time averaging processing, the change point of a sudden rise or a sudden fall of the overall power consumption test value can be captured; According to a preset time averaging rule, time averaging is performed on the at least two sets of power consumption test value sets respectively to obtain time-averaged power consumption test values corresponding to at least two time intervals; A temperature rise simulation is performed according to the time-averaged power consumption test values corresponding to the at least two time intervals to obtain a temperature rise simulation result.
2. According to the method for simulating temperature rise based on chip power consumption according to claim 1, the plurality of power consumption test values are divided into at least two groups of power consumption test value sets according to the time sequence of the test cycle, include: At least two sets of power consumption test value sets are determined from the plurality of power consumption test values according to the time sequence of the test cycle, and the difference between any two power consumption test values in each power consumption test value set is less than a preset fluctuation threshold.
3. According to the method for simulating temperature rise based on chip power consumption in claim 2, the at least two sets of power consumption test value sets are respectively subjected to time averaging processing according to a preset time averaging rule to obtain time-averaged power consumption test values corresponding to at least two time intervals, include: Determine a second duration corresponding to each set of power consumption test values based on a first duration corresponding to each power consumption test value in the same set of power consumption test values; Based on each power consumption test value in any group of power consumption test value sets, the first time duration and the second time duration, time averaging processing is performed on the corresponding group of power consumption test value sets to obtain time-averaged power consumption test values corresponding to at least two time intervals.
4. The method for simulating temperature rise based on chip power consumption according to claim 2, wherein at least two sets of power consumption test value sets are determined from the plurality of power consumption test values in a time sequence of the test cycle. include: Determining at least two target power consumption test values among the plurality of power consumption test values; Determine at least two power consumption test value ranges according to a preset ratio parameter and the at least two target power consumption test values, wherein the preset ratio parameter is used to limit the range of fluctuation ranges of each power consumption test value in the power consumption test value set; Based on the at least two power consumption test value ranges, at least two groups of power consumption test value sets are determined from the several power consumption test values in a time sequence of the test cycle, and the power consumption test values in each power consumption test set belong to its corresponding power consumption test value range.
5. According to the method for simulating temperature rise based on chip power consumption according to claim 4, before obtaining a plurality of power consumption test values of a plurality of consecutive test cycles to be processed, include: The preset ratio parameter is set according to a first preset number of power consumption test values and a second preset number of power consumption value test sets.
6. The method for simulating temperature rise based on chip power consumption according to claim 3, wherein the at least two sets of power consumption test value sets are respectively subjected to time averaging according to a preset time averaging rule, and after obtaining the time-averaged power consumption test values corresponding to at least two time intervals, further include: Determine a correction factor corresponding to each set of power consumption test values; Based on the correction coefficient, the time-averaged power consumption test value corresponding to each set of power consumption test value sets is corrected to obtain a corrected time-averaged power consumption test value.
7. The method for simulating temperature rise based on chip power consumption according to claim 6, wherein the correction coefficient corresponding to each set of power consumption test values is determined. include: According to the fluctuation of the power consumption test values in each power consumption test value set, a correction coefficient corresponding to the corresponding power consumption test value set is determined.
8. The method for simulating temperature rise based on chip power consumption according to claim 7, wherein the correction coefficient corresponding to the corresponding power consumption test value set is determined according to the fluctuation of the power consumption test value in each power consumption test value set. include: Determine at least one first power consumption test value in each group of power consumption test value sets, where the first power consumption test value is a power consumption test value in the power consumption test value set to which it belongs that is greater than the time-averaged power consumption test value; The correction coefficient corresponding to the corresponding power consumption test value set is determined based on each first power consumption test value in each power consumption test value set and the first duration corresponding to each first power consumption test value, the time-averaged power consumption test value and the second duration corresponding to the power consumption test value set.
9. The method for simulating temperature rise based on chip power consumption according to claim 1, wherein the step of obtaining a plurality of power consumption test values of a plurality of consecutive test cycles to be processed comprises: include: Based on a data transmission channel with a target chip, obtaining a power consumption test value of the target chip during operation; or A power consumption test value record stored in a preset storage area is obtained, wherein the power consumption test value record includes a plurality of power consumption test values.
10. A device for simulating temperature rise based on chip power consumption, include: An acquisition module, used for acquiring a plurality of power consumption test values of a plurality of continuous test cycles to be processed; A division module is used to divide the plurality of power consumption test values into at least two sets of power consumption test value sets according to the time sequence of the test cycle, and the time of each power consumption test value in any power consumption test value set is continuous; wherein the fluctuation range of the power consumption test value in each power consumption test value set is within a preset range, so that in the process of performing time averaging processing, the change point of a sudden rise or a sudden drop of the overall power consumption test value can be captured; A processing module, configured to perform time-average processing on the at least two sets of power consumption test value sets respectively according to a preset time-average rule, to obtain time-average power consumption test values corresponding to at least two time intervals; The simulation module is used to perform temperature rise simulation according to the time-averaged power consumption test values corresponding to the at least two time intervals to obtain a temperature rise simulation result.
