Integrated circuit macro-module division method and device, equipment and medium

Through multi-level hierarchical division strategy and dichotomy, the cutting line is determined, and the integrated circuit macro module is divided into a group with balanced area, which solves the problem of insufficient hierarchy structure and circuit connectivity between macro modules in the existing technology, and improves the layout planning Efficiency and quality.

CN118886385APending Publication Date: 2024-11-01FUZHOU LIXIN TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410932021.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

The existing integrated circuit macro module division method cannot take into account the hierarchy, area utilization, circuit connectivity and reference layout areas between macro modules, resulting in low layout planning efficiency and quality.

Method used

Using a multi-level hierarchical division strategy, the cutting line is determined through the dichotomy method to divide the area to be divided into sub-problem areas with the same area, and based on the hierarchical structure, the macro module is divided into groups that meet the preset area constraints, and allocated to the group according to the physical location of the group. The corresponding sub-problem area.

Benefits of technology

It realizes similar shapes, tight functional connections, balanced area utilization, short circuit connection lines in the macro module group, improves design quality and efficiency, and reduces design complexity and signal transmission delay.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118886385A_ABST
    Figure CN118886385A_ABST
Patent Text Reader

Abstract

The invention provides an integrated circuit macro module division method and device, equipment and a medium, which are applied to the technical field of integrated circuit design, a to-be-divided region is divided into sub-problem regions with the same available area by using a bisection method, each region can be independently designed and verified, and the design complexity is reduced. In addition, compared with a traditional division method based on the area, according to the division method considering the hierarchical structure, the macro-modules of the sub-problem areas are divided into the multiple groups meeting the preset area constraint, the sub-modules are divided into the nearest sub-module areas according to the physical positions of the gravity centers of the groups, the design complexity is reduced, and the design efficiency is improved. The layout efficiency is improved, functional connection between macro modules is ensured, delay and power consumption of signal transmission are reduced, and the reliability and design quality of a chip are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of integrated circuit design, and in particular to a method, device, equipment, and medium for dividing an integrated circuit macro module. Background Art

[0002] In integrated circuit design, floorplanning is the process of determining the location of different circuit modules on the chip, which has a significant impact on the performance, power consumption and area of ​​the final chip. Since floorplanning is a nondeterministic polynomial (NP) complete problem, as the number of macromodules increases, the macromodule layout solution space will grow exponentially. In order to reduce the solution scale of floorplanning problem and improve the solution efficiency, the first step of floorplanning needs to be to divide the macromodules.

[0003] At present, the macro module division strategies in traditional layout planning mainly have the following three directions:

[0004] First, a recursive partitioning method is used according to the hierarchy. Although it can ensure that macro modules belonging to the same hierarchy are divided into the same group, the area difference between each group is large, and the connection between the macro modules and the standard cells is not considered.

[0005] The second is the area-based binary tree partitioning. Although it can obtain a partitioning result with better area utilization and a faster partitioning speed that can be completed in linear time, it does not take into account the hierarchical structure and circuit connection between macro modules.

[0006] The third is the Fast Marching Method (FM algorithm) based on random perturbations. Although the area factor is taken into account during division and better line length characteristics and area uniformity can be obtained, no reference layout area is provided for each group of macro modules, thus affecting the subsequent layout accuracy and efficiency.

[0007] Based on this, a new integrated circuit macromodule partitioning method is needed. Summary of the invention

[0008] In view of this, the embodiments of this specification provide an integrated circuit macro module division method and device, equipment, and medium, which are applied to the field of integrated circuit design technology. Through a multi-level hierarchical division strategy, while considering the area utilization, the shape and position of the macro module, efficient layout planning is achieved. It not only ensures that the modules in the divided macro module group are similar in shape and closely connected in function, but also ensures that each group of macro modules has balanced area utilization and a clear reference layout area, thereby optimizing the overall chip design process and improving the design quality and efficiency.

[0009] The embodiments of this specification provide the following technical solutions:

[0010] The embodiment of this specification provides a method for dividing an integrated circuit macro module, including:

[0011] S1. Determine a cutting line using a dichotomy method, wherein the cutting line is a cutting line that divides the area to be divided into two sub-problem areas with the same available area;

[0012] S2. Based on the hierarchical structure, the macromodules in the area to be divided are divided into several groups that meet the area constraint. The area constraint formula is: hier box *Protecion hier , where: S hier is the area of ​​the sub-hierarchy, S box is the area of ​​the region, protecion hier for hierarchical constraints;

[0013] S3. Allocate each group to the corresponding sub-problem area according to the physical location of each group after division.

[0014] The embodiment of this specification also provides an integrated circuit macro module division device, including:

[0015] Cutting line determination module: using the dichotomy method to determine the cutting line, wherein the cutting line is a cutting line that divides the area to be divided into two sub-problem areas with the same available area;

[0016] Division module: used to divide the macromodules in the area to be divided into several groups that meet the area constraint based on the hierarchical structure. The area constraint formula is: S hier box *Protecion hier , where: S hier is the area of ​​the sub-hierarchy, S box is the area of ​​the region, protecion hier for hierarchical constraints;

[0017] Allocation module: used to allocate each group to the corresponding sub-problem area according to the physical location of each group after division.

[0018] The embodiment of the present specification also provides an electronic device, including:

[0019] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute: a method for partitioning an integrated circuit macro module as described in any one of the present application. ​​

[0020] An embodiment of the present specification also provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and when the computer executable instructions are executed by a processor, the integrated circuit macro module partitioning method as described in any one of the present application is performed.

[0021] Compared with the prior art, the at least one technical solution adopted in the embodiments of this specification can achieve the following beneficial effects:

[0022] The present application uses the dichotomy method to divide the area to be divided into sub-problem areas of equal area. Each area can be designed and verified independently, thus reducing the complexity of the design.

[0023] In addition, compared with the traditional area-based partitioning method, the partitioning method considering the hierarchical structure proposed in the present invention divides the macro modules of the sub-problem area into several groups that meet the preset area constraints, and divides them into the nearest sub-module areas according to the physical position of the group center of gravity. This scheme not only reduces the complexity of the design and improves the layout efficiency, but also ensures the functional connection between macro modules, reduces the delay and power consumption of signal transmission, and improves the reliability and design quality of the chip. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0025] Figure 1 is a flow chart of the integrated circuit macro module partitioning method in the present application;

[0026] Figure 2 This is the pseudo code for determining the cutting line by dichotomy in this application;

[0027] Figure 3 It is a flowchart of grouping according to the hierarchical structure in this application;

[0028] Figure 4 It is a hierarchical grouping diagram in this application;

[0029] Figure 5 It is the location allocation area map in this application;

[0030] Figure 6 It is the K-means clustering flow chart in this application. DETAILED DESCRIPTION

[0031] The embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0032] The following describes the implementation methods of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The present application can also be implemented or applied through other different specific implementation methods, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that, in the absence of conflict, the following embodiments and the features in the embodiments can be combined with each other. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work belong to the scope of protection of the present application.

[0033] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein can be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present application, it should be understood by those skilled in the art that an aspect described herein can be implemented independently of any other aspect, and two or more of these aspects can be combined in various ways. For example, any number and aspect described herein can be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein can be used to implement this device and / or practice this method.

[0034] It should also be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application. The drawings only show components related to the present application rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0035] Additionally, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the examples can be practiced without these specific details.

[0036] In integrated circuit design, layout planning is a key step in the entire chip design process. However, as the number of macro modules increases, the macro module layout solution space will grow exponentially. In order to reduce the solution scale of the layout planning problem and improve the solution efficiency, the first step of layout planning requires dividing the macro units.

[0037] Therefore, the mainstream division strategies in layout planning are generally divided into the following three directions:

[0038] One is to recursively divide the macromodules according to the hierarchy, and complete the division if the group generated by the division is smaller than a certain area. Although this rough division method can ensure that the macromodules under the same hierarchy will be divided into the same group, it will cause a large difference in the area between different groups, affecting the compactness and efficiency of the layout, and does not fully consider the connection between the macromodule and the standard cell, increasing the wiring complexity and signal transmission delay in the final design.

[0039] The second is the area-based binary tree partitioning. A binary tree is constructed based on the known area of ​​the macromodule to be laid out, and then horizontal and vertical partitioning is continuously performed in a top-down manner to obtain a partitioning result with better area utilization. This method mainly focuses on area utilization, does not consider the hierarchical relationship between macromodules well, and destroys the functional connection between modules. Due to the lack of consideration of circuit connectivity, it leads to wiring congestion and performance degradation. In addition, only horizontal and vertical partitioning may not meet all design constraints, limiting the flexibility of layout.

[0040] There is also an FM algorithm based on random perturbations. Although it can overcome the shortcomings of the traditional FM algorithm that it is easy to fall into local optimality and is sensitive to the initial solution, the performance of this algorithm depends on the selection of the initial solution. Different initial solutions lead to different final results, which still cannot guarantee the global optimal solution. Secondly, although this algorithm takes the area factor into consideration and can obtain better line length characteristics, hierarchical structure characteristics and area uniformity characteristics, it does not provide a reference layout area for each group of macro modules, which affects the accuracy and efficiency of subsequent layout.

[0041] In view of this, the inventors discovered through research and improvement exploration that the mainstream partitioning strategy in the existing layout planning cannot take into account the hierarchy, area utilization, circuit connectivity and reference layout area between macro modules, resulting in unsatisfactory efficiency and quality of layout planning.

[0042] Based on this, the embodiment of this specification proposes a method for dividing integrated circuit macro modules: the overall idea is: using the dichotomy method to determine the cutting line, dividing a given area into two sub-problem areas with the same available area, which can quickly divide the given area into two sub-problem areas with the same area, each area can be independently designed and verified, reducing the complexity of the design, and further, according to the shape, position, area and hierarchical constraints of the macro modules, they are divided into multiple groups, and then they are reasonably allocated to the corresponding sub-problem areas according to the position of the group, and this allocation is fixed, which not only ensures the layout of functionally related macro modules in adjacent areas, thereby reducing the delay of signal transmission, reducing power consumption, significantly improving the overall reliability of the chip, and ensuring the design quality. Compared with the traditional area-based division method, it effectively ensures that each group of macro modules after division has the following characteristics: the macro modules in the group are similar in shape, the macro modules in the group are all under the same hierarchical structure and have strong functional connections, balanced area utilization, short circuit connection line length, and each group of macro modules has a reference layout area, which improves the efficiency of wiring and the overall quality of design, and improves the automation level of integrated circuit design and the market competitiveness of the final product.

[0043] The technical solutions provided by various embodiments of the present application are described below in conjunction with the accompanying drawings.

[0044] like Figure 1 As shown, the embodiment of this specification provides a method for dividing an integrated circuit macro module, comprising the following steps:

[0045] Step S1: using the dichotomy method to determine a cutting line, wherein the cutting line is a cutting line that divides the area to be divided into two sub-problem areas with the same available area.

[0046] Specifically, the initial cutting line is first determined, which can be the center line of the area, or determined according to some heuristic rules. At the selected tangent position, the layout area is divided into two parts, and the area of ​​each part is calculated. The areas of the two parts are then compared to check whether the areas that can be placed are equal or nearly equal, which helps to balance the layout load of each sub-area, so that subsequent design steps (such as placement and routing of macro modules) can be carried out more efficiently and balanced.

[0047] If the areas of the two parts are not equal, adjust the position of the tangent according to the area difference. If the area of ​​one side is larger than the other, the tangent will move to the side with the larger area; otherwise, it will move to the side with the smaller area. Repeat the above steps. Each time the tangent position is adjusted, the tangent is closer to the optimal position (that is, the position where the areas of both sides are equal). When the area difference between the two parts is less than a preset threshold or reaches a certain number of iterations, stop the iteration. The tangent position at this time is considered to be optimal or close enough to the optimal. By determining the cutting line by bisection, a large area can be quickly and relatively fairly divided into multiple sub-areas. Each area can be designed and verified independently, reducing the complexity of the design.

[0048] Step S2: based on the hierarchical structure, divide the macroblocks in the area to be divided into a number of groups that meet preset area constraints.

[0049] Specifically, in combination with the above embodiment, the macro modules in a given area are divided into a number of groups that meet the area constraint according to their hierarchical structure. The specific formula is as follows:

[0050] S hier box *Protecion hier (3)

[0051] Where: S hier is the area of ​​the sub-hierarchy, S box is the area of ​​the region, protecion hier For hierarchical constraints, the default initial value is 0.8, which can be adjusted according to actual conditions.

[0052] Step S3: Allocate each group to a corresponding sub-problem area according to its physical location after division.

[0053] Specifically, in combination with the above embodiments, based on the physical position of each macro module or module group, which can be the center point (i.e., the center of gravity), the distance from the center of gravity of each group to the boundary of each sub-problem area is calculated, and then each group is assigned to the nearest sub-problem area based on the calculated distance. Once the group is assigned to a specific sub-problem area, this assignment is fixed as the basis for subsequent layout and routing.

[0054] During the allocation process, it can be checked whether the macro module fits the boundary and area constraints of the sub-problem area to ensure the rationality of the allocation.

[0055] It is also possible to resolve conflicts based on area, functional connectivity, or other priority criteria when multiple groups compete for the same subproblem area.

[0056] In some embodiments, a dichotomy method is used to determine the cutting line, including:

[0057] ​First, the area to be divided is divided into two initial sub-problem areas according to a preset division ratio, wherein the division position is marked as the position of the initial cutting line;

[0058] Then, the actual available area of ​​one of the initial sub-problem areas is compared with the expected available area to determine whether the initial cutting line has divided the area to be divided into two sub-problem areas; wherein the actual available area is the area of ​​the sub-problem area minus the area of ​​the obstacle block in the sub-problem area; and the expected available area is the product of the available area of ​​the area to be divided and the segmentation ratio;

[0059] If not, determine the location of the target cutting line according to the following process:

[0060] When the actual available area is larger than the expected available area, the current cutting line position is marked as the new upper boundary, and then the new cutting line position is reset to the middle position between the old lower boundary and the new upper boundary;

[0061] When the actual available area is smaller than the expected available area, the current position of the cutting line is marked as the new lower boundary, and then the new position of the cutting line is reset to the middle position between the old upper boundary and the new lower boundary;

[0062] When the difference between the actual available area and the expected available area is less than a preset critical value, the position of the current cutting line is marked as the position of the target cutting line.

[0063] Specifically, Figure 2 and Figure 5 As shown, first the user inputs the region to be divided (Core). If the cutting method is vertical cutting, the leftmost end of the region is defined as X lo , the rightmost end is defined as X hi ; When the cutting method is horizontal cutting, the top of the area is defined as y lo , the bottom end is defined as y hi The system defaults to a ratio of 0.5, calculates the available area based on the input area, and then uses the intersection method with the area to determine the area of ​​the obstacle (S′ blkg ), subtract the area of ​​the obstacle from the available area to get the usable area (S free ), the specific formula is as follows:

[0064] S′ blkg =S box∩blkg (1)

[0065] S free =SS′ blkg (2)

[0066] When cutting longitudinally, the initial cutting line (Xcut ) The Core area is divided into two sub-module areas, namely Core lo and Core hi , Core lo Available area (S free_lo ) can be determined by the above formula, Core lo The expected usable area (S target_lo ) is defined as ratio*S free Then compare the available area of ​​the lo region with the expected available area. If the two areas are the same, it means that the cutting line is the desired cutting line. If they are not equal, the binary method is used to gradually approach the target cutting line. The specific principle is as follows: Figure 1 As shown: When the available area is larger than the expected available area, we will hi The position moved to the original cutting line is recorded as Let the new cutting line be With X lo When the available area is less than the expected available area, X lo The position moved to the original cutting line is recorded as Let the new cutting line be With X hi The midpoint of the target cutting line is obtained and this process is repeated until the obtained cutting line is less than a critical value, and then the cutting line is returned. When cutting vertically, x and y are interchanged.

[0067] In some embodiments, before step S1 , a two-dimensional layout engine is called to determine an initial position of the macro module in the chip layout.

[0068] Specifically, in combination with the above embodiment, before dividing the area to be divided into two sub-problem areas of the same area, the 2D layout engine is called to calculate the initial position of the macro module, providing a more optimized starting layout point, which helps the efficiency of subsequent layout steps and the quality of the final layout.

[0069] In some embodiments, the two-dimensional layout engine uses any of the following methods to perform two-dimensional layout: a placement method based on large-scale mixed-size design, a quadratic programming algorithm; and, in the two-dimensional layout, optimizing the half-circle line length of the macro module based on the circuit netlist to obtain an initial position of the macro module with a better line length.

[0070] Specifically, the two-dimensional layout (2D layout) engine adopts the placement method based on large-scale mixed-size design researched by National Taiwan University, fast layout methods such as Quadratic Programming (QP), and the optimization of the half-circle line length of the macro module based on the circuit netlist in the two-dimensional layout. It not only considers the netlist connection between the macro modules but also the connection between the macro modules and the standard cells to obtain the initial position of the macro module with better line length.

[0071] In some embodiments, when the macro modules of the sub-problem area are divided into a plurality of groups satisfying a preset area constraint based on a hierarchical structure, the hierarchical structure is first divided into a plurality of sub-hierarchical structures according to the shapes of the macro modules; wherein macro modules with the same shape are classified into the same sub-hierarchical structure;

[0072] Then, determining whether the macro modules of the current sub-problem area are grouped or not, or whether the hierarchy constraint reaches a preset hierarchy constraint step length;

[0073] If the macromodules have been grouped or the preset hierarchy constraint step has been reached, all groups and group numbers are output;

[0074] Otherwise, determining whether each of the sub-level structures satisfies a preset area constraint;

[0075] If it is satisfied, the macro modules in the current sub-level structure are grouped, and the group numbers are marked, and it is determined whether the macro modules in the current sub-problem area are grouped;

[0076] If not, the current sub-level structure is split, the step length of the hierarchy constraint is reduced, and it is determined whether the reduced hierarchy constraint reaches a preset hierarchy constraint step length.

[0077] Specifically, Figure 3 In the figure, first, the hierarchical structure is subdivided into several sub-hierarchical structures according to the module shape, where the macro modules with the same shape are classified into one sub-hierarchical structure, and then each sub-hierarchical structure is judged to see whether it meets the area constraint. If it does, the macro modules in the hierarchical structure form a group, and the first group is numbered 1, and so on; if it does not meet the area constraint, the hierarchical structure is further split until the area constraint is met. After each split, the protecion hier The step size will be reduced by 0.1 and the macromodules that meet the area constraint will be grouped and the group number will be recorded. hier Stop splitting when it drops to 0.2, and output all groups and their numbers.

[0078] by Figure 4 As an example, we further illustrate whether the sub-level structure satisfies the area constraint. We randomly select a sub-level structure H1. Figure 4 (1), the hierarchical structure contains four macro modules with the same shape: 1, 2, 3, and 4. Figure 4 (2) As shown in hier = 1, H1 satisfies the area constraint S H1 box , so the four macro modules in this sub-level structure directly form a group group1; Figure 4 (3) As shown in hier = 0.8, H1 no longer satisfies the area constraint S H1 box *0.8, so it needs to be further split into two sub-sub-level structures H2-1 and H2-2. Both H2-1 and H2-2 meet the area constraint, so the two macro modules 1 and 2 in H2-1 form group 1, and the two macro modules 3 and 4 in H2-2 form group 2.

[0079] In some embodiments, the integrated circuit macromodule partitioning method further includes: clustering the groups and macromodules of the unallocated areas, and after the clustering is completed, allocating the macromodules in the sub-problem areas with excessively high utilization rates to the corresponding sub-problem areas according to the area balance principle.

[0080] Specifically, macromodules and groups in the unallocated area are determined as clustering objects, and then a suitable clustering algorithm, such as K-means clustering, is selected as the basis for grouping.

[0081] After clustering is completed, the area usage of each sub-problem area is evaluated to determine whether the allocation of macro modules needs to be adjusted to achieve area balance, thereby achieving effective clustering and balanced allocation of macro modules in unallocated areas and optimizing the layout planning of the entire integrated circuit.

[0082] If the utilization rate of a certain sub-area is too high or too low, the allocation of macro modules is adjusted according to the area balance principle, which may involve reallocation between macro module groups.

[0083] In some embodiments, the clustering method includes K-means clustering;

[0084] The process of K-means clustering includes:

[0085] Determine the number of clusters to be clustered, record it as k, and use the centroids of the groups and macromodules of the unallocated areas as sample points;

[0086] Select k points from the sample points as initial cluster centers;

[0087] ​​Calculate the Euclidean distance from each sample point to the k cluster centers, assign each sample point to the nearest cluster center, and after all sample points are assigned, recalculate the cluster center based on the currently assigned sample points;

[0088] The process of iterating sample point allocation and cluster center update is performed until the cluster center no longer moves, and the clustering result is output.

[0089] Specifically, K-means clustering is used to cluster the groups and macromodules of the unassigned regions. The specific principle of this step is as follows: Figure 6 As shown in the figure: first determine the number k to be clustered, take the centroids of groups and macro modules as sample points (observations), select k points from these sample points as initial cluster centers (means), calculate the Euclidean distance from each sample point to the k cluster centers, assign the sample points to the nearest cluster center, and the cluster center and the sample points assigned to it represent a cluster. When all sample points are assigned, recalculate the cluster center according to the clustering results, and repeat the process until the cluster center no longer changes, such as the change of the cluster center is less than a certain threshold, or the preset number of iterations is reached.

[0090] After clustering is completed, macro modules are allocated according to the area balance principle. If the utilization rate of a sub-area is too high, the macro module is adjusted to the other side to achieve the most balanced division. This process is repeated until all macro modules are allocated to the corresponding sub-areas.

[0091] In some embodiments, the allocation of each group to a corresponding sub-problem area according to the physical location of each group after the division includes: using Euclidean distance to allocate each group to the nearest sub-problem area, and fixing the group in the sub-problem area.

[0092] Specifically, the allocation method is as follows: Figure 4 As shown, based on the physical location of the centroid of each group, each group is assigned to the nearest sub-problem area using Euclidean distance, and the assignment is fixed.

[0093] The input of the present invention includes: a placeable area, physical information (shape and quantity) of the macromodule, a hierarchical structure of the macromodule and an integrated circuit netlist.

[0094] The output of the present invention is: a plurality of macro unit groups, each group includes a plurality of macro units, and each group corresponds to a reference area.

[0095] The present invention uses a dichotomy algorithm to determine the tangent line for a given area, and can quickly divide the given area into two sub-problem areas with balanced areas. Each area can be designed and verified independently, reducing the complexity of the design.

[0096] Compared with the traditional area-based partitioning method, the partitioning method proposed in the present invention takes the hierarchy into consideration. By allocating macro modules with the same shape under the same hierarchy to the same group and dividing them into the nearest sub-module areas according to the physical position of the group center of gravity, the related functional macro modules can be placed in adjacent areas, thereby reducing the delay and power consumption of signal transmission and improving the reliability of the chip to ensure the quality of the design.

[0097] Based on the same inventive concept, the present application also provides an integrated circuit macro module partitioning device corresponding to the aforementioned method example, including:

[0098] Cutting line determination module: using the dichotomy method to determine the cutting line, wherein the cutting line is a cutting line that divides the area to be divided into two sub-problem areas with the same available area;

[0099] Division module: used to divide the macromodules in the area to be divided into several groups that meet the preset area constraint and level constraint based on the hierarchical structure. The area constraint formula is: S hier box *Protecion hier , where: S hier is the area of ​​the sub-hierarchy, S box is the area of ​​the region, protecion hier for hierarchical constraints;

[0100] Allocation module: used to allocate each group to the corresponding sub-problem area according to the physical location of each group after division.

[0101] It should be noted that the aforementioned method implementation example can be referred to to divide and implement the functions of each module in the integrated circuit macro module division device, which will not be further described here.

[0102] Based on the same inventive concept, the present application also provides an electronic device based on a macro module partitioning method designed for integrated circuits, the device comprising: a processor, a memory and a computer program; wherein

[0103] The memory is used to store the computer program, and the memory may also be a flash memory. The computer program is, for example, an application program, a functional module, etc. for implementing the above method.

[0104] The processor is used to execute the computer program stored in the memory to implement each step performed by the device in the above method. For details, please refer to the relevant description in the above method embodiment.

[0105] Optionally, the memory can be independent or integrated with the processor.

[0106] ​When the memory is a device independent of the processor, the device may further include:

[0107] A bus is used to connect the memory and the processor.

[0108] Based on the same inventive concept, the present application also provides a computer storage medium, which stores computer executable instructions. When the computer executable instructions are executed by a processor, they execute: the integrated circuit macro module partitioning method as described in any embodiment of the present application.

[0109] In this specification, the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the embodiments described later, the description is relatively simple, and the relevant parts can be referred to the partial description of the previous embodiments.

[0110] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A method for dividing an integrated circuit macromodule, characterized in that: include: S1. Determine a cutting line using a dichotomy method, wherein the cutting line is a cutting line that divides the area to be divided into two sub-problem areas with the same available area; S2. Based on the hierarchical structure, the macromodules in the area to be divided are divided into several groups that meet the area constraint. The area constraint formula is: hier box *Protecion hier , where: S hier is the area of ​​the sub-hierarchy, S box is the area of ​​the region, protecion hier for hierarchical constraints;​ S3. Allocate each group to the corresponding sub-problem area according to the physical location of each group after division.

2. The integrated circuit macromodule partitioning method according to claim 1, characterized in that: The cutting line is determined using a bisection method, including: First, the area to be divided is divided into two initial sub-problem areas according to a preset division ratio, wherein the division position is marked as the position of the initial cutting line; Then, the actual available area of ​​one of the initial sub-problem areas is compared with the expected available area to determine whether the initial cutting line has divided the area to be divided into two sub-problem areas; wherein the actual available area is the area of ​​the sub-problem area minus the area of ​​the obstacle block in the sub-problem area; and the expected available area is the product of the available area of ​​the area to be divided and the segmentation ratio; If not, determine the location of the target cutting line according to the following process: When the actual available area is larger than the expected available area, the current cutting line position is marked as the new upper boundary, and then the new cutting line position is reset to the middle position between the old lower boundary and the new upper boundary; When the actual available area is smaller than the expected available area, the current position of the cutting line is marked as the new lower boundary, and then the new position of the cutting line is reset to the middle position between the old upper boundary and the new lower boundary; When the difference between the actual available area and the expected available area is less than a preset critical value, the position of the current cutting line is marked as the position of the target cutting line.

3. The integrated circuit macromodule partitioning method according to claim 1, characterized in that: Before step S1 , a two-dimensional layout engine is called to determine an initial position of the macro module in the chip layout.

4. The integrated circuit macromodule partitioning method according to claim 3, characterized in that: The two-dimensional layout engine uses any of the following methods to perform two-dimensional layout: a placement method based on large-scale mixed-size design, a quadratic programming algorithm; and, in the two-dimensional layout, optimizing the half-circle line length of the macro module based on the circuit netlist to obtain the initial position of the macro module with better line length.

5. The integrated circuit macromodule partitioning method according to claim 1, characterized in that: When the macro modules of the sub-problem area are divided into a plurality of groups satisfying the preset area constraint based on the hierarchical structure, the hierarchical structure is first divided into a plurality of sub-hierarchical structures according to the shapes of the macro modules; wherein macro modules with the same shape are classified into the same sub-hierarchical structure; Then, determining whether the macro modules of the current sub-problem area are grouped or not, or whether the hierarchy constraint reaches a preset hierarchy constraint step length; If the macromodules have been grouped or the preset hierarchy constraint step has been reached, all groups and group numbers are output; Otherwise, determining whether each of the sub-level structures satisfies a preset area constraint; If it is satisfied, the macro modules in the current sub-level structure are grouped, and the group numbers are marked, and it is determined whether the macro modules in the current sub-problem area are grouped; If not, the current sub-level structure is split, the step length of the hierarchy constraint is reduced, and it is determined whether the reduced hierarchy constraint reaches a preset hierarchy constraint step length.

6. The integrated circuit macromodule partitioning method according to claim 1, characterized in that: The integrated circuit macromodule division method further comprises: The groups and macromodules of the unallocated areas are clustered, and after the clustering is completed, the macromodules in the sub-problem areas with excessive utilization are allocated to the corresponding sub-problem areas according to the area balance principle.

7. The integrated circuit macromodule partitioning method according to claim 6, characterized in that: The clustering method includes K-means clustering; The process of K-means clustering includes: Determine the number of clusters to be clustered, record it as k, and use the centroids of the groups and macromodules of the unallocated areas as sample points; Select k points from the sample points as initial cluster centers; Calculate the Euclidean distance from each sample point to the k cluster centers, assign each sample point to the nearest cluster center, and after all sample points are assigned, recalculate the cluster center based on the currently assigned sample points; The process of iterating sample point allocation and cluster center update is performed until the cluster center no longer moves, and the clustering result is output.

8. The integrated circuit macromodule partitioning method according to claim 1, characterized in that: The method of allocating each group to a corresponding sub-problem area according to the physical location of each group after the division includes: allocating each group to the nearest sub-problem area using Euclidean distance, and fixing the group in the sub-problem area.

9. An integrated circuit macromodule partitioning device, characterized in that: include: Cutting line determination module: using the dichotomy method to determine the cutting line, wherein the cutting line is a cutting line that divides the area to be divided into two sub-problem areas with the same available area; Division module: used to divide the macromodules in the area to be divided into several groups that meet the area constraint based on the hierarchical structure. The area constraint formula is: S hier box *Protecion hier , where: S hier is the area of ​​the sub-hierarchy, S box is the area of ​​the region, protecion hier for hierarchical constraints;​ Allocation module: used to allocate each group to the corresponding sub-problem area according to the physical location of each group after division.

10. An electronic device, characterized in that: include: at least one processor; And, a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute: the integrated circuit macro module partitioning method as described in any one of claims 1-8.

11. A computer storage medium, characterized in that: The computer storage medium stores computer executable instructions, and when the computer executable instructions are executed by the processor, the integrated circuit macro module partitioning method according to any one of claims 1 to 8 is performed.

Citation Information

Cited By

  • Layout area division method, clock tree construction method, computer medium, equipment and program product

    CN120724956A

  • A layout region division method, a clock tree construction method, a computer medium, a device, and a program product

    CN120724956B