Chip storage module power consumption data mapping method and device, equipment and medium
Optimizing the chip memory module power consumption model through preset experience values and performance simulation solves the problem of accuracy and efficiency of memory unit power consumption calculation, and realizes automatic mapping and rapid iteration of power consumption data.
Patent Information
- Application Number
- CN202410977853.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-09-06
AI Technical Summary
In the existing technology, there is a large gap between dynamic power consumption and actual measurement when calculating the power consumption of on-chip memory units, and units operating non-simultaneously in the memory module are also calculated, resulting in reduced data accuracy and low iteration efficiency.
The in-chip memory module is configured through preset experience values, and the power consumption model is optimized by combining performance simulation and flip rate and access frequency calculations to achieve automatic mapping of power consumption data and rapid iteration of multiple versions.
It reduces the gap between calculated and measured power consumption, improves data accuracy, simplifies power consumption model configuration, reduces redundant workload, and achieves rapid iteration and iteration efficiency of multiple versions of data.
Smart Images

Figure CN118607429A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of integrated circuit technology, and in particular to a chip storage module power consumption data mapping method, device, equipment and medium. Background Art
[0002] At present, there may be thousands of storage units stored on large-scale chips, and the calculation of chip power consumption is very cumbersome. The calculation of dynamic power consumption will cause a large gap between the actual calculated dynamic power consumption of storage units and the actual measured power consumption. In addition, when calculating the power consumption data of storage units, the flip rate of the storage modules in the storage modules is calculated based on the common practice, which results in the power consumption calculation of many storage units that are not operated at the same time. It will also make the configuration of power modules in different scenarios troublesome, increase a lot of redundant workload, reduce data accuracy, and thus reduce the efficiency of multiple versions of data iteration.
[0003] It can be seen that how to realize the automatic mapping of the power consumption data of the storage module in the chip, improve the data accuracy, and realize the rapid iteration of multiple versions of data are problems that technical personnel in this field need to solve. Summary of the invention
[0004] The purpose of the embodiments of the present invention is to provide a chip storage module power consumption data mapping method, device, equipment and medium, which can realize the automatic mapping of power consumption data of the storage module in the chip, improve the data accuracy, and realize the rapid iteration of multiple versions of data.
[0005] In a first aspect, the present application discloses a chip storage module power consumption data mapping method, device, equipment and medium method, including:
[0006] The storage module in the chip is configured using a preset empirical value to obtain the configured storage module and a corresponding initial power consumption model; the preset empirical value is a predetermined empirical value related to the power consumption of the storage module;
[0007] Performing performance simulation on the configured storage module according to the current performance scenario requirements to obtain a signal waveform corresponding to the access signal of the storage module;
[0008] Determine the initial flip rates corresponding to the different types of storage cells based on the types of the storage cells in the configured storage module and the signal waveform, and determine the access frequencies corresponding to the different types of storage cells in the storage module;
[0009] Determine the target flip rate and basic power consumption data corresponding to each of the different types of storage units by using the initial flip rate and the access frequency, and optimize the initial power consumption model based on the target flip rate to obtain an optimized power consumption model;
[0010] The corresponding target storage unit is screened from the storage unit library according to the preset matching conditions, and the target basic power consumption data corresponding to the type of the target storage unit is extracted from the basic power consumption data, and the target basic power consumption data is mapped to the optimized power consumption model to complete the mapping between the power consumption data in the chip and the storage module.
[0011] Optionally, configuring the storage module in the chip by using the preset experience value to obtain the configured storage module and the corresponding initial power consumption model includes:
[0012] The storage module in the chip is respectively configured for data access, frequency and flip rate using predetermined data access configuration experience values, frequency configuration experience values and flip rate configuration experience values related to the power consumption of the storage module, so as to obtain the configured storage module and the corresponding initial power consumption model; wherein the data access configuration experience value is an experience value used to configure whether data access is performed.
[0013] Optionally, performing data access configuration, frequency configuration and flip rate configuration on the storage module in the chip respectively using predetermined data access configuration experience values, frequency configuration experience values and flip rate configuration experience values related to the power consumption of the storage module, comprises:
[0014] Using the data access configuration experience value, and performing data access configuration on the memory modules at the module level and the system level inside the chip according to different performance scenarios;
[0015] Performing frequency configuration on the storage module according to the actual frequency in the performance scenario using the frequency configuration experience value;
[0016] The flip rate configuration empirical value is used to configure the flip rates of different types of storage units in the storage module respectively.
[0017] Optionally, the performing performance simulation on the configured storage module according to the current performance scenario requirement to obtain a signal waveform corresponding to the access signal of the storage module includes:
[0018] Filter the current performance scenario from different performance scenarios and determine the current performance scenario requirements;
[0019] The performance of the register transfer level code in the configured storage module is simulated according to the current performance scenario requirement to obtain a signal waveform corresponding to the access signal of the storage module.
[0020] Optionally, determining the initial flip rates corresponding to the different types of storage cells respectively based on the types of the storage cells in the configured storage module and the signal waveform, and determining the access frequencies corresponding to the different types of storage cells in the storage module respectively, includes:
[0021] Determine the type of each storage unit in the configured storage module; the type includes two enable signals for read and write operations and one enable signal for read and write operations;
[0022] If the type is that the read and write operations are two enable signals, the signal waveform is intercepted for a time period, the effective time of the read operation and the effective time of the write operation of the storage unit are calculated, and the ratio of the effective time of the read and write operation, the effective time of the write operation and the intercepted time period is calculated to obtain the initial flip rate corresponding to the different types of storage units;
[0023] If the type is a read-write operation as an enable signal, the chip select signal of the storage module and the enable signal of the storage unit are calculated, and the difference between the low effective time of the chip select signal and the low effective time of the enable signal is calculated to calculate the initial flip rate corresponding to the different types of storage units; wherein the low effective time of the chip select signal includes the read operation time and the write operation time, and the low effective time of the enable signal includes the write operation time;
[0024] According to the combination structures respectively corresponding to the different types of storage units in the storage module, the number of single accesses to the different types of storage units is calculated based on the bit width and depth of the storage module, and the access frequency is calculated to obtain the access frequencies respectively corresponding to the different types of storage units;
[0025] Accordingly, the method of using the initial flip rate and the access frequency to determine the target flip rate and basic power consumption data corresponding to the different types of storage units includes:
[0026] Multiplying the initial flip rate and the access frequency to calculate target flip rates corresponding to the different types of storage units;
[0027] The basic power consumption data corresponding to the different types of storage units are generated based on the initial flip rate and the access frequency.
[0028] Optionally, before screening the corresponding target storage unit from the storage unit library according to the preset matching condition, the method further includes:
[0029] Using the storage module data model in the optimized power consumption model, defining the matching conditions of the process-voltage-temperature, ultra-low voltage threshold / low voltage threshold / standard voltage threshold, bit width, depth and process type of the storage unit;
[0030] Correspondingly, mapping the target basic power consumption data to the optimized power consumption model includes:
[0031] The target basic power consumption data is mapped to the storage module data model in the optimized power consumption model of the configured storage module.
[0032] Optionally, the selecting a corresponding target storage unit from the storage unit library according to a preset matching condition includes:
[0033] By using a preset screening tool and a cyclic search and matching method, the corresponding target storage cell is screened from the storage cell library according to the matching conditions of the process-voltage-temperature, ultra-low voltage threshold / low voltage threshold / standard voltage threshold, bit width, depth and process type of the storage cell.
[0034] In a second aspect, the present application discloses a chip storage module power consumption data mapping device, comprising:
[0035] A configuration module, configured to configure a storage module in the chip using a preset experience value to obtain the configured storage module and a corresponding initial power consumption model; the preset experience value is a predetermined experience value related to the power consumption of the storage module;
[0036] A performance simulation module, used to perform performance simulation on the configured storage module according to the current performance scenario requirements, so as to obtain a signal waveform corresponding to the access signal of the storage module;
[0037] An initial flip rate and access frequency determination module, used to determine the initial flip rates corresponding to the different types of storage units respectively based on the types of the storage units in the configured storage module and the signal waveform, and determine the access frequencies corresponding to the different types of storage units in the storage module respectively;
[0038] A model optimization module, used to determine the target flip rate and basic power consumption data corresponding to each of the different types of storage units by using the initial flip rate and the access frequency, and optimize the initial power consumption model based on the target flip rate to obtain an optimized power consumption model;
[0039] The power consumption data mapping module is used to screen the corresponding target storage unit from the storage unit library according to the preset matching conditions, and extract the target basic power consumption data corresponding to the type of the target storage unit from the basic power consumption data, and map the target basic power consumption data to the optimized power consumption model to complete the mapping between the power consumption data in the chip and the storage module.
[0040] In a third aspect, the present application discloses an electronic device, comprising:
[0041] Memory, used to store computer programs;
[0042] The processor is used to execute the computer program to implement the aforementioned chip storage module power consumption data mapping method.
[0043] In a fourth aspect, the present application discloses a computer storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the steps of the aforementioned chip storage module power consumption data mapping method disclosed above are implemented.
[0044] It can be seen that the present application uses preset experience values to configure the storage module in the chip to obtain the configured storage module and the corresponding initial power consumption model; the preset experience value is a predetermined experience value related to the power consumption of the storage module; the configured storage module is subjected to performance simulation according to the current performance scenario requirements to obtain the signal waveform corresponding to the access signal of the storage module; based on the type of each storage unit in the configured storage module and the signal waveform, the initial flip rate corresponding to the different types of storage units is determined, and the access frequency corresponding to the different types of storage units in the storage module is determined; the target flip rate and the basic power consumption data corresponding to the different types of storage units are determined by using the initial flip rate and the access frequency, and the initial power consumption model is optimized based on the target flip rate to obtain the optimized power consumption model; the corresponding target storage unit is screened from the storage unit library according to the preset matching condition, and the target basic power consumption data corresponding to the type of the target storage unit is extracted from the basic power consumption data, and the target basic power consumption data is mapped to the optimized power consumption model to complete the mapping between the power consumption data in the chip and the storage module.
[0045] Beneficial effect: The present application takes into account a variety of factors that affect the power consumption of storage modules and uses preset empirical values to configure storage modules, thereby improving the flexibility of storage module configuration and simplifying the configuration environment of power consumption models under different performance scenarios. The corresponding initial flip rate is calculated through the signal waveform and according to the type of storage unit, and the access frequency is calculated in combination with the access frequency corresponding to the storage unit of different types of storage units to calculate the target flip rate and basic power consumption data corresponding to the different types of storage units. The initial power consumption model is optimized using the target flip rate, which can reduce the gap between the calculated power consumption and the measured power consumption and improve the data accuracy of the power consumption model. Finally, the target basic power consumption data corresponding to the target storage unit is extracted and mapped to the optimized power consumption model to realize automatic mapping between the power consumption data in the chip and the storage module, reduce the redundant workload caused by manual data movement, and improve data accuracy, so that when the design version is updated, multiple versions of data can be quickly iterated, thereby improving iteration efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0047] Figure 1 A flow chart of a chip storage module power consumption data mapping method disclosed in this application;
[0048] Figure 2 A flow chart of storage module configuration disclosed in this application;
[0049] Figure 3 The automatic mapping flow chart of power consumption data disclosed in this application;
[0050] Figure 4 This is a flow chart of another chip storage module power consumption data mapping method disclosed in this application;
[0051] Figure 5 The target flip rate calculation flow chart disclosed in this application;
[0052] Figure 6 This is a structural diagram of the storage module disclosed in this application;
[0053] Figure 7 This is a schematic diagram of the structure of a chip storage module power consumption data mapping device disclosed in this application;
[0054] Figure 8 A structural diagram of an electronic device provided for this application. DETAILED DESCRIPTION
[0055] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0056] At present, there may be thousands of storage units stored on a large-scale chip. The calculation of the power consumption of the chip is very arduous. The calculation of dynamic power consumption will cause a large gap between the actual calculated dynamic power consumption of the storage unit and the actual measured power consumption. In addition, when calculating the power consumption data of the storage unit, the flip rate of the storage module is calculated based on the common practice for the storage unit in the storage module, which results in the power consumption calculation of many storage units that are not operated at the same time. It will also make the operation troublesome when the power consumption module needs to be configured in different scenarios, increase a lot of redundant workload, reduce data accuracy, and thus reduce the efficiency of the iteration of multiple versions of data. It can be seen that how to realize the automatic mapping of the power consumption data of the storage module in the chip, improve the data accuracy, and realize the rapid iteration of multiple versions of data is a problem that technicians in this field need to solve.
[0057] See also Figure 1 As shown, an embodiment of the present invention discloses a chip storage module power consumption data mapping method, which may specifically include:
[0058] Step S11: configuring the storage module in the chip using preset experience values to obtain the configured storage module and a corresponding initial power consumption model; the preset experience values are predetermined experience values related to the power consumption of the storage module.
[0059] In this embodiment, the storage module in the chip is respectively configured for data access, frequency and flip rate using predetermined data access configuration experience values, frequency configuration experience values and flip rate configuration experience values related to the power consumption of the storage module, so as to obtain the configured storage module and the corresponding initial power consumption model; wherein the data access configuration experience value is an experience value used to configure whether data access is performed.
[0060] Among them, the process of performing data access configuration, frequency configuration and flip rate configuration includes: using the data access configuration experience value, and performing data access configuration on the module-level and system-level storage modules inside the chip according to different performance scenarios; using the frequency configuration experience value and performing frequency configuration on the storage module according to the actual frequency under the performance scenario; using the flip rate configuration experience value to respectively configure the flip rates of different types of storage units in the storage module.
[0061] In the process of mapping the power consumption data of the chip storage module, the present application needs to configure the storage module: whether the storage module at the module level and system level inside the chip has data access configuration in different scenarios; frequency configuration for the storage unit in the storage module, which needs to be configured according to the actual frequency set in the performance scenario; and configuration of the flip rate for the same type of storage unit in the storage module, including read flip rate configuration and write flip rate configuration. This enables unified configuration of the storage module in different scenarios and taking into account a variety of power consumption influencing factors, thereby improving the flexibility of storage module configuration.
[0062] This application proposes a method for uniformly configuring storage modules using preset empirical values taking into account multiple power consumption factors. The specific process is as follows: Figure 2 As shown, firstly, the data access configuration experience value is used to configure the storage module for 1 / 0 data access (i.e., data access configuration), so as to configure whether the storage module has data access in different scenarios. This part reflects the power domain control in chip design; then the frequency configuration experience value is used to configure the frequency of the storage module. The frequency configuration will affect the dynamic power consumption of the storage unit. When the frequency configuration is 0, it means that the clock of the storage unit is shut down, which reflects the clock domain control. At this time, the dynamic power consumption is 0, and the static power consumption is the power consumption in the shut down mode; finally, the flip rate configuration experience value is used to configure the flip rate of the storage module. In addition, after comprehensively considering the influencing factors of 1 / 0 configuration, frequency configuration and flip rate configuration, the power consumption data of the storage module in different performance scenarios can also be calculated; the power consumption data includes the total power consumption, static power consumption and dynamic power consumption of the storage module.
[0063] Since different storage units have different working busyness in different scenarios, the different working busyness results in different power consumption of the storage units. Therefore, the configuration process of the storage module configuration is not very accurate and adds a lot of redundant workload. Therefore, the present application proposes a method for uniformly configuring the storage module using preset experience values taking into account multiple power consumption influencing factors, that is, using predetermined data access configuration experience values, frequency configuration experience values and flip rate configuration experience values related to the power consumption of the storage module, the storage module is configured with corresponding data access configuration, frequency configuration and flip rate configuration, so that the three factors affecting the power consumption of the storage module can be configured on the same interface, so as to generate power consumption data of the storage module with different chip configurations, thereby simplifying the configuration environment of the storage module.
[0064] Step S12: Performing performance simulation on the configured storage module according to the current performance scenario requirements to obtain a signal waveform corresponding to the access signal of the storage module.
[0065] Step S13: determining initial flip rates corresponding to different types of storage cells based on the types of storage cells in the configured storage module and the signal waveform, and determining access frequencies corresponding to different types of storage cells in the storage module.
[0066] Step S14: using the initial flip rate and the access frequency to determine the target flip rate and basic power consumption data corresponding to the different types of storage units, and optimizing the initial power consumption model based on the target flip rate to obtain an optimized power consumption model.
[0067] Among them, the target flip rate is determined according to the initial flip rate and the access frequency: the calculation of the initial flip rate mainly comes from the calculation of the signal waveform of the storage module of each subsystem under each performance scenario, so as to obtain the initial flip rate of the storage unit; for the calculation of the access frequency, it is necessary to calculate the access frequency of the same type according to the combination structure of the storage units of the same type in the storage module. This part of the calculation needs to take into account the bit width and depth of the storage module, so as to calculate the number of storage units accessed at one time, and thus calculate the access frequency.
[0068] Step S15: Filter the corresponding target storage unit from the storage unit library according to the preset matching conditions, and extract the target basic power consumption data corresponding to the type of the target storage unit from the basic power consumption data, and map the target basic power consumption data to the optimized power consumption model to complete the mapping between the power consumption data in the chip and the storage module.
[0069] In this embodiment, the storage module data model in the optimized power consumption model is used to define the matching conditions of the process-voltage-temperature, ultra-low voltage threshold / low voltage threshold / standard voltage threshold, bit width, depth and process type of the storage unit, and a preset screening tool is used and a loop search matching method is adopted to screen the corresponding target storage unit from the storage unit library according to the matching conditions of the process-voltage-temperature, ultra-low voltage threshold / low voltage threshold / standard voltage threshold, bit width, depth and process type of the storage unit, and extract the target basic power consumption data corresponding to the type of the target storage unit from the basic power consumption data, and map the target basic power consumption data to the storage module data model in the optimized power consumption model of the configured storage module to complete the mapping between the power consumption data in the chip and the storage module.
[0070] The process of selecting the target storage unit and mapping the final power consumption data is as follows: Figure 3As shown, first, the PVT (Process Voltage Temperature), ulvt (Ultra low voltage threshold, transistor cell library with ultra low voltage threshold) / lvt (low voltage threshold, transistor cell library with low voltage threshold) / svt (Standard voltage threshold, transistor cell library with standard voltage threshold), bit width, depth and process type matching conditions of the storage cell are defined in the storage module data model of the optimized power consumption model. The tool that can be developed by the optimized power consumption model can find the target storage cell that meets the matching conditions from the storage cell library according to the method of cyclic search and matching, so that the target basic power consumption data of the target storage cell that meets the matching conditions can be extracted, and the target basic power consumption data includes static power consumption and dynamic power consumption (read operation power consumption and write operation power consumption), which are filled into the storage module data model in the optimized power consumption model according to the column position specified in the storage module module, so as to complete the mapping between power consumption data and storage module.
[0071] In addition, the present application is aimed at the storage module of the chip, extracts the basic power consumption data including static power consumption and dynamic power consumption in the storage unit library, and automatically maps it to the storage module power consumption model. The present invention focuses on the use of preset experience values to uniformly configure the storage module power consumption when mapping the power consumption data, so as to achieve flexible control of the configuration, and at the same time, calculates the target flip rate by simulating the signal waveform of the storage module under different performance scenarios, and the access frequency of the same type of storage unit of the storage module, and finally realizes the mapping of the target basic power consumption data corresponding to the target storage unit in the storage unit library that meets the matching conditions to the storage module, thereby greatly reducing the redundant workload caused by manual data movement, and reducing the data errors generated in the data movement, and can achieve rapid iteration of multiple versions of data, so as to support the power consumption data support of the project.
[0072] It can be seen that the present application uses preset experience values to configure the storage module in the chip to obtain the configured storage module and the corresponding initial power consumption model; the preset experience value is a predetermined experience value related to the power consumption of the storage module; the configured storage module is subjected to performance simulation according to the current performance scenario requirements to obtain the signal waveform corresponding to the access signal of the storage module; based on the type of each storage unit in the configured storage module and the signal waveform, the initial flip rate corresponding to the different types of storage units is determined, and the access frequency corresponding to the different types of storage units in the storage module is determined; the target flip rate and the basic power consumption data corresponding to the different types of storage units are determined by using the initial flip rate and the access frequency, and the initial power consumption model is optimized based on the target flip rate to obtain the optimized power consumption model; the corresponding target storage unit is screened from the storage unit library according to the preset matching condition, and the target basic power consumption data corresponding to the type of the target storage unit is extracted from the basic power consumption data, and the target basic power consumption data is mapped to the optimized power consumption model to complete the mapping between the power consumption data in the chip and the storage module. Beneficial effect: The present application takes into account a variety of factors that affect the power consumption of storage modules and uses preset empirical values to configure storage modules, thereby improving the flexibility of storage module configuration and simplifying the configuration environment of power consumption models under different performance scenarios. The corresponding initial flip rate is calculated through the signal waveform and according to the type of storage unit, and the access frequency is calculated in combination with the access frequency corresponding to the storage unit of different types of storage units to calculate the target flip rate and basic power consumption data corresponding to the different types of storage units. The initial power consumption model is optimized using the target flip rate, which can reduce the gap between the calculated power consumption and the measured power consumption and improve the data accuracy of the power consumption model. Finally, the target basic power consumption data corresponding to the target storage unit is extracted and mapped to the optimized power consumption model to realize automatic mapping between the power consumption data in the chip and the storage module, reduce the redundant workload caused by manual data movement, and improve data accuracy, so that when the design version is updated, multiple versions of data can be quickly iterated, thereby improving iteration efficiency.
[0073] See also Figure 4 As shown, an embodiment of the present invention discloses a chip storage module power consumption data mapping method, which may specifically include:
[0074] Step S21: configuring the storage module in the chip using preset experience values to obtain the configured storage module and a corresponding initial power consumption model; the preset experience values are predetermined experience values related to the power consumption of the storage module.
[0075] Step S22: Filter the current performance scenario from different performance scenarios and determine the current performance scenario requirements; perform performance simulation on the register transfer level code in the configured storage module according to the current performance scenario requirements to obtain a signal waveform corresponding to the access signal of the storage module.
[0076] In this embodiment, after the current performance scenario is screened out, the current performance scenario requirements are determined, and the RTL (Register Transfer Level) code of the chip's storage module is performance simulated according to the current performance scenario requirements, so that data can be accessed from the storage module. The specific actual access situation will vary depending on the performance scenario. The performance scenario usually selected is the busiest scenario of the chip, that is, all modules and subsystems are busy working.
[0077] Step S23: Determine the type of each storage unit in the configured storage module; the type includes two enable signals for read and write operations and one enable signal for read and write operations.
[0078] Step S24: If the type is that the read and write operations are two enable signals, then the signal waveform is intercepted for a time period, the effective time of the read operation and the effective time of the write operation of the storage unit are calculated, and the ratio of the effective time of the read and write operations, the effective time of the write operation and the intercepted time period is calculated to obtain the initial flip rate corresponding to the different types of storage units; if the type is that the read and write operations are one enable signal, then the chip select signal of the storage module and the enable signal of the storage unit are calculated, and the difference between the low effective time of the chip select signal and the low effective time of the enable signal is calculated to calculate the initial flip rate corresponding to the different types of storage units; wherein the low effective time of the chip select signal includes the read operation time and the write operation time, and the low effective time of the enable signal includes the write operation time.
[0079] Step S25: According to the combination structures corresponding to the different types of storage units in the storage module, the number of single accesses to the different types of storage units is calculated based on the bit width and depth of the storage module, and the access frequency is calculated to obtain the access frequencies corresponding to the different types of storage units.
[0080] Step S26: multiplying the initial flip rate and the access frequency to calculate the target flip rates corresponding to the different types of storage units, and generating basic power consumption data corresponding to the different types of storage units based on the initial flip rate and the access frequency.
[0081] In this embodiment, the process of calculating the target flip rate based on the initial flip rate and the access frequency is as follows: Figure 5As shown. First is the calculation process of the initial flip rate: after obtaining the signal waveform, the corresponding initial flip rate calculation will be performed for each type of storage unit. Usually, the same time period will be intercepted for the same subsystem for calculation, and the types of storage units are different: one is that the storage unit has two enable signals for read operation and write operation. This type can directly calculate the effective time of the read operation and the effective time of the write operation, and perform a ratio operation on the effective time of the read operation and the effective time of the write operation with the intercepted time period, so as to calculate the initial flip rate corresponding to different types of storage units; the other is that the storage unit has an enable signal for read and write operations. When performing read and write operations, it is necessary to cooperate with the chip select signal. For storage units that share an enable signal for read and write operations, when the chip select signal is low, the enable signal is low for write operation, and the enable signal is high for read operation. Therefore, the low effective time of the chip select signal includes the read operation time and the write operation time, and the low effective time of the enable signal includes the write operation time. Then the read operation time is the low effective time of the chip select signal minus the low effective time of the enable signal. The calculation process of access frequency is as follows: according to the combination structure corresponding to different types of storage units in the storage module, the access calculation is performed based on the bit width and depth of the storage module. The structure of the storage module is as follows: Figure 6 As shown in the figure, the horizontal direction represents the bit width of the storage unit of the storage module at one time. If the bit width of a single storage unit is smaller than the bit width of the actual storage module access, N storage units need to be spliced to meet the storage bit width of the access. The vertical direction represents that in order to meet the actual storage module capacity requirements, M rows of capacity expansion are performed while meeting the storage module bit width requirements. In this way, the storage module capacity requirements are met. When accessing the storage module, only one storage module bit width can be accessed each time, that is, in M In a storage matrix of N, only N storage cells can be accessed at a time. In other words, each operation can only operate N storage cells, and the other storage cells are idle. Then the access frequency of the same type of storage cells in a storage module at the same time is 1 / M, which is the access frequency of the same type of storage module. Finally, multiply the initial flip rate and the access frequency to calculate the target flip rate corresponding to different types of storage cells in the current performance scenario.
[0082] Step S27: Filter the corresponding target storage unit from the storage unit library according to the preset matching conditions, and extract the target basic power consumption data corresponding to the type of the target storage unit from the basic power consumption data, and map the target basic power consumption data to the optimized power consumption model to complete the mapping between the power consumption data in the chip and the storage module.
[0083] The present invention considers a variety of factors that affect the power consumption of the storage module to uniformly configure the storage module, simplifies the configuration environment of the power consumption model, and can quickly implement data updates for different chip configurations and different board forms in the project, with fast version iteration and accurate data calculation. By calculating the flip rate, the gap between the calculated power consumption and the measured power consumption can be reduced, better feedback can be provided on the design of the chip in the power domain and the clock domain, and the evaluation of the heat dissipation and power supply capabilities of the chip in the board-level design can be supported, thereby improving the feasibility of the board design and reducing the risk of the board design. The automated mapping between the power consumption data in the chip and the storage module can reduce the mis-filling caused by manual data movement, improve data accuracy, and quickly obtain the power consumption data of the storage module when the design version is updated, thereby improving iteration efficiency.
[0084] It can be seen that the present application uses preset experience values to configure the storage module in the chip to obtain the configured storage module and the corresponding initial power consumption model; the preset experience value is a predetermined experience value related to the power consumption of the storage module; the configured storage module is subjected to performance simulation according to the current performance scenario requirements to obtain the signal waveform corresponding to the access signal of the storage module; based on the type of each storage unit in the configured storage module and the signal waveform, the initial flip rate corresponding to the different types of storage units is determined, and the access frequency corresponding to the different types of storage units in the storage module is determined; the target flip rate and the basic power consumption data corresponding to the different types of storage units are determined by using the initial flip rate and the access frequency, and the initial power consumption model is optimized based on the target flip rate to obtain the optimized power consumption model; the corresponding target storage unit is screened from the storage unit library according to the preset matching condition, and the target basic power consumption data corresponding to the type of the target storage unit is extracted from the basic power consumption data, and the target basic power consumption data is mapped to the optimized power consumption model to complete the mapping between the power consumption data in the chip and the storage module. Beneficial effect: The present application takes into account a variety of factors that affect the power consumption of storage modules and uses preset empirical values to configure storage modules, thereby improving the flexibility of storage module configuration and simplifying the configuration environment of power consumption models under different performance scenarios. The corresponding initial flip rate is calculated through the signal waveform and according to the type of storage unit, and the access frequency is calculated in combination with the access frequency corresponding to the storage unit of different types of storage units to calculate the target flip rate and basic power consumption data corresponding to the different types of storage units. The initial power consumption model is optimized using the target flip rate, which can reduce the gap between the calculated power consumption and the measured power consumption and improve the data accuracy of the power consumption model. Finally, the target basic power consumption data corresponding to the target storage unit is extracted and mapped to the optimized power consumption model to realize automatic mapping between the power consumption data in the chip and the storage module, reduce the redundant workload caused by manual data movement, and improve data accuracy, so that when the design version is updated, multiple versions of data can be quickly iterated, thereby improving iteration efficiency.
[0085] See also Figure 7 As shown, an embodiment of the present invention discloses a chip storage module power consumption data mapping device, which may specifically include:
[0086] A configuration module 11, configured to configure a storage module in a chip using a preset experience value to obtain the configured storage module and a corresponding initial power consumption model; the preset experience value is a predetermined experience value related to the power consumption of the storage module;
[0087] The performance simulation module 12 is used to perform performance simulation on the configured storage module according to the current performance scenario requirements to obtain a signal waveform corresponding to the access signal of the storage module;
[0088] An initial flip rate and access frequency determination module 13, used to determine the initial flip rates corresponding to the different types of storage units respectively based on the types of the storage units in the configured storage module and the signal waveform, and determine the access frequencies corresponding to the different types of storage units in the storage module respectively;
[0089] A model optimization module 14 is used to determine the target flip rate and basic power consumption data corresponding to each of the different types of storage units by using the initial flip rate and the access frequency, and optimize the initial power consumption model based on the target flip rate to obtain an optimized power consumption model;
[0090] The power consumption data mapping module 15 is used to screen the corresponding target storage unit from the storage unit library according to preset matching conditions, and extract the target basic power consumption data corresponding to the type of the target storage unit from the basic power consumption data, and map the target basic power consumption data to the optimized power consumption model to complete the mapping between the power consumption data in the chip and the storage module.
[0091] It can be seen that the present application uses preset experience values to configure the storage module in the chip to obtain the configured storage module and the corresponding initial power consumption model; the preset experience value is a predetermined experience value related to the power consumption of the storage module; the configured storage module is subjected to performance simulation according to the current performance scenario requirements to obtain the signal waveform corresponding to the access signal of the storage module; based on the type of each storage unit in the configured storage module and the signal waveform, the initial flip rate corresponding to the different types of storage units is determined, and the access frequency corresponding to the different types of storage units in the storage module is determined; the target flip rate and the basic power consumption data corresponding to the different types of storage units are determined by using the initial flip rate and the access frequency, and the initial power consumption model is optimized based on the target flip rate to obtain the optimized power consumption model; the corresponding target storage unit is screened from the storage unit library according to the preset matching condition, and the target basic power consumption data corresponding to the type of the target storage unit is extracted from the basic power consumption data, and the target basic power consumption data is mapped to the optimized power consumption model to complete the mapping between the power consumption data in the chip and the storage module. Beneficial effect: The present application takes into account a variety of factors that affect the power consumption of storage modules and uses preset empirical values to configure storage modules, thereby improving the flexibility of storage module configuration and simplifying the configuration environment of power consumption models under different performance scenarios. The corresponding initial flip rate is calculated through the signal waveform and according to the type of storage unit, and the access frequency is calculated in combination with the access frequency corresponding to the storage unit of different types of storage units to calculate the target flip rate and basic power consumption data corresponding to the different types of storage units. The initial power consumption model is optimized using the target flip rate, which can reduce the gap between the calculated power consumption and the measured power consumption and improve the data accuracy of the power consumption model. Finally, the target basic power consumption data corresponding to the target storage unit is extracted and mapped to the optimized power consumption model to realize automatic mapping between the power consumption data in the chip and the storage module, reduce the redundant workload caused by manual data movement, and improve data accuracy, so that when the design version is updated, multiple versions of data can be quickly iterated, thereby improving iteration efficiency.
[0092] In some specific embodiments, the configuration module 11 may specifically include:
[0093] A storage module configuration module is used to use predetermined data access configuration experience values, frequency configuration experience values and flip rate configuration experience values related to the power consumption of the storage module to perform data access configuration, frequency configuration and flip rate configuration on the storage module in the chip, so as to obtain the configured storage module and the corresponding initial power consumption model; wherein the data access configuration experience value is an experience value used to configure whether data access is performed.
[0094] In some specific embodiments, the configuration module 11 may specifically include:
[0095] A data access configuration module, used to utilize the data access configuration experience value and perform data access configuration on the storage modules at the module level and the system level inside the chip according to different performance scenarios;
[0096] A frequency configuration module, used to configure the frequency of the storage module according to the actual frequency in the performance scenario by using the frequency configuration experience value;
[0097] The flip rate configuration module is used to configure the flip rates of different types of storage units in the storage module respectively by using the flip rate configuration experience value.
[0098] In some specific embodiments, the performance simulation module 12 may specifically include:
[0099] A current performance scenario determination module is used to select a current performance scenario from different performance scenarios and determine the current performance scenario requirements;
[0100] The performance simulation module is used to perform performance simulation on the register transfer level code in the configured storage module according to the current performance scenario requirements to obtain a signal waveform corresponding to the access signal of the storage module.
[0101] In some specific embodiments, the initial flip rate and access frequency determination module 13 may specifically include:
[0102] A type determination module, used to determine the type of each storage unit in the configured storage module; the type includes two enable signals for read and write operations and one enable signal for read and write operations;
[0103] A first initial flip rate calculation module is used for, if the type is that the read and write operations are two enable signals, to intercept the signal waveform for a time period, calculate the effective time of the read operation and the effective time of the write operation of the storage unit, and perform ratio calculation on the effective time of the read and write operations, the effective time of the write operation and the intercepted time period, so as to obtain the initial flip rates corresponding to the storage units of different types;
[0104] A second initial flip rate calculation module is used to calculate the chip select signal of the storage module and the enable signal of the storage unit if the type is a read-write operation as an enable signal, and calculate the difference between the low effective time of the chip select signal and the low effective time of the enable signal, so as to calculate the initial flip rates corresponding to the storage units of different types; wherein the low effective time of the chip select signal includes the read operation time and the write operation time, and the low effective time of the enable signal includes the write operation time;
[0105] An access frequency calculation module, used to calculate the number of single accesses to the storage units of different types according to the combination structures respectively corresponding to the storage units of different types in the storage module based on the bit width and depth of the storage module, and perform access frequency calculation to obtain the access frequencies respectively corresponding to the storage units of different types;
[0106] In some specific embodiments, the model optimization module 14 may specifically include:
[0107] A target flip rate calculation module, used for multiplying the initial flip rate and the access frequency to calculate the target flip rates corresponding to the different types of storage units;
[0108] The basic power consumption data generating module is used to generate basic power consumption data corresponding to different types of storage units based on the initial flip rate and the access frequency.
[0109] In some specific embodiments, the power consumption data mapping module 15 may specifically include:
[0110] A matching condition definition module, used to define the matching conditions of the process-voltage-temperature, ultra-low voltage threshold / low voltage threshold / standard voltage threshold, bit width, depth and process type of the storage unit by using the storage module data model in the optimized power consumption model;
[0111] In some specific embodiments, the power consumption data mapping module 15 may specifically include:
[0112] The target basic power consumption data mapping module is used to map the target basic power consumption data to the storage module data model in the optimized power consumption model of the configured storage module.
[0113] In some specific embodiments, the power consumption data mapping module 15 may specifically include:
[0114] The target storage unit screening module is used to use a preset screening tool and a cyclic search and matching method to screen the corresponding target storage unit from the storage unit library according to the matching conditions of the process-voltage-temperature, ultra-low voltage threshold / low voltage threshold / standard voltage threshold, bit width, depth and process type of the storage unit.
[0115] Figure 8A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the chip storage module power consumption data mapping method performed by the electronic device disclosed in any of the aforementioned embodiments.
[0116] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0117] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon include an operating system 221, a computer program 222 and data 223, etc. The storage method can be temporary storage or permanent storage.
[0118] Among them, the operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20 to realize the operation and processing of the data 223 in the memory 22 by the processor 21, which can be Windows, Unix, Linux, etc. In addition to including a computer program that can be used to complete the chip storage module power consumption data mapping method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks. In addition to including data transmitted from an external device received by the chip storage module power consumption data mapping device, the data 223 can also include data collected by its own input and output interface 25, etc.
[0119] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0120] Furthermore, an embodiment of the present application also discloses a computer-readable storage medium, in which a computer program is stored. When the computer program is loaded and executed by a processor, the steps of the chip storage module power consumption data mapping method disclosed in any of the aforementioned embodiments are implemented.
[0121] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0122] The above is a detailed introduction to a chip storage module power consumption data mapping method, device, equipment and storage medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A chip storage module power consumption data mapping method, characterized in that: include: Using preset experience values to configure the storage module in the chip to obtain the configured storage module and the corresponding initial power consumption model; The preset empirical value is a predetermined empirical value related to the power consumption of the storage module; Performing performance simulation on the configured storage module according to the current performance scenario requirements to obtain a signal waveform corresponding to the access signal of the storage module; Determine the initial flip rates corresponding to the different types of storage cells based on the types of the storage cells in the configured storage module and the signal waveform, and determine the access frequencies corresponding to the different types of storage cells in the storage module; Determine the target flip rate and basic power consumption data corresponding to each of the different types of storage units by using the initial flip rate and the access frequency, and optimize the initial power consumption model based on the target flip rate to obtain an optimized power consumption model; The corresponding target storage unit is screened from the storage unit library according to the preset matching conditions, and the target basic power consumption data corresponding to the type of the target storage unit is extracted from the basic power consumption data, and the target basic power consumption data is mapped to the optimized power consumption model to complete the mapping between the power consumption data in the chip and the storage module.
2. The chip storage module power consumption data mapping method according to claim 1, characterized in that: The step of configuring the storage module in the chip by using the preset experience value to obtain the configured storage module and the corresponding initial power consumption model includes: The storage module in the chip is respectively configured for data access, frequency and flip rate using predetermined data access configuration experience values, frequency configuration experience values and flip rate configuration experience values related to the power consumption of the storage module, so as to obtain the configured storage module and the corresponding initial power consumption model; wherein the data access configuration experience value is an experience value used to configure whether data access is performed.
3. The chip storage module power consumption data mapping method according to claim 2, characterized in that: The method of using the predetermined data access configuration experience value, frequency configuration experience value and flip rate configuration experience value related to the power consumption of the storage module to respectively perform data access configuration, frequency configuration and flip rate configuration on the storage module in the chip includes: Using the data access configuration experience value, and performing data access configuration on the memory modules at the module level and the system level inside the chip according to different performance scenarios; Performing frequency configuration on the storage module according to the actual frequency in the performance scenario using the frequency configuration experience value; The flip rate configuration empirical value is used to configure the flip rates of different types of storage units in the storage module respectively.
4. The chip storage module power consumption data mapping method according to claim 1, characterized in that: The performing performance simulation on the configured storage module according to the current performance scenario requirement to obtain a signal waveform corresponding to the access signal of the storage module includes: Filter the current performance scenario from different performance scenarios and determine the current performance scenario requirements; The performance of the register transfer level code in the configured storage module is simulated according to the current performance scenario requirement to obtain a signal waveform corresponding to the access signal of the storage module.
5. The chip storage module power consumption data mapping method according to claim 1, characterized in that: The method of determining the initial flip rates corresponding to the storage units of different types based on the types of the storage units in the configured storage module and the signal waveform, and determining the access frequencies corresponding to the storage units of different types in the storage module, comprises: Determine the type of each storage unit in the configured storage module; the type includes two enable signals for read and write operations and one enable signal for read and write operations; If the type is that the read and write operations are two enable signals, the signal waveform is intercepted for a time period, the effective time of the read operation and the effective time of the write operation of the storage unit are calculated, and the ratio of the effective time of the read and write operation, the effective time of the write operation and the intercepted time period is calculated to obtain the initial flip rate corresponding to the different types of storage units; If the type is a read-write operation as an enable signal, the chip select signal of the storage module and the enable signal of the storage unit are calculated, and the difference between the low effective time of the chip select signal and the low effective time of the enable signal is calculated to calculate the initial flip rate corresponding to the different types of storage units; wherein the low effective time of the chip select signal includes the read operation time and the write operation time, and the low effective time of the enable signal includes the write operation time; According to the combination structures respectively corresponding to the different types of storage units in the storage module, the number of single accesses to the different types of storage units is calculated based on the bit width and depth of the storage module, and the access frequency is calculated to obtain the access frequencies respectively corresponding to the different types of storage units; Accordingly, the method of using the initial flip rate and the access frequency to determine the target flip rate and basic power consumption data corresponding to the different types of storage units includes: Multiplying the initial flip rate and the access frequency to calculate target flip rates corresponding to the different types of storage units; The basic power consumption data corresponding to the different types of storage units are generated based on the initial flip rate and the access frequency.
6. The chip storage module power consumption data mapping method according to any one of claims 1 to 5, characterized in that: Before the corresponding target storage unit is selected from the storage unit library according to the preset matching condition, the method further includes: Using the storage module data model in the optimized power consumption model, defining the matching conditions of the process-voltage-temperature, ultra-low voltage threshold / low voltage threshold / standard voltage threshold, bit width, depth and process type of the storage unit; Correspondingly, mapping the target basic power consumption data to the optimized power consumption model includes: The target basic power consumption data is mapped to the storage module data model in the optimized power consumption model of the configured storage module.
7. The chip storage module power consumption data mapping method according to claim 6, characterized in that: The step of selecting a corresponding target storage unit from a storage unit library according to a preset matching condition includes: By using a preset screening tool and a cyclic search and matching method, the corresponding target storage cell is screened from the storage cell library according to the matching conditions of the process-voltage-temperature, ultra-low voltage threshold / low voltage threshold / standard voltage threshold, bit width, depth and process type of the storage cell.
8. A chip storage module power consumption data mapping device, characterized in that: include: A configuration module, used to configure the storage module in the chip using preset experience values to obtain the configured storage module and a corresponding initial power consumption model; The preset empirical value is a predetermined empirical value related to the power consumption of the storage module; A performance simulation module, used to perform performance simulation on the configured storage module according to the current performance scenario requirements, so as to obtain a signal waveform corresponding to the access signal of the storage module; An initial flip rate and access frequency determination module, used to determine the initial flip rates corresponding to the different types of storage units respectively based on the types of the storage units in the configured storage module and the signal waveform, and determine the access frequencies corresponding to the different types of storage units in the storage module respectively; A model optimization module, used to determine the target flip rate and basic power consumption data corresponding to each of the different types of storage units by using the initial flip rate and the access frequency, and optimize the initial power consumption model based on the target flip rate to obtain an optimized power consumption model; The power consumption data mapping module is used to screen the corresponding target storage unit from the storage unit library according to the preset matching conditions, and extract the target basic power consumption data corresponding to the type of the target storage unit from the basic power consumption data, and map the target basic power consumption data to the optimized power consumption model to complete the mapping between the power consumption data in the chip and the storage module.
9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor is used to execute the computer program to implement the steps of the chip storage module power consumption data mapping method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein, when the computer program is executed by a processor, the steps of the chip storage module power consumption data mapping method as described in any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Chip performance automatic analysis method, electronic equipment and medium
CN121166470A
Chip performance automatic analysis method, electronic device, and medium
CN121166470B
