Method, apparatus, device and medium for determining logic area of integrated circuit

By splitting paths into relative paths and generating key-value pairs, the problem of uncertain logic area of ​​internal modules within integrated circuit layers is solved, enabling accurate power consumption optimization and resource release.

CN117725865BActive Publication Date: 2026-11-24SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311743469.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-15
Publication Date
2026-11-24
Estimated Expiration
2043-12-15

AI Technical Summary

Technical Problem

Existing technologies cannot accurately determine the logic area of ​​modules within an integrated circuit layer, resulting in the inability to perform accurate power consumption optimization and the duplication of computing resources.

Method used

By splitting storage and module absolute paths into relative paths, a key-value pair table is generated. Then, based on the storage unit and module area, computing resources are released, and the logical area of ​​the internal modules of the hierarchy is accurately determined.

Benefits of technology

It enables accurate determination of the logic area of ​​internal modules within the integrated circuit hierarchy, freeing up computing resources and enabling accurate power consumption optimization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117725865B_ABST
    Figure CN117725865B_ABST
Patent Text Reader

Abstract

This invention discloses a method, apparatus, device, and medium for determining the logic area of ​​integrated circuits, relating to the field of integrated circuit technology. The method involves: acquiring storage area information files and module area information files; splitting absolute storage paths into multiple relative storage paths and assigning values; generating a key-value pair table based on the relative storage paths and storage cell areas; splitting absolute module paths into multiple relative module paths and assigning values; matching the storage cell areas of the corresponding relative storage paths based on the relative module paths; and determining the logic area based on the module areas and storage cell areas. Due to the generation of the key-value pair table, when matching storage cell areas using relative module paths, it is unnecessary to traverse the module area file multiple times, thus freeing up computational resources. Furthermore, using relative paths for matching allows for the determination of the logic area within each module at a given level, thereby enabling accurate power consumption optimization of the integrated circuit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of integrated circuit technology, and in particular to methods, apparatus, devices and media for determining the logic area based on integrated circuits. Background Technology

[0002] With the rapid development of integrated circuits, in a multi-level integrated circuit, each level contains multiple modules. Correspondingly, each module has a logic area and a storage area. The logic area can be understood as the area of ​​the logic gates used to build the logic circuit, and the storage area can be understood as the area occupied by the storage units in each level used to store data processed by the logic gates. Based on such an integrated circuit, the existing method for determining the logic area of ​​each level is to simultaneously open the storage area file and the module area file. For each absolute path read from the storage area file, the module area file is traversed once for matching. When the storage area file contains multiple absolute paths, this requires multiple traversals of the module area file, resulting in the consumption of computational resources. Furthermore, since the storage area file and module area file are matched based on absolute paths, only the logic area between levels can be determined, not the logic area within each module within a level. This makes it impossible to accurately optimize the power consumption of the integrated circuit.

[0003] Given the aforementioned problems, finding a way to determine the logic area within modules at different levels of an integrated circuit is a problem that those skilled in the art strive to solve. Summary of the Invention

[0004] The purpose of this invention is to provide a method, apparatus, device, and medium for determining the logic area of ​​an integrated circuit, which solves the problems of occupied computing resources and the inability to know the logic area of ​​each module within the hierarchy, thus making it impossible to make accurate power consumption optimization for the integrated circuit.

[0005] To address the aforementioned technical problems, this invention provides a method for determining the logic area based on integrated circuits, applicable to multi-level integrated circuits, where each level has multiple modules. The method includes:

[0006] Obtain the storage area information file and the module area information file; the storage area information file stores the storage unit area and absolute storage path of each module under each level, and the module area information file stores the module area and absolute module path of each module.

[0007] The absolute storage path is split into multiple relative storage paths, and the relative storage paths are assigned values ​​based on the storage cell area.

[0008] Generate a key-value table based on the relative storage path and storage cell area;

[0009] The absolute path of a module is split into multiple relative paths of modules, and the absolute path of the module is assigned a value based on the module area;

[0010] The storage unit area is matched based on the relative path of the module to the corresponding relative storage path.

[0011] The logical area is determined based on the module area and the storage unit area.

[0012] On the other hand, before splitting the absolute storage path into multiple relative storage paths, the following is also included:

[0013] Set the storage path identifier for the absolute storage path;

[0014] Determine whether a storage path identifier is set for the absolute storage path;

[0015] If a storage path identifier is present, it is determined that the absolute storage path has been successfully obtained, and the process proceeds to the step of splitting the absolute storage path into multiple relative storage paths.

[0016] If no storage path identifier is found, it indicates that obtaining the absolute storage path has failed, and the process returns to the steps of obtaining the storage area information file and the module area information file.

[0017] On the other hand, after determining the logical area based on the module area and storage unit area, the following is also included:

[0018] Obtain the logic gate parameters; the logic gate parameters should at least include the logic gate type and the logic gate area.

[0019] Determine if the logic gate types are consistent;

[0020] If the types of logic gates are the same, the number of logic gates is determined based on the logic gate area and the logic gate area.

[0021] If the logic gate types are inconsistent, the average logic gate area is obtained by averaging the logic gate areas.

[0022] The number of logic gates is determined based on the average logic gate area and the logic area.

[0023] On the other hand, before splitting the absolute path of a module into multiple relative paths of modules, the following is also included:

[0024] Determine if the absolute path of the module is the same as the absolute path of the module corresponding to the first level;

[0025] If the absolute path of a module is the absolute path of the module corresponding to the first level, then the absolute path of the module corresponding to the first level is split into multiple relative paths of the module corresponding to the first level.

[0026] The storage unit area of ​​the corresponding storage relative path in the table is matched based on the relative path of the module corresponding to the first level;

[0027] The area of ​​the storage units that match the relative paths of all modules in the first level is summed to obtain the area of ​​the storage units in the first level.

[0028] The area of ​​the corresponding module is obtained based on the relative path of the module in the first level.

[0029] Add up the areas of all the modules to get the area of ​​the first-level modules;

[0030] The logical area of ​​the first level is determined based on the area of ​​the first-level module and the area of ​​the first-level storage unit.

[0031] Correspondingly, after determining the logical area of ​​the first level based on the module area and storage unit area of ​​the first level, the process also includes:

[0032] Obtain the logic gate parameters of the first level; the logic gate parameters include at least the type of logic gate and the area of ​​the logic gate in the first level;

[0033] Determine if the types of logic gates in the first level are consistent;

[0034] If the types of logic gates in the first level are the same, then the number of logic gates in the first level is determined based on the area of ​​the logic gates in the first level and the logic area of ​​the first level.

[0035] If the types of logic gates in the first level are inconsistent, the average area of ​​the logic gates in the first level is calculated to obtain the average area of ​​the logic gates in the first level.

[0036] The number of logic gates in the first level is determined based on the average logic gate area and the logic area of ​​the first level.

[0037] On the other hand, splitting an absolute storage path into multiple relative storage paths includes:

[0038] Get the module names of all modules in each level;

[0039] Split the absolute storage path into a relative storage path based on the module name;

[0040] Correspondingly, splitting the absolute path of a module into multiple relative paths for the modules includes:

[0041] Get the module names of all modules in each level;

[0042] Split the absolute path of a module into a relative path based on the module name.

[0043] On the other hand, obtaining the storage area information file and the module area information file includes:

[0044] Initiate an indexing command;

[0045] Determine the index path based on the indexing instructions;

[0046] Retrieve the corresponding storage area information file and module area information file based on the index path.

[0047] On the other hand, after determining the logical area based on the module area and storage unit area, the following is also included:

[0048] Initiate an indexing command;

[0049] Determine the target storage path based on the indexing instructions;

[0050] The hierarchy number, module name, module area, storage unit area, logic area, and number of logic gates corresponding to the logical area are obtained sequentially.

[0051] Update the storage level label, module name, module area, storage unit area, and number of logic gates to the target storage path.

[0052] To address the aforementioned technical problems, the present invention also provides a device for determining the logic area based on integrated circuits, applicable to multi-level integrated circuits, wherein multiple modules are provided in each level, and the device includes:

[0053] The first acquisition module is used to acquire the storage area information file and the module area information file. The storage area information file stores the storage unit area and absolute storage path of each module under each level, and the module area information file stores the module area and absolute module path of each module.

[0054] The first splitting module is used to split the absolute storage path into multiple relative storage paths and assign values ​​to the relative storage paths according to the area of ​​the storage unit;

[0055] The generation module is used to generate a key-value pair table based on the relative storage path and the storage cell area;

[0056] The second splitting module is used to split the absolute path of a module into multiple relative paths of modules, and assign values ​​to the absolute paths of modules based on the module area;

[0057] The first matching module is used to match the storage unit area of ​​the corresponding storage relative path according to the module relative path;

[0058] The first determining module is used to determine the logical area based on the module area and the storage unit area.

[0059] In addition, the device also includes the following modules:

[0060] On the other hand, before splitting the absolute storage path into multiple relative storage paths, the following is also included:

[0061] The settings module is used to set the storage path identifier for the absolute storage path.

[0062] The first judgment module is used to determine whether a storage path identifier is set in the absolute storage path;

[0063] If a storage path identifier is present, the second determination module is triggered to determine that the absolute storage path has been successfully obtained, and then proceeds to the step of splitting the absolute storage path into multiple relative storage paths.

[0064] If no storage path identifier is found, the third determination module is triggered to determine that obtaining the absolute storage path has failed, and the process returns to the step of obtaining the storage area information file and the module area information file.

[0065] On the other hand, after determining the logical area based on the module area and storage unit area, the following is also included:

[0066] The second acquisition module is used to acquire logic gate parameters; the logic gate parameters include at least the logic gate type and the logic gate area.

[0067] The second judgment module is used to determine whether the logic gate types are consistent;

[0068] If the logic gate types are the same, the fourth determination module is triggered to determine the number of logic gates based on the logic gate area and the logic area.

[0069] If the logic gate types are inconsistent, the first averaging module is triggered to perform an averaging operation on the logic gate areas to obtain the average logic gate area.

[0070] The fifth determination module is used to determine the number of logic gates based on the average logic gate area and the logic area.

[0071] On the other hand, before splitting the absolute path of a module into multiple relative paths of modules, the following is also included:

[0072] The third judgment module is used to determine whether the absolute path of the module is the absolute path of the module corresponding to the first level;

[0073] If the absolute path of a module is the absolute path of the module corresponding to the first level, then the third module splitting is triggered to split the absolute path of the module corresponding to the first level into multiple relative paths of the module corresponding to the first level.

[0074] The second matching module is used to match the storage unit area of ​​the corresponding storage relative path in the table based on the module relative path corresponding to the first level.

[0075] The first summing module is used to sum the areas of all storage units that match the relative paths of the modules corresponding to the first level, so as to obtain the area of ​​the storage units in the first level.

[0076] The third acquisition module is used to obtain the area of ​​the corresponding module based on the relative path of the module in the first level.

[0077] The second summing module is used to sum the areas of all modules to obtain the area of ​​the first-level modules;

[0078] The sixth determining module is used to determine the logical area of ​​the first level based on the module area and the storage unit area of ​​the first level.

[0079] Correspondingly, after determining the logical area of ​​the first level based on the module area and storage unit area of ​​the first level, the process also includes:

[0080] The fourth acquisition module is used to acquire the logic gate parameters of the first level; the logic gate parameters include at least the type of logic gate and the area of ​​the logic gate in the first level.

[0081] The fourth judgment module is used to determine whether the types of logic gates in the first level are consistent;

[0082] The seventh determining module is used to determine the number of logic gates in the first level based on the area of ​​the logic gates in the first level and the logic area of ​​the first level if the types of logic gates in the first level are the same.

[0083] The second averaging module is used to perform an averaging operation on the area of ​​the logic gates in the first level if the types of logic gates in the first level are inconsistent, so as to obtain the average area of ​​the logic gates in the first level.

[0084] The eighth determining module is used to determine the number of logic gates in the first level based on the average logic gate area and the logic area of ​​the first level.

[0085] On the other hand, splitting an absolute storage path into multiple relative storage paths includes:

[0086] The fifth module is used to retrieve the module names of all modules in each level.

[0087] The fourth splitting module is used to split absolute storage paths into relative storage paths based on module names;

[0088] Correspondingly, splitting the absolute path of a module into multiple relative paths for the modules includes:

[0089] The sixth module is used to obtain the module names of all modules in each level;

[0090] The fifth splitting module is used to split the absolute path of a module into a relative path based on the module name.

[0091] On the other hand, obtaining the storage area information file and the module area information file includes:

[0092] The first initiation module is used to initiate indexing commands;

[0093] The ninth determining module is used to determine the index path based on the indexing instructions;

[0094] The seventh module is used to obtain the corresponding storage area information file and module area information file based on the index path.

[0095] On the other hand, after determining the logical area based on the module area and storage unit area, the following is also included:

[0096] The second initiation module is used to initiate indexing commands;

[0097] The tenth determination module is used to determine the target storage path based on the indexing instructions;

[0098] The eighth acquisition module is used to sequentially acquire the hierarchical label, module name, module area, storage unit area, logical area, and number of logic gates corresponding to the logical area;

[0099] The storage module is used to update the storage level label, module name, module area, storage unit area, and number of logic gates to the target storage path.

[0100] To address the aforementioned technical problems, the present invention also provides a device for determining the logic area based on integrated circuits, comprising:

[0101] Memory, used to store computer programs;

[0102] A processor is used to direct computer programs to implement steps of a method for determining the logic area based on an integrated circuit.

[0103] To address the aforementioned technical problems, the present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements all the steps of the above-described method for determining the logic area based on integrated circuits.

[0104] This invention provides a method for determining the logic area of ​​an integrated circuit, applicable to multi-level integrated circuits, where each level contains multiple modules. The method includes: acquiring a storage area information file and a module area information file; the storage area information file stores the storage cell area and absolute storage path of each module under each level, and the module area information file stores the module area and absolute module path of each module; splitting the absolute storage path into multiple relative storage paths and assigning values ​​to the relative storage paths based on the storage cell area; generating a key-value pair table based on the relative storage paths and storage cell areas; splitting the absolute module path into multiple relative module paths and assigning values ​​to the absolute module paths based on the module area; matching the storage cell area of ​​the corresponding relative storage path based on the relative module path; and determining the logic area based on the module area and storage cell area. Due to the generation of the key-value pair table, when matching the storage cell area using the relative module path, it is unnecessary to traverse the module area file multiple times, thus freeing up computational resources; simultaneously, using relative paths for matching allows for the determination of the logic area of ​​each module within the level, thereby enabling accurate power consumption optimization of the integrated circuit.

[0105] The present invention also provides a device, apparatus and medium for determining the logic area based on integrated circuits, with the same effect as above. Attached Figure Description

[0106] To more clearly illustrate the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0107] Figure 1 A flowchart illustrating a method for determining the logic area based on an integrated circuit, provided as an embodiment of the present invention;

[0108] Figure 2 This is a structural diagram of a device for determining the logic area based on an integrated circuit, provided in an embodiment of the present invention.

[0109] Figure 3 This is a device structure diagram for determining the logic area based on an integrated circuit, provided as an embodiment of the present invention. Detailed Implementation

[0110] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of the present invention.

[0111] The core of this invention is to provide a method, apparatus, device, and medium for determining the logic area of ​​an integrated circuit, which can free up computing resources and determine the logic area of ​​each module within the hierarchy, thereby enabling accurate power consumption optimization of the integrated circuit.

[0112] To enable those skilled in the art to better understand the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0113] Figure 1 The flowchart illustrates a method for determining the logic area based on an integrated circuit, as provided in an embodiment of the present invention. Figure 1 As shown, this method for determining the logic area based on integrated circuits is applied to multi-level integrated circuits, with multiple modules set in each level. The method includes:

[0114] S10: Obtain the storage area information file and the module area information file;

[0115] The storage area information file stores the storage unit area and absolute storage path of each module under each level, and the module area information file stores the module area and absolute module path of each module.

[0116] S11: Split the absolute storage path into multiple relative storage paths, and assign values ​​to the relative storage paths according to the storage cell area;

[0117] In some embodiments, when splitting the absolute storage path, it is split according to the name of the module under each level, and the corresponding split relative storage path is found. The relative storage path is matched with the storage unit area in the storage area information file.

[0118] S12: Generate a key-value pair table based on the relative storage path and storage cell area;

[0119] The key-value table stores keys and values ​​respectively, where the key represents the relative path to be stored and the value represents the area of ​​the storage cell.

[0120] S13: Split the absolute path of a module into multiple relative paths of modules, and assign values ​​to the absolute paths of modules based on the module area;

[0121] In some embodiments, when splitting absolute paths of modules, the splitting is also based on the names of modules under each level, and the corresponding relative paths of the split modules are found. The module area is then matched with the module area in the module area information file.

[0122] S14: Match the storage unit area of ​​the corresponding storage relative path based on the module relative path;

[0123] At this point, the module relative path needs to be matched with the storage relative path, and the module relative path is matched according to the key-value pair table;

[0124] At this point, the module relative path corresponds to the storage relative path, and the storage relative path corresponds to the storage unit area; that is, the module relative path corresponds to the storage unit area.

[0125] In addition, an array file can be generated, which only stores the relative paths of modules and the area of ​​storage units. This array file can be stored under a specified absolute path of a module.

[0126] The relative path is the path within a module at each level; the absolute path is the path between modules at each level.

[0127] S15: Determine the logical area based on the module area and the storage unit area.

[0128] Because of the generation of key-value pairs, when matching the storage cell area using module relative paths, there is no need to traverse the module area information file multiple times, thus freeing up computing resources; at the same time, using relative paths for matching can reveal the logical area of ​​each module within the hierarchy, thereby enabling accurate power consumption optimization of integrated circuits.

[0129] In some embodiments, before splitting the absolute storage path into multiple relative storage paths, the method further includes:

[0130] Set the storage path identifier for the absolute storage path;

[0131] Determine whether a storage path identifier is set for the absolute storage path;

[0132] If a storage path identifier is present, it is determined that the absolute storage path has been successfully obtained, and the process proceeds to the step of splitting the absolute storage path into multiple relative storage paths.

[0133] If no storage path identifier is found, it indicates that obtaining the absolute storage path has failed, and the process returns to the steps of obtaining the storage area information file and the module area information file.

[0134] To confirm that the obtained information is an absolute storage path, a corresponding storage path identifier is set for the absolute storage path. At this time, the number of storage path identifiers is equal to the number of absolute storage paths. Based on the storage path identifier, it is determined whether the acquisition of the absolute storage path was successful. Only if the absolute storage path is successfully acquired can the step of splitting the absolute storage path into multiple relative storage paths be entered. This is to determine the accuracy of splitting the absolute storage path.

[0135] In some embodiments, after determining the logical area based on the module area and the storage unit area, the method further includes:

[0136] Obtain the logic gate parameters; the logic gate parameters should at least include the logic gate type and the logic gate area.

[0137] Determine if the logic gate types are consistent;

[0138] If the types of logic gates are the same, the number of logic gates is determined based on the logic gate area and the logic gate area.

[0139] If the logic gate types are inconsistent, the average logic gate area is obtained by averaging the logic gate areas.

[0140] The number of logic gates is determined based on the average logic gate area and the logic area.

[0141] In this embodiment, to determine the number of logic gates, it is necessary to obtain the logic gate parameters for each module. These parameters include not only the logic gate types and area parameters mentioned above, but also the classification of various logic gates and the corresponding number of each type. It is understood that the logic gate types in different modules are generally different, consisting of multiple logic gates. Furthermore, when the logic gate types are determined to be inconsistent, the logic gate areas are averaged to obtain the average logic gate area. The number of logic gates is then determined based on the average logic gate area and the total logic gate area. Specifically, the number of logic gates is determined by subtracting the storage unit area from the module area to obtain the logic area, and then dividing the logic area by the average logic gate area.

[0142] In some embodiments, before splitting the absolute path of a module into multiple relative paths of modules, the method further includes:

[0143] Determine if the absolute path of the module is the same as the absolute path of the module corresponding to the first level;

[0144] If the absolute path of a module is the absolute path of the module corresponding to the first level, then the absolute path of the module corresponding to the first level is split into multiple relative paths of the module corresponding to the first level.

[0145] The storage unit area of ​​the corresponding storage relative path in the table is matched based on the relative path of the module corresponding to the first level;

[0146] The area of ​​the storage units that match the relative paths of all modules in the first level is summed to obtain the area of ​​the storage units in the first level.

[0147] The area of ​​the corresponding module is obtained based on the relative path of the module in the first level.

[0148] Add up the areas of all the modules to get the area of ​​the first-level modules;

[0149] The logical area of ​​the first level is determined based on the area of ​​the first-level module and the area of ​​the first-level storage unit.

[0150] Correspondingly, after determining the logical area of ​​the first level based on the module area and storage unit area of ​​the first level, the process also includes:

[0151] Obtain the logic gate parameters of the first level; the logic gate parameters include at least the type of logic gate and the area of ​​the logic gate in the first level;

[0152] Determine if the types of logic gates in the first level are consistent;

[0153] If the types of logic gates in the first level are the same, then the number of logic gates in the first level is determined based on the area of ​​the logic gates in the first level and the logic area of ​​the first level.

[0154] If the types of logic gates in the first level are inconsistent, the average area of ​​the logic gates in the first level is calculated to obtain the average area of ​​the logic gates in the first level.

[0155] The number of logic gates in the first level is determined based on the average logic gate area and the logic area of ​​the first level.

[0156] Understandably, the obtained key-value pair table, storage area information file, and module area information file do not contain information related to the first level of the integrated circuit. Therefore, in order to complete the contents of the above files and ensure their integrity, it is determined whether the absolute path of the module is the absolute path of the module corresponding to the first level. If it is determined that the absolute path of the module is the absolute path of the module corresponding to the first level, the absolute path of the module corresponding to the first level is split into multiple relative paths of the module corresponding to the first level. At this time, the absolute path of the module is also split according to the name of the module of the first level, and the areas of all the storage cells of the first level are summed. The logic area is determined based on the summed storage cell area, and then the number of logic gates is determined.

[0157] In some embodiments, splitting an absolute storage path into multiple relative storage paths includes:

[0158] Get the module names of all modules in each level;

[0159] Split the absolute storage path into a relative storage path based on the module name;

[0160] Correspondingly, splitting the absolute path of a module into multiple relative paths for the modules includes:

[0161] Get the module names of all modules in each level;

[0162] Split the absolute path of a module into a relative path based on the module name.

[0163] To ensure that all levels of information in the integrated circuit are traversed, it is necessary to obtain the module names of all modules in each level; then, the absolute storage path is split into a relative storage path based on the module name, and similarly, the absolute module path is also split into a relative module path based on the module name.

[0164] Based on the above embodiments, obtaining the storage area information file and the module area information file includes:

[0165] Initiate an indexing command;

[0166] Determine the index path based on the indexing instructions;

[0167] Retrieve the corresponding storage area information file and module area information file based on the index path.

[0168] The index path mentioned in this embodiment is the path of the target module at the target level that needs to be accessed, which is set by the command line. This path is also an absolute path, and it needs to be split according to the module name.

[0169] Similarly, after determining the logical area based on the module area and storage unit area, the following also applies:

[0170] Initiate an indexing command;

[0171] Determine the target storage path based on the indexing instructions;

[0172] The hierarchy number, module name, module area, storage unit area, logic area, and number of logic gates corresponding to the logical area are obtained sequentially.

[0173] Update the storage level label, module name, module area, storage unit area, and number of logic gates to the target storage path.

[0174] The target storage path mentioned in this embodiment is the path of all information obtained by the final storage through the command line setting. This path is also an absolute path, and it needs to be split according to the module name.

[0175] In the above embodiments, the method for determining the logic area based on integrated circuits has been described in detail. This invention also provides embodiments of a device for determining the logic area based on integrated circuits. It should be noted that this invention describes the embodiments of the device from two perspectives: one based on functional modules, and the other based on hardware.

[0176] Figure 2 A device structure diagram for determining the logic area based on an integrated circuit is provided in an embodiment of the present invention, as shown below. Figure 2As shown, the present invention also provides a device for determining the logic area based on integrated circuits, applicable to multi-level integrated circuits, wherein multiple modules are provided in each level, and the device includes:

[0177] The first acquisition module 20 is used to acquire the storage area information file and the module area information file; the storage area information file stores the storage unit area and storage absolute path of each module under each level, and the module area information file stores the module area and module absolute path of each module.

[0178] The first splitting module 21 is used to split the absolute storage path into multiple relative storage paths and assign values ​​to the relative storage paths according to the area of ​​the storage cell;

[0179] Generation module 22 is used to generate a key-value pair table based on the relative storage path and storage cell area;

[0180] The second splitting module 23 is used to split the absolute path of a module into multiple relative paths of modules, and assign values ​​to the absolute paths of modules according to the module area;

[0181] The first matching module 24 is used to match the storage unit area of ​​the corresponding storage relative path according to the module relative path;

[0182] The first determining module 25 is used to determine the logical area based on the module area and the storage unit area.

[0183] In addition, the device also includes the following modules:

[0184] In some embodiments, before splitting the absolute storage path into multiple relative storage paths, the method further includes:

[0185] The settings module is used to set the storage path identifier for the absolute storage path.

[0186] The first judgment module is used to determine whether a storage path identifier is set in the absolute storage path;

[0187] If a storage path identifier is present, the second determination module is triggered to determine that the absolute storage path has been successfully obtained, and then proceeds to the step of splitting the absolute storage path into multiple relative storage paths.

[0188] If no storage path identifier is found, the third determination module is triggered to determine that obtaining the absolute storage path has failed, and the process returns to the step of obtaining the storage area information file and the module area information file.

[0189] In some embodiments, after determining the logical area based on the module area and the storage unit area, the method further includes:

[0190] The second acquisition module is used to acquire logic gate parameters; the logic gate parameters include at least the logic gate type and the logic gate area.

[0191] The second judgment module is used to determine whether the logic gate types are consistent;

[0192] If the logic gate types are the same, the fourth determination module is triggered to determine the number of logic gates based on the logic gate area and the logic area.

[0193] If the logic gate types are inconsistent, the first averaging module is triggered to perform an averaging operation on the logic gate areas to obtain the average logic gate area.

[0194] The fifth determination module is used to determine the number of logic gates based on the average logic gate area and the logic area.

[0195] In some embodiments, before splitting the absolute path of a module into multiple relative paths of modules, the method further includes:

[0196] The third judgment module is used to determine whether the absolute path of the module is the absolute path of the module corresponding to the first level;

[0197] If the absolute path of a module is the absolute path of the module corresponding to the first level, then the third module splitting is triggered to split the absolute path of the module corresponding to the first level into multiple relative paths of the module corresponding to the first level.

[0198] The second matching module is used to match the storage unit area of ​​the corresponding storage relative path in the table based on the module relative path corresponding to the first level.

[0199] The first summing module is used to sum the areas of all storage units that match the relative paths of the modules corresponding to the first level, so as to obtain the area of ​​the storage units in the first level.

[0200] The third acquisition module is used to obtain the area of ​​the corresponding module based on the relative path of the module in the first level.

[0201] The second summing module is used to sum the areas of all modules to obtain the area of ​​the first-level modules;

[0202] The sixth determining module is used to determine the logical area of ​​the first level based on the module area and the storage unit area of ​​the first level.

[0203] Correspondingly, after determining the logical area of ​​the first level based on the module area and storage unit area of ​​the first level, the process also includes:

[0204] The fourth acquisition module is used to acquire the logic gate parameters of the first level; the logic gate parameters include at least the type of logic gate and the area of ​​the logic gate in the first level.

[0205] The fourth judgment module is used to determine whether the types of logic gates in the first level are consistent;

[0206] The seventh determining module is used to determine the number of logic gates in the first level based on the area of ​​the logic gates in the first level and the logic area of ​​the first level if the types of logic gates in the first level are the same.

[0207] The second averaging module is used to perform an averaging operation on the area of ​​the logic gates in the first level if the types of logic gates in the first level are inconsistent, so as to obtain the average area of ​​the logic gates in the first level.

[0208] The eighth determining module is used to determine the number of logic gates in the first level based on the average logic gate area and the logic area of ​​the first level.

[0209] In some embodiments, splitting an absolute storage path into multiple relative storage paths includes:

[0210] The fifth module is used to retrieve the module names of all modules in each level.

[0211] The fourth splitting module is used to split absolute storage paths into relative storage paths based on module names;

[0212] Correspondingly, splitting the absolute path of a module into multiple relative paths for the modules includes:

[0213] The sixth module is used to obtain the module names of all modules in each level;

[0214] The fifth splitting module is used to split the absolute path of a module into a relative path based on the module name.

[0215] In some embodiments, obtaining the storage area information file and the module area information file includes:

[0216] The first initiation module is used to initiate indexing commands;

[0217] The ninth determining module is used to determine the index path based on the indexing instructions;

[0218] The seventh module is used to obtain the corresponding storage area information file and module area information file based on the index path.

[0219] In some embodiments, after determining the logical area based on the module area and the storage unit area, the method further includes:

[0220] The second initiation module is used to initiate indexing commands;

[0221] The tenth determination module is used to determine the target storage path based on the indexing instructions;

[0222] The eighth acquisition module is used to sequentially acquire the hierarchical label, module name, module area, storage unit area, logical area, and number of logic gates corresponding to the logical area;

[0223] The storage module is used to update the storage level label, module name, module area, storage unit area, and number of logic gates to the target storage path.

[0224] Since the embodiments of the apparatus and the embodiments of the method correspond to each other, please refer to the description of the embodiments of the method for the embodiments of the apparatus, which will not be repeated here.

[0225] Figure 3 A device structure diagram based on determining the logic area of ​​an integrated circuit is provided as an embodiment of the present invention, such as... Figure 3 As shown, a device for determining the logic area based on an integrated circuit includes:

[0226] Memory 30 is used to store computer programs;

[0227] The processor 31 is configured to implement the steps of the method for determining the logic area based on an integrated circuit as described in the above embodiments when executing a computer program.

[0228] The device for determining the logic area based on integrated circuits provided in this embodiment may include, but is not limited to, smartphones, tablets, laptops, or desktop computers.

[0229] The processor 31 may include one or more processing cores, such as a quad-core processor or an octa-core processor. The processor 31 may be implemented using at least one hardware form selected from Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 31 may also include a main processor and a coprocessor. The main processor, also known as the Central Processing Unit (CPU), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 31 may integrate a Graphics Processing Unit (GPU), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, the processor 31 may also include an Artificial Intelligence (AI) processor, which is used to handle computational operations related to machine learning.

[0230] The memory 30 may include one or more computer-readable storage media, which may be non-transitory. The memory 30 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In this embodiment, the memory 30 is used to store at least the following computer program, which, after being loaded and executed by the processor 31, is capable of implementing the relevant steps of the method for determining the logic area based on integrated circuits disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 30 may also include an operating system and data, and the storage method may be temporary or permanent storage. The operating system may include Windows, Unix, Linux, etc. The data may include, but is not limited to, the method for determining the logic area based on integrated circuits.

[0231] In some embodiments, the device based on the determined logic area of ​​an integrated circuit may further include a display screen, an input / output interface, a communication interface, a power supply, and a communication bus.

[0232] Those skilled in the art will understand that Figure 3 The structures shown do not constitute a limitation on devices based on a defined logic area of ​​integrated circuits and may include more or fewer components than illustrated.

[0233] The device for determining the logic area based on integrated circuits provided in this embodiment of the invention includes a memory 30 and a processor 31. When the processor 31 executes the program stored in the memory 30, it can implement the method for determining the logic area based on integrated circuits.

[0234] Finally, the present invention also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, which, when executed by a processor, performs the steps described in the above method embodiments.

[0235] It is understood that if the methods in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and executes all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, optical disks, and other media capable of storing program code.

[0236] The method, apparatus, device, and medium for determining the logic area based on integrated circuits provided by this invention have been described in detail above. The various embodiments in the specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section. It should be noted that those skilled in the art can make several improvements and modifications to this invention without departing from the principles of this invention, and these improvements and modifications also fall within the protection scope of the claims of this invention.

[0237] It should also be noted that, in this specification, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

Claims

1. A method for determining the logic area based on integrated circuits, characterized in that, A method for use in multi-level integrated circuits, wherein each level comprises multiple modules, includes: Obtain storage area information file and module area information file; the storage area information file stores the storage unit area and storage absolute path of each module under each level, and the module area information file stores the module area and module absolute path of each module; The absolute storage path is split into multiple relative storage paths, and the relative storage paths are assigned values ​​according to the area of ​​the storage unit. Generate a key-value pair table based on the relative storage path and the storage cell area; The absolute path of the module is split into multiple relative paths of the module, and the absolute path of the module is assigned a value according to the area of ​​the module; The storage unit area is matched with the corresponding storage relative path in the key-value pair table based on the module relative path. The logical area is determined based on the area of ​​the module and the area of ​​the storage unit. The splitting of the absolute storage path into multiple relative storage paths includes: Obtain the module names of all modules in each of the aforementioned levels; The absolute storage path is split into the relative storage path based on the module name; Correspondingly, splitting the absolute path of the module into multiple relative paths of the module includes: Obtain the module names of all modules in each of the aforementioned levels; The absolute path of a module is split into its relative path based on the module name.

2. The method for determining the logic area based on integrated circuits according to claim 1, characterized in that, Before splitting the absolute storage path into multiple relative storage paths, the method further includes: Set a storage path identifier for the absolute storage path; Determine whether the absolute storage path has the storage path identifier set; If the storage path identifier is present, it is determined that the absolute storage path was successfully obtained, and the process proceeds to the step of splitting the absolute storage path into multiple relative storage paths. If the storage path identifier is not found, it is determined that obtaining the absolute storage path has failed, and the process returns to the step of obtaining the storage area information file and the module area information file.

3. The method for determining the logic area based on integrated circuits according to claim 1, characterized in that, After determining the logical area based on the module area and the storage unit area, the method further includes: Obtain the logic gate parameters; the logic gate parameters include at least the logic gate type and the logic gate area. Determine whether the types of logic gates are consistent; If the logic gate types are the same, the number of logic gates is determined based on the logic gate area and the logic area. If the types of logic gates are inconsistent, the average area of ​​the logic gates is calculated to obtain the average logic gate area. The number of logic gates is determined based on the average logic gate area and the logic area.

4. The method for determining the logic area based on integrated circuits according to claim 3, characterized in that, Before splitting the absolute path of the module into multiple relative paths of the module, the method further includes: Determine whether the absolute path of the module is the absolute path of the module corresponding to the first level; If the absolute path of the module is the absolute path of the module corresponding to the first level, then the absolute path of the module corresponding to the first level is split into multiple relative paths of the module corresponding to the first level. The storage unit area is matched with the storage relative path corresponding to the storage relative path in the key-value pair table based on the module relative path corresponding to the first level; The storage unit area of ​​the first level is obtained by summing the areas of all storage units that match the relative paths of the modules corresponding to the first level. The area of ​​the module corresponding to the first level is obtained based on the relative path of the module. The area of ​​all the modules is summed to obtain the area of ​​the first level of modules; The logical area of ​​the first level is determined based on the area of ​​the module in the first level and the area of ​​the storage unit in the first level. Correspondingly, after determining the logical area of ​​the first level based on the module area and the storage unit area of ​​the first level, the method further includes: Obtain the logic gate parameters of the first level; the logic gate parameters include at least the logic gate type and the logic gate area of ​​the first level; Determine whether the types of logic gates in the first level are consistent; If the logic gates of the first level are of the same type, the number of logic gates of the first level is determined based on the area of ​​the logic gates of the first level and the logic area of ​​the first level. If the logic gate types in the first level are inconsistent, the average area of ​​the logic gates in the first level is calculated to obtain the average logic gate area of ​​the first level. The number of logic gates in the first level is determined based on the average logic gate area of ​​the first level and the logic area of ​​the first level.

5. The method for determining the logic area based on integrated circuits according to claim 1, characterized in that, The obtained storage area information file and module area information file include: Initiate an indexing command; The index path is determined according to the indexing instructions; The corresponding storage area information file and module area information file are obtained according to the index path.

6. The method for determining the logic area based on integrated circuits according to claim 3, characterized in that, After determining the logical area based on the module area and the storage unit area, the method further includes: Initiate an indexing command; The target storage path is determined according to the indexing instructions; The following information is obtained sequentially: the level number corresponding to the logical area, the module name, the module area, the storage unit area, the logical area, and the number of logical gates. The storage level number, module name, module area, storage unit area, and number of logic gates are updated to the target storage path.

7. A device for determining logic area based on integrated circuits, characterized in that, A device for use in multi-level integrated circuits, wherein multiple modules are provided in each level, the device comprising: The first acquisition module is used to acquire a storage area information file and a module area information file; the storage area information file stores the storage unit area and storage absolute path of each module under each level, and the module area information file stores the module area and module absolute path of each module; The first splitting module is used to split the absolute storage path into multiple relative storage paths and assign values ​​to the relative storage paths according to the area of ​​the storage unit. The generation module is used to generate a key-value pair table based on the relative storage path and the storage unit area; The second splitting module is used to split the absolute path of the module into multiple relative paths of the module, and assign values ​​to the absolute paths of the module according to the area of ​​the module. The first matching module is used to match the storage unit area of ​​the corresponding storage relative path in the key-value pair table according to the module relative path; The first determining module is used to determine the logical area based on the area of ​​the module and the area of ​​the storage unit; Splitting an absolute storage path into multiple relative storage paths includes: The fifth module is used to retrieve the module names of all modules in each level. The fourth splitting module is used to split absolute storage paths into relative storage paths based on module names; Correspondingly, splitting the absolute path of a module into multiple relative paths for the modules includes: The sixth module is used to obtain the module names of all modules in each level; The fifth splitting module is used to split the absolute path of a module into a relative path based on the module name.

8. A device for determining logic area based on integrated circuits, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the steps of the method for determining the logic area based on an integrated circuit as described in any one of claims 1 to 6 when executing the computer program.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the method for determining the logic area based on an integrated circuit as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • File acquisition method and device

    CN110795394A

  • Resource file path processing method and device, electronic equipment and storage medium

    CN113392346A