A chip grid generation method and system based on region decomposition and grid imprinting
Through regional decomposition and grid imprinting technology, high-quality finite element meshes are generated, which solves the problem of meshing complexity in three-dimensional integrated circuit design and improves the computational efficiency and reliability of electromagnetic simulation.
Patent Information
- Application Number
- CN202210668772.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-14
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-06-14
AI Technical Summary
The meshing work in three-dimensional integrated circuit design is complex and tedious, which affects design efficiency. It is difficult to generate efficient and reliable finite element meshes with existing technology to meet the needs of high-frequency electromagnetic simulation.
A region decomposition algorithm is used to decompose the device layer boundary information into sub-regions, and is discretized through a binary knapsack lattice algorithm. It is combined with a grid imprinting algorithm to generate a high-quality finite element grid, which solves the grid compatibility problem.
It improves the quality and calculation accuracy of the finite element mesh, achieves high efficiency and reliability of electromagnetic simulation, and provides favorable conditions for three-dimensional integrated circuit design.
Smart Images

Figure CN114970443B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of finite element simulation, and in particular to a chip mesh generation method and system based on regional decomposition and mesh imprinting. Background Art
[0002] As the design frequency of chips becomes higher and higher, the classic Kirchhoff's voltage and current laws can no longer meet the design analysis. Therefore, it is necessary to use special electromagnetic simulation to obtain the S parameters of passive components and systems at different frequency points within the frequency band using Maxwell's equations. The standard process of electromagnetic simulation has the following four parts: graphic preprocessing, mesh generation, matrix solution and post-processing. Meshing, as an indispensable step in the electromagnetic simulation process, can directly affect the accuracy and effectiveness of the simulation results.
[0003] At present, the chip field usually adopts three-dimensional integrated circuit design. By stacking multiple device layers in the vertical direction, it is possible to design chips with more compact structure, higher performance and lower power consumption, which is not available in traditional two-dimensional chip design. However, the complex structure of three-dimensional integrated circuits and their special requirements for grids make the grid generation work very difficult and cumbersome, which seriously affects the design efficiency. Therefore, in order to ensure the efficiency and reliability of chip design, it is very necessary to design a dedicated stable, reliable and controllable grid generation algorithm for it. Summary of the invention
[0004] The purpose of the present invention is to provide a chip mesh generation method and system based on region decomposition and mesh imprinting, which can improve the quality of chip finite element mesh.
[0005] To achieve the above object, the present invention provides the following solutions:
[0006] A chip mesh generation method based on region decomposition and mesh imprinting, comprising:
[0007] Acquire layout information of each device layer of the chip; the device layer includes a conductor layer and a through hole opened on the conductor layer;
[0008] Parsing the layout information of each device layer to establish a chip geometry model; the chip geometry model includes a polygonal area representing the boundary information of each device layer;
[0009] For any device layer, a region decomposition algorithm is used to decompose a polygonal region representing the boundary information of the device layer into multiple sub-regions;
[0010] The binary knapsack algorithm is used to discretize the boundaries of each sub-region according to the set segmentation size and maximum magnification to obtain the discrete boundaries corresponding to each sub-region;
[0011] For any sub-region, dividing the sub-region into grids according to the discrete boundaries of the sub-region to obtain a sub-grid corresponding to the sub-region;
[0012] Determining a finite element mesh of the device layer according to the sub-meshes corresponding to each sub-region;
[0013] Perform Boolean operations on the finite element meshes of each device layer to determine the stacking area meshes between the device layers;
[0014] According to the stacking area grids between the device layers, a grid imprinting algorithm is used to imprint the finite element grids of each device layer to obtain the finite element grid of the chip.
[0015] To achieve the above object, the present invention also provides the following solution:
[0016] A chip mesh generation system based on region decomposition and mesh imprinting, comprising:
[0017] A data acquisition unit, used to acquire layout information of each device layer of the chip; the device layer includes a conductor layer and a through hole opened on the conductor layer;
[0018] A modeling unit connected to the data acquisition unit, used to parse the layout information of each device layer and establish a chip geometry model; the chip geometry model includes a polygonal area representing the boundary information of each device layer;
[0019] A region decomposition unit connected to the modeling unit, for decomposing a polygonal region representing boundary information of any device layer into a plurality of sub-regions by using a region decomposition algorithm;
[0020] A discrete unit connected to the region decomposition unit is used to discretize the boundaries of each sub-region according to the set segmentation size and the maximum magnification by using a binary backpack algorithm to obtain a discrete boundary corresponding to each sub-region;
[0021] A grid division unit, connected to the region decomposition unit and the discrete unit, respectively, for performing grid division on any sub-region according to the discrete boundary of the sub-region to obtain a sub-grid corresponding to the sub-region;
[0022] A device layer mesh determination unit, connected to the mesh division unit, for determining a finite element mesh of the device layer according to the sub-grids corresponding to each sub-region;
[0023] A stacking area determination unit, connected to the device layer mesh determination unit, for performing Boolean operations on the finite element meshes of each device layer to determine the stacking area meshes between the device layers;
[0024] The imprinting unit is connected to the device layer grid determination unit and the stacking area determination unit respectively, and is used to imprint the finite element grid of each device layer according to the stacking area grid between each device layer by using a grid imprinting algorithm to obtain the finite element grid of the chip.
[0025] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects: a region decomposition algorithm is used to decompose a polygonal region representing the boundary information of a device layer into multiple sub-regions, which can effectively increase the proportion of rectangles in a finite element mesh; a binary backpack algorithm is used to discretize the boundaries of each sub-region according to a set segmentation size and a maximum magnification, and obtain discrete boundaries corresponding to each sub-region, which can reasonably and controllably realize the density transition of the mesh under the premise of reflecting the skin effect of the conductor, thereby improving the calculation accuracy and reliability of electromagnetic simulation; the sub-regions are meshed according to the discrete boundaries to obtain sub-grids, and the finite element mesh of the device layer is determined according to the sub-grids; a mesh imprinting algorithm is used to imprint the finite element meshes of each device layer to obtain the finite element mesh of the chip, which solves the problem of mesh compatibility in large chips, improves the quality of the finite element mesh, and provides favorable conditions for the three-dimensional integrated circuit design of the chip. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, 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 invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0027] Figure 1 It is a flow chart of the chip grid generation method based on region decomposition and grid imprinting of the present invention;
[0028] Figure 2 is a schematic diagram of feature vertices;
[0029] Figure 3 It is a schematic diagram of the regional decomposition algorithm;
[0030] Figure 4 Schematic diagram for discretizing different types of edges;
[0031] Figure 5 This is a schematic diagram of the corner area mesh generation method;
[0032] Figure 6 It is a schematic diagram of point merging in the corner area;
[0033] Figure 7 Schematic diagram of the advancing wavefront method;
[0034] Figure 8 A schematic diagram of the priority of the inter-layer stacking area;
[0035] Fig. 9 An example flow chart of the finite element mesh generation method;
[0036] Fig.10 It is the geometric structure diagram of each device layer of the chip model;
[0037] Fig.11 It is a schematic diagram of the overall structure of the chip model;
[0038] Fig.12 This is an example diagram of a binary knapsack;
[0039] Fig.13 Flowchart for advancing the wavefront method;
[0040] Fig.14 Schematic diagram of the grid imprinting algorithm;
[0041] Fig.15 Schematic diagram of the finite element mesh of the chip;
[0042] Fig.16 Schematic diagram of finite element mesh generation for the chip;
[0043] Fig.17 It is a schematic diagram of the module structure of the chip grid generation system based on region decomposition and grid imprinting of the present invention.
[0044] Explanation of symbols:
[0045] Data acquisition unit-1, modeling unit-2, region decomposition unit-3, discrete unit-4, mesh division unit-5, device layer mesh determination unit-6, stacking region determination unit-7, imprinting unit-8. DETAILED DESCRIPTION
[0046] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0047] The purpose of the present invention is to provide a chip mesh generation method and system based on regional decomposition and mesh imprinting, which can effectively increase the proportion of rectangles in the finite element mesh, reasonably and controllably realize the density transition of the mesh under the premise of reflecting the skin effect of the conductor, improve the calculation accuracy and reliability of electromagnetic simulation, solve the problem of mesh compatibility in large chips, improve the quality of the finite element mesh, and provide favorable conditions for the three-dimensional integrated circuit design of the chip.
[0048] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0049] like Figure 1 As shown, the chip grid generation method based on region decomposition and grid imprinting of the present invention includes:
[0050] S1: Obtain layout information of each device layer of the chip. The device layer includes a conductor layer and through holes opened on the conductor layer. Specifically, obtain a GDSII file representing the chip layout information.
[0051] S2: Analyze the layout information of each device layer and establish a chip geometry model. The chip geometry model includes polygonal areas that represent the boundary information of each device layer. In this embodiment, the GDSII file that represents the chip layout information is analyzed and modeled. The conductor layer and the through holes connecting the conductor layers are uniformly described and classified using polygonal areas. The through holes are merged according to the merge size set by the user. At the same time, the through holes are checked. If the boundary of the through hole exceeds the conductor layer to which it is connected, the excess part is cut off.
[0052] S3: For any device layer, a regional decomposition algorithm is used to decompose the polygonal region representing the boundary information of the device layer into multiple sub-regions. In this embodiment, the boundary of the polygonal region representing the boundary information of each device layer is used as input, and the regional decomposition algorithm is recursively called to decompose the polygonal region into a number of sub-regions mainly composed of rectangular regions. The regional decomposition algorithm first generates a constrained Delaunay triangulated background mesh, and performs regional decomposition by generating vertical lines between parallel boundaries. The use of the regional decomposition algorithm can effectively increase the proportion of rectangles in the finite element mesh, help reduce the matrix size when solving the electromagnetic simulation matrix, and improve the computational efficiency of its solution.
[0053] S4: Using the binary backpack algorithm, the boundaries of each sub-region are discretized according to the set segmentation size and maximum magnification to obtain the discrete boundaries corresponding to each sub-region. The density of the finite element mesh can be controlled to better simulate the skin effect of the conductor. The binary backpack discrete algorithm can reasonably and controllably realize the density transition of the mesh while reflecting the skin effect of the conductor, thereby improving the calculation accuracy and reliability of electromagnetic simulation.
[0054] S5: For any sub-region, grid-dividing the sub-region according to the discrete boundaries of the sub-region to obtain a sub-grid corresponding to the sub-region.
[0055] S6: Determine the finite element mesh of the device layer according to the sub-grids corresponding to each sub-region.
[0056] S7: Perform Boolean operations on the finite element meshes of each device layer to determine the stacking area meshes between the device layers.
[0057] S8: According to the stacking area grids between each device layer, the finite element grids of each device layer are stamped using a grid stamping algorithm to obtain the finite element grid of the chip. Specifically, the grid stamping algorithm is called to obtain a conformal grid that is compatible with the grids between each device layer. The grid stamping algorithm solves the problem of grid compatibility in large IC (Integrated Circuit Chip) chip models, providing favorable conditions for the three-dimensional integrated circuit design of the chip.
[0058] Furthermore, the multiple sub-areas include rectangular areas, triangular areas, and areas of other shapes.
[0059] Step S3 specifically includes:
[0060] S31: Selecting characteristic vertices from the polygonal region representing the device layer boundary information. The characteristic vertices are vertices in the polygonal region whose internal angles are greater than 180°.
[0061] S32: Determine candidate edges corresponding to each feature vertex in the polygonal region. Specifically, step S32 includes:
[0062] S321: using a Delaunay triangulation algorithm to triangulate the polygonal region to obtain a background triangular mesh; the background triangular mesh includes a plurality of triangular units.
[0063] S322: For any feature vertex, determine a plurality of triangle units including the feature vertex in the background triangle mesh.
[0064] S323: Select candidate points from the vertices of multiple triangle units; the candidate points are vertices in the triangle unit that are not adjacent to the feature vertex on the boundary of the polygonal area; the boundary of the polygonal area connected by the candidate points is the candidate edge corresponding to the feature vertex. Figure 2 As shown, the boundaries connected by the vertices in the triangle unit (excluding the feature vertex and its adjacent vertices) are stored as candidate edges. Figure 2The feature vertex marked in belongs to two triangles. In addition to the feature vertex, there are three vertices in these two triangles. Two of the vertices are adjacent to the feature vertex on the boundary. Therefore, the boundary connected by the upper right vertex is selected as the initial candidate edge. The final candidate edge (polygon boundary) is determined according to the set conditions among the initial candidate edges. The set conditions are as follows: (1) the projection of the feature vertex on the candidate edge falls inside the candidate edge; (2) the perpendicular line from the feature vertex to the candidate edge does not intersect with other boundaries or existing perpendicular lines; (3) at least one of the two angles formed by the perpendicular line and the front and back boundaries of the feature vertex is 90°.
[0065] S33: For any feature vertex, draw a perpendicular line from the feature vertex to the candidate edge corresponding to the feature vertex to obtain multiple rectangular areas, such as Figure 3 shown.
[0066] S34: Divide the corner area between two adjacent rectangular areas into a plurality of triangular areas. The areas other than the rectangular area and the triangular area in the polygon are areas of other shapes.
[0067] Furthermore, the discrete boundaries include end discrete boundaries, half end discrete boundaries and general discrete boundaries.
[0068] Step S4 specifically includes:
[0069] S41: For any sub-region, the boundary of the sub-region is divided into end edges, half-end edges and general edges. The end edge is an edge where the angles at which the two vertices are located are both right angles. The half-end edge is an edge where the angle at which the vertex is located is a right angle. The general edge is an edge where the angles at which the two vertices are located are not right angles. Specifically, if an edge of a sub-region is a boundary edge of a polygonal region, the edge is classified according to the angles of the inner angles of the polygon where the two vertices of the edge are located. If an edge of a sub-region is an edge inside a polygon, and the two vertices of the edge are on the boundary of the polygon, the edge is classified according to the angles formed by the two vertices of the edge and the boundary of the polygon. Figure 3 shown.
[0070] S42: for the end edge, according to the set segmentation size and the maximum magnification, a binary knapsack algorithm is used from two vertices to discretize the end edge to obtain an end discrete boundary.
[0071] S43: For the half-end edge, according to the set segmentation size and the maximum magnification, a binary knapsack algorithm is used from the vertex of the right angle to discretize the half-end edge to obtain a half-end discrete boundary.
[0072] S44: For general edges, according to the set segmentation size and the maximum magnification, the maximum segmentation size is determined, and the general edges are discretized according to the maximum segmentation size to obtain general discrete boundaries. The general edges do not call the binary backpack algorithm, and will be evenly discretized according to the maximum segmentation size. Figure 4 shown.
[0073] In this embodiment, the specific implementation method of the binary backpack grid is: the first grid is 1 times the set segmentation size width, the second grid is 2 times the set segmentation size width... and so on, the nth grid is 2 times the set segmentation size width. n The maximum segmentation size is obtained by multiplying the set segmentation size by the maximum magnification factor. When the length of a cell exceeds the maximum segmentation size, the length of the cell is limited to the maximum segmentation size. Specifically, the length formula of the binary backpack is:
[0074]
[0075] Among them, l n represents the length of the nth cell, w represents the grid size, and M represents the maximum magnification.
[0076] Furthermore, the sub-grid includes a rectangular grid, a triangular grid and a mixed grid.
[0077] Step S5 specifically includes:
[0078] S51: If the sub-region is a rectangular region, a mapping method is used to generate a rectangular mesh in the sub-region according to the discrete boundary of the sub-region. Since the number of segments of opposite sides of the rectangular region is equal, the mapping method is used to generate a structured quadrilateral mesh.
[0079] S52: If the sub-region is a triangular region, a rectangular mesh is generated in the sub-region using a rectangular interpolation method according to a discrete boundary of the sub-region, and other regions in the sub-region except the rectangular mesh are filled with triangular meshes.
[0080] Specifically, step S52 includes:
[0081] S521: inserting a plurality of rectangular grids into the sub-region according to the discrete boundaries of the sub-region. Figure 5 As shown, by inserting rectangles, the corner area A can be split into a rectangle B1 and two right-angled triangle areas C1 and D1. Recursively insert rectangles to generate as many rectangular grids B2-BN as possible.
[0082] S522: For any rectangular mesh, traverse the points on the hypotenuse of the sub-region, and for any node on the hypotenuse of the sub-region, determine the distance between the node and each vertex of the rectangular mesh.
[0083] S523: If the distance between the node and any vertex of the rectangular grid E is less than the set distance threshold, merge the node with the corresponding vertex of the rectangular grid to obtain a merged unit. If the distances between all the nodes on the hypotenuse of the sub-region and any vertex of the rectangular grid are greater than or equal to the set distance, no merging is performed.
[0084] Since the boundary of the sub-region has been discretized, one vertex of the inserted rectangle usually does not lie on the hypotenuse of the right triangle. Traverse the nodes on the hypotenuse to find the node closest to the vertex of the rectangle and calculate the distance between the two. If the two nodes are too close, poorly shaped long and narrow triangles may be generated. To avoid this situation, these two points need to be merged.
[0085] S524: Split the merged unit into two triangles F1 and F2. As Figure 6 shown.
[0086] S525: Use a triangular mesh to fill the remaining area in the sub-region. In this embodiment, when the sub-region is a triangular region, the triangular region is finally divided into a rectangular grid and a triangular mesh.
[0087] S53: If the sub-region is neither a rectangular region nor a triangular region, generate a rectangle-dominated hybrid mesh in the sub-region according to the discrete boundary of the sub-region using a variable step size AFT (Advancing-Front Technique).
[0088] Specifically, step S53 includes:
[0089] S531: According to the discrete boundary of the sub-region, use the Delaunay triangulation algorithm to triangulate the sub-region to obtain an initial triangulated mesh.
[0090] S532: Determine the initial front edge and initial front nodes in the initial triangulated mesh. The initial front edge is the boundary of the initial triangulated mesh. The initial front nodes are the points on the initial front edge.
[0091] S533: For the i-th iteration, determine the advancing direction and advancing step size of each front node at the i-th moment according to the positions of the front nodes at the i-th moment, 0 < i ≤ I, where I is the iteration threshold; the front nodes at the initial moment are the initial front nodes. Specifically, the advancing direction is the angular bisector direction of the angle at the front node. The advancing step size is determined by the iteration number and the position of the front node. As Figure 7 shown.
[0092] For boundary nodes, the advancing step size is the mesh division size.
[0093] For internal nodes, the advancement step is the maximum mesh size. For new frontier nodes generated after the frontier nodes are advanced, their advancement step is twice that of the original nodes. When the maximum mesh size is exceeded, they will be limited to the maximum mesh size.
[0094] S534: Determine the position of each frontier node at the i+1th moment according to the advancement direction and advancement step of each frontier node at the i-th moment.
[0095] S535: for any frontier node at the i+1th moment, determine whether the position of the frontier node meets the set insertion condition; if the position of the frontier node meets the set insertion condition, insert the frontier node into the triangulated mesh at the ith moment, otherwise the frontier node is not inserted into the triangulated mesh at the ith moment; the triangulated mesh at the initial moment is the initial triangulated mesh. The set insertion condition is that the position of the frontier node does not overlap with the existing frontier node in the triangulated mesh at the ith moment, and the distance between the position of the frontier node and the existing frontier node in the triangulated mesh at the ith moment is greater than the set threshold, and is not located in a frozen triangle.
[0096] S536: When all frontier nodes have been advanced, perform boundary recovery operations: according to each frontier node at the i+1th moment and each frontier node at the ith moment, perform side and top edge recovery operations in the triangulated mesh at the ith moment to obtain the triangulated mesh at the i+1th moment.
[0097] Specifically, for any frontier node, if the position of the frontier node at the i+1th moment meets the set insertion condition, it is determined whether a side edge between the frontier node at the i-th moment and the frontier node at the i+1th moment exists. If not, the side edge is restored in the triangulated mesh at the i-th moment.
[0098] In this embodiment, if a frontier node has been advanced to generate a new frontier node, it is checked in the triangulated mesh whether a side edge consisting of the old and new frontier nodes exists. If not, the side edge is restored by edge exchange.
[0099] If the positions of the end nodes at the i+1th moment meet the set insertion conditions, it is determined whether the top edge between the end nodes at the i+1th moment exists. If not, the top edge is restored in the triangulated mesh at the i-th moment to obtain the front edge at the i+1th moment, so as to obtain the triangulated mesh at the i+1th moment; the end nodes at the i+1th moment are the front nodes at the i+1th moment corresponding to the front nodes at both ends of the front edge at the i-th moment; the front edge at the initial moment is the initial front edge.
[0100] In this embodiment, if both front vertices of a front edge are advanced to generate new nodes, it is checked whether the top edge composed of the two new nodes exists in the triangulated mesh. If not, it is restored.
[0101] S537: Freeze the triangles in the triangulated mesh at time i+1 that contain the frontier nodes at time i; the coordinates of the vertices of the frozen triangles cannot be changed, and frontier nodes cannot be inserted into the frozen triangles. That is, freeze all triangles that contain old frontier vertices.
[0102] S538: until all frontier nodes are not inserted into the triangulated mesh at the i+1th moment, or the number of iterations is equal to the iteration threshold, two adjacent right triangles in the triangulated mesh at the i+1th moment are combined into a rectangle to obtain a mixed mesh.
[0103] The present invention adopts a variable step-size advancing wavefront method to effectively increase the proportion of rectangular units in the finite element grid, which helps to reduce the matrix size when solving the electromagnetic simulation matrix and can improve the calculation efficiency of its solution.
[0104] Furthermore, step S8 specifically includes:
[0105] S81: For any stacking area grid, determine the priority of each stacking layer of the stacking area grid. The stacking layer is the part where each device layer is stacked with other device layers. The priority decreases from top to bottom. Specifically, a Boolean operation is performed on the stacking area grids between each device layer to obtain their intersection, and the stacking area grids are graded according to the number of layers stacked by the stacking area grids. The grids with higher priority will be imprinted onto the corresponding grids with lower priority through the grid imprinting algorithm, so that the grids between each device layer are compatible. Figure 8 Schematic diagram of the stacking area priority between layers.
[0106] S82: Using a mesh imprinting algorithm, imprint the stacking layer with a high priority onto the stacking layer with a low priority, so as to obtain a finite element mesh of the chip.
[0107] Specifically, the boundary nodes of the grid to be imprinted are inserted into the target grid, and the boundary of the grid to be imprinted is restored in the target grid through edge exchange operation, and finally the target grid within the boundary is replaced with the grid to be imprinted. The grid to be imprinted is a stacking area grid with a high priority, and the target grid is a stacking area grid with a low priority.
[0108] In order to solve the demand for mesh generation in the electromagnetic simulation process in three-dimensional integrated circuit design in the chip field, the present invention adopts a regional decomposition algorithm of any two-dimensional multi-connected domain, a discrete algorithm of a binary knapsack lattice, a variable-step advancing wavefront method, and a multi-layer mesh imprinting algorithm. It can fully automatically generate a finite element mesh that can be used for electromagnetic simulation for a large IC chip, and has the advantages of strong robustness, a high proportion of quadrilateral meshes, high mesh quality, controllable mesh density, and the ability to be fully automatically generated.
[0109] In order to better understand the solution of the present invention, it is further described below in conjunction with specific embodiments.
[0110] This embodiment takes the finite element mesh generation process of a small IC chip model as an example, and the flowchart of the algorithm implementation is as follows: Fig. 9 shown.
[0111] First, the standard GDSII file representing the chip layout information is used as input, and it is parsed and a geometric model is established. The conductor layer and the through holes connecting the conductor layers are uniformly represented by polygons. The results are as follows: Fig.10 The IC chip model has a total of 5 device layers, three of which are conductor layers. Their geometric shapes are as follows Fig.10 The remaining two layers are through silicon vias that connect the conductor layers and need to be merged according to the merge size specified by the user. The geometric model of the merged IC chip is as follows: Fig.11 shown.
[0112] Then, the region decomposition algorithm is recursively called to decompose the polygon into several rectangular and triangular sub-regions. The specific implementation method is as follows: First, the vertices with internal angles greater than or equal to 180 degrees in the polygon are selected as feature vertices, and the decomposition is achieved by drawing perpendicular lines from the feature vertices to the polygon boundary. In order to find the polygon boundary corresponding to each feature vertex, it is necessary to Figure 2 As shown, constrained Delaunay triangulation is performed on the region, and the result is stored as a background mesh. For each feature vertex, a triangular unit containing the point is found in the background mesh, and the edges connected by the vertices in the triangular unit (excluding the feature vertex and its adjacent vertices) are stored as candidate edges. The final polygonal boundary to be found is determined from the candidate edges. The following conditions must be met: (1) The projection of the feature vertex on the candidate edge falls inside the candidate edge; (2) The perpendicular line from the feature vertex to the candidate edge does not intersect with other boundaries or existing perpendicular lines; (3) At least one of the two angles formed by the perpendicular line and the front and rear boundaries of the feature vertex is 90 degrees. Figure 3 The perpendicular lines made and the resulting sub-regions are shown.
[0113] After completing the region decomposition, the binary knapsack algorithm is used to discretize the boundaries of each sub-region. Fig.12 is an example of a binary knapsack lattice, and its maximum magnification is set to 8. The edges of the sub-region are divided into three categories: end edges with both vertices being right angles; half-end edges with only one vertex being a right angle; and general edges with both vertices not being right angles. For end edges, the binary knapsack lattice algorithm is called from both directions for discretization. For half-end edges, the binary knapsack lattice algorithm is applied from the right-angle vertex for discretization. For general edges, the binary knapsack lattice algorithm is not called, and they are evenly discretized according to the maximum segmentation size. Figure 4 Three types of edge classifications are shown. The numbers in the squares represent the length of the unit cell, in units of the minimum segmentation size.
[0114] After completing the boundary discretization, generate a mesh for each sub-region. For a rectangular region, since the number of segments on its opposite sides is equal, the mapping method can be directly called to generate a structured rectangular mesh. For a corner region, it can usually be split into two right-angled triangle regions, which can be Figure 5 As shown in the figure, a method of recursively inserting rectangles is used to generate as many rectangular meshes as possible. Since the boundary is already discrete at this time, a vertex of the inserted rectangle is usually not located on the hypotenuse of the right triangle. When the vertex is too close to the node on the hypotenuse, a narrow triangle with poor quality may be generated. In order to avoid this situation, it is necessary to Figure 6 As shown in the figure, the two points that are close to each other are merged, and the rectangular unit is split into two triangular units, and the remaining area is filled with a triangular mesh. For sub-areas of other shapes, the variable step-length advancing wavefront method is used to generate a hybrid mesh dominated by rectangles. The algorithm flow chart is as follows: Fig.13 As shown in , it mainly includes the following steps: Determine the front edge and front node: First, generate a constrained Delaunay triangulated mesh as the background mesh for the sub-region to be divided. Figure 7 The boundary edge in the background grid is selected as the initial front edge, and the node on the initial front edge is the initial front node. Determine the advancement direction for each front node and the advancement step δ. Check whether the position of the new frontier node coincides with or is close to an existing node, or is located in a frozen triangle. When the above situation occurs, the generation of the new frontier node will be cancelled. When all frontier nodes have been advanced, the boundary recovery operation is performed. Figure 7 As shown, freeze all triangles containing old frontier vertices. The coordinates of the nodes of the frozen triangles can no longer be changed, and new nodes can no longer be inserted into a frozen triangle. Repeat the above steps until the frontier node queue is empty and two adjacent right-angled triangle units in the triangulation network are combined into a rectangular unit.
[0115] Finally, the grid imprinting algorithm is called to make the grids between the device layers compatible. Fig.14The schematic diagram of the mesh imprinting algorithm is shown, which mainly includes the following steps: Perform Boolean intersection operations on the polygons representing the first device layer and the polygons of the second device layer to obtain the stacking areas between the layers. For each stacking area, set the mesh imprinting priority for it according to the number of stacked layers. The more stacked layers, the higher the priority. The meshes in the high-priority area will then be imprinted on the meshes in the low-priority area. Insert the boundary vertices of the mesh to be imprinted into the original mesh. When inserting nodes, follow the Delaunay insertion principle and restore the boundary of the imprinted mesh in the original mesh through edge exchange operations. Delete the meshes in the corresponding area in the original mesh and replace them with the mesh to be imprinted.
[0116] Fig.15 and Fig.16 The mesh division diagram of this embodiment is shown. It can be seen from the figure that the finite element mesh generated by the present invention has a high proportion of rectangular units, the mesh density transition is reasonable and can reflect the skin effect of the conductor, the meshes between the device layers are compatible, and can be applied to the electromagnetic simulation calculation of the chip.
[0117] like Fig.17 As shown, the chip grid generation system based on regional decomposition and grid imprinting of the present invention includes: a data acquisition unit 1, a modeling unit 2, a regional decomposition unit 3, a discrete unit 4, a grid division unit 5, a device layer grid determination unit 6, a stacking area determination unit 7 and an imprinting unit 8.
[0118] The data acquisition unit 1 is used to acquire layout information of each device layer of the chip. The device layer includes a conductor layer and through holes opened on the conductor layer.
[0119] The modeling unit 2 is connected to the data acquisition unit 1, and is used to analyze the layout information of each device layer and establish a chip geometric model. The chip geometric model includes a polygonal area representing the boundary information of each device layer.
[0120] The region decomposition unit 3 is connected to the modeling unit 2 , and is used for decomposing a polygonal region representing the boundary information of any device layer into a plurality of sub-regions by using a region decomposition algorithm.
[0121] The discrete unit 4 is connected to the region decomposition unit 3, and is used to discretize the boundaries of each sub-region according to the set segmentation size and the maximum magnification by using a binary backpack algorithm to obtain the discrete boundaries corresponding to each sub-region.
[0122] The grid division unit 5 is connected to the region decomposition unit 3 and the discrete unit 4 respectively. The grid division unit 5 is used to grid any sub-region according to the discrete boundaries of the sub-region to obtain a sub-grid corresponding to the sub-region.
[0123] The device layer grid determination unit 6 is connected to the grid division unit 5 , and the device layer grid determination unit 6 is used to determine the finite element grid of the device layer according to the sub-grids corresponding to each sub-region.
[0124] The stacking area determination unit 7 is connected to the device layer mesh determination unit 6 , and the stacking area determination unit 7 is used to perform Boolean operations on the finite element meshes of each device layer to determine the stacking area meshes between each device layer.
[0125] The imprinting unit 8 is connected to the device layer grid determination unit 6 and the stacking area determination unit 7 respectively. The imprinting unit 8 is used to imprint the finite element grid of each device layer according to the stacking area grid between each device layer using a grid imprinting algorithm to obtain the finite element grid of the chip.
[0126] Furthermore, the multiple sub-areas include rectangular areas, triangular areas, and areas of other shapes.
[0127] The region decomposition unit 3 includes: a feature vertex determination module, a candidate edge determination module, a rectangular region determination module and a triangular region determination module.
[0128] The feature vertex determination module is connected to the modeling unit 2, and is used to select feature vertices from the polygonal region representing the device layer boundary information. The feature vertices are vertices in the polygonal region whose internal angles are greater than 180°.
[0129] The candidate edge determination module is connected to the feature vertex determination module and the modeling unit 2, and the candidate edge determination module is used to determine the candidate edges corresponding to each feature vertex in the polygonal area.
[0130] Specifically, the candidate edge determination module includes: a subdivision submodule, a triangle unit determination submodule and a candidate point determination submodule.
[0131] The sub-division module is connected to the modeling unit 2, and is used to adopt the Delaunay triangulation algorithm to divide the polygonal area to obtain a background triangular mesh, wherein the background triangular mesh includes a plurality of triangular units.
[0132] The triangle unit determination submodule is connected to the subdivision submodule and the feature vertex determination module. The triangle unit determination submodule is used to determine, for any feature vertex, a plurality of triangle units including the feature vertex in the background triangle mesh.
[0133] The candidate point determination submodule is connected to the triangle unit determination submodule, and the candidate point determination submodule is used to select candidate points from the vertices of multiple triangle units. The candidate points are vertices in the triangle unit that are not adjacent to the feature vertex on the boundary of the polygonal area. The boundary of the polygonal area connected by the candidate points is the candidate edge corresponding to the feature vertex.
[0134] The rectangular area determination module is connected to the feature vertex determination module and the candidate edge determination module. The rectangular area determination module is used to draw a perpendicular line from any feature vertex to the candidate edge corresponding to the feature vertex to obtain multiple rectangular areas.
[0135] The triangular area determination module is connected to the rectangular area determination module, and the triangular area determination module is used to divide the corner area between two adjacent rectangular areas into a plurality of triangular areas. The area other than the rectangular area and the triangular area in the polygon is an area of other shapes.
[0136] Furthermore, the discrete boundary includes an end discrete boundary, a half end discrete boundary and a general discrete boundary. The discrete unit 4 includes: an edge classification module, an end edge discrete module, a half end edge discrete module and a general edge discrete module.
[0137] The edge classification module is connected to the region decomposition unit 3, and is used for dividing the boundary of any sub-region into end edges, half-end edges and general edges. The end edge is an edge where the angles of two vertices are both right angles. The half-end edge is an edge where the angle of one vertex is right angle. The general edge is an edge where the angles of two vertices are not right angles.
[0138] The end edge discretization module is connected to the edge classification module. The end edge discretization module is used to discretize the end edge by using a binary knapsack algorithm from two vertices according to the set segmentation size and the maximum magnification to obtain the end discrete boundary.
[0139] The half-end edge discretization module is connected to the edge classification module. The half-end edge discretization module is used to discretize the half-end edge according to the set segmentation size and the maximum magnification, using the binary backpack algorithm from the vertex of the right angle to obtain the half-end discrete boundary.
[0140] The general edge discretization module is connected to the edge classification module. The general edge discretization module is used to determine the maximum segmentation size for the general edge according to the set segmentation size and the maximum magnification, and discretize the general edge according to the maximum segmentation size to obtain the general discrete boundary.
[0141] Furthermore, the sub-grids include rectangular grids, triangular grids and mixed grids. The grid division unit 5 includes: a rectangular division module, a triangular division module and a mixed division module.
[0142] The rectangular division module is connected to the region decomposition unit 3 and the discrete unit 4 respectively. The rectangular division module is used to generate a rectangular grid in the sub-region by a mapping method according to the discrete boundary of the sub-region if the sub-region is a rectangular region.
[0143] The triangulation module is connected to the region decomposition unit 3 and the discrete unit 4 respectively. If the sub-region is a triangular region, the triangulation module uses a rectangular insertion method to generate a rectangular grid in the sub-region according to the discrete boundary of the sub-region, and uses a triangular grid to fill other areas in the sub-region except the rectangular grid.
[0144] The hybrid partitioning module is connected to the regional decomposition unit 3 and the discrete unit 4 respectively. The hybrid partitioning module is used to generate a hybrid grid in the sub-region according to the discrete boundary of the sub-region by using the variable step-size advancing wavefront method if the sub-region is neither a rectangular region nor a triangular region.
[0145] Furthermore, the stamping unit 8 includes a priority determination module and a stamping module.
[0146] Among them, the priority determination module is connected to the stacking area determination unit 7, and the priority determination module is used to determine the priority of each stacking layer of any stacking area grid; the stacking layer is the part where each device layer is stacked with other device layers; the priority decreases from top to bottom.
[0147] The imprinting module is connected to the device layer grid determination unit 6 and the priority determination module respectively, and is used to use a grid imprinting algorithm to imprint a high-priority stacking layer onto a low-priority stacking layer to obtain a finite element grid of the chip.
[0148] Compared with the prior art, the chip grid generation system based on region decomposition and grid imprinting of the present invention has the same beneficial effects as the chip grid generation method based on region decomposition and grid imprinting described above, which will not be described in detail here.
[0149] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0150] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A chip grid generation method based on region decomposition and grid imprinting, characterized in that: The chip grid generation method based on region decomposition and grid imprinting includes: Acquire layout information of each device layer of the chip; the device layer includes a conductor layer and a through hole opened on the conductor layer; Parsing the layout information of each device layer to establish a chip geometry model; the chip geometry model includes a polygonal area representing the boundary information of each device layer; For any device layer, a region decomposition algorithm is used to decompose a polygonal region representing the boundary information of the device layer into multiple sub-regions; The binary knapsack algorithm is used to discretize the boundaries of each sub-region according to the set segmentation size and maximum magnification to obtain the discrete boundaries corresponding to each sub-region; For any sub-region, dividing the sub-region into grids according to the discrete boundaries of the sub-region to obtain a sub-grid corresponding to the sub-region; Determining a finite element mesh of the device layer according to the sub-meshes corresponding to each sub-region; Perform Boolean operations on the finite element meshes of each device layer to determine the stacking area meshes between the device layers; According to the stacking area grids between the device layers, a grid imprinting algorithm is used to imprint the finite element grids of each device layer to obtain the finite element grid of the chip.
2. The chip grid generation method based on region decomposition and grid imprinting according to claim 1, characterized in that: The multiple sub-areas include rectangular areas, triangular areas and areas of other shapes; The region decomposition algorithm is used to decompose the polygonal region representing the boundary information of the device layer into multiple sub-regions, specifically including: Selecting a characteristic vertex from a polygonal region representing the device layer boundary information; the characteristic vertex is a vertex in the polygonal region whose internal angle is greater than 180°; Determine candidate edges corresponding to each feature vertex in the polygonal area; For any feature vertex, a perpendicular line is drawn from the feature vertex to the candidate edge corresponding to the feature vertex to obtain multiple rectangular areas; The corner area between two adjacent rectangular areas is divided into a plurality of triangular areas; the areas other than the rectangular area and the triangular area in the polygon are areas of other shapes.
3. The chip grid generation method based on region decomposition and grid imprinting according to claim 2, characterized in that: The step of determining candidate edges corresponding to each feature vertex in the polygonal region specifically includes: Using a Delaunay triangulation algorithm to triangulate the polygonal area to obtain a background triangular mesh; the background triangular mesh includes a plurality of triangular units; For any feature vertex, determining a plurality of triangle units including the feature vertex in the background triangle mesh; A candidate point is selected from the vertices of a plurality of triangular units; the candidate point is a vertex in the triangular unit that is not adjacent to the feature vertex on the boundary of the polygonal area; the boundary of the polygonal area connected by the candidate point is a candidate edge corresponding to the feature vertex.
4. The chip grid generation method based on region decomposition and grid imprinting according to claim 1, characterized in that: The discrete boundaries include end discrete boundaries, half end discrete boundaries and general discrete boundaries; The binary backpack algorithm is used to discretize the boundaries of each sub-region according to the set segmentation size and the maximum magnification to obtain the discrete boundaries corresponding to each sub-region, specifically including: For any sub-region, the boundary of the sub-region is divided into an end edge, a half-end edge and a general edge; the end edge is an edge where the angles of the two vertices are both right angles; the half-end edge is an edge where the angle of one vertex is a right angle; the general edge is an edge where the angles of the two vertices are not right angles; For the end edge, according to the set segmentation size and the maximum magnification, the binary knapsack algorithm is used from two vertices to discretize the end edge to obtain the end discrete boundary; For the half-end edge, according to the set segmentation size and the maximum magnification, the binary backpack algorithm is used from the vertex of the right angle to discretize the half-end edge to obtain the half-end discrete boundary; For a general edge, a maximum segmentation size is determined according to a set segmentation size and a maximum magnification factor, and the general edge is discretized according to the maximum segmentation size to obtain a general discrete boundary.
5. The chip grid generation method based on region decomposition and grid imprinting according to claim 1, characterized in that: The sub-grids include rectangular grids, triangular grids and mixed grids; The grid division of the sub-region according to the discrete boundary of the sub-region to obtain a sub-grid corresponding to the sub-region specifically includes: If the sub-region is a rectangular region, a rectangular grid is generated in the sub-region by using a mapping method according to the discrete boundaries of the sub-region; If the sub-region is a triangular region, a rectangular mesh is generated in the sub-region by using a rectangular interpolation method according to a discrete boundary of the sub-region, and other regions in the sub-region except the rectangular mesh are filled with triangular meshes; If the sub-region is neither a rectangular region nor a triangular region, a hybrid grid is generated in the sub-region by using a variable-step advancing wavefront method according to the discrete boundary of the sub-region.
6. The chip grid generation method based on region decomposition and grid imprinting according to claim 5, characterized in that: If the sub-region is a triangular region, a rectangular mesh is generated in the sub-region by using a rectangular interpolation method according to the discrete boundary of the sub-region, and other regions in the sub-region except the rectangular mesh are filled with triangular meshes, specifically including: Inserting a plurality of rectangular grids in the sub-region according to the discrete boundaries of the sub-region; For any rectangular grid, traverse the points on the hypotenuse of the sub-region, and for any node on the hypotenuse of the sub-region, determine the distance between the node and each vertex of the rectangular grid; If the distance between the node and any vertex of the rectangular grid is less than a set distance threshold, the node and the vertex corresponding to the rectangular grid are merged to obtain a merged unit; Splitting the merging unit into two triangles; The remaining area in the sub-area is filled with a triangular mesh.
7. The chip grid generation method based on region decomposition and grid imprinting according to claim 5, characterized in that: If the sub-region is neither a rectangular region nor a triangular region, a variable-step advancing wavefront method is used to generate a hybrid grid in the sub-region according to the discrete boundary of the sub-region, specifically including: According to the discrete boundaries of the sub-region, the sub-region is divided by using a Delaunay triangulation algorithm to obtain an initial triangulated mesh; Determining an initial front edge and an initial front node in the initial triangulated mesh; the initial front edge is a boundary of the initial triangulated mesh; the initial front node is a point on the initial front edge; For the i-th iteration, based on the positions of the front nodes at the i-th moment, determine the advancing directions and advancing step sizes of the front nodes at the i-th moment, where 0 < i ≤ I and I is the iteration threshold; the front nodes at the initial moment are the initial front nodes; Based on the advancing directions and advancing step sizes of the front nodes at the i-th moment, determine the positions of the front nodes at the (i + 1)-th moment; For any front node at the (i + 1)-th moment, determine whether the position of the front node satisfies the set insertion condition; if the position of the front node satisfies the set insertion condition, insert the front node into the triangulated mesh at the i-th moment, otherwise the front node is not inserted into the triangulated mesh at the i-th moment; the triangulated mesh at the initial moment is the initial triangulated mesh; the set insertion condition is that the position of the front node does not coincide with the existing front nodes in the triangulated mesh at the i-th moment, and the distances between the position of the front node and the existing front nodes in the triangulated mesh at the i-th moment are all greater than the set threshold, and it is not located inside the frozen triangles; Based on the front nodes at the (i + 1)-th moment and the front nodes at the i-th moment, perform side and top edge restoration operations on the triangulated mesh at the i-th moment to obtain the triangulated mesh at the (i + 1)-th moment; Freeze the triangles in the triangulated mesh at the (i + 1)-th moment that contain the front nodes at the i-th moment; the coordinates of the vertices of the frozen triangles cannot be changed anymore, and no front nodes can be inserted into the frozen triangles; Until all the front nodes at the (i + 1)-th moment are not inserted into the triangulated mesh at the i-th moment, or when the number of iterations is equal to the iteration threshold, combine two adjacent right triangles in the triangulated mesh at the (i + 1)-th moment into a rectangle to obtain the hybrid mesh.
8. The chip grid generation method based on region decomposition and grid imprinting according to claim 7, characterized in that: The performing side and top edge restoration operations on the triangulated mesh at the i-th moment based on the front nodes at the (i + 1)-th moment and the front nodes at the i-th moment to obtain the triangulated mesh at the (i + 1)-th moment specifically includes: For any front node, if the position of the front node at the (i + 1)-th moment satisfies the set insertion condition, determine whether the side between the front node at the i-th moment and the front node at the (i + 1)-th moment exists; if it does not exist, restore the side in the triangulated mesh at the i-th moment; If the positions of the end nodes at the (i + 1)-th moment satisfy the set insertion condition, determine whether the top edge between the end nodes at the (i + 1)-th moment exists; if it does not exist, restore the top edge in the triangulated mesh at the i-th moment to obtain the front edge at the (i + 1)-th moment, so as to obtain the triangulated mesh at the (i + 1)-th moment; the end nodes at the (i + 1)-th moment are the front nodes corresponding to the front nodes at both ends of the front edge at the i-th moment at the (i + 1)-th moment; the front edge at the initial moment is the initial front edge.
9. The chip grid generation method based on region decomposition and grid imprinting according to claim 1, characterized in that: The performing imprinting on the finite element meshes of each device layer using the mesh imprinting algorithm according to the stacked area meshes between each device layer to obtain the finite element mesh of the chip specifically includes: For any stacked area mesh, determine the priority of each stacked layer of the stacked area mesh; the stacked layer is the part where each device layer is stacked with other device layers; the priority decreases from top to bottom; A mesh imprinting algorithm is used to imprint a stacking layer with a high priority onto a stacking layer with a low priority to obtain a finite element mesh of the chip.
10. A chip grid generation system based on region decomposition and grid imprinting, characterized in that: The chip grid generation system based on region decomposition and grid imprinting includes: A data acquisition unit, used to acquire layout information of each device layer of the chip; the device layer includes a conductor layer and a through hole opened on the conductor layer; A modeling unit connected to the data acquisition unit, used to parse the layout information of each device layer and establish a chip geometry model; the chip geometry model includes a polygonal area representing the boundary information of each device layer; A region decomposition unit connected to the modeling unit, for decomposing a polygonal region representing boundary information of any device layer into a plurality of sub-regions by using a region decomposition algorithm; A discrete unit connected to the region decomposition unit is used to discretize the boundaries of each sub-region according to the set segmentation size and the maximum magnification by using a binary backpack algorithm to obtain a discrete boundary corresponding to each sub-region; A grid division unit, connected to the region decomposition unit and the discrete unit, respectively, for performing grid division on any sub-region according to the discrete boundary of the sub-region to obtain a sub-grid corresponding to the sub-region; A device layer mesh determination unit, connected to the mesh division unit, for determining a finite element mesh of the device layer according to the sub-grids corresponding to each sub-region; A stacking area determination unit, connected to the device layer mesh determination unit, for performing Boolean operations on the finite element meshes of each device layer to determine the stacking area meshes between the device layers; The imprinting unit is connected to the device layer grid determination unit and the stacking area determination unit respectively, and is used to imprint the finite element grid of each device layer according to the stacking area grid between each device layer by using a grid imprinting algorithm to obtain the finite element grid of the chip.
