Power consumption analysis method and device and storage medium
By acquiring circuit configuration information and using handles to represent hierarchical paths, current measurement files and hierarchical maps are generated, solving the problem of low efficiency in chip power consumption analysis and achieving more efficient power consumption analysis.
Patent Information
- Application Number
- CN202310172594.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-23
- Publication Date
- 2024-08-30
AI Technical Summary
As the number of transistors per unit area of a chip increases, the power density rises, making it difficult for existing technologies to perform power consumption analysis efficiently, which affects the performance of integrated circuits.
By traversing the circuit under analysis to obtain configuration information, a current measurement file and a hierarchy map are generated. Handles are used to represent the hierarchical path and same-level sorting of functional modules, current simulation is performed, and a power consumption analysis report is generated.
The size of current measurement files and simulation result files has been reduced, shortening simulation time and post-processing time, and improving the efficiency of power consumption analysis.
Smart Images

Figure CN118569169A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the semiconductor field, and in particular to a power consumption analysis method, device and storage medium. Background Art
[0002] As the number of transistors integrated per unit area of a chip increases, the power consumption density of the chip is also increasing, and the negative impact of power consumption on the performance of integrated circuits is becoming more serious. In the process of designing integrated circuits, power consumption has become a major consideration; and usually, power consumption analysis is performed on the chip to obtain the power consumption distribution of the chip. Summary of the invention
[0003] In view of this, embodiments of the present disclosure provide a power consumption analysis method, device, and storage medium to improve the efficiency of power consumption analysis.
[0004] The technical solution of the present invention is achieved in this way:
[0005] The disclosed embodiment provides a power consumption analysis method, which traverses the circuit to be analyzed to obtain configuration information of the circuit to be analyzed; the configuration information includes: power supply signal, hierarchical path and same-layer sorting of functional modules; a current measurement file and a hierarchical map are generated based on the configuration information; the current measurement file includes multiple lines of current measurement commands; each line of current measurement commands is used to measure a current parameter corresponding to a handle; the handle is a unique identifier of the hierarchical path and the same-layer sorting of the functional module; the hierarchical map contains a mapping relationship between the handle and the hierarchical path and the same-layer sorting of the functional module; the current measurement file is simulated to obtain a current simulation result corresponding to each handle; based on the current simulation result and the hierarchical map, a power consumption analysis report is generated.
[0006] In the above scheme, the circuit to be analyzed is traversed to obtain the configuration information of the circuit to be analyzed, including: obtaining the circuit principle netlist of the circuit to be analyzed; searching all power signals from the top level of the circuit principle netlist; traversing all power signals to find the hierarchical path and same-layer sorting of the functional modules using the corresponding power signals.
[0007] In the above scheme, a hierarchical map is generated based on the configuration information, including: generating a handle corresponding to the instance each time an instance is accessed; obtaining all handles and recording the mapping relationship between each handle and the corresponding instance to generate a hierarchical map.
[0008] In the above scheme, a current measurement file is generated based on the configuration information, including: each time an instance is accessed, the port signal of the instance is checked to determine whether the instance is connected to the currently traversed power signal; if the instance is connected to the currently accessed power signal, a current measurement command for the corresponding instance is generated; the current measurement command includes a handle, a power name and a hierarchical path; all current measurement commands are obtained to generate a current measurement file.
[0009] In the above solution, the current measurement file is generated based on the configuration information, and further includes: if the instance is not connected to the currently traversed power signal, accessing and checking the port signal of the next instance until a new current measurement command is generated.
[0010] In the above scheme, each circuit to be analyzed corresponds to at least one top-level module; the hierarchical path is the connection relationship between the functional module and the top-level module; all power signals are traversed to find the hierarchical path and the same-layer sorting of the functional modules using the corresponding power signals, including: starting from the top-level module of any circuit to be analyzed, traversing multiple instances corresponding to the power signal in preorder and obtaining the corresponding hierarchical path; traversing the remaining power signals in preorder to obtain configuration information.
[0011] In the above scheme, each power signal corresponds to an instance with multiple levels; the pre-order traversal of multiple instances corresponding to the power signal includes: if an instance located at any layer is not connected to the currently traversed power signal, the functional circuit corresponding to its subset is not accessed, and the remaining functional modules of the same layer continue to be accessed.
[0012] In the above solution, the current simulation result includes a handle with a power signal mark and a current value corresponding to the current measurement command.
[0013] In the above scheme, a power consumption analysis report is generated based on the current simulation results and the hierarchical map, including: converting the current simulation results and the hierarchical map into a two-dimensional array; each row array of the two-dimensional array of the current simulation results contains a handle and its corresponding current value; each row array of the two-dimensional array of the hierarchical map contains a handle and the full name of the instance corresponding to it; based on the hierarchical map, the handles in the current simulation results are decoded to generate a new two-dimensional array; each row array of the new two-dimensional array includes a handle and its corresponding current value, parent set handle, full name and same-layer sorting; the current value distribution of the power supply signal in different instances is retrieved from the new two-dimensional array to generate a power consumption analysis report.
[0014] In the above scheme, the power supply corresponding to the power signal is the internal power supply; based on the current simulation results and the hierarchical map, a power consumption analysis report is generated, which also includes: when counting the current value of the power signal, all the current values of the internal power supplies are converted into the current values of the external power supply according to the preset conversion coefficient.
[0015] In the above scheme, the power consumption analysis method further includes: displaying a power consumption analysis report; the displayed content includes the total current value of the power supply signal, the total current value of each functional module, and the external source of the power supply signal.
[0016] The present disclosure also provides a power consumption analysis device, including: a search module, configured to traverse the circuit to be analyzed to obtain configuration information of the circuit to be analyzed; the configuration information includes: the hierarchical path and the same-layer order of the power supply signal and the functional module; the generation module, configured to obtain the configuration information from the search module; and, based on the configuration information, generate a current measurement file and a hierarchical map; wherein the current measurement file includes multiple lines of current measurement commands; each line of current measurement commands is used to measure a current parameter corresponding to a handle; the handle is a unique identifier of the hierarchical path and the same-layer order of the functional module; the hierarchical map contains a mapping relationship between the handle and the hierarchical path and the same-layer order of the functional module; the simulation module, configured to obtain the current measurement file from the generation module; and, simulate the current measurement file to obtain the current simulation result corresponding to each handle; the analysis module, configured to obtain the current simulation result from the simulation module and the hierarchical map from the generation module; and, based on the current simulation result and the hierarchical map, generate a power consumption analysis report.
[0017] In the above scheme, the power consumption analysis device also includes: a display module, configured to obtain a power consumption analysis report from the analysis module; and display the power consumption analysis report; the display content of the display module includes the total current value of the power supply signal, the total current value of each functional module, and the external source of the power supply signal.
[0018] The embodiment of the present disclosure also provides a power consumption analysis device, including: a memory, used to store executable instructions; a processor, used to implement the power consumption analysis method in the above scheme when executing the executable instructions stored in the memory.
[0019] The embodiment of the present disclosure also provides a storage medium storing executable instructions for causing a processor to execute and implement the power consumption analysis method in the above solution.
[0020] The power consumption analysis method provided by the embodiment of the present disclosure includes: traversing the circuit to be analyzed to obtain the configuration information of the circuit to be analyzed; the configuration information includes: power supply signal, hierarchical path and same-layer sorting of functional modules; generating a current measurement file and a hierarchical map based on the configuration information; the current measurement file includes multiple lines of current measurement commands; each line of current measurement commands is used to measure the current parameter corresponding to a handle; the handle is a unique identifier of the hierarchical path and same-layer sorting of the functional module; the hierarchical map includes a mapping relationship between the handle and the hierarchical path and same-layer sorting of the functional module; simulating the current measurement file to obtain the current simulation result corresponding to each handle; based on the current simulation result and the hierarchical map, generating a power consumption analysis report. In this way, compared with the method in the related art that each line of measurement statement includes the hierarchical path and same-layer sorting of the functional module, the embodiment of the present disclosure uses the handle to represent the hierarchical path and same-layer sorting of the functional module, which can reduce the size of the current measurement file and the size of the simulated measurement result file, thereby effectively reducing the simulation time and the post-processing time of the simulated measurement result file, and improving the efficiency of power consumption analysis. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 A schematic diagram of the power consumption analysis method provided in the embodiment of the present disclosure Figure 1 ;
[0022] Figure 2 A schematic diagram of the structure of the circuit to be analyzed provided in the embodiment of the present disclosure Figure 1 ;
[0023] Figure 3 A schematic diagram of the power consumption analysis method provided in the embodiment of the present disclosure Figure 2 ;
[0024] Figure 4 A schematic diagram of the power consumption analysis method provided in the embodiment of the present disclosure Figure 3 ;
[0025] Figure 5 A schematic diagram of the power consumption analysis method provided in the embodiment of the present disclosure Figure 4 ;
[0026] Figure 6 A schematic diagram of the structure of the power consumption analysis device provided in the embodiment of the present disclosure Figure 1 ;
[0027] Figure 7 A schematic diagram of the structure of the power consumption analysis device provided in the embodiment of the present disclosure Figure 2 . DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solutions and advantages of the present disclosure clearer, the technical solutions of the present disclosure are further elaborated in detail below in conjunction with the drawings and embodiments. The described embodiments should not be regarded as limiting the present disclosure. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present disclosure.
[0029] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0030] If similar descriptions of "first / second" appear in the application documents, the following description is added. In the following description, the terms "first / second / third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It is understandable that "first / second / third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present disclosure described herein can be implemented in an order other than that illustrated or described herein.
[0031] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present disclosure belongs. The terms used herein are only for the purpose of describing the embodiments of the present disclosure and are not intended to limit the present disclosure.
[0032] Figure 1 is an optional flow chart of the power consumption analysis method provided by the embodiment of the present disclosure, which is combined with Figure 1 The steps shown are explained.
[0033] S101, traversing the circuit to be analyzed to obtain configuration information of the circuit to be analyzed; the configuration information includes: hierarchical paths and same-layer sorting of power signals and functional modules.
[0034] In the disclosed embodiment, the key to power consumption analysis of the circuit to be analyzed is to present the current value distribution of each power signal in different functional modules in the circuit to be analyzed. Therefore, it is necessary to find out all the power signals of the circuit to be analyzed, and find the application of each power signal in the functional modules at each level of the circuit to be analyzed, and record the hierarchical information of the functional modules where the power signals are applied. In other words, it is necessary to obtain all the power signals connected to the circuit to be analyzed, and obtain the connection relationship between the top-level module to which all power signals are connected and each functional module and the functional units, functional devices, functional elements and other components in the subsets contained in the functional modules (i.e., the hierarchical path of the functional modules), and record the hierarchical information of the functional units, functional devices, functional elements and other components contained in the functional modules and their subsets (i.e., the same-layer sorting of the functional modules).
[0035] Figure 2 It is a structural diagram of an optional circuit principle netlist of a circuit to be analyzed provided in an embodiment of the present disclosure. It should be noted that in circuit design, the circuit principle netlist (netlist) is used to describe the connection relationship between circuit elements, and is generally a text file that follows the tag syntax. Figure 2 The binary tree shown in is the topological structure of the information contained in the circuit schematic netlist. The binary tree of the circuit schematic netlist usually includes multiple instances, each instance is used to represent a component contained in the circuit to be analyzed. For example, instance Inst B corresponds to the functional module of the circuit to be analyzed.
[0036] At the same time, multiple instances in the circuit principle netlist can correspond to functional modules, functional units, functional devices, and functional elements, etc. in order from high to low levels. For example, Top Cell A is a top-level module; instances Inst B, Inst C, and Inst D correspond to functional modules; instances Inst E, Inst F, Inst G, Inst H, and Inst I correspond to functional units; Inst J, Inst K, Inst L, Inst M, and Inst N correspond to functional devices. Each functional module is a parent set of some functional units at the next level, each functional unit is a parent set of some functional devices at the next level, and each functional device is a parent set of some functional elements at the next level. For example, TopCell A is a parent set of instances Inst B, Inst C, and Inst D; instance Inst B is a parent set of instances Inst E and Inst F, instance Inst C is a parent set of instance Inst G; instance Inst E is a parent set of Inst J and Inst K. In other words, the circuit schematic net shows the same-level ordering (instance name) of the functional modules.
[0037] It should also be noted that "w / i vcc!" (i.e. within vcc) is used to indicate that the component corresponding to the instance applies the power signal connected to the top-level module Top Cell A. For example, if the instance Inst B corresponds to "w / i vcc!", it means that the instance Inst B has a port connected to the power signal "vcc!", and the functional module corresponding to the instance Inst B applies the power signal "vcc!" connected to the top-level module Top Cell A. "w / o vcc!" (i.e. without vcc) is used to indicate that the component corresponding to the instance does not apply the power signal connected to the top-level module Top Cell A. For example, if the instance Inst C corresponds to "w / o vcc!", it means that the instance Inst C has no port connected to the power signal "vcc!", and the functional module corresponding to the instance Inst C does not apply the power signal "vcc!" connected to the top-level module Top CellA. In other words, the circuit principle network shows the hierarchical path of power signals and functional modules.
[0038] It should also be noted that Figure 2 Only the power signal "vcc!" is shown as an example. The application of other power signals connected to the circuit to be analyzed in the functional modules at each level of the circuit to be analyzed can also be referred to. Figure 2 Let’s understand the binary tree shown in the example.
[0039] In the embodiments of the present disclosure, reference Figure 2 , which can be realized by power consumption analysis device Figure 1 According to the power consumption analysis method shown in , the power consumption analysis device can search for all power signals connected to the circuit to be analyzed in the top-level module Top Cell A of the circuit principle netlist of the circuit to be analyzed. Then, check whether each port corresponding to each instance is connected to the power signal, and obtain the application status of each power signal in the components of each level of the circuit to be analyzed according to the inspection result. At the same time, in the process of traversing the circuit to be analyzed, the hierarchical information of the functional modules and the functional units, functional devices and functional elements contained in their subsets is recorded. Thus, the configuration information of the circuit to be analyzed is obtained.
[0040] S102. Generate a current measurement file and a hierarchical map based on the configuration information; the current measurement file includes multiple lines of current measurement commands; each line of current measurement commands is used to measure a current parameter corresponding to a handle; the handle is a unique identifier of the hierarchical path and the same-layer sorting of the functional module; the hierarchical map contains a mapping relationship between the handle and the hierarchical path and the same-layer sorting of the functional module.
[0041] In the present disclosure, continue to refer to Figure 2In the process of traversing a power signal of the circuit to be analyzed, each time an instance is visited, all port signals of the instance currently visited are checked, so as to determine whether the component corresponding to the instance applies the currently traversed power signal according to whether the instance has a port connected to the currently traversed power signal. For example, Figure 2 The currently traversed power signal is "vcc!", and the instance Inst B corresponds to "w / i vcc!", which means that the functional module corresponding to the instance Inst B is connected to the top-level module TopCell A, and the functional module corresponding to Inst B applies the power signal "vcc!" corresponding to the top-level module TopCell A.
[0042] It should be noted that the power supply signal connected to the circuit to be analyzed may also include power supply signals such as "vdd!", "vbp!" and "vccz!". The "c" in the power supply signal "vcc!" means the circuit connected, and "vcc!" means the voltage of the circuit connected. The "d" in the power supply signal "vdd!" means the device, and "vdd!" means the internal voltage of the device. The power supply Vccz corresponding to the "vccz!" power supply signal refers to the local power supply generated based on the power supply Vcc. The "b" in the power supply signal "vbp!" is the bulk, P refers to the PMOS tube (Positive channel Metal Oxide Semiconductor), and "Vbp!" means the bulk voltage of the PMOS tube in the peripheral area.
[0043] It should also be noted that the instance connected to the power signal "vcc!" means that the instance is directly connected to the power signal "vcc!"; the voltage higher than vcc or lower than vcc generated by the instance based on the power signal "vcc!" through LDO or PUMP processing is not considered to be directly connected to the power signal "vcc!". However, the instance connected to the power signal "vccz!" means that the functional module corresponding to the instance is directly connected to the power signal "vccz!".
[0044] In the present disclosure, continue to refer to Figure 2, if the instance is connected to the currently accessed power signal, a current measurement command for the corresponding instance is generated. For example, all instances with instance Inst B as the parent set are accessed, and the component corresponding to the instance is checked to see whether the currently traversed power signal "vcc!" is applied; if instance Inst E corresponds to "w / ivcc!", it means that instance Inst E has a port connected to the power signal "vcc!", and the functional unit corresponding to instance Inst E is connected to the top-level module Top Cell A, and the functional unit corresponding to instance Inst E applies the power signal "vcc!" connected to the top-level module Top Cell A, therefore, a current measurement command for the functional unit corresponding to instance Inst E needs to be generated. In this way, after accessing all instances with instance Inst B as the parent set, the corresponding current measurement command can be generated for the functional module in instance InstB that is connected to the power signal "vcc!"
[0045] In the disclosed embodiment, the power consumption analysis device traverses all power supply signals of the circuit to be analyzed and obtains the configuration information of the circuit to be analyzed; the configuration information of the circuit to be analyzed includes the hierarchical path and the same-layer sorting of the functional modules, so the power consumption analysis device can generate all current measurement commands corresponding to the circuit to be analyzed according to the configuration information of the circuit to be analyzed. Thus, all current measurement commands are written into the current measurement file in the form of measurement statements; one current measurement command corresponds to a line of measurement statements in the current measurement file.
[0046] In the embodiment of the present disclosure, in the process of traversing all power signals, each time an instance is accessed, a handle corresponding to the instance can be generated. A handle can be a random number, which represents the hierarchical path and the same-layer ordering of the functional module corresponding to the instance. That is, each time the power consumption analysis device accesses an instance, the information corresponding to the hierarchical path and the same-layer ordering of the functional module corresponding to the instance is encoded into a unique random number, so that the handle is a unique identifier of the hierarchical path and the same-layer ordering of the functional module. Thus, the content used to represent the hierarchical path and the same-layer ordering of the functional module in the current measurement command can be replaced with the handle. Take the line of measurement statements shown below as an example for explanation:
[0047] .meas tran_e_319@vbp! @inh_vbp@avg avg x(xi_arraytop.inh_vbp)
[0048] Among them, "_e_319" is the handle of the current measurement command corresponding to the measurement statement in this line, and the handle "_e_319" is the unique identifier of the hierarchical path and the same-layer sorting of the instance corresponding to the current measurement command; "vbp!" is the power supply name, and vbp refers to the substrate voltage of the PMOS tube in the peripheral area of the circuit to be analyzed; "xi_arraytop.inh_vbp" is the internal path (rail) of the power supply, and the internal path of the power supply "xi_arraytop.inh_vbp" is used to specify the current of the power supply signal corresponding to the instance in the simulation measurement. In this way, replacing the hierarchical path and the same-layer sorting content used to characterize the functional module in each line of measurement statement with an identifier can reduce the data bits required for each line of measurement statement, thereby reducing the size of the current measurement file.
[0049] At the same time, the mapping relationship between the hierarchical path of each handle and the functional module and the same-layer sorting is recorded to generate a hierarchical map. In this way, it is convenient to post-process the corresponding measurement result file after the current measurement file is simulated.
[0050] S103, simulating the current measurement file to obtain a current simulation result corresponding to each handle.
[0051] In the embodiment of the present disclosure, the current measurement file is simulated and the simulated measurement result file is output. The simulation measurement result file (Table 1) shown below is used as an example for explanation:
[0052] tlc@vad2e! @avg _e_319@vad2e! @avg -i k
[0053] Table 1
[0054] As can be seen from Table 1, the measurement result file contains two lines of information. The first line is the combination information of all handles and power signals. For example, "tlc@vad2e!@avg" is a combination of a handle and a power signal, "tlc" is the handle, "vad2e!" is the power signal, and "avg" represents the average; the second line is the corresponding calculated current value, for example, "-i" is the current value of the power signal "vad2e!" corresponding to the handle "tlc".
[0055] It should be noted that the positive and negative current values in the second row of Table 1 are used to characterize the direction of the current. The current value of the top-level module is equal to the sum of the currents of all modules at the next level. Assume that the power signal connected to the top-level module in this measurement is the power signal "vcc!", and the top-level module is also connected to another power signal "vdd!"; if the current value corresponding to the power signal "vcc!" is negative, it means that the top-level module actually does not consume the current of the power signal "vcc!", and the power signal "vcc!" is receiving the current, and only the power signal "vdd!" is outputting the current.
[0056] It can be understood that the current measurement file is simulated to obtain the current simulation result corresponding to each handle. In this way, the handle replaces the hierarchical path and the content of the same layer sorting used to characterize the functional module in each line of circuit measurement statement contained in the current measurement file, so that the file size of the current measurement file is small, which effectively reduces the simulation time of the current measurement file; at the same time, the hierarchical path and the part of the same layer sorting characterizing the functional module in the output simulation measurement result file are handles, thereby reducing the size of the output measurement result file.
[0057] S104: Generate a power consumption analysis report based on the current simulation results and the hierarchy map.
[0058] In the disclosed embodiment, the current simulation result only includes the current value of the handle and its corresponding power signal, and cannot present the distribution of the current value of each instance corresponding to each power signal in all levels of the circuit to be analyzed. Therefore, it is necessary to use the hierarchical path and same-level sorting of the handles and functional modules in the hierarchical map to decode the handles in the current simulation result so that each current value corresponds to the actual component of the circuit to be tested and analyzed. In this way, the information corresponding to the handle can be parsed into the corresponding current simulation result, so as to intuitively display the sorted distribution of the total current of each power signal.
[0059] It can be understood that, compared with the method in the related art where each line of measurement statement contains the hierarchical path and the same-layer sorting of the functional modules, the embodiment of the present disclosure uses handles to represent the hierarchical path and the same-layer sorting of the functional modules. In this way, the size of the current measurement file and the size of the simulated measurement result file can be reduced, thereby effectively reducing the simulation time and the post-processing time of the simulated measurement result file, and improving the efficiency of power consumption analysis.
[0060] In some embodiments of the present disclosure, S201 to S203 can be used to implement Figure 1 S101 shown will be explained in combination with each step.
[0061] S201, obtaining a circuit schematic netlist of a circuit to be analyzed.
[0062] In the disclosed embodiment, the circuit principle netlist of the circuit to be analyzed will list the components of the circuit to be analyzed and the component names, the connection relationship between the corresponding instances of the components and the power supply signals, etc. Therefore, in order to obtain the configuration information of the circuit to be analyzed, it is necessary to obtain the circuit principle netlist of the circuit to be analyzed, so as to obtain the configuration information of the circuit to be analyzed by traversing the circuit principle netlist.
[0063] S202. Search for all power supply signals from the top layer of the circuit schematic netlist.
[0064] In the disclosed embodiment, the current measurement file contains all power supply signals and current measurement commands for each instance, so the configuration information needs to contain all power supply signals corresponding to the circuit to be analyzed. Therefore, the power consumption analysis device needs to search all power supply signals connected to the circuit to be analyzed from the top layer of the circuit principle netlist.
[0065] S203 , traversing all power signals to find the hierarchical path and the same-layer order of the functional modules using the corresponding power signals.
[0066] In the present disclosure, continue to refer to Figure 2 , the top level of the circuit schematic netlist of each circuit to be analyzed contains at least one top-level module (for example, Figure 2 TOP Cell A in ). When traversing a power signal corresponding to the circuit to be analyzed, the power consumption analysis device needs to start from the top-level module of any circuit to be analyzed, traverse multiple instances corresponding to the power signal in preorder, and determine whether the instance is connected to the power signal of the top-level module based on whether the accessed instance has a port connected to the currently traversed power signal, thereby determining whether the instance applies the power signal. In other words, the power consumption analysis device obtains the hierarchical order and the same-layer sorting of the functional modules that use the power signal based on the judgment result of whether the instance is connected to the power signal accessed by the top-level module. Then, the power consumption analysis device traverses all power signals corresponding to the circuit to be analyzed, searches for whether the components corresponding to each instance use the corresponding power signal, and obtains the configuration information of the circuit to be analyzed.
[0067] In some embodiments of the present disclosure, S301 to S302 can be used to implement Figure 1 S102 shown will be described in conjunction with each step.
[0068] S301. Generate a handle corresponding to each instance when accessing the instance.
[0069] In the disclosed embodiment, each time the power consumption analysis device accesses an instance, the hierarchical path of the functional module corresponding to the instance and the information corresponding to the same-layer ordering are encoded into a unique handle.
[0070] S302: Obtain all handles and record the mapping relationship between each handle and the corresponding instance to generate a hierarchical map.
[0071] In the disclosed embodiment, the hierarchical map includes a mapping relationship between handles and hierarchical paths and same-layer sorting of functional modules. Therefore, the power consumption analysis device needs to obtain all handles of the circuit to be analyzed; and record the mapping relationship between the hierarchical paths and same-layer sorting of all handles and their corresponding instances, thereby generating a hierarchical map. In this way, the handles can be used to replace the hierarchical paths and same-layer sorting of functional modules in the current measurement file, thereby reducing the size of the current measurement file and the simulation time of the current measurement file; and, in the process of post-processing the simulation results, the hierarchical map can be used to parse the information corresponding to the handle into the corresponding simulation analysis report, so as to intuitively display the sorting distribution of the total current of each power supply signal.
[0072] In some embodiments of the present disclosure, reference Figure 3 , which can be achieved through S401~S403 Figure 1 S102 shown will be described in conjunction with each step.
[0073] S401 , each time an instance is accessed, the port signal of the instance is checked to determine whether the instance is connected to the currently traversed power signal.
[0074] In the embodiments of the present disclosure, reference Figure 2 , the port signal of the instance can determine whether the instance is connected to the currently traversed power signal, thereby determining the connection relationship between the functional module corresponding to the instance and the top-level module connected to the currently traversed power signal. For example, if the instance Inst B corresponds to "w / i vcc!", it indicates that the functional module corresponding to the instance Inst B is connected to the top-level module Top Cell A; if the instance Inst C corresponds to "w / ovcc!", it indicates that the functional module corresponding to the instance Inst C is not connected to the top-level module Top Cell A. Therefore, by checking the port signal of the instance, it can be determined whether the functional module corresponding to the instance is connected to the top-level module Top Cell A, thereby determining whether the functional module corresponding to the instance applies the currently traversed power signal.
[0075] S402: If the instance is connected to the currently accessed power signal, a current measurement command corresponding to the instance is generated.
[0076] In the present disclosure, continue to refer to Figure 2 If the instance is connected to the currently accessed power signal, for example, instance Inst B corresponds to "w / i vcc!", it means that instance Inst B is connected to the power signal "vcc!", and the functional module corresponding to instance Inst B applies the currently traversed power signal "vcc!", therefore, it is necessary to generate a current measurement command for the functional module corresponding to instance Inst B.
[0077] In the present disclosure, continue to refer to Figure 2 After generating the current measurement command of the functional module corresponding to the instance Inst B, the power consumption analysis device needs to continue to access the instance contained in the instance Inst B, and check the port signal of the instance contained in the functional module Inst B to determine whether to continue to generate a new current measurement command. For example, the instance Inst B is the superset of the instance Inst E, and the functional module corresponding to the instance Inst B includes the functional unit corresponding to the instance Inst E, therefore, it is necessary to check the port signal of the instance Inst E; the instance Inst E corresponds to "w / i vcc!", which indicates that the functional unit corresponding to the instance Inst E applies the power signal "vcc!", therefore, it is necessary to generate the current measurement command of the functional unit corresponding to the instance Inst E.
[0078] In the embodiments of the present disclosure, reference Figure 2 , the power consumption analysis device can adjust the lowest level of the instance to be accessed according to the level of detail of the required current measurement data. For example, the level corresponding to the instance Inst E is the functional unit. In the case where only the current measurement data corresponding to each functional unit needs to be known, the lowest level traversed by the power consumption analysis device is the level corresponding to the instance Inst E, and there is no need to access the Inst J and the instance Inst K of the next level of the instance Inst E.
[0079] S403: Obtain all current measurement commands to generate a current measurement file.
[0080] In the disclosed embodiment, each current measurement command is a line of measurement statements in a current measurement file. The power consumption analysis device obtains all current measurement commands corresponding to the circuit to be analyzed, and writes all measurement statements into a file, thereby generating a current measurement file.
[0081] In some embodiments of the present disclosure, reference Figure 3 After executing S401 to S402, S404 can be used to implement Figure 1 S102 is shown.
[0082] S404: If the instance is not connected to the power signal currently traversed, access and check the port signal of the next instance until a new current measurement command is generated; the current measurement command includes a handle, a power name, and a hierarchical path.
[0083] In the present disclosure, continue to refer to Figure 2, if the instance is not connected to the power signal currently traversed, then access and check the port signal of the next instance until a new current measurement command is generated. For example, after accessing all instances with instance Inst B as the parent set, according to the pre-order traversal order, it is necessary to further access instance Inst C. Since instance Inst C corresponds to "w / o vcc!", it means that instance Inst C is not connected to the power signal "vcc!" currently traversed, therefore, it is not necessary to access instance Inst G with instance Inst C as the parent set, but continue to access instance Inst D and check the port signal of instance Inst D. Instance inst D corresponds to "w / ivcc!", which means that instance Inst D is connected to the power signal "vcc!" currently traversed, and the functional unit corresponding to instance Inst D applies the power signal "vcc!", therefore, a current measurement command corresponding to instance Inst D is generated.
[0084] In some embodiments of the present disclosure, S203 may be implemented through S501 to S502 , which will be described in conjunction with each step.
[0085] S501 , starting from a top-level module of any circuit to be analyzed, traverse multiple instances corresponding to a power supply signal in a pre-order manner, and obtain a corresponding hierarchical path.
[0086] In the present disclosure, continue to refer to Figure 2 , each circuit to be analyzed corresponds to at least one top-level module; the hierarchical path is the connection relationship between the functional module and the top-level module. Starting from the top-level module of any circuit to be analyzed, the multiple instances corresponding to the power signal are traversed in preorder. Each instance corresponding to the power signal has multiple levels. The power consumption analysis device needs to access multiple instances in order of hierarchy; wherein, if an instance at any layer is not connected to the currently traversed power signal, the remaining functional modules of the same layer are continued to be accessed, and if the functional module is connected to the currently traversed power signal, the corresponding hierarchical path is obtained. For example, if the instance Inst C corresponds to "w / o vcc!", it means that the functional module corresponding to the instance Inst C is not connected to the top-level module Top Cell A connected to the power signal "vcc!", and the instance Inst D is continued to be accessed. That is to say, the power consumption analysis device does not continue to access the functional module corresponding to the instance Inst C, but accesses the functional module corresponding to the instance Inst D; if the instance Inst D corresponds to "w / i vcc!", it means that the functional module corresponding to the instance Inst D is connected to the top-level module Top Cell A connected to the power signal "vcc!", and the hierarchical path of the functional module corresponding to the instance Inst D needs to be obtained.
[0087] S502 , traversing the remaining power signals in a pre-order manner to find the hierarchical paths and the same-layer ordering of the functional modules using the corresponding power signals.
[0088] In the disclosed embodiment, the current measurement file contains the hierarchical paths of all power signals and functional modules. Therefore, the power consumption analysis device needs to traverse the remaining power signals in a pre-order manner to find the hierarchical paths and same-layer sorting of all functional modules that are connected to the response power signals.
[0089] In some embodiments of the present disclosure, S501 can be implemented through S5011, which will be described in conjunction with each step.
[0090] S5011. If an instance at any layer is not connected to the currently traversed power signal, the functional circuit corresponding to its subset is not accessed, and the remaining functional modules at the same layer continue to be accessed.
[0091] In the examples disclosed herein, reference Figure 2 , each power signal corresponding to the instance has multiple levels, the power consumption analysis device needs to access the multiple instances in order of the levels; if an instance at any level is not connected to the current power signal, the functional circuit corresponding to its subset is not accessed. Figure 2 The traversal of the current power signal "vcc!" is completed in steps 1 to 22 shown in the figure. After executing step 15, since instance Inst C is not connected to TOPCell A, the parent set of instance Inst C is found according to step 16, and then, step 17 is executed to access instance Inst D; the functional analysis device does not need to continue to access instance Inst G and instance Inst N of the parent set of instance Inst C. In other words, the functional analysis device does not access components such as functional units and functional devices corresponding to the subset of functional modules corresponding to instance Inst C.
[0092] In some embodiments of the present disclosure, the current simulation result includes a handle having a power signal mark and a current value corresponding to the current measurement command.
[0093] In the disclosed embodiment, referring to Table 1, each column in the measurement result file (Table 1) corresponds to a current simulation result. For example, "tlc@vad2e!@avg" is a combination of a handle and a power signal, "tlc" is the handle, "vad2e!" is the power signal flag of "tlc", and "-i" is the current value corresponding to the handle "tlc".
[0094] In some embodiments of the present disclosure, S601 to S602 can be used to implement Figure 1 S104 shown will be described in conjunction with each step.
[0095] S601, converting the current simulation results and the hierarchy map into a two-dimensional array; each row array of the two-dimensional array of the current simulation results contains a handle and the corresponding current value; each row array of the two-dimensional array of the hierarchy map contains a handle and the full name of the corresponding instance.
[0096] In the disclosed embodiment, the current measurement results in the measurement result file cannot intuitively present the distribution of the current value of each component corresponding to each power signal in all levels of the circuit to be analyzed. Therefore, in order to facilitate the intuitive display of the distribution of the current value of each component of each power signal in all levels of the circuit to be analyzed, the power consumption analysis device needs to convert the current simulation results and the hierarchy map into a two-dimensional array. The following is an example of the measurement result file (Table 2) and hierarchy map (Table 3) of the current simulation results:
[0097] idd instHdl 0 -a tlc 1 b _e_319 ... ... ...
[0098] Table 2
[0099] As can be seen from Table 2, each row array of the two-dimensional array of the measurement result file corresponds to a current simulation result, and each row array contains a handle (instHdl) and its corresponding current value (idd). For example, the current value corresponding to the handle _e_319 is b.
[0100] instHdl fullName 0 tlc tlc 1 _e_319 xi_arraytop ... ... ...
[0101] Table 3
[0102] As can be seen from Table 3, each row array of the two-dimensional array of the hierarchical map contains a handle and the full name (fullName) of the instance to which it corresponds. For example, in the row array corresponding to the handle _e_319, the full name is xi_arraytop.
[0103] It should be noted that each full name is unique. The power consumption analysis device can retrieve the same-layer order corresponding to the instance in the circuit principle netlist through the full name.
[0104] S602, based on the hierarchical map, handle decoding is performed on the handles in the current simulation result to generate a new two-dimensional array; each row array of the new two-dimensional array includes a handle and its corresponding current value, parent set handle, full name and same-layer sorting.
[0105] Figure 4 is an optional flow chart of the power consumption analysis method provided in the embodiment of the present disclosure. In the embodiment of the present disclosure, reference is made to Figure 4 , based on the hierarchical map, decode the handle in the current simulation result to generate a new two-dimensional array. The new two-dimensional array (Table 4) in the following text is used as an example:
[0106]
[0107] Table 4
[0108] It can be seen from Table 4 that, compared with the measurement result file (Table 2), the new two-dimensional array (Table 4) adds the same-layer sorting and parent set handle (parentHdl) in each row array. For example, in the row array corresponding to handle _e_319, the current value is c, the parent set handle is "tlc", the full name is "xi_arraytop", and the same-layer sorting is "xi_arraytop". In this way, by decoding the handle, each current value can be mapped to the actual functional module.
[0109] S603 , retrieving the current value distribution of the power supply signal in different instances from the new two-dimensional array to generate a power consumption analysis report.
[0110] In the disclosed embodiment, referring to Table 4, the content of the power consumption analysis report generally includes the total current value of the power supply signal, the total current value of each functional module, and the external source of the power supply signal, while the new two-dimensional array does not include the sorted distribution of the total current of each power supply signal. Therefore, in order to generate the power consumption analysis report, the power consumption analysis device needs to retrieve the current value distribution of the power supply signal in different instances from the new two-dimensional array to obtain the sorted distribution of the total current of each power supply signal.
[0111] In some embodiments of the present disclosure, S604 may be implemented through S6041, which will be described in conjunction with each step.
[0112] S6041. When counting the current value of the power supply signal, convert the current values of all internal power supplies into the current values of the external power supplies according to a preset conversion coefficient.
[0113] In the disclosed embodiment, the power consumption analysis includes the external source of the power signal. Since in the new two-dimensional array (Table 4), the power supply corresponding to the power supply signal is the internal power supply. Therefore, when counting the current (i.e., performing two-dimensional array data processing), the power consumption analysis device needs to convert all the current values of the internal power supply into the current values of the external power supply according to the preset conversion coefficient (i.e., the external power conversion coefficient).
[0114] In some embodiments of the present disclosure, after executing S101 to S104, the power consumption analysis method may be further implemented through S105, and the power consumption analysis method will be described in combination with each step.
[0115] S105 , displaying a power consumption analysis report; the displayed content includes: the total current value of the power signal, the total current value of each functional module, and the external source of the power signal.
[0116] In the disclosed embodiment, the display module displays a power consumption analysis report; the displayed content includes: the total current value of the power signal, the total current value of each functional module, and the external source of the power signal.
[0117] Figure 5 This is an optional flow chart of the power consumption analysis method provided by the embodiment of the present disclosure. In the embodiment of the present disclosure, the power consumption analysis device sequentially obtains the circuit schematic and the netlist (i.e., obtains the circuit schematic netlist), thereby traversing the circuit schematic netlist to generate a corresponding current measurement file. Then, the current measurement file is simulated to generate a measurement result file. Finally, the measurement result file is analyzed to generate a corresponding power consumption analysis report.
[0118] Figure 6 It is a schematic diagram of the structure of an optional power consumption analysis device provided in an embodiment of the present disclosure.
[0119] The present disclosure also provides a power consumption analysis device, referring to Figure 6 , the power consumption analysis device 100 includes: a search module 30, configured to traverse the circuit to be analyzed to obtain the configuration information of the circuit to be analyzed; the configuration information includes: the hierarchical path and the same-layer order of the power supply signal and the functional module. A generation module 40, configured to obtain the configuration information from the search module 30; and, based on the configuration information, generate a current measurement file and a hierarchical map; wherein the current measurement file includes multiple lines of current measurement commands; each line of current measurement commands is used to measure the current parameter corresponding to a handle; the handle is a unique identifier of the hierarchical path and the same-layer order of the functional module; the hierarchical map contains the mapping relationship between the handle and the hierarchical path and the same-layer order of the functional module. A simulation module 50, configured to obtain the current measurement file from the generation module 40; and, simulate the current measurement file to obtain the current simulation result corresponding to each handle. A parsing module 60, configured to obtain the current simulation result from the simulation module 50 and the hierarchical map from the generation module 40; and, based on the current simulation result and the hierarchical map, generate a power consumption analysis report.
[0120] In the present disclosure, continue to refer to Figure 6, the power consumption analysis device 100 splits and obtains the current measurement file and the hierarchical map; then, simulates the current file to generate a measurement result file; finally, combines the hierarchical map and the measurement result file to generate a power consumption analysis report. Among them, the measurement result file contains the current simulation result corresponding to each handle. The hierarchical path and the same-layer order of the functional modules in the current measurement file are replaced by the handle; the hierarchical map contains the mapping relationship between the handle and the hierarchical path and the same-layer order of the functional modules. In this way, compared with the method in the related art that each line of measurement statement in the current measurement file contains the hierarchical path and the same-layer order of the functional module, the embodiment of the present disclosure uses the handle to represent the hierarchical path and the same-layer order of the functional module, so that the size of the current measurement file and the size of the simulated measurement result file can be reduced, thereby effectively reducing the simulation time and the post-processing time of the simulated measurement result file, and improving the power consumption analysis efficiency.
[0121] In some embodiments of the present disclosure, reference Figure 6 The search module 30 is also configured to obtain a circuit schematic netlist of the circuit to be analyzed; search for all power signals from the top layer of the circuit schematic netlist; and traverse all power signals to find the hierarchical path and same-layer sorting of the functional modules using the corresponding power signals.
[0122] In some embodiments of the present disclosure, reference Figure 6 The search module 30 is also configured to start from the top-level module of any circuit to be analyzed, pre-order traverse multiple instances corresponding to the power signal, and obtain the corresponding hierarchical path; pre-order traverse the remaining power signals to obtain configuration information.
[0123] In some embodiments of the present disclosure, reference Figure 6 The search module 30 is also configured to not access the functional circuit corresponding to its subset if an instance located at any layer is not connected to the currently traversed power signal, and continue to access the remaining functional modules at the same layer.
[0124] In some embodiments of the present disclosure, reference Figure 6 The generation module 40 is also configured to generate a handle corresponding to the instance each time an instance is accessed; obtain all handles, and record the mapping relationship between each handle and the corresponding instance to generate a hierarchical map.
[0125] In some embodiments of the present disclosure, reference Figure 6 The generation module 40 is also configured to check the port signal of the instance each time an instance is accessed, and determine whether the instance is connected to the power signal currently traversed; if the instance is connected to the power signal currently accessed, generate a current measurement command for the corresponding instance; the current measurement command includes a handle, a power name and a hierarchical path; obtain all current measurement commands to generate a current measurement file.
[0126] In some embodiments of the present disclosure, reference Figure 6 The generation module 40 is further configured to access and check the port signal of the next instance if the instance is not connected to the power signal currently traversed, until a new current measurement command is generated.
[0127] In some embodiments of the present disclosure, reference Figure 6 The parsing module 60 is also configured to convert the current simulation results and the hierarchy map into a two-dimensional array; each row array of the two-dimensional array of the current simulation results contains a handle and its corresponding current value; each row array of the two-dimensional array of the hierarchy map contains a handle and the full name of the instance corresponding to it; based on the hierarchy map, the handle in the current simulation result is decoded to generate a new two-dimensional array; each row array of the new two-dimensional array includes a handle and its corresponding current value, a parent set handle and a same-layer sorting; the current value distribution of the power supply signal in different instances is retrieved from the new two-dimensional array to generate a power consumption analysis report.
[0128] In some embodiments of the present disclosure, reference Figure 6 The power consumption analysis device 100 further includes: a display module 70 configured to obtain a power consumption analysis report from the analysis module 60; and display the power consumption analysis report. The display content of the display module 70 includes: the total current value of the power signal, the total current value of each functional module, and the external source of the power signal.
[0129] In the disclosed embodiment, the display module includes an interactive interface and a dynamic window. The interactive interface can intuitively display the ranking distribution of the total current of each power supply signal, and can also display the contribution ratio of the functional module to the external power supply. The dynamic window can display the current value of each functional module in real time.
[0130] Figure 7 This is an optional structural diagram of the power consumption analysis device 100 provided in an embodiment of the present application, referring to Figure 7 The hardware entity of the power consumption analysis device 100 includes: a processor 101, a memory 102 and a communication interface 103. The processor 101 generally controls the overall operation of the power consumption analysis device 100. The communication interface 103 enables the power consumption analysis device 100 to communicate with other devices or equipment through a network. The memory 102 is configured to store instructions and applications executable by the processor 101, and can also cache the data to be processed or processed by the processor 101 and each module in the power consumption analysis device 100 (for example, image data, audio data, voice communication data, and video communication data), which can be implemented by flash memory (FLASH) or random access memory (Random Access Memory, RAM).
[0131] It should be noted that in the embodiments of the present disclosure, if the above-mentioned power consumption analysis method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present disclosure is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable the power consumption analysis device 100 (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.
[0132] It should be noted that, in this article, the terms "include", "comprises" or any other variations 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, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0133] The serial numbers of the embodiments of the present disclosure are for description only and do not represent the advantages and disadvantages of the embodiments. The methods disclosed in the several method embodiments provided by the present disclosure can be arbitrarily combined without conflict to obtain new method embodiments. The features disclosed in the several product embodiments provided by the present disclosure can be arbitrarily combined without conflict to obtain new product embodiments. The features disclosed in the several method or device embodiments provided by the present disclosure can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0134] The above is only a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A power consumption analysis method, characterized in that: include: Traversing the circuit to be analyzed to obtain configuration information of the circuit to be analyzed; The configuration information includes: power supply signal, hierarchical path of functional modules and same-layer sorting; Generate a current measurement file and a hierarchical map based on the configuration information; the current measurement file includes multiple lines of current measurement commands; each line of the current measurement command is used to measure a current parameter corresponding to a handle; the handle is a unique identifier of the hierarchical path and the same-layer sorting of the functional module; the hierarchical map includes a mapping relationship between the handle and the hierarchical path and the same-layer sorting of the functional module; Simulating the current measurement file to obtain a current simulation result corresponding to each handle; A power consumption analysis report is generated based on the current simulation result and the hierarchy map.
2. The power consumption analysis method according to claim 1, characterized in that: Traversing the circuit to be analyzed to obtain the configuration information of the circuit to be analyzed includes: Obtaining a circuit schematic netlist of the circuit to be analyzed; Find all the power supply signals from the top layer of the circuit schematic netlist; All the power signals are traversed to find the hierarchical path and the same-layer order of the functional modules using the corresponding power signals.
3. The power consumption analysis method according to claim 2, characterized in that: Generating the hierarchical map based on the configuration information includes: Each time an instance is accessed, the handle corresponding to the instance is generated; All the handles are obtained, and a mapping relationship between each handle and the corresponding instance is recorded to generate the hierarchical map.
4. The power consumption analysis method according to claim 3, characterized in that: Generating the current measurement file based on the configuration information includes: Each time an instance is visited, a port signal of the instance is checked to determine whether the instance is connected to the power signal currently traversed; If the instance is connected to the power signal currently being accessed, a current measurement command corresponding to the instance is generated; the current measurement command includes the handle, the power name and the hierarchical path; All the current measurement commands are acquired to generate the current measurement file.
5. The power consumption analysis method according to claim 4, characterized in that: Generating the current measurement file based on the configuration information further includes: If the instance is not connected to the power supply signal currently traversed, the port signal of the next instance is accessed and checked until a new current measurement command is generated.
6. The power consumption analysis method according to claim 2, characterized in that: Each of the circuits to be analyzed corresponds to at least one top-level module; the hierarchical path is the connection relationship between the functional module and the top-level module; The traversing all the power signals to find the hierarchical path and the same-layer sorting of the functional modules using the corresponding power signals includes: Starting from the top-level module of any one of the circuits to be analyzed, traversing multiple instances corresponding to the power supply signal in a pre-order manner, and acquiring the corresponding hierarchical path; The preorder traverses the remaining power signals to obtain the configuration information.
7. The power consumption analysis method according to claim 6, characterized in that: The instance corresponding to each of the power signals has multiple levels; the pre-order traversal of the multiple instances corresponding to the power signals includes: If an instance located at any layer is not connected to the power signal currently traversed, the functional circuit corresponding to its subset is not accessed, and the remaining functional modules at the same layer continue to be accessed.
8. The power consumption analysis method according to claim 1, characterized in that: The current simulation result includes the handle having the power signal flag and a current value corresponding to the current measurement command.
9. The power consumption analysis method according to claim 8, characterized in that: Based on the current simulation result and the hierarchy map, generating the power consumption analysis report includes: Converting the current simulation result and the level map into a two-dimensional array; each row array of the two-dimensional array of the current simulation result contains one of the handles and the current value corresponding thereto; each row array of the two-dimensional array of the level map contains one of the handles and the full name of the instance corresponding thereto; Based on the hierarchical map, handle decoding is performed on the handle in the current simulation result to generate a new two-dimensional array; each row array of the new two-dimensional array includes a handle and its corresponding current value, parent set handle and the same-layer sorting; The current value distribution of the power supply signal in different instances is retrieved from the new two-dimensional array to generate the power consumption analysis report.
10. The power consumption analysis method according to claim 9, characterized in that: The power supply corresponding to the power supply signal is an internal power supply; The generating the power consumption analysis report based on the current simulation result and the hierarchy map further includes: When counting the current value of the power supply signal, all the current values of the internal power supplies are converted into the current values of the external power supplies according to a preset conversion coefficient.
11. The power consumption analysis method according to claim 1, characterized in that: The power consumption analysis method further includes: The power consumption analysis report is displayed; the displayed content includes: the total current value of the power signal, the total current value of each of the functional modules, and the external source of the power signal.
12. A power consumption analysis device, characterized in that: include: A search module is configured to traverse the circuit to be analyzed to obtain configuration information of the circuit to be analyzed; The configuration information includes: hierarchical paths and same-layer sorting of power signals and functional modules; A generation module is configured to obtain the configuration information from the search module; and generate a current measurement file and a hierarchical map based on the configuration information; wherein the current measurement file includes multiple lines of current measurement commands; each line of the current measurement command is used to measure a current parameter corresponding to a handle; the handle is a unique identifier of the hierarchical path and the same-layer sorting of the functional module; the hierarchical map contains a mapping relationship between the handle and the hierarchical path and the same-layer sorting of the functional module; A simulation module is configured to obtain the current measurement file from the generation module; and simulate the current measurement file to obtain a current simulation result corresponding to each handle; The parsing module is configured to obtain the current simulation result from the simulation module and the hierarchy map from the generation module; and generate a power consumption analysis report based on the current simulation result and the hierarchy map.
13. The power consumption analysis device according to claim 12, characterized in that: The power consumption analysis device also includes: The display module is configured to obtain the power consumption analysis report from the analysis module; and display the power consumption analysis report; the display content of the display module includes the total current value of the power signal, the total current value of each of the functional modules, and the external source of the power signal.
14. A power consumption analysis device, characterized in that: include: A memory for storing executable instructions; A processor, configured to implement the method according to any one of claims 1 to 11 when executing the executable instructions stored in the memory.
15. A storage medium, characterized in that: Executable instructions are stored, which are used to cause a processor to execute and implement the method described in any one of claims 1 to 11.
