State-based power consumption evaluation device and data fitting method thereof

CN118586334APending Publication Date: 2024-09-03NAT UNIV OF DEFENSE TECH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410803492.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

The existing technology fails to effectively consider physical design information such as device temperature and parasitic capacitance in power consumption evaluation, resulting in insufficient power consumption evaluation accuracy. Moreover, the clock tree-based method relies too much on weight factors and correction factors, and lacks versatility and accuracy.

Method used

Design a state-based power consumption evaluation device. Through the flip rate information statistics module and the weight register array, the flip rate of each device unit can be counted in real time, and through the fitting of the tree structure and weight factors, the relationship between parasitic capacitance and temperature can be accurately expressed. The impact of power consumption improves the flexibility and accuracy of power consumption assessment.

Benefits of technology

It achieves accurate evaluation of the real-time power consumption status of the chip, improves the accuracy and flexibility of power consumption evaluation, and can be integrated in the design code and perform data fitting on the silicon chip, enhancing the reliability of the evaluation results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118586334A
    Figure CN118586334A
Patent Text Reader

Abstract

The invention discloses a state-based power consumption evaluation device and a data fitting method thereof.The power consumption evaluation device comprises a turnover rate information statistics module, a turnover information uplink summary interface and a power consumption total module which are connected in sequence, and the turnover rate information statistics module comprises a plurality of turnover rate information statistics child nodes; each flipping rate information statistics child node comprises a plurality of flipping rate information statistics leaf nodes which are used for performing real-time statistics on flipping rates of all gated clocks on each device unit in target chip design; and the turnover rate information statistics module forms a tree topology so as to summarize and sum the turnover rates of the mobile phones step by step, or summarize and sum the turnover rates of the mobile phones after multiplying the turnover rates by a given weight factor. The invention aims to obtain the real-time power consumption state of the chip based on the flipping rate of the device unit and further realize power consumption evaluation based on weight factor step-by-step summation fitting so as to accurately express the influence of parasitic capacitance, working temperature and the like on power consumption, and the flexibility and precision of power consumption evaluation are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of integrated circuit design, and in particular to a state-based power consumption evaluation device and a data fitting method thereof. Background Art

[0002] Chips are important physical carriers of informatization, and the development of chips greatly affects the level of informatization construction. Power consumption, together with performance and area (PPA: Performance Power and Area), are the three main evaluation indicators for measuring the design of integrated circuits, especially mobile phone chips, Internet of Things chips, embedded chips, etc. Power consumption evaluation provides important data support for low-power design, physical design, power network design, packaging selection, etc. The importance of efficient and accurate power consumption evaluation to integrated circuit design is self-evident.

[0003] Power consumption evaluation is a problem that was born with the emergence of integrated circuits. From the earliest device power consumption calculation and power consumption parameter extraction in full-custom design, to later power consumption modeling based on various performance parameters in the architecture model, power consumption modeling based on various information collected by dynamic simulation, and power consumption calculation based on signal flip / waveform data. According to the source of power consumption data, it can be roughly divided into power consumption evaluation based on power consumption model and power consumption evaluation based on waveform data.

[0004] With the advancement of integrated circuit design related technologies, the development of non-full-custom design based on standard cell libraries, and the advancement of EDA tools, waveform-based power consumption evaluation has made great improvements in both technical maturity and evaluation speed, and has become the main power consumption evaluation method before chip tape-out.

[0005] The accuracy of this process evaluation is heavily dependent on the selection of the peak power consumption scenario. There are two mainstream approaches in the industry to determine the peak power consumption scenario. One is to extract the kernel function segments that can reflect the peak power consumption in the typical benchmark, or use standard logic test programs such as dhrystone, or handwritten bare metal test programs, etc., to capture the full-cycle waveform of the simulation, and obtain the waveform segment with the largest flip rate by manual or script processing. This method depends on the scientificity and efficiency of the test stimulus, and requires a clear understanding of the test scenarios of the chip operation and the operation of the target design under each test scenario, which places extremely high demands on designers. In order to obtain an application scenario as close to reality as possible, another important approach is to use a hardware simulation acceleration platform or prototype system. During the simulation of various test scenarios, the hardware resources in the acceleration platform or prototype system calculate the flip rate information of the target design at each moment in real time, and then capture the corresponding waveform data according to different requirements such as peak power consumption, typical power consumption, and average power consumption, and calculate the specific power consumption value through dedicated power consumption calculation software such as PowerArtist and Joules.

[0006] At present, mainstream EDA tools all have their own power consumption evaluation process. However, there are also some problems. At present, mainstream EDA tools are based on the flip rate of typical devices such as single-cycle registers as the condition for identifying peak power consumption scenarios. According to the power consumption information of each device in the library file, a weight is provided for the flip rate of each device. Due to the constraints of factors such as working mechanism and resource overhead, some physical design information that has a greater impact on power consumption, such as device temperature and parasitic capacitance, is not taken into account in its power consumption evaluation process. However, such information has an impact on the power consumption value that cannot be ignored. At present, mainstream EDA tools do not provide a fitting and correction mechanism for such information, which affects the accuracy of power consumption evaluation to a certain extent.

[0007] In order to improve the accuracy of power consumption assessment, the existing technology adopts a power consumption assessment method based on the clock tree. The basic idea is that the clock flip frequency largely reflects the power consumption value of the clock tree and device flip. By setting a weight factor and a correction factor for each clock on the clock tree as its power consumption contribution value, the power consumption contribution values ​​of all clocks are summed up to get the power consumption of the whole chip. Then, according to the test results and other process evaluation results, data fitting is performed to fit the values ​​of the weight factor and correction factor of each clock. However, although this method can be used to provide a method for benchmarking post-silicon measured results with pre-silicon evaluation results, it also has some problems (some problems may be the result of trade-offs in various aspects). For example, this method only considers the contribution of the clock tree to power consumption. In fact, the power consumption ratio of combinational logic, sequential logic, and memory cannot be ignored. For example, the power consumption of the clock tree is related to the number of buffers / inverters inserted on the clock tree, the length of the clock tree, the size of parasitic capacitance, etc., but this method does not involve these factors. Instead, it generally covers them through weight factors and correction factors, which increases the difficulty of subsequent data fitting and the accuracy of the evaluation results. In fact, this method has only achieved acceptable accuracy after several generations of chip products, and it is too dependent on skills and is not very versatile. Therefore, how to comprehensively utilize the collected design status information and the subsequent data fitting mechanism is an effective means to improve the efficiency and accuracy of power consumption evaluation, which needs further research and exploration. Summary of the invention

[0008] Technical problem to be solved by the present invention: In view of the above-mentioned problems in the prior art, a state-based power consumption assessment device and a data fitting method thereof are provided. The present invention aims to obtain the real-time power consumption state of the chip based on the flip rate of the device unit and then realize power consumption assessment based on the step-by-step summation and fitting of weight factors to accurately express the influence of parasitic capacitance, operating temperature, etc. on power consumption, thereby improving the flexibility and accuracy of power consumption assessment.

[0009] In order to solve the above technical problems, the technical solution adopted by the present invention is: A state-based power consumption evaluation device comprises: a flip rate information statistics module, comprising a plurality of flip rate information statistics sub-nodes, each of which comprises a plurality of flip rate information statistics leaf nodes; the flip rate information statistics leaf nodes are used to perform real-time statistics on the flip rates of all gated clocks on each device unit in a target chip design, the flip rate information statistics sub-nodes are used to summarize and sum the flip rates collected by subordinate flip rate information statistics leaf nodes or next-level flip rate information statistics sub-nodes, or to summarize and sum them after multiplying with a given weight factor; a flip information uplink summary interface is used to transmit the flip rate information summarized and summed by the flip rate information statistics module to a power consumption total module; the power consumption total module is used to complete The flip rate output by each flip rate information statistics module and the multiplication result of the flip rate are accumulated; the power consumption export interface is used to output the accumulated result as the real-time dynamic power consumption; the register module includes a weight register array for independently storing the weight factors corresponding to each device unit; the weight factor downstream interface is used to send the weight factors recorded in the weight register array to the flip rate information statistics module; the flip rate information statistics module and its flip rate information statistics sub-nodes and flip rate information statistics leaf nodes form a tree structure, the flip rate information statistics module, the flip information upstream summary interface, the power consumption total module and the power consumption export interface are connected in sequence, and the register module is connected to the flip rate information statistics module through the weight factor downstream interface.

[0010] Optionally, it also includes a configuration controller and a configuration interface, wherein the configuration controller is connected to the register module to implement writing or reading of weight factors in the weight register array, and the configuration interface is connected to the configuration controller to expose a data interface for the configuration controller.

[0011] Optionally, the device unit includes a register, an SRAM and a clock tree.

[0012] Optionally, it also includes a bridge module and a bridge interface, wherein the bridge module is used to integrate the flip rate information statistics module into the target chip design by means of module instantiation or binding; the bridge interface is used to connect the device units in the target chip design with each flip rate information statistics module by means of hierarchical probes or scripts to modify the netlist file.

[0013] Optionally, the register module also includes a temperature register array for recording temperature detection values ​​of multiple temperature sensors distributed throughout the target chip design, and the temperature register array is connected to the flip rate information statistics module so that the flip rate information statistics module can configure or select the power consumption factor according to the temperature.

[0014] In addition, the present invention also provides a data fitting method for the aforementioned state-based power consumption evaluation device, comprising: S101, respectively setting weight factors of various device units in the target chip design; S102, writing the weight factor corresponding to each device unit into the weight register array in the register module through the configuration interface and the configuration controller; S103, distributing the flip rate information statistics modules, the flip rate information statistics sub-nodes and the flip rate information statistics leaf nodes, so that the flip rate information statistics modules, the flip rate information statistics sub-nodes and the flip rate information statistics leaf nodes form a tree topology structure; S104, connecting the flip rate information statistical leaf nodes to the respective device units in the target chip design; S105, start the test so that the target chip design runs under the drive of the test stimulus, collect the flip rate information of each device unit in the target chip design through the flip rate information statistics leaf node, and summarize and sum it through the flip rate information statistics module, or summarize and sum it after multiplying it with a given weight factor and send it to the power consumption total module, select the power consumption factor according to the temperature through the power consumption total module, complete the multiplication result of the flip rate output by each flip rate information statistics module and the flip rate to obtain the total power consumption, and export the total power consumption through the power consumption export interface; S106, smoothing the total power consumption and locating the peak power consumption to obtain the target power consumption, calculating the power consumption error between the target power consumption and the measured power consumption or the reference power consumption when the target chip design is started, if the power consumption error meets the requirement, jump to step S107; otherwise, jump to step S101 to readjust the power consumption factor of each device unit.

[0015] S107, determine that the power consumption factor fitting of each device unit is completed, end and exit.

[0016] Optionally, when the weight factors of each device unit in the target chip design are set separately in step S101, the weight factors of each device unit are composed of the sum of a power consumption weight factor, a quantity weight factor and a fitting weight factor. The power consumption weight factor is used to represent the contribution of the power consumption of the device unit to the weight factor, the quantity weight factor is used to represent the contribution of the number of device units to the weight factor, and the fitting weight factor is used to fit the influence of parasitic capacitance and package capacitance on power consumption.

[0017] Optionally, before step S101, it also includes: obtaining a process library file and a design netlist file of the target chip design, extracting power consumption information of each device unit in the target chip design from the process library file of the target chip design to provide a reference for configuring the power consumption weight factor of each device unit; extracting logic unit information of each device unit in the target chip design from the design netlist file of the target chip design to provide a reference for configuring the quantity weight factor of each device unit.

[0018] Optionally, the power consumption weight factor is composed of a group of power consumption weight factors at different temperatures. When the test is started in step S105 so that the target chip design runs under the drive of the test stimulus, the system management software also includes periodically reading the temperature detection values ​​of temperature sensors scattered throughout the target chip design, and configuring the temperature register array in the register module through the configuration interface and the configuration controller; the flip rate information statistics module configures or selects the power consumption factor according to the temperature, which means selecting the corresponding power consumption weight factor from a group of power consumption weight factors according to the temperature, and updating the weight factor composed of the sum of the power consumption weight factor, the quantity weight factor and the fitting weight factor.

[0019] Optionally, when the toggle rate information statistics module configures or selects the power consumption factor according to temperature, the temperature used is an average value of temperature detection values ​​of all or a specified part of temperature sensors distributed throughout the target chip design.

[0020] Optionally, when the flip rate information statistics leaf nodes are respectively connected to each device unit in the target chip design in step S104, if the state-based power consumption assessment device is used for pre-silicon simulation, the flip rate information statistics sub-nodes and the flip rate information statistics leaf nodes are implemented in a fixed design module, and the design module is integrated into the design code of the target chip design through module instantiation or binding, and the connection between the flip rate information statistics sub-nodes and the flip rate information statistics leaf nodes and the device units in the target chip design is completed by modifying the netlist file through hierarchical probes and scripts; if the state-based power consumption assessment device is used for silicon chip power consumption assessment, the flip rate information statistics sub-nodes and the flip rate information statistics leaf nodes are implemented step by step in the device units of the target chip design, and the netlist file is directly modified by scripts to achieve the connection between the flip rate information statistics sub-nodes and the flip rate information statistics leaf nodes and the device units in the target chip design.

[0021] Compared with the prior art, the present invention mainly has the following advantages: 1. The flip rate information statistics leaf node of the present invention can collect the flip rates of registers, SRAM (Static Random-Access Memory), gated clocks, etc., count the number of buffers / inverters and arithmetic logic units on the clock tree in the netlist file, and extract the typical power consumption of registers, SRAM, buffers, logic gates, etc. in the process library file. Through the above information, the real-time power consumption status of the chip can be obtained as much as possible.

[0022] 2. The flip rate information statistics module of the present invention includes multiple flip rate information statistics sub-nodes, each flip rate information statistics sub-node includes multiple flip rate information statistics leaf nodes, the flip rate information statistics sub-node is used to summarize and sum the flip rates collected by the subordinate flip rate information statistics leaf nodes or the next level flip rate information statistics sub-nodes, or summarize and sum them after multiplying with a given weight factor, the register module includes a weight register array for independently storing the weight factors corresponding to each device unit, and the flip rate information collection results of the tree-shaped flip rate collection system are formed by the flip rate information statistics module, the flip rate information statistics sub-nodes, and the flip rate information statistics leaf nodes, and the flip rate information statistics sub-nodes are used to summarize and sum the flip rates collected by the subordinate flip rate information statistics leaf nodes or the next level flip rate information statistics sub-nodes, or summarize and sum them after multiplying with a given weight factor, which is equivalent to setting a multi-level weight factor. By fitting each weight factor, the influence of parasitic capacitance, operating temperature, etc. on power consumption can be accurately expressed, thereby improving the flexibility and accuracy of power consumption evaluation.

[0023] 3. The present invention can be integrated into the design code and taped out along with the design code. It can also collect information, configure weights and read power consumption information in real silicon wafers, so as to facilitate further data fitting with the real power consumption on the silicon wafer. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 Schematic diagram of a state-based power consumption assessment device in an embodiment of the present invention.

[0025] Figure 2 Schematic diagram of the basic flow of the data fitting method according to an embodiment of the present invention.

[0026] Legend: 1. Flip rate information statistics module; 2. Flip rate information statistics sub-node; 3. Flip rate information statistics leaf node; 4. Flip information upstream summary interface; 5. Power consumption total module; 6. Power consumption export interface; 7. Register module; 8. Configuration controller; 9. Configuration interface; 10. Weight factor downstream interface; 11. Bridge module; 12. Bridge interface. DETAILED DESCRIPTION

[0027] In the following description, specific details are given in order to provide a more thorough understanding of the present invention.

[0028] like Figure 1As shown, this embodiment provides a state-based power consumption evaluation device, including: a flip rate information statistics module 1, including multiple flip rate information statistics sub-nodes 2, each flip rate information statistics sub-node 2 includes multiple flip rate information statistics leaf nodes 3; the flip rate information statistics leaf node 3 is used to perform real-time statistics on the flip rate of all gated clocks on each device unit (including registers, SRAMs and clock trees) in the target chip design, and the flip rate information statistics sub-node 2 is used to summarize and sum the flip rates collected by the subordinate flip rate information statistics leaf node 3 or the next-level flip rate information statistics sub-node 2, or summarize and sum them after multiplying with a given weight factor; a flip information uplink summary interface 4 is used to transmit the flip rate information summarized and summed by the flip rate information statistics module 1 to the power consumption total module 5; The total power consumption module 5 is used to complete the accumulation of the multiplication results of the flip rate and the flip rate output by each flip rate information statistics module 1; the power consumption export interface 6 is used to output the accumulation result as real-time dynamic power consumption; the register module 7 includes a weight register array for independently storing the weight factors corresponding to each device unit; the weight factor downstream interface 10 is used to send the weight factors recorded in the weight register array to the flip rate information statistics module 1; the flip rate information statistics module 1 and its flip rate information statistics subnode 2 and flip rate information statistics leaf node 3 form a tree structure, the flip rate information statistics module 1, the flip information upstream summary interface 4, the total power consumption module 5 and the power consumption export interface 6 are connected in sequence, and the register module 7 is connected to the flip rate information statistics module 1 through the weight factor downstream interface 10. The flip rate information statistics module 1, the flip rate information statistics subnode 2, and the flip rate information statistics leaf node 3 form a tree flip rate collection system that is mainly responsible for real-time statistics of the flip rates of representative registers, all SRAMs, and all gated clocks on the clock tree in the design. When the design scale is large, in order to reduce the number of interface signals between modules, a hierarchical statistical method can be used. After multiple flip rate information statistical leaf nodes 3 complete information collection, they are summarized and summed in the flip rate information statistical sub-node 2. The flip rates of the next-level flip rate information statistical sub-node 2 can be flipped and summed in the previous-level flip rate information statistical sub-node 2. At the same time, in order to consider the differences in operating temperatures and code styles of different modules, weight factors can be added when summarizing and summing high-level flip rate sub-nodes. Depending on the size of the design and the hierarchical design method, this device may have multiple levels of flip rate sub-nodes, the purpose of which is to reduce wiring overhead. The power consumption calculation part composed of the total power consumption module 5, the flip rate information statistical module 1 and the flip rate information statistical sub-node 2 mainly completes the accumulation of the multiplication results of each flip rate and the flip rate, and the accumulated results are output as real-time dynamic power consumption for subsequent smooth processing and peak power consumption positioning. See Figure 1The weight factors 1 to n in the n flip rate information statistical modules 1 respectively represent a set of weight factors in each flip rate information statistical module 1. The weight factors are used to multiply the flip rates collected by the flip rate information statistical sub-nodes to simulate the influence of parasitic capacitance and working temperature design style on power consumption.

[0029] Considering that the value of the weight factor is very critical to power consumption fitting, in order to realize the configurability of the weight factor, as an optional implementation method, this embodiment further realizes the configurable function of the weight factor in the weight register array, such as Figure 1 As shown, this embodiment also includes a configuration controller 8 and a configuration interface 9, the configuration controller 8 is connected to the register module 7 for implementing the writing or reading of the weight factor in the weight register array, and the configuration interface 9 is connected to the configuration controller 8 for exposing a data interface for the configuration controller 8, so that the weight factor in the weight register array can be written or read through the system management software through the configuration controller 8 and the configuration interface 9. The weight configuration part composed of the configuration controller 8 and the configuration interface 9 is mainly responsible for counting the number of buffers / inverters and arithmetic logic units on the clock tree in the netlist file, extracting the typical power consumption of registers, SRAM, buffer buffers, gated clock units, logic gates, etc. in the process library file, and adjusting the weight factor in time according to the comparison with the reference power consumption. The writing of the weight factor can be implemented in a variety of ways such as the signal force in the simulation tool, the APB interface, and the hard wiring implemented by the Verilog code. The implementation process may involve the APB bus protocol, the series connection of the hard wiring implemented by the Verilog code, etc., which are uniformly represented by the configuration controller module in the present invention. In order to reduce the number of interface signals between modules, the weight factor for power consumption is only reflected in the total power consumption module and the high-level flip rate sub-node. Therefore, there is a weight factor downstream path between the weight register array and the total power consumption module and the high-level flip rate sub-node.

[0030] like Figure 1As shown, this embodiment also includes a bridge module 11 and a bridge interface 12. The bridge module 11 is used to integrate the flip rate information statistics module 1 into the target chip design by module instantiation or binding; the bridge interface 12 is used to connect the device units in the target chip design with each flip rate information statistics module 1 by modifying the netlist file through hierarchical probes or scripts. The bridge part composed of the bridge module 11 and the bridge interface 12 is mainly used to complete the connection between each flip rate information statistics sub-node 2, flip rate information statistics leaf node 3 and the register, SRAM, gated clock unit, etc. in the target chip design, so that the device can monitor the real-time working status of the above-mentioned devices. The implementation method of the bridge is different according to the different implementation methods of the flip rate information statistics sub-node 2 and the flip rate information statistics leaf node 3. If the device of this embodiment is only used for pre-silicon simulation, in order to reduce the difficulty of implementation, the flip information statistics sub-node / leaf node can be implemented in a special module and integrated into the design code through module instantiation or bind. At this time, the connection between the flip rate information statistics sub-node 2, the flip rate information statistics leaf node 3 and the registers, SRAM, gated clock units, etc. in the design can be completed by modifying the netlist file through hierarchical probes and scripts respectively; if the device of this embodiment is used for silicon chip power consumption evaluation, the flip information statistics sub-node / leaf node must be implemented in each module of the design step by step. At this time, the connection between the flip rate information statistics sub-node 2, the flip rate information statistics leaf node 3 and the registers, SRAM, gated clock units in the design can be achieved by directly modifying the netlist file in a script manner.

[0031] Taking into account that the power consumption of different device units in the target chip design varies under different workload conditions, in order to more accurately fit the power consumption of the device units, as an optional implementation, this embodiment further implements the function of dynamically configuring or selecting the power consumption factor according to the temperature detection values ​​of multiple temperature sensors located throughout the chip. The register module 7 also includes a temperature register array for recording the temperature detection values ​​of multiple temperature sensors distributed throughout the target chip design. The temperature register array is connected to the flip rate information statistics module 1 so that the flip rate information statistics module 1 can configure or select the power consumption factor according to the temperature.

[0032] like Figure 2 As shown, the data fitting method of the state-based power consumption evaluation device of this embodiment includes: S101, weight strategy design: respectively setting the weight factor of each device unit in the target chip design; S102, configuring the weight register array in the register module 7 through the configuration interface 9 and the configuration controller 8, and writing the weight factor corresponding to each device unit; S103, distributing the flip rate information statistics module 1, the flip rate information statistics sub-node 2 and the flip rate information statistics leaf node 3, so that the flip rate information statistics module 1, the flip rate information statistics sub-node 2 and the flip rate information statistics leaf node 3 form a tree topology structure; S104, connecting the flip rate information statistics leaf node 3 to each device unit in the target chip design; S105, start the test so that the target chip design runs under the drive of the test stimulus, collect the flip rate information of each device unit in the target chip design through the flip rate information statistics leaf node 3, and summarize and sum it through the flip rate information statistics module 1, or multiply it with a given weight factor and then summarize and sum it and send it to the power consumption total module 5, the power consumption total module 5 selects the power consumption factor according to the temperature, completes the multiplication result of the flip rate output by each flip rate information statistics module 1 and the flip rate to obtain the total power consumption, and the total power consumption is exported through the power consumption export interface 6; S106, smoothing the total power consumption and locating the peak power consumption to obtain the target power consumption, calculating the power consumption error between the target power consumption and the measured power consumption or the reference power consumption when the target chip design is started, if the power consumption error meets the requirement, jump to step S107; otherwise, jump to step S101 to readjust the power consumption factor of each device unit.

[0033] S107, determine that the power consumption factor fitting of each device unit is completed, end and exit.

[0034] In order to improve the fitting accuracy of the weight factors of each device unit, as an optional implementation method, when the weight factors of each device unit in the target chip design are set separately in step S101 of this embodiment, the weight factors of each device unit are composed of the sum of a power consumption weight factor, a quantity weight factor and a fitting weight factor. The power consumption weight factor is used to represent the contribution of the power consumption of the device unit to the weight factor, the quantity weight factor is used to represent the contribution of the number of device units to the weight factor, and the fitting weight factor is used to fit the influence of parasitic capacitance and package capacitance on power consumption. By combining these three types of weight factors, the weight factors of registers, SRAM reads, SRAM writes, and gated clock units are configured, thereby improving the fitting accuracy of the weight factors of each device unit.

[0035] like Figure 2As shown, before step S101 of this embodiment, it also includes: obtaining the process library file and design netlist file of the target chip design, extracting the power consumption information of each device unit in the target chip design from the process library file of the target chip design to provide a reference for configuring the power consumption weight factor of each device unit; extracting the logic unit information of each device unit in the target chip design from the design netlist file of the target chip design to provide a reference for configuring the quantity weight factor of each device unit. In this embodiment, the power consumption information extraction includes: extracting the typical power consumption of registers, SRAM, buffer, gated clock units, logic gates, etc. from the process library file in a batch processing manner such as scripts. Registers have high and low thresholds and different numbers of tubes, and logic gates have AND, OR, NOT, OR NOT, etc. The power consumption value of the final register or logic gate should be the average value of the power consumption value of different types of devices and the corresponding device data within the design range covered by their corresponding weight factors; the power consumption consumed by SRAM read operations and write operations is quite different. In order to improve the accuracy, the two can be extracted separately. At the same time, in order to simulate the influence of temperature, it is also necessary to extract the power consumption information of each device unit at different temperatures. This type of power consumption information will be used to set each weight factor. In this embodiment, the contribution of the device power consumption information to the weight factor is called the power consumption weight factor. In this embodiment, the extraction of logic unit information from the netlist file includes: in a batch processing manner such as scripts, the number of different types of registers in the design hierarchy, different types of logic gates, and buffers / inverters in two adjacent gated clocks on the clock tree counted by each flip rate information statistical subnode in the netlist file are counted, and used to set each weight factor respectively. In this embodiment, the contribution of the number of each type of device in the netlist file to the weight factor is called the quantity weight factor.

[0036] In step S102, the weight register array in the register module 7 is configured through the configuration interface 9 and the configuration controller 8. When writing the weight factors corresponding to each device unit, the set weight factors can be written into each weight register array and the temperature register array through each weight factor downlink interface 10 through various methods such as signal force, APB interface, and hard wiring realized by Verilog code in the simulation tool. The implementation process may involve the APB bus protocol, the series connection of hard wiring realized by Verilog code, etc., which are uniformly represented by the configuration controller 8 in this embodiment. In step S103, when distributing the flip rate information statistics module 1, the flip rate information statistics subnode 2, and the flip rate information statistics leaf node 3, the flip rate information statistics module 1, the flip rate information statistics subnode 2, and the flip rate information statistics leaf node 3 are planned according to the design scale and design style, and then they are distributed and implemented. If the device is only used for pre-silicon simulation, in order to reduce the difficulty of implementation, the flip information statistics sub-node / leaf node can be implemented in a special module. At this time, the flip rate information statistics module 1, the flip rate information statistics sub-node 2 and the flip rate information statistics leaf node 3 can be implemented in a unified module through module instantiation, or the flip rate information statistics module 1, the flip rate information statistics sub-node 2 and the flip rate information statistics leaf node 3 can be scattered in the design code through binding; if the device is used for silicon chip power consumption evaluation, the flip information statistics sub-node / leaf node must be integrated and implemented in each module of the design before according to the step-by-step module instantiation method.

[0037] Considering that the power consumption of different device units in the target chip design varies under different workload conditions, in order to more accurately fit the power consumption of the device units, as an optional implementation method, this embodiment further implements the function of dynamically configuring or selecting the power consumption factor according to the temperature detection values ​​of multiple temperature sensors at various locations of the chip. In this embodiment, the power consumption weight factor is composed of a group of power consumption weight factors at different temperatures. In step S105, when starting the test so that the target chip design runs under the drive of the test stimulus, it also includes the system management software periodically reading the temperature detection values ​​of the temperature sensors scattered at various locations of the target chip design, such as Figure 2As shown in the "reading and recording temperature", the temperature register array in the register module 7 is configured through the configuration interface 9 and the configuration controller 8; the flip rate information statistics module 1 configures or selects the power consumption factor according to the temperature, which means selecting the corresponding power consumption weight factor from a group of power consumption weight factors according to the temperature, and updating the weight factor composed of the sum of the power consumption weight factor, the quantity weight factor and the fitting weight factor. In this embodiment, when the flip rate information statistics module 1 configures or selects the power consumption factor according to the temperature, the temperature based on it is the average value of the temperature detection values ​​of all temperature sensors in the temperature sensors scattered throughout the target chip design, or the average value of the temperature detection values ​​of a specified part of the temperature sensors, such as the average value with the device quantity weight, or the average value of other weights.

[0038] When the flip rate information statistics leaf node 3 is connected to each device unit in the target chip design in step S104 of this embodiment, if the state-based power consumption assessment device is used for pre-silicon simulation, the flip rate information statistics sub-node 2 and the flip rate information statistics leaf node 3 are implemented in a fixed design module, and the design module is integrated into the design code of the target chip design through module instantiation or binding, and the connection between the flip rate information statistics sub-node 2 and the flip rate information statistics leaf node 3 and the device unit in the target chip design is completed by modifying the netlist file through hierarchical probes and scripts; if the state-based power consumption assessment device is used for silicon chip power consumption assessment, the flip rate information statistics sub-node 2 and the flip rate information statistics leaf node 3 are implemented step by step in the device unit of the target chip design, and the netlist file is directly modified by scripts to achieve the connection between the flip rate information statistics sub-node 2 and the flip rate information statistics leaf node 3 and the device unit in the target chip design.

[0039] After starting the test in step S105, the entire chip is driven by the test stimulus to run at as high a speed as possible. At this time, the total power consumption module 5 accumulates and sums the flip rate information collected by the flip rate information statistics module 1, the flip rate information statistics subnode 2 and the flip rate information statistics leaf node 3, and the weight factor value stored in the weight register array to obtain the total power consumption. When the total power consumption module 5 is designed, the power consumption weight factor will be selected according to the temperature detection value in the temperature register, and the weight factor composed of the sum of the power consumption weight factor, the quantity weight factor and the fitting weight factor will be updated. Finally, the total power consumption is then exported through the power consumption export interface 6, and subsequent smooth processing and peak power consumption positioning are performed to obtain the target power consumption, and the target power consumption is compared and analyzed with the reference power consumption or the measured power consumption.

[0040] In step S106, when the total power consumption is smoothed and the peak power consumption is located to obtain the target power consumption, the key to the smooth processing is to eliminate the burrs of the power consumption. The required smooth processing method can be used as needed. For example, the simplest method is to use the sliding window to take the average value, etc. The peak power consumption found after the smooth processing is the target power consumption. Calculate the power consumption error (difference) between the target power consumption and the measured power consumption or reference power consumption of the target chip design startup. If the power consumption error meets the requirements, jump to step S107; otherwise, jump to step S101 to readjust the power consumption factor of each device unit.

[0041] To sum up, the flip rate information statistics leaf node of this embodiment can collect the flip rates of registers, SRAM (Static Random-Access Memory), gated clocks, etc., count the number of buffers / inverters and arithmetic logic units on the clock tree in the netlist file, and extract the typical power consumption of registers, SRAM, buffers, logic gates, etc. in the process library file. Through the above information, the real-time power consumption status of the chip can be obtained as much as possible. The flip rate information statistics module of this embodiment includes multiple flip rate information statistics sub-nodes, each flip rate information statistics sub-node includes multiple flip rate information statistics leaf nodes, the flip rate information statistics sub-node is used to summarize and sum the flip rates collected by the subordinate flip rate information statistics leaf nodes or the next-level flip rate information statistics sub-nodes, or summarize and sum them after multiplying them with a given weight factor, the register module includes a weight register array for independently storing the weight factors corresponding to each device unit, and the flip rate information collection results of the tree-shaped flip rate collection system are formed by the flip rate information statistics module, the flip rate information statistics sub-nodes, and the flip rate information statistics leaf nodes, and the flip rate information statistics sub-nodes are used to summarize and sum the flip rates collected by the subordinate flip rate information statistics leaf nodes or the next-level flip rate information statistics sub-nodes, or summarize and sum them after multiplying them with a given weight factor, which is equivalent to setting a multi-level weight factor. By fitting each weight factor, the influence of parasitic capacitance, operating temperature, etc. on power consumption can be accurately expressed, thereby improving the flexibility and accuracy of power consumption evaluation. This embodiment can be integrated into the design code and taped out along with the design code. It can also collect information, configure weights, and read power consumption information in a real silicon wafer, so as to facilitate further data fitting with the real power consumption on the silicon wafer.

[0042] The above describes the preferred embodiments of the present invention. It should be understood that the present invention is not limited to the above-mentioned specific embodiments, and the devices and structures that are not described in detail should be understood to be implemented in a common manner in the art; any technician familiar with the art can use the above-disclosed methods and technical contents to make many possible changes and modifications to the technical solutions of the present invention without departing from the scope of the technical solutions of the present invention, or modify them into equivalent embodiments of equivalent changes, which does not affect the essential content of the present invention. Therefore, any simple modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solutions of the present invention are still within the scope of protection of the technical solutions of the present invention.

Claims

1. A state-based power consumption evaluation device, characterized in that: include: A flip rate information statistics module (1) comprises a plurality of flip rate information statistics subnodes (2), each of which comprises a plurality of flip rate information statistics leaf nodes (3); the flip rate information statistics leaf nodes (3) are used to perform real-time statistics on the flip rates of all gated clocks on each device unit in a target chip design, and the flip rate information statistics subnodes (2) are used to aggregate and sum the flip rates collected by subordinate flip rate information statistics leaf nodes (3) or next-level flip rate information statistics subnodes (2), or to aggregate and sum the flip rates after multiplying them with a given weight factor; An information uplink summary interface (4) is used to transmit the flip rate information summarized and summed by the flip rate information statistics module (1) to the power consumption total module (5); the power consumption total module (5) is used to complete the accumulation of the flip rate output by each flip rate information statistics module (1) and the multiplication result of the flip rate; the power consumption export interface (6) is used to output the accumulation result as real-time dynamic power consumption; the register module (7) includes a weight register array for independently storing the weight factor corresponding to each device unit; The weight factor downstream interface (10) is used to send the weight factor recorded in the weight register array to the flip rate information statistics module (1); the flip rate information statistics module (1) and its flip rate information statistics subnode (2) and flip rate information statistics leaf node (3) form a tree structure; the flip rate information statistics module (1), the flip information upstream summary interface (4), the power consumption total module (5) and the power consumption export interface (6) are connected in sequence; the register module (7) is connected to the flip rate information statistics module (1) via the weight factor downstream interface (10).

2. The state-based power consumption evaluation device according to claim 1, characterized in that: It also includes a configuration controller (8) and a configuration interface (9), wherein the configuration controller (8) is connected to the register module (7) to implement writing or reading of weight factors in the weight register array, and the configuration interface (9) is connected to the configuration controller (8) to expose a data interface for the configuration controller (8).

3. The state-based power consumption evaluation device according to claim 1, characterized in that: The device unit includes a register, an SRAM and a clock tree.

4. The state-based power consumption evaluation device according to claim 1, characterized in that: It also includes a bridge module (11) and a bridge interface (12), wherein the bridge module (11) is used to integrate the flip rate information statistics module (1) into the target chip design by means of module instantiation or binding; and the bridge interface (12) is used to connect the device units in the target chip design with each flip rate information statistics module (1) by means of hierarchical probes or scripts to modify the netlist file.

5. The state-based power consumption evaluation device according to claim 1, characterized in that: The register module (7) further comprises a temperature register array for recording temperature detection values ​​of a plurality of temperature sensors distributed throughout the target chip design, the temperature register array being connected to the flip rate information statistics module (1) so as to enable the flip rate information statistics module (1) to configure or select a power consumption factor according to temperature.

6. A data fitting method for a state-based power consumption evaluation device according to any one of claims 1 to 5, characterized in that: include: S101, respectively setting weight factors of various device units in the target chip design, wherein the weight factors of various device units are composed of the sum of a power consumption weight factor, a quantity weight factor and a fitting weight factor, wherein the power consumption weight factor is used to represent the contribution of the power consumption of the device unit to the weight factor, the quantity weight factor is used to represent the contribution of the number of device units to the weight factor, and the fitting weight factor is used to fit the influence of parasitic capacitance and package capacitance on power consumption; S102, configuring the weight register array in the register module (7) through the configuration interface (9) and the configuration controller (8), and writing the weight factor corresponding to each device unit; S103, spreading the flip rate information statistics module (1), the flip rate information statistics sub-node (2) and the flip rate information statistics leaf node (3), so that the flip rate information statistics module (1), the flip rate information statistics sub-node (2) and the flip rate information statistics leaf node (3) form a tree topology structure; S104, connecting the flip rate information statistical leaf node (3) to each device unit in the target chip design; S105, start the test so that the target chip design runs under the drive of the test stimulus, collect the flip rate information of each device unit in the target chip design through the flip rate information statistics leaf node (3), and summarize and sum it through the flip rate information statistics module (1), or multiply it with a given weight factor and then summarize and sum it and send it to the power consumption total module (5), the power consumption total module (5) selects the power consumption factor according to the temperature, completes the multiplication result of the flip rate output by each flip rate information statistics module (1) and the flip rate to obtain the total power consumption, and the total power consumption is exported through the power consumption export interface (6); S106, performing smoothing processing on the total power consumption and locating the peak power consumption to obtain the target power consumption, calculating the power consumption error between the target power consumption and the measured power consumption or the reference power consumption when the target chip is designed to start, and if the power consumption error meets the requirement, jumping to step S107; Otherwise, jump to step S101 to readjust the power consumption factor of each device unit; S107, determine that the power consumption factor fitting of each device unit is completed, end and exit.

7. The data fitting method of the state-based power consumption evaluation device according to claim 6, characterized in that: Before step S101, it also includes: obtaining the process library file and the design netlist file of the target chip design, extracting the power consumption information of each device unit in the target chip design from the process library file of the target chip design to provide a reference for configuring the power consumption weight factor of each device unit; extracting the logic unit information of each device unit in the target chip design from the design netlist file of the target chip design to provide a reference for configuring the quantity weight factor of each device unit.

8. The data fitting method of the state-based power consumption evaluation device according to claim 6, characterized in that: The power consumption weight factor is composed of a group of power consumption weight factors at different temperatures. When the test is started in step S105 so that the target chip design runs under the drive of the test stimulus, the system management software periodically reads the temperature detection values ​​of the temperature sensors scattered throughout the target chip design, and configures the temperature register array in the register module (7) through the configuration interface (9) and the configuration controller (8); the flip rate information statistics module (1) configures or selects the power consumption factor according to the temperature, which means selecting the corresponding power consumption weight factor from a group of power consumption weight factors according to the temperature, and updating the weight factor composed of the sum of the power consumption weight factor, the quantity weight factor and the fitting weight factor.

9. The data fitting method of the state-based power consumption evaluation device according to claim 8, characterized in that: When the flip rate information statistics module (1) configures or selects the power consumption factor according to the temperature, the temperature used is the average value of the temperature detection values ​​of all or a specified part of the temperature sensors distributed in various locations of the target chip design.

10. The data fitting method of the state-based power consumption evaluation device according to claim 6, characterized in that: In step S104, when the flip rate information statistics leaf node (3) is connected to each device unit in the target chip design, if the state-based power consumption evaluation device is used for pre-silicon simulation, the flip rate information statistics sub-node (2) and the flip rate information statistics leaf node (3) are implemented in a fixed design module, and the design module is integrated into the design code of the target chip design by module instantiation or binding, and the connection between the flip rate information statistics sub-node (2) and the flip rate information statistics leaf node (3) and the device unit in the target chip design is completed by hierarchical probe and script modification of netlist file; if the state-based power consumption evaluation device is used for silicon chip power consumption evaluation, the flip rate information statistics sub-node (2) and the flip rate information statistics leaf node (3) are implemented step by step in the device unit of the target chip design, and the netlist file is directly modified by script to achieve the connection between the flip rate information statistics sub-node (2) and the flip rate information statistics leaf node (3) and the device unit in the target chip design.

Citation Information

Cited By

  • Power device loss test method based on gallium oxide

    CN121142266A