A method for circuit layout optimization in chip manufacturing

By constructing a parasitic impedance gradient tensor field and an anisotropic impedance repulsion potential field to optimize the location of logic units, the problems of wiring congestion and timing degradation in nanoscale semiconductor manufacturing are solved, and more efficient circuit layout optimization is achieved.

CN123159245APending Publication Date: 2026-11-24XIAN ZHONGYONG KEHANG ELECTRONIC TECHNOLOGY CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202611464228.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-20
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing circuit layout methods cannot effectively reduce the deviation between geometric distance and actual electrical characteristics in nanoscale semiconductor manufacturing, leading to wiring congestion and timing degradation, and failing to effectively control the impedance overhead of cross-layer vias.

Method used

By constructing a parasitic impedance gradient tensor field, utilizing the wire cross density and metal layer impedance weights, combined with anisotropic impedance repulsion potential and timing relaxation, the coordinate adjustment of logic cells is optimized, reducing the impact of wiring congestion and cross-layer vias.

Benefits of technology

It improves the electrical convergence speed and yield of circuit layout, reduces frequent cross-layer connections and via resistance increases caused by position adjustments, and avoids violations of layout legality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123159245A_ABST
    Figure CN123159245A_ABST
Patent Text Reader

Abstract

This invention relates to the field of circuit layout design technology and discloses a circuit layout optimization method in chip manufacturing, including: parsing a logic netlist and establishing an initial coordinate mapping; calculating the net cross density based on topological connections and constructing a parasitic impedance gradient tensor field by combining the impedance weight matrix; constructing an anisotropic repulsive potential field based on the principal characteristics of the tensor field and deriving the potential energy vector; calculating the coordinate offset vector by combining the directional attenuation coefficient and the timing relaxation; solving a bipartite graph matching model that takes into account overlap penalties, movement distance, and via impedance penalties to rearrange the local layout and lock the coordinates. This invention expresses the nonlinear impedance change rate through the parasitic impedance gradient tensor field, breaks the assumption of geometric distance and parasitic impedance monotonicity, guides logic cells to migrate to low impedance and low congestion areas, eliminates timing degradation caused by local high impedance, and improves electrical convergence speed and yield.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to a circuit layout optimization method in chip manufacturing, belonging to the field of circuit layout design technology. Background Technology

[0002] In current integrated circuit physical design, circuit layout directly affects chip power consumption, performance, and area. Existing electronic design automation (EDA) layout methods typically use geometric spatial distance as a substitute evaluation index for net delay. During the layout iteration process, a repulsive potential field is constructed based on geometric coordinates to adjust the position of logic cells. After geometric layout convergence, cell legalization rearrangement and routing are performed. These methods are usually based on a basic assumption that the physical distance between logic cells and the subsequently extracted parasitic impedance are monotonically linearly positively correlated. As semiconductor manufacturing processes enter the nanoscale, interconnect widths are constantly narrowing, and line resistance is increasing accordingly. Cross-coupling capacitance between adjacent metal layers has also become a key factor affecting signal propagation. In local high-density areas, even if the physical distance between logic cells is relatively close, routing congestion can easily occur, requiring nets to cross multiple metal layers to complete the connection. The resulting large amount of via resistance and interlayer coupling impedance, when superimposed, can cause nets that were originally close to each other to have higher actual propagation delays, resulting in a discrepancy between the trend of geometric distance change and the trend of actual electrical delay change.

[0003] Besides the inherent difficulty in accurately mapping real electrical characteristics to planar physical geometric indices, existing algorithms also suffer from significant strategic bottlenecks at the level of layout adjustment control methods. For example, Chinese invention patent CN120449816B discloses a method, device, and storage medium for optimizing the layout of digital logic circuits. By identifying macrocell channels and their relative positions to the chip center, geometric scaling is applied to the movement step size of standard cells. However, this type of method adjusts its strategy based solely on the overall geometric space ratio and discrete region position rules. It fails to establish a continuous spatial gradient field for nonlinear parasitic impedance under multilayer interconnect structures during layout iteration, lacks adaptive damping control for perturbation directions at complex density boundaries, and ignores the impedance overhead of vertical vias across metal layers when locking coordinates in local rearrangement.

[0004] Therefore, how to reduce the dependence on the monotonicity assumption of geometric distance, eliminate timing degradation caused by local high impedance and wiring congestion in the layout stage, and suppress position oscillations in the coordinate iteration process and impedance overhead caused by cross-layer vias, has become the technical problem to be solved by this invention. Summary of the Invention

[0005] To address the problems in the background art, the technical solution of the present invention is as follows: A circuit layout optimization method in chip manufacturing, the method comprising the following steps:

[0006] Step S1: Obtain the logic netlist and chip layout area division parameters of the circuit to be laid out, discretize the chip layout area into an arrayed two-dimensional layout grid, and establish the initial coordinate mapping of each logic unit in the two-dimensional layout grid based on the logic netlist.

[0007] Step S2: Based on the connection topology of each logical unit in the logical netlist and the current coordinates of each logical unit in the two-dimensional layout grid, calculate the wire cross density of each grid unit. Perform tensor multiplication operation between the discrete spatial gradient of the wire cross density and the preset metal layer impedance weight matrix to construct the parasitic impedance gradient tensor field of the two-dimensional layout grid.

[0008] Step S3: Based on the principal eigenvalue direction and magnitude of the parasitic impedance gradient tensor field, construct an anisotropic impedance repulsion potential field with asymmetric potential energy decay applied to each logic unit in the principal eigenvalue direction, and derive the impedance repulsion potential energy vector acting on each logic unit.

[0009] Step S4: Extract the cross density direction variance of the wire mesh in the neighborhood of the target logic unit to generate anisotropic direction attenuation coefficient. Based on the impedance repulsion potential energy vector, the anisotropic direction attenuation coefficient and the corresponding timing relaxation weight, calculate the discrete coordinate offset vector of each logic unit.

[0010] Step S5: When the discrete coordinate offset vector meets the convergence threshold, update the coordinates of each logic unit, construct a cost matrix including the unit overlap area penalty, the physical distance of movement, and the impedance penalty value of the via across the metal layer, rearrange the local layout by solving the discrete bipartite graph matching model, lock the coordinates of each logic unit in the two-dimensional layout grid, and output the circuit layout diagram; when the discrete coordinate offset vector does not meet the convergence threshold, return to step S2 to continue the iteration.

[0011] Preferably, the calculation of the wire crossing density of each grid cell in step S2 specifically includes the following sub-steps: Step S21, obtaining the number of logical wires passing through the boundary of the target grid cell and extracting the physical side length of the target grid cell; Step S22, multiplying the physical side length by itself to obtain the physical area of ​​the target grid cell; Step S23, dividing the number of logical wires by the physical area to calculate the wire crossing density of the target grid cell, which is used to characterize the degree of wiring congestion in the local geometric space of the target grid cell.

[0012] Preferably, the construction of the parasitic impedance gradient tensor field of the two-dimensional layout mesh in step S2 specifically includes the following sub-steps: Step S24, using a two-dimensional discrete spatial gradient operator to perform discrete partial differential operations on the wire cross density of the target mesh cell and its orthogonal adjacent mesh cells to obtain the coordinate axis density gradient components of the target mesh cell in the two-dimensional layout mesh; Step S25, extracting the weighting coefficients of the unit length resistance and interlayer coupling capacitance of the target metal layer in the circuit to be laid out, and generating a two-dimensional impedance weight tensor matrix; Step S26, performing tensor multiplication operations on the gradient vector composed of the coordinate axis density gradient components and the two-dimensional impedance weight tensor matrix to synthesize the parasitic impedance gradient tensor at the target mesh cell, which is used to characterize the spatial rate of change of the local electrical impedance of the target mesh cell in the multilayer metal interconnect structure.

[0013] Preferably, step S3, which constructs an anisotropic impedance repulsion potential field and derives the impedance repulsion potential energy vector, specifically includes the following sub-steps: Step S31, solving for the principal eigenvalues ​​and principal eigenvectors of the parasitic impedance gradient tensor of the grid cell where the target logic cell is located; Step S32, determining that the direction corresponding to the principal eigenvector is the direction of maximum parasitic impedance growth, and setting a potential energy attenuation coefficient greater than that in the orthogonal direction in the direction of maximum parasitic impedance growth to form an anisotropic repulsion potential distribution; Step S33, calculating the negative gradient of the potential field with respect to spatial coordinates along the direction of the principal eigenvector, deriving the impedance repulsion potential energy vector experienced by the target logic cell at its current position, and guiding the target logic cell to migrate to the grid cell with lower electrical impedance and lower wiring congestion.

[0014] Preferably, the calculation of the discrete coordinate offset vector of each logic unit in step S4 specifically includes the following sub-steps: Step S41, calculate the discrete coordinate offset vector according to the following formula: ,in, For the first Discrete coordinate offset vector of each logic unit; For the first The impedance repulsion potential vector of each logic unit; Let be the magnitude of the impedance repulsion potential energy vector; For coordinate perturbation step size gain; The attenuation coefficient is the coefficient in the anisotropic direction; For the first Timing slack of the critical path where each logic unit is located; This is the preset time relaxation normalization constant; It is the numerical stability constant; Represents the natural exponential function; when updating coordinates, the calculated discrete coordinate offset vector is compared with the first... The current coordinates of the logic unit are summed to generate the _th ... The floating-point updated coordinates of each logic unit are used to prioritize the coordinate offset adjustment of critical path logic units that are in a timing violation state through exponential scaling of timing slack.

[0015] Preferably, the generation of the anisotropic direction attenuation coefficient in step S4 specifically includes the following sub-steps: Step S42, selecting a grid neighborhood of a preset size around the target logic unit; Step S43, calculating the variance of the angle between the line intersection density gradient direction and the average gradient direction of each grid unit in the grid neighborhood to obtain the anisotropic direction variance; Step S44, multiplying the anisotropic direction variance with a preset directional damping gain and adding one to obtain the denominator value; Step S45, taking the reciprocal of the denominator value as the anisotropic direction attenuation coefficient, adaptively reducing the coordinate perturbation step size at the density boundary where the multi-directional gradient changes drastically, and eliminating the repeated jitter of the target logic unit at the boundary position.

[0016] Preferably, step S5, which involves constructing a cost matrix and solving the bipartite graph matching topology, specifically includes the following sub-steps: Step S51, using the target logic unit after coordinate updates as the center, delineate a preset layout grid range as a local neighborhood window; Step S52, count the candidate discrete grid units and logic units to be rearranged within the local neighborhood window, and solve the bipartite graph matching topology; Step S53, for each candidate discrete grid unit and logic unit to be rearranged pair, calculate the Manhattan physical distance between them, and predict the number of cross-metal layer vias generated when placed in the candidate discrete grid unit based on the peripheral pin distribution of the logic unit to be rearranged; Step S54, multiply the number of cross-metal layer vias by the via impedance weighting factor, add the Manhattan physical distance and the unit overlap penalty term to obtain the discrete bipartite graph matching cost, and fill it into the cost matrix.

[0017] Preferably, step S5, which rearranges the local layout and locks the coordinates, specifically includes the following sub-steps: Step S55, using the discrete bipartite graph minimum weight matching algorithm to solve the cost matrix, and determining the one-to-one correspondence between each logic unit to be rearranged and each candidate discrete grid unit within the local neighborhood window; Step S56, clearing the geometric overlap between logic units within the local neighborhood window; Step S57, using the center coordinates of the solved discrete grid units as the corresponding logic units to be rearranged, locking the discrete coordinates of each logic unit in the two-dimensional layout grid, and eliminating the surge in cross-metal layer via resistance caused by the coordinate discretization and rounding process.

[0018] Preferably, the initial coordinate mapping established in step S1 includes the following sub-steps: Step S11, parse the logic netlist of the circuit to be laid out, and extract the port connection relationship and critical path timing constraints between logic units; Step S12, obtain the boundary dimensions and forbidden area positions of the chip layout area, and divide the chip layout area into a grid array composed of equally spaced square grid units; Step S13, calculate the geometric area of ​​each logic unit, and map each logic unit to the grid coordinates of the two-dimensional layout grid according to the degree of connection, as the starting point for layout optimization iteration.

[0019] Preferably, the iteration determination and termination in step S5 specifically includes the following sub-steps: Step S58, calculate the magnitude of the discrete coordinate offset vector of all logic units; Step S59, obtain the maximum value of all magnitudes and compare it with the preset coordinate offset convergence threshold; Step S510, when the maximum value is greater than or equal to the coordinate offset convergence threshold and the current iteration number has not reached the preset maximum iteration number, recalculate the wire cross density of each grid unit based on the updated logic unit coordinates and update the parasitic impedance gradient tensor field, and start the next round of coordinate perturbation calculation; when the maximum value is less than the coordinate offset convergence threshold, determine that the layout has converged, terminate the iteration and export the physical layout diagram file.

[0020] Compared with the prior art, the beneficial effects of the present invention are:

[0021] 1. In circuit layout optimization during chip manufacturing, a parasitic impedance gradient tensor field is constructed by combining the net cross density with the metal layer impedance weight. This allows the layout stage to reflect the changing trend of parasitic impedance in local areas earlier, reducing the bias caused by judging electrical performance solely based on the geometric distance between logic cells. Without needing to call the full resistance and capacitance extraction engine, logic cells can be guided to move towards areas with lower impedance and less wiring congestion based on the main characteristic direction of the parasitic impedance gradient. This reduces timing degradation caused by local high impedance and improves the electrical convergence speed and yield of circuit layout under nanoscale interconnect structures.

[0022] 2. By using anisotropic impedance repulsion potential field, timing relaxation, and anisotropic direction attenuation coefficient to jointly control the position adjustment of logic units, timing-sensitive logic units can be prioritized for coordinate adjustment. In areas where the local net density change direction is relatively complex, the coordinate perturbation amplitude is automatically reduced. This makes the movement of logic units near the density boundary smoother, reduces repeated back-and-forth movements and position jitter, and avoids frequent adjustments from damaging the layout legality.

[0023] 3. By considering cell overlap, physical distance of movement, and via impedance across metal layers during local layout rearrangement, logic cells can balance planar movement costs and cross-layer connection overhead while completing discrete coordinate rearrangement. This can reduce frequent cross-layer connections caused by position adjustments, suppress the increase in via resistance caused by the increase in the number of vias, and avoid reducing the electrical performance improved by planar layout adjustment due to the reduced via impedance across metal layers. Attached Figure Description

[0024] Figure 1 This is a flowchart of the circuit local layout coordinate iteration and rearrangement process of the present invention;

[0025] Figure 2 This is a diagram illustrating the multi-platform collaborative interaction of the chip physical design of this invention.

[0026] The objectives, features, and advantages of this invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0027] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0028] A circuit layout optimization method in chip manufacturing, comprising the following steps:

[0029] Step S1: Obtain the logic netlist and chip layout area division parameters of the circuit to be laid out, discretize the chip layout area into an arrayed two-dimensional layout grid, and establish the initial coordinate mapping of each logic unit in the two-dimensional layout grid based on the logic netlist.

[0030] Step S2: Based on the connection topology of each logical unit in the logical netlist and the current coordinates of each logical unit in the two-dimensional layout grid, calculate the wire cross density of each grid unit. Perform tensor multiplication operation between the discrete spatial gradient of the wire cross density and the preset metal layer impedance weight matrix to construct the parasitic impedance gradient tensor field of the two-dimensional layout grid.

[0031] Step S3: Based on the principal eigenvalue direction and magnitude of the parasitic impedance gradient tensor field, construct an anisotropic impedance repulsion potential field with asymmetric potential energy decay applied to each logic unit in the principal eigenvalue direction, and derive the impedance repulsion potential energy vector acting on each logic unit.

[0032] Step S4: Extract the cross density direction variance of the wire mesh in the neighborhood of the target logic unit to generate anisotropic direction attenuation coefficient. Based on the impedance repulsion potential energy vector, the anisotropic direction attenuation coefficient and the corresponding timing relaxation weight, calculate the discrete coordinate offset vector of each logic unit.

[0033] Step S5: When the discrete coordinate offset vector meets the convergence threshold, update the coordinates of each logic unit, construct a cost matrix including the unit overlap area penalty, the physical distance of movement, and the impedance penalty value of the via across the metal layer, rearrange the local layout by solving the discrete bipartite graph matching model, lock the coordinates of each logic unit in the two-dimensional layout grid, and output the circuit layout diagram; when the discrete coordinate offset vector does not meet the convergence threshold, return to step S2 to continue the iteration.

[0034] Preferably, the calculation of the wire crossing density of each grid cell in step S2 specifically includes the following sub-steps: Step S21, obtaining the number of logical wires passing through the boundary of the target grid cell and extracting the physical side length of the target grid cell; Step S22, multiplying the physical side length by itself to obtain the physical area of ​​the target grid cell; Step S23, dividing the number of logical wires by the physical area to calculate the wire crossing density of the target grid cell, which is used to characterize the degree of wiring congestion in the local geometric space of the target grid cell.

[0035] Preferably, the construction of the parasitic impedance gradient tensor field of the two-dimensional layout mesh in step S2 specifically includes the following sub-steps: Step S24, using a two-dimensional discrete spatial gradient operator to perform discrete partial differential operations on the wire cross density of the target mesh cell and its orthogonal adjacent mesh cells to obtain the coordinate axis density gradient components of the target mesh cell in the two-dimensional layout mesh; Step S25, extracting the weighting coefficients of the unit length resistance and interlayer coupling capacitance of the target metal layer in the circuit to be laid out, and generating a two-dimensional impedance weight tensor matrix; Step S26, performing tensor multiplication operations on the gradient vector composed of the coordinate axis density gradient components and the two-dimensional impedance weight tensor matrix to synthesize the parasitic impedance gradient tensor at the target mesh cell, which is used to characterize the spatial rate of change of the local electrical impedance of the target mesh cell in the multilayer metal interconnect structure.

[0036] Preferably, step S3, which constructs an anisotropic impedance repulsion potential field and derives the impedance repulsion potential energy vector, specifically includes the following sub-steps: Step S31, solving for the principal eigenvalues ​​and principal eigenvectors of the parasitic impedance gradient tensor of the grid cell where the target logic cell is located; Step S32, determining that the direction corresponding to the principal eigenvector is the direction of maximum parasitic impedance growth, and setting a potential energy attenuation coefficient greater than that in the orthogonal direction in the direction of maximum parasitic impedance growth to form an anisotropic repulsion potential distribution; Step S33, calculating the negative gradient of the potential field with respect to spatial coordinates along the direction of the principal eigenvector, deriving the impedance repulsion potential energy vector experienced by the target logic cell at its current position, and guiding the target logic cell to migrate to the grid cell with lower electrical impedance and lower wiring congestion.

[0037] Preferably, the calculation of the discrete coordinate offset vector of each logic unit in step S4 specifically includes the following sub-steps: Step S41, calculate the discrete coordinate offset vector according to the following formula: ,in, For the first Discrete coordinate offset vector of each logic unit; For the first The impedance repulsion potential vector of each logic unit; Let be the magnitude of the impedance repulsion potential energy vector; For coordinate perturbation step size gain; The attenuation coefficient is the coefficient in the anisotropic direction; For the first Timing slack of the critical path where each logic unit is located; This is the preset time relaxation normalization constant; It is the numerical stability constant; Represents the natural exponential function; when updating coordinates, the calculated discrete coordinate offset vector is compared with the first... The current coordinates of the logic unit are summed to generate the _th ... The floating-point updated coordinates of each logic unit are used to prioritize the coordinate offset adjustment of critical path logic units that are in a timing violation state through exponential scaling of timing slack.

[0038] Preferably, the generation of the anisotropic direction attenuation coefficient in step S4 specifically includes the following sub-steps: Step S42, selecting a grid neighborhood of a preset size around the target logic unit; Step S43, calculating the variance of the angle between the line intersection density gradient direction and the average gradient direction of each grid unit in the grid neighborhood to obtain the anisotropic direction variance; Step S44, multiplying the anisotropic direction variance with a preset directional damping gain and adding one to obtain the denominator value; Step S45, taking the reciprocal of the denominator value as the anisotropic direction attenuation coefficient, adaptively reducing the coordinate perturbation step size at the density boundary where the multi-directional gradient changes drastically, and eliminating the repeated jitter of the target logic unit at the boundary position.

[0039] Preferably, step S5, which involves constructing a cost matrix and solving the bipartite graph matching topology, specifically includes the following sub-steps: Step S51, using the target logic unit after coordinate updates as the center, delineate a preset layout grid range as a local neighborhood window; Step S52, count the candidate discrete grid units and logic units to be rearranged within the local neighborhood window, and solve the bipartite graph matching topology; Step S53, for each candidate discrete grid unit and logic unit to be rearranged pair, calculate the Manhattan physical distance between them, and predict the number of cross-metal layer vias generated when placed in the candidate discrete grid unit based on the peripheral pin distribution of the logic unit to be rearranged; Step S54, multiply the number of cross-metal layer vias by the via impedance weighting factor, add the Manhattan physical distance and the unit overlap penalty term to obtain the discrete bipartite graph matching cost, and fill it into the cost matrix.

[0040] Preferably, step S5, which rearranges the local layout and locks the coordinates, specifically includes the following sub-steps: Step S55, using the discrete bipartite graph minimum weight matching algorithm to solve the cost matrix, and determining the one-to-one correspondence between each logic unit to be rearranged and each candidate discrete grid unit within the local neighborhood window; Step S56, clearing the geometric overlap between logic units within the local neighborhood window; Step S57, using the center coordinates of the solved discrete grid units as the corresponding logic units to be rearranged, locking the discrete coordinates of each logic unit in the two-dimensional layout grid, and eliminating the surge in cross-metal layer via resistance caused by the coordinate discretization and rounding process.

[0041] Preferably, the initial coordinate mapping established in step S1 includes the following sub-steps: Step S11, parse the logic netlist of the circuit to be laid out, and extract the port connection relationship and critical path timing constraints between logic units; Step S12, obtain the boundary dimensions and forbidden area positions of the chip layout area, and divide the chip layout area into a grid array composed of equally spaced square grid units; Step S13, calculate the geometric area of ​​each logic unit, and map each logic unit to the grid coordinates of the two-dimensional layout grid according to the degree of connection, as the starting point for layout optimization iteration.

[0042] Preferably, the iteration determination and termination in step S5 specifically includes the following sub-steps: Step S58, calculate the magnitude of the discrete coordinate offset vector of all logic units; Step S59, obtain the maximum value of all magnitudes and compare it with the preset coordinate offset convergence threshold; Step S510, when the maximum value is greater than or equal to the coordinate offset convergence threshold and the current iteration number has not reached the preset maximum iteration number, recalculate the wire cross density of each grid unit based on the updated logic unit coordinates and update the parasitic impedance gradient tensor field, and start the next round of coordinate perturbation calculation; when the maximum value is less than the coordinate offset convergence threshold, determine that the layout has converged, terminate the iteration and export the physical layout diagram file.

[0043] Example 1: Taking circuit layout optimization in nanoscale chip manufacturing as a deployment example, the chip layout area is defined as a two-dimensional layout grid composed of 100×100 grid cells. The physical side length of the grid cell is 50nm, corresponding to a physical area of ​​2500nm². Under the multilayer metal interconnect structure, the first logic cell is extracted. Second logic unit With the third logic unit Critical timing path, first logic unit The initial grid coordinates are set to 10, 20, and the second logic unit... The initial grid coordinates are set to 12, 22, for the third logic unit. The initial grid coordinates are set to 15, 25; when 15 logic lines pass through the second logic unit... When the grid cell is at boundary 12,22, its wire mesh intersection density It is 0.006 This causes localized high-density wiring congestion and the net spans multiple metal layers. The resulting layer transition vias exhibit a nonlinear superposition of inherent resistance and interlayer coupling impedance, leading to higher parasitic impedance and propagation delay in short-geometric-distance nets. This causes timing convergence problems where the geometric distance direction deviates from the electrical impedance evolution direction. Specifically, during the establishment of the aforementioned initial coordinate mapping, the system first parses the logic netlist to extract the number of connection nets and pin topology between each logic unit, and calculates the connection tightness index between any two logic units. This index is calculated by dividing the number of shared nets between the two by the total number of pins of each unit. The maximum value of the number is determined; then, starting from the center grid point of the chip layout area, the logic units with the highest connection density index are preferentially placed in the center grid and its adjacent grids, and the remaining logic units are arranged in descending order of density and distributed outward in a ring shape; if a coordinate allocation conflict occurs, the cumulative physical half-circle length between the candidate free grid and the already placed associated unit is calculated, and the free discrete grid that minimizes the cumulative half-circle length is selected as the initial grid coordinate of the logic unit, thereby completing the discretization mapping determination from the logic topology connection density to the two-dimensional layout grid coordinates.

[0044] To eliminate the distortion caused by the geometric distance proxy index, the wire mesh cross density is based on grid cells 12 and 22. Combined with the wire mesh intersection density of adjacent grid cells 13 and 22 It is 0.010 and the wire cross density of grid cells 11 and 22 It is 0.002 The impedance weighting matrix of the metal layer is generated by multiplying the calibrated 2.5Ω·fF scalar impedance weighting coefficients with the two-dimensional unit tensor. First, perform discrete partial differential operations on the wire intersection density of the target mesh cell and its orthogonally adjacent mesh cells to obtain the density gradient components along the coordinate axes. Then, combine the gradient vector formed by the density gradient components along each coordinate axis with... Perform tensor multiplication; the impedance gradient component after the operation along the X-axis is 0.0002Ω·fF· The impedance gradient component calculated along the Y-axis is 0.00015Ω·fF· According to the calculation rules of parasitic impedance gradient tensor Construct the parasitic impedance gradient tensor at mesh cells 12 and 22. ,in Indicates the coordinates in the 2D layout grid. The parasitic impedance gradient tensor at the grid cell, Represents grid cells The density of wire crossings at the location, This represents the impedance weighting matrix of the metal layer. Represents the gradient operator in a two-dimensional discrete space, for Solving for the principal eigenvalues ​​and principal eigenvectors, the direction of maximum parasitic impedance growth is determined by the direction corresponding to the principal eigenvectors, and the magnitude of the principal eigenvalues ​​is used to characterize the amplitude in that direction; using the second logic unit A continuous Gaussian anisotropic impedance repulsion potential field is constructed with the current position as the origin. The potential energy attenuation coefficient in the direction of maximum parasitic impedance growth is set to 2.5 times that in the orthogonal direction, so that the two directions have different potential energy attenuation rates. The negative gradient is obtained along the principal characteristic vector direction with respect to the potential field spatial coordinates, and the mesh area of ​​the neighborhood local region is integrated and normalized to obtain the second logical unit. The potential energy vector repelled by the resistance at the current position. Its X-axis and Y-axis components are 0.80 and 0.60 respectively, and its vector magnitude is... It is used to guide logic cells to migrate to grid cells with lower electrical impedance and lower wiring congestion.

[0045] To address the issue of position jitter at density boundaries when logic cells migrate out of high-impedance regions, a second logic cell is extracted. Anisotropic directional variance within the neighborhood grid Combined with preset directional damping gain According to the calculation rules of attenuation coefficient in anisotropic directions The attenuation coefficient in the anisotropic direction was calculated. ,in, Indicates the first Anisotropic attenuation coefficient of each logic unit Indicates the first Anisotropic direction variance within the neighborhood grid of each logic unit This indicates the preset directional damping gain; the second logic unit is also known. Temporal slackness of the critical path In a timing violation state, set the coordinate perturbation step size gain. Grid unit, temporal relaxation normalization constant , prevent zero constant According to the calculation rules of discrete coordinate offset vector Calculate the time-series scaling exponent term Calculate the X-axis coordinate offset. Y-axis coordinate offset Combine to generate discrete coordinate offset vector for ,in, Indicates the first Discrete coordinate offset vector of each logic unit Indicates the first The impedance repulsion potential vector experienced by each logic unit. Represents vector The length of the mold, This represents the gain of the coordinate perturbation step size. This represents the preset time relaxation normalization constant. Indicates containing the first Timing slack of the critical path of each logic unit. Indicates the prevention of zero constant, The natural exponential function is represented; this calculation enables logic units in a time-violation state to obtain corresponding coordinate offset adjustments through the time-relaxation exponential term, while the coordinate perturbation step size is reduced in the multi-directional gradient variation region by the anisotropic direction decay coefficient.

[0046] This embodiment provides numerical explanations for iterative determination and local layout rearrangement. For iterative determination, the second logic unit is obtained. coordinate offset vector magnitude If the coordinate offset exceeds the preset convergence threshold of 0.05 grid units, the current iteration is determined to have not converged, and the second logic unit is... The floating-point updated coordinates are determined to be 9.8018 on the X-axis and 20.3513 on the Y-axis. When the maximum value of the discrete coordinate offset vector magnitude of all logic units is greater than or equal to the coordinate offset convergence threshold, and the current iteration number has not yet reached the preset maximum iteration number, the wire cross density of each grid unit is recalculated based on the updated logic unit coordinates, and the parasitic impedance gradient tensor field is updated. Then, the process returns to step S2 to start the next round of coordinate perturbation calculation. If the maximum value is still greater than or equal to the coordinate offset convergence threshold and the current iteration number has reached the preset maximum iteration number, the process stops starting the next round of coordinate perturbation. When the maximum value of the discrete coordinate offset vector magnitude of all logic units is less than the coordinate offset convergence threshold, the layout convergence is determined, and then the local layout rearrangement and coordinate locking are entered.

[0047] For local layout rearrangement, a 5×5 local neighborhood window is defined centered on the target logical unit with updated coordinates. The logical units to be rearranged within the window are combined with candidate discrete grid units to form a bipartite graph matching topology, with the second logical unit as the center. The floating-point update coordinates 9.8018, 20.3513 and the candidate discrete grid 10, 20 form a set of cost calculation samples, and the Manhattan physical distance between them is 0.5495; based on the second logic unit The peripheral pin distribution prediction shows that when placed in candidate discrete grids 10 and 20, it generates two trans-metal layer vias. When normalized to the maximum number of vias that the grid can accommodate (20), the corresponding record value is 0.1. However, in the cost matrix, according to the number of trans-metal layer vias (2) and the via impedance weighting factor, the value is different. The product of these factors forms the impedance penalty value for the via across the metal layer, and the cell overlap penalty term is also relevant. According to the first The logic unit is placed in the first... The geometric overlap area between each candidate discrete grid and other logic units within the window is determined; if there is no overlap... Overlapping weighting factor The value of the overlapping area is used to include the matching cost, and its value is determined according to the preset weight of the overlapping constraint during the local layout legalization process.

[0048] To avoid using the same sign for timing relaxation and floating-point update coordinates, the first... The updated floating-point coordinates of each logic unit are as follows: , No. The center coordinates of the candidate discrete grids are still denoted as... The matching cost is calculated according to the following formula: Among them, in the overlapping penalty term In this case, the Manhattan physical distance is 0.5495 (i.e. ), 2 through-holes across metal layers (i.e. ) and a via weighting factor of 0.5 (i.e. The comprehensive cost value is calculated as follows: And fill this value into the cost matrix.

[0049] After the layout meets the convergence condition, the discrete bipartite graph minimum weight matching algorithm is used to solve the cost matrix, determining the one-to-one correspondence between each logical unit to be rearranged and each candidate discrete grid unit within the local neighborhood window. After the unit overlap area is included in the unit overlap penalty term, candidate mappings with geometric overlap correspond to larger matching costs. The minimum weight matching result determines the discrete grid mappings that do not have geometric overlap. The center coordinates of the solved discrete grid units are then used as the basis for the corresponding logical units to be rearranged, according to the aforementioned candidate relationships, to determine the second logical unit. The corresponding discrete grid coordinates are 10, 20. These coordinates are locked after the convergence condition is met. The Manhattan distance term uses the floating-point coordinates updated by continuous coordinate perturbation as the starting point for distance calculation. It participates in the minimum weight matching of the bipartite graph together with the via impedance penalty value across the metal layer and the cell overlap penalty term. This transforms the continuous coordinate update result into discrete coordinates that satisfy the layout legality during the discrete grid rearrangement process, while suppressing the increase in via resistance across the metal layer caused by coordinate discretization and rounding.

[0050] Example 2: The current chip layout area uses a two-dimensional layout grid composed of 100×100 grid cells. The physical side length of the grid cell is set to 50nm, corresponding to a physical area of ​​2500nm². Under the multilayer metal interconnect structure, the first logic cell is extracted. Second logic unit With the third logic unit The critical timing path is defined by setting the initial grid coordinates of the three logic cells to 10,20, 12,22, and 15,25, respectively. Gaussian white noise with a signal-to-noise ratio of 20dB and 50Hz power frequency interference are introduced into the test environment to simulate local density jitter and electromagnetic interference during chip manufacturing and physical design evolution. When 15 logic nets pass through the second logic cell… When the wire mesh is located at the boundary of grid cell 12,22, the wire mesh intersection density is... It is 0.0060 Local high-density wiring causes the net to span multiple metal layers. The inherent resistance of the layer transition via and the interlayer coupling impedance are nonlinearly superimposed, resulting in high parasitic impedance and propagation delay for nets with short geometric distances.

[0051] Coordinate perturbation step size gain Set to 2.0 grid units, and the time-series relaxation normalization constant. Set to 10.0 ps, ​​to prevent division by zero constant. Set as Directional damping gain Set to 0.8, via impedance weighting factor The value is set to 0.5. When the coordinate perturbation step size gain is less than 1.0 grid units, the number of coordinate iteration steps increases by more than 3 times. When it is greater than 3.0 grid units, the physical legitimacy of adjacent grids is destroyed. The normalization constant of the timing relaxation corresponds to the typical standard deviation range of the timing margin of the standard cell. When it is less than 5.0 ps, ​​the exponential term saturates prematurely. The directional damping gain is calibrated by testing 100 sets of reference circuits. At the value point of 0.8, the position oscillation suppression effect and convergence efficiency are balanced. The via impedance weighting factor is determined by engineering mapping based on the resistance ratio of the standard metal via resistance to the planar interconnect resistance.

[0052] The comparative tests used the same initial grid coordinate distribution. The sample group of this invention fully applied the parasitic impedance gradient tensor field construction, adaptive directional damping modulation, and through-hole sensing local bipartite graph matching legalization rearrangement. Control group one used the traditional force-guided layout method based on geometric spatial distance. Control group two set the directional damping gain to... Remove attenuation coefficients in anisotropic directions Modulation effect on perturbation step size; Control group three sets the via impedance weighting factor to 1. Local legalization rearrangement only considers the overlap area and Manhattan shift distance; the out-of-range control group one and out-of-range control group two set the directional damping gain to... and Each group formed 10 test conditions by changing the initial wire cross density, initial timing relaxation, and anisotropic direction variance.

[0053] Operating conditions 1 through 4, as well as operating conditions 7 and 8, all use the aforementioned 0.0060. The initial wire cross density, initial temporal relaxation of -5.0 ps, ​​and anisotropic direction variance of 0.25 are given. In operating condition 1, according to... The second logic unit is calculated. attenuation coefficient in anisotropic direction The discrete coordinate offset vector is calculated by combining the impedance repulsion potential energy vector and the temporal relaxation, with a magnitude of 2.7478. After further updating the parasitic impedance gradient tensor field and rearranging the local bipartite graph, the sample group of this invention converges after 18 iterations, with a final path delay of 42.5 ps, 12 vertical vias, and an area overhead increase rate of 0.15%. Case 2 adopts control group 1, with a coordinate offset magnitude of 3.2974, 85 iterations, a final path delay of 68.2 ps, 38 vertical vias, and an area overhead increase rate of 2.40%. This group only drives the layout with geometric spatial distance, and the cross-layer vias and their impedance generated in the local high-density areas are considered. Before entering the layout adjustment process, Case 3 adopted Control Group 2, with a coordinate offset magnitude of 3.2974. After the attenuation coefficient in the anisotropic direction no longer modulated the perturbation step size, position oscillations occurred when the logic unit moved out of the high-density mesh boundary. The number of iteration convergence steps was 62, the final path delay was 51.8 ps, the number of vertical vias was 15, and the area overhead increase rate was 0.85%. Case 4 adopted Control Group 3, with a coordinate offset magnitude of 2.7478. It converged after 21 iterations. Since the local legalization rearrangement did not include the cross-metal layer via impedance penalty, the number of vertical vias reached 36, the final path delay was 58.4 ps, and the area overhead increase rate was 0.20%.

[0054] Under the same initial network cross density, initial temporal relaxation, and anisotropic directional variance, condition 7 reduces the directional damping gain to [value missing]. The obtained coordinate offset magnitude is 3.1855, the number of iterations for convergence is 55, the final path delay is 50.2 ps, the number of vertical vias is 14, and the area overhead increase rate is 0.60%. At this point, the directional damping effect weakens, and the position oscillation at the density boundary requires more iterations to converge. In case 8, the directional damping gain is increased to... The coordinate offset magnitude decreased to 1.4852, the number of iterations for convergence was 48, the final path delay was 48.6 ps, the number of vertical vias was 13, and the area overhead increased by 0.45%. After the directional attenuation increased, the amplitude of the single coordinate perturbation decreased, which correspondingly increased the number of iterations required to reach the convergence state. The results of working conditions 1, 7 and 8 correspond to different convergence states when the directional damping gain changes from 0.1, 0.8 to 2.0.

[0055] Operating conditions 5 and 6 increase the initial wireline crossover density to 0.0085. The initial temporal relaxation was set to -12.0 ps, ​​and the variance of the anisotropic direction was 0.42. In case 5, the sample of this invention determined the coordinate adjustment direction based on the parasitic impedance gradient tensor field, and adjusted the coordinate offset by the anisotropic direction attenuation coefficient and the temporal relaxation. The obtained coordinate offset magnitude was 4.0215. Subsequently, after local bipartite graph matching and rearrangement, convergence was completed after 24 iterations. The final path delay was 45.1 ps, the number of vertical vias was 14, and the area overhead increase rate was 0.22%. Case 6 adopted the control group 1. Under the same input conditions, the coordinate offset magnitude was 6.5948, the number of iteration convergence steps was 110, the final path delay was 85.6 ps, the number of vertical vias was 45, and the area overhead increase rate was 3.10%.

[0056] Operating conditions 9 and 10 use 0.0035. The initial mesh cross density, initial temporal relaxation of -2.0 ps, ​​and anisotropic direction variance of 0.12 were used in case 9, which adopted the sample group of this invention. The coordinate offset magnitude was 1.3520. After 12 iterations and convergence, the final path delay was 38.2 ps, the number of vertical vias was 8, and the area overhead increase rate was 0.08%. Case 10 adopted control group 1, with a coordinate offset magnitude of 1.6487, 35 iterations and convergence steps, and a final path delay of 49.5 ps. The number of vertical vias was 22, and the area overhead increase rate was 1.10%. As can be seen from the data of the above three groups under different initial mesh cross densities and temporal relaxation conditions, the parasitic impedance gradient tensor field, the anisotropic direction attenuation coefficient, and the cost matrix including the impedance penalty value of the vias across the metal layer jointly act on the coordinate update and local layout rearrangement. The results of each item change accordingly with the input case.

[0057] After completing the layout optimization, the generated physical layout diagram is exported as a standard layout data file and imported into an industry-standard simulation tool for parasitic parameter extraction and full-chip dynamic power consumption simulation. The total switching power consumption of the entire chip is recorded at a working voltage of 1.0V and a clock frequency of 1.0GHz. At the same time, the layout boundary calculation function is called to use the physical area of ​​the extreme outer rectangle containing all placed logic units as the total layout area. The dynamic power consumption of the entire chip in the baseline scheme is 145mW, which is reduced to 122mW after optimization. The total layout area of ​​the baseline scheme is 0.28mm², which is reduced to 0.25mm² after optimization.

[0058] Example 3: Given the differences in linewidth, film thickness, and parasitic electrical properties among different metal layers, this example sets the two-dimensional layout mesh to 100×100, with a physical side length of 50nm for each mesh cell, corresponding to a physical area of ​​2500nm². After obtaining the logic netlist of the circuit to be laid out and the chip layout region division parameters, the target metal layer is extracted. resistance per unit length Interlayer coupling capacitance per unit length The target metal layer was selected as the third metal layer. At that time, the resistance per unit length was measured. Interlayer coupling capacitance per unit length The unit length resistance and unit length interlayer coupling capacitance are converted to a grid scale and combined with the average wiring length to complete the metal layer impedance parameter calibration, resulting in a scalar impedance weighting coefficient of 2.5Ω·fF. This coefficient is then multiplied by the two-dimensional unit tensor to generate the metal layer impedance weight matrix. For the second logic unit located in grid cells 12, 22 When 15 logic nets cross its boundary, the net cross density is... Combined with the wire mesh intersection density of adjacent grid cells 13 and 22 Net cross density with grid cells 11,22 First, the density gradient components along the coordinate axes in the two-dimensional mesh are obtained. Then, the gradient vector composed of the density gradient components along each coordinate axis is combined with the impedance weight matrix of the metal layer. Performing tensor multiplication, the impedance gradient component corresponding to the X-axis direction is 0.0002Ω·fF· The impedance gradient component corresponding to the Y-axis direction is 0.00015Ω·fF· According to the calculation rules of parasitic impedance gradient tensor The parasitic impedance gradient tensor at mesh cells 12 and 22 is obtained. Solve the characteristic equation for the parasitic impedance gradient tensor to obtain the maximum principal eigenvalue and its corresponding two-dimensional unit principal eigenvector. The direction of the maximum increase in parasitic impedance is determined by the direction of the principal eigenvector, and the magnitude in this direction is characterized by the value of the principal eigenvalue.

[0059] Second logic unit A 3×3 neighborhood sampling window is defined around the grid cell 12,22. The line intersection density gradient vectors of 9 grid points, including grid cells 12,22 and surrounding orthogonal and diagonally adjacent grid cells, are extracted. The tangent angle of each gradient vector relative to the X-axis is calculated to obtain the mean of the neighborhood gradient direction. Then, the variance of the discrete angle of the gradient direction of each grid point relative to this mean is calculated to obtain the variance of the anisotropic direction. Set the directional damping gain According to the calculation rules of attenuation coefficient in anisotropic directions The second logic unit is obtained. attenuation coefficient in anisotropic direction Second logic unit Temporal slackness of the critical path Set the coordinate perturbation step size gain Grid unit, temporal relaxation normalization constant , Prevention of zero constant ; along the parasitic impedance gradient tensor By taking the negative gradient of the principal characteristic vector direction with respect to the spatial coordinates of the anisotropic impedance repulsion potential field, we obtain the dimensionless normalized impedance repulsion potential energy vector. Its X-axis and Y-axis components are 0.80 and 0.60 respectively, and the vector magnitude is... According to the calculation rules of discrete coordinate offset vector The discrete coordinate offset vector is calculated. .

[0060] The magnitude of the discrete coordinate offset vector is greater than the coordinate offset convergence threshold. The grid unit is insufficient, therefore this iteration has not reached the convergence condition; the floating-point coordinates of the second logic unit are updated to the X-axis. Y-axis Based on the updated coordinates, the next round of calculations for the wire mesh cross density and parasitic impedance gradient tensor field is performed. To illustrate the subsequent local layout rearrangement calculations when convergence conditions are met, these floating-point updated coordinates are used as samples for calculating candidate mesh cost. Candidate discrete grids are selected within the neighborhood window. The Manhattan physical distance between its center coordinates and the floating-point updated coordinates is Extract the coordinates of the first logic unit connected to the second logic unit. and the coordinates of the third logic unit The corresponding pin routing level predicts that the second logic unit will be placed in the candidate discrete grid. At that time, the number of vertical layer transition vias generated from the second metal layer to the fourth metal layer is indivual.

[0061] In the specific prediction process, the default metal layer index of the logic unit to be rearranged is extracted, and the routing metal layer indexes of each adjacent logic unit that has a connection relationship with it are traversed. The absolute value of the layer difference between the default metal layer and the routing metal layers of each adjacent logic unit is calculated. When the layer difference is zero, the via addition value is zero. When the layer difference is greater than zero, the via addition value is taken as the layer difference value. Then, the via addition values ​​corresponding to each adjacent logic unit are accumulated to obtain the total number of cross-metal layer vias predicted when placed in the specified candidate grid. The maximum number of vias that the grid can accommodate is then determined. When the number of through holes is normalized, normalized statistics are obtained. The numerical value is obtained by combining the normalized record caliber with the Manhattan physical distance. When constructing the actual cost matrix, the impedance penalty value for trans-metal layer vias is calculated based on the predicted number of trans-metal layer vias. The product of the via impedance weighting factor is determined, and together with the Manhattan physical distance and the cell overlap penalty term, it constitutes the matching cost.

[0062] The updated floating-point coordinates adopt The matching cost calculation rules are as follows: ,in, The corresponding discrete grid coordinates are .

[0063] Based on metal layer impedance parameter calibration, neighborhood angle variance derivation, and pin topology via prediction, parasitic impedance gradient evolution, local jitter suppression, and vertical layer conversion overhead constraints are integrated into the coordinate update and rearrangement procedure. This guides logic units to translate to low impedance and low congestion grids during the iteration process, eliminating the impact of local high impedance on chip timing convergence, and reducing the impedance overhead of cross-metal layer vias while maintaining spatial geometric legality.

[0064] Example 4: This example combines Figures 1 to 2 This paper describes a circuit layout optimization method in chip manufacturing, such as... Figure 1 As shown, the logic netlist of the circuit to be laid out and the chip layout area division parameters are obtained. The chip layout area is discretized into an arrayed two-dimensional layout mesh. The initial coordinate mapping of each logic unit in the two-dimensional layout mesh is established according to the logic netlist, forming step S1. Then, the process proceeds to step S2 to calculate the wire cross density of each mesh unit based on the connection topology of each logic unit in the logic netlist and the current coordinates of each logic unit in the two-dimensional layout mesh. Tensor multiplication is performed by the discrete spatial gradient of the wire cross density and the preset metal layer impedance weight matrix to construct the parasitic impedance gradient tensor field of the two-dimensional layout mesh. Then, step S3 is executed. Based on the principal eigenvalue direction and magnitude of the parasitic impedance gradient tensor field, an anisotropic impedance repulsion potential field with asymmetric potential energy decay is constructed for each logic unit in the principal eigenvalue direction, and the action on the The impedance repulsion potential energy vector of each logic unit is calculated, and then the process proceeds to step S4. The cross density direction variance of the wire mesh in the neighborhood of the target logic unit is extracted to generate the anisotropic attenuation coefficient. Based on the impedance repulsion potential energy vector, the anisotropic attenuation coefficient, and the corresponding timing relaxation weight, the discrete coordinate offset vector of each logic unit is calculated. Finally, the process moves to step S5. When the discrete coordinate offset vector meets the convergence threshold, the coordinates of each logic unit are updated. A cost matrix is ​​constructed that includes the unit overlap area penalty, the physical distance of movement, and the impedance penalty value of the cross-metal layer via. The local layout is rearranged by solving the discrete bipartite graph matching model to lock the coordinates of each logic unit in the two-dimensional layout mesh. The circuit layout diagram is output. If the discrete coordinate offset vector does not meet the convergence threshold, the process returns to step S2 to continue iterating.

[0065] like Figure 2As shown, the chip physical design computing platform integrates a logic netlist, chip layout region partitioning parameters, parasitic impedance gradient tensor field, anisotropic impedance repulsion potential field, discrete bipartite graph matching model, and physical layout map file. Gaussian white noise and power frequency interference in the test environment are input to the chip physical design computing platform to simulate local density jitter and electromagnetic interference. At the same time, the unit length resistance and unit length interlayer coupling capacitance in the discrete electrical property calibration database output data to the chip physical design computing platform for baseline parameter calibration. The physical layout map file generated by the chip physical design computing platform is transferred to the industry-standard simulation tool via the export and import standard layout data file path. The industry-standard simulation tool performs parasitic parameter extraction and full-chip dynamic power consumption simulation interactive actions based on the internally integrated standard layout data file.

[0066] Example 5: Extracting the target metal layer before deploying the chip layout evolution algorithm on the chip physical design EDA computing platform. Based on the unit length resistance and unit length interlayer coupling capacitance parameters, a discrete electrical property calibration database is established; using the third metal layer... For example, the resistance per unit length is measured using a test structure. Interlayer coupling capacitance per unit length According to the calibration relationship in the calibration database The scalar impedance weighting coefficients are obtained, and the metal layer impedance weighting matrix is ​​constructed accordingly. During the discrete mesh generation process, the physical side length of mesh cells 12 and 22 is 50 nm, and the physical area is 2500 nm². When 15 logic lines cross their boundaries, the mesh crossover density is determined according to... Calculate the wire mesh intersection density of orthogonally adjacent mesh cells 13 and 22. The wire cross density of grid cells 11 and 22 The discrete spatial gradient is obtained along the X-axis. Then, the gradient vector formed by the density gradient components along the coordinate axes is combined with the impedance weighting matrix of the metal layer. Perform tensor multiplication operations, according to The parasitic impedance gradient tensor at mesh cells 12 and 22 is obtained. ,in Indicates coordinates as The parasitic impedance gradient tensor at that location, Represents grid cells The density of wire crossings at the location, This represents the impedance weighting matrix of the metal layer. This represents a two-dimensional discrete spatial gradient operator, thereby completing the discrete mapping between the mesh density change and the electrical quantities required for subsequent layout repulsive potential field calculations.

[0067] During the algorithm's iterative computation process, the second logic unit Temporal relaxation of the critical path located in grid cell 12,22. Extract the mesh cross density gradient vector within a 3×3 neighborhood window around the logic unit, and calculate the variance of the anisotropic direction. Set the directional damping gain The attenuation coefficient in the anisotropic direction is according to The substitution formula in this example is: The attenuation coefficient in the anisotropic direction in the running record is Coordinate perturbation step size gain Grid unit, temporal relaxation normalization constant , prevent zero constant The impedance repulsion potential energy vector is derived from the negative gradient of the anisotropic impedance repulsion potential field with respect to spatial coordinates. Its X-axis and Y-axis components are 0.80 and 0.60 respectively, and Discrete coordinate offset vector according to Calculate, where the exponential scaling term is The X-axis coordinate offset is The Y-axis coordinate offset is This generates a discrete coordinate offset vector. ,in, Indicates the first Discrete coordinate offset vector of each logic unit Indicates the attenuation coefficient in the anisotropic direction. Indicates the variance in the direction of anisotropy. Indicates directional damping gain. This represents the impedance repulsion potential energy vector. Represents vector The length of the mold, This represents the gain of the coordinate perturbation step size. Represents the time-series relaxation normalization constant. Indicates the temporal slackness of the critical path. Indicates the prevention of zero constant, This represents the natural exponential function.

[0068] Interact the discrete coordinate offset vector with the second logic unit The current coordinates are vector-summed to obtain floating-point updated coordinates. The subsequent process is controlled based on the comparison between the magnitude of the discrete coordinate offset vector of all logic units and the coordinate offset convergence threshold. If the convergence condition is not met, the wire crossing density of each grid unit is recalculated based on the updated logic unit coordinates, and the parasitic impedance gradient tensor field is updated to continue the next round of coordinate perturbation calculation. If the convergence condition is met, the cost matrix is ​​constructed and the discrete bipartite graph matching model is solved. The local layout is rearranged and the discrete grid coordinates are locked. In terms of physical control logic, the impedance repulsion potential energy vector is derived from the negative gradient of the potential field with respect to the spatial coordinates. The discrete coordinate offset direction is determined by this vector and the coordinate perturbation calculation relationship, so that the position of the logic unit moves away from the parasitic impedance growth direction and is adjusted to a low impedance, low congestion grid during the iteration process. The recorded value of the anisotropic direction attenuation coefficient is 0.80, which is 0.8000 when recorded to four decimal places. This parameter is generated in each iteration according to the same anisotropic direction attenuation coefficient calculation relationship, and its calculation relationship does not change with the decimal recording form.

[0069] Example 6: Before deploying the implementation scheme, baseline parameter calibration is performed on the multilayer metal interconnect structure, specifically for the third metal layer. Extracting resistance per unit length Interlayer coupling capacitance per unit length ,according to The impedance weighting coefficients are obtained, and the impedance weighting matrix of the metal layer is generated accordingly. In a two-dimensional mesh layout, a two-dimensional discrete spatial gradient operation is performed on the wire intersection density of mesh cells 12, 22 and their orthogonal adjacent mesh cells to obtain the density gradient components along the coordinate axes. Then, the gradient vector composed of the density gradient components along each coordinate axis is combined with the metal layer impedance weight matrix. Perform tensor multiplication to generate the parasitic impedance gradient tensor at mesh cells 12 and 22. ,in, Indicates the coordinates in the 2D layout grid. The parasitic impedance gradient tensor at the grid cell, Represents grid cells The density of wire crossings at the location, This represents the tensor matrix consisting of the weighted coefficients of the resistance per unit length of the target metal layer and the interlayer coupling capacitance. This represents the gradient operator in a two-dimensional discrete space.

[0070] During the iterative evolution phase, the second logical unit Temporal relaxation of the critical path located at grid cell 12,22 Extract the variance of the cross density direction within the neighborhood grid. Combined with directional damping gain According to the calculation rules of attenuation coefficient in anisotropic directions Substitute into the formula The attenuation coefficients in the anisotropic direction are obtained. Set the coordinate perturbation step size gain. Grid unit, temporal relaxation normalization constant , prevent zero constant Impedance repulsion potential energy vector Length of the module According to the calculation rules of discrete coordinate offset vector Calculate the time-series scaling exponent term To obtain the discrete coordinate offset vector ,in, Indicates the first Discrete coordinate offset vector of each logic unit Indicates the first The impedance repulsion potential vector experienced by each logic unit. Represents vector The length of the mold, This represents the gain of the coordinate perturbation step size. Represents the time-series relaxation normalization constant. Indicates containing the first Timing slack of the critical path of each logic unit. Indicates the prevention of zero constant, This represents the natural exponential function.

[0071] Interact the discrete coordinate offset vector with the second logic unit The current coordinates are added together to obtain the updated floating-point coordinates. The magnitude of the discrete coordinate offset vector of all logic units is calculated, and the maximum value is compared with the coordinate offset convergence threshold. When the maximum value is greater than or equal to the coordinate offset convergence threshold and the current iteration number has not reached the preset maximum iteration number, the wire cross density and parasitic impedance gradient tensor field of each grid unit are recalculated based on the updated logic unit coordinates, and the next iteration continues. When the maximum value is less than the coordinate offset convergence threshold, it is determined that the current layout has reached the convergence state, and then the local layout rearrangement is entered.

[0072] After the layout reaches convergence, a 5×5 neighborhood window is defined centered on the target logic cell. Within the window, a bipartite graph matching topology is constructed between the logic cell to be rearranged and the candidate discrete mesh cells. For candidate discrete meshes 10 and 20, the Manhattan physical distance between the updated floating-point coordinates and the center coordinates of the candidate mesh is 0.5495. The number of vias across the metal layer is predicted based on the pin distribution. The penalty value for the number of vias across the metal layer obtained from the original test record using normalized statistical methods is used. Through-hole resistance weighting factor The comprehensive cost value under the corresponding normalized record caliber is In the actual construction of the cost matrix, the via impedance penalty value across the metal layer is determined by multiplying the predicted number of vias across the metal layer by the via impedance weighting factor, and together with the Manhattan physical distance and the cell overlap penalty term, it constitutes the discrete bipartite graph matching cost value; among which, the cell overlap penalty term is determined according to the cell overlap area generated after the logical cell is placed on the candidate discrete grid.

[0073] To avoid temporal slack The updated floating-point coordinates use the same notation, and are uniformly denoted as [symbol missing]. The matching cost calculation rule is written as follows: ,in, Indicates the first The first logic unit and the first The matching cost between candidate discrete grids Indicates the first The updated floating-point coordinates of each logic unit Indicates the first The center coordinates of the candidate discrete grids Indicates distance from Manhattan. Representation of logical units Placed on the grid Predict the number of trans-metal vias generated in real time. This represents the via impedance weighting factor. Indicates the cell overlap penalty term. The overlapping weight factor is represented by the minimum weight matching of the discrete bipartite graph. This determines the one-to-one correspondence between the logic cells to be rearranged and the candidate discrete grid cells. After clearing geometric overlap, the center coordinates of the candidate discrete grid cells are based on the corresponding logic cells, and the second logic cell is locked. The final grid coordinates are .

[0074] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.

[0075] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims

1. A circuit layout optimization method in chip manufacturing, characterized in that, The method includes the following steps: Step S1: Obtain the logic netlist and chip layout area division parameters of the circuit to be laid out, discretize the chip layout area into an arrayed two-dimensional layout grid, and establish the initial coordinate mapping of each logic unit in the two-dimensional layout grid based on the logic netlist. Step S2: Based on the connection topology of each logical unit in the logical netlist and the current coordinates of each logical unit in the two-dimensional layout grid, calculate the wire cross density of each grid unit. Perform tensor multiplication operation between the discrete spatial gradient of the wire cross density and the preset metal layer impedance weight matrix to construct the parasitic impedance gradient tensor field of the two-dimensional layout grid. Step S3: Based on the principal eigenvalue direction and magnitude of the parasitic impedance gradient tensor field, construct an anisotropic impedance repulsion potential field with asymmetric potential energy decay applied to each logic unit in the principal eigenvalue direction, and derive the impedance repulsion potential energy vector acting on each logic unit. Step S4: Extract the cross density direction variance of the wire mesh in the neighborhood of the target logic unit to generate anisotropic direction attenuation coefficient. Based on the impedance repulsion potential energy vector, the anisotropic direction attenuation coefficient and the corresponding timing relaxation weight, calculate the discrete coordinate offset vector of each logic unit. Step S5: When the discrete coordinate offset vector meets the convergence threshold, update the coordinates of each logic unit, construct a cost matrix including the unit overlap area penalty, the physical distance of movement, and the impedance penalty value of the via across the metal layer, rearrange the local layout by solving the discrete bipartite graph matching model, lock the coordinates of each logic unit in the two-dimensional layout grid, and output the circuit layout diagram; when the discrete coordinate offset vector does not meet the convergence threshold, return to step S2 to continue the iteration.

2. The circuit layout optimization method in chip manufacturing according to claim 1, characterized in that, Step S2 calculates the wire intersection density of each grid cell, which specifically includes the following sub-steps: Step S21, obtain the number of logical wires passing through the boundary of the target grid cell and extract the physical side length of the target grid cell; Step S22, multiply the physical side length by itself to obtain the physical area of ​​the target grid cell. Step S23: Divide the number of logical nets by the physical area to calculate the net cross density of the target grid cell, which is used to characterize the degree of wiring congestion in the local geometric space of the target grid cell.

3. The circuit layout optimization method in chip manufacturing according to claim 1, characterized in that, In step S2, the parasitic impedance gradient tensor field of the two-dimensional layout mesh is constructed, which specifically includes the following sub-steps: Step S24, the two-dimensional discrete spatial gradient operator is used to perform discrete partial differential operations on the wire mesh intersection density of the target mesh cell and its orthogonal adjacent mesh cells to obtain the coordinate axis density gradient components of the target mesh cell in the two-dimensional layout mesh. Step S25: Extract the weighting coefficients of the unit length resistance and interlayer coupling capacitance of the target metal layer in the circuit to be laid out, and generate a two-dimensional impedance weight tensor matrix; Step S26: Perform tensor multiplication operation between the gradient vector composed of the density gradient components along the coordinate axes and the two-dimensional impedance weight tensor matrix to synthesize the parasitic impedance gradient tensor at the target grid cell, which is used to characterize the spatial rate of change of the local electrical impedance of the target grid cell under the multilayer metal interconnect structure.

4. The circuit layout optimization method in chip manufacturing according to claim 1, characterized in that, Step S3 involves constructing an anisotropic impedance repulsion potential field and deriving the impedance repulsion potential energy vector. Specifically, this includes the following sub-steps: Step S31: Solve for the principal eigenvalues ​​and principal eigenvectors of the parasitic impedance gradient tensor of the grid cell where the target logic cell is located; Step S32: Determine that the direction corresponding to the principal eigenvector is the direction of maximum parasitic impedance growth, and set a potential energy attenuation coefficient greater than that in the orthogonal direction in the direction of maximum parasitic impedance growth to form an anisotropic repulsion potential distribution; Step S33: Calculate the negative gradient of the potential field with respect to spatial coordinates along the direction of the principal eigenvector, derive the impedance repulsion potential energy vector experienced by the target logic cell at its current position, and guide the target logic cell to migrate to the grid cell with lower electrical impedance and lower wiring congestion.

5. The circuit layout optimization method in chip manufacturing according to claim 4, characterized in that, Step S4 calculates the discrete coordinate offset vector of each logic unit, specifically including the following sub-steps: Step S41, calculate the discrete coordinate offset vector according to the following formula: ,in, For the first Discrete coordinate offset vector of each logic unit; For the first The impedance repulsion potential vector of each logic unit; Let be the magnitude of the impedance repulsion potential energy vector; For coordinate perturbation step size gain; The attenuation coefficient is the coefficient in the anisotropic direction; For the first Timing slack of the critical path where each logic unit is located; This is the preset time relaxation normalization constant; It is the numerical stability constant; Represents the natural exponential function; when updating coordinates, the calculated discrete coordinate offset vector is compared with the first... The current coordinates of the logic unit are summed to generate the _th ... The floating-point updated coordinates of each logic unit are used to prioritize the coordinate offset adjustment of critical path logic units that are in a timing violation state through exponential scaling of timing slack.

6. The circuit layout optimization method in chip manufacturing according to claim 5, characterized in that, Step S4 generates the anisotropic direction attenuation coefficient, specifically including the following sub-steps: Step S42, select a grid neighborhood of a preset size around the target logic unit; Step S43, calculate the variance of the angle between the line intersection density gradient direction and the average gradient direction of each grid unit in the grid neighborhood to obtain the anisotropic direction variance; Step S44, multiply the anisotropic direction variance with the preset direction damping gain and add one to obtain the denominator value; Step S45, take the reciprocal of the denominator value as the anisotropic direction attenuation coefficient, adaptively reduce the coordinate perturbation step size at the density boundary where the multi-directional gradient changes drastically, and eliminate the repeated jitter of the target logic unit at the boundary position.

7. The circuit layout optimization method in chip manufacturing according to claim 1, characterized in that, Step S5 involves constructing a cost matrix and solving the bipartite graph matching topology, specifically including the following sub-steps: Step S51, using the target logic unit with updated coordinates as the center, delineate a preset layout grid range as a local neighborhood window; Step S52, count the candidate discrete grid units and logic units to be rearranged within the local neighborhood window, and solve the bipartite graph matching topology; Step S53, for each candidate discrete grid unit and logic unit to be rearranged pair, calculate the Manhattan physical distance between them, and predict the number of cross-metal layer vias generated when placed in the candidate discrete grid unit based on the peripheral pin distribution of the logic unit to be rearranged; Step S54, multiply the number of cross-metal layer vias by the via impedance weighting factor, add the Manhattan physical distance and the unit overlap penalty term to obtain the discrete bipartite graph matching cost, and fill it into the cost matrix.

8. The circuit layout optimization method in chip manufacturing according to claim 7, characterized in that, Step S5 involves rearranging the local layout and locking the coordinates, specifically including the following sub-steps: Step S55: Use the discrete bipartite graph minimum weight matching algorithm to solve the cost matrix and determine the one-to-one correspondence between each logic unit to be rearranged and each candidate discrete grid unit within the local neighborhood window; Step S56: Clear the geometric overlap between logic units within the local neighborhood window; Step S57: Based on the corresponding logic unit to be rearranged, lock the discrete coordinates of each logic unit in the two-dimensional layout grid, eliminating the surge in cross-metal layer via resistance caused by coordinate discretization and rounding.

9. The circuit layout optimization method in chip manufacturing according to claim 1, characterized in that, Step S1 establishes the initial coordinate mapping, which specifically includes the following sub-steps: Step S11, parse the logic netlist of the circuit to be laid out, and extract the port connection relationship and critical path timing constraints between logic units; Step S12, obtain the boundary dimensions and forbidden area positions of the chip layout area, and divide the chip layout area into a grid array composed of equally spaced square grid units; Step S13, calculate the geometric area of ​​each logic unit, and map each logic unit to the grid coordinates of the two-dimensional layout grid according to the degree of connection, as the starting point for layout optimization iteration.

10. The circuit layout optimization method in chip manufacturing according to claim 1, characterized in that, Step S5 iterative determination and termination specifically includes the following sub-steps: Step S58, calculate the magnitude of the discrete coordinate offset vector of all logic units; Step S59, find the maximum value of all magnitudes and compare it with the preset coordinate offset convergence threshold. Step S510: When the maximum value is greater than or equal to the coordinate offset convergence threshold and the current iteration number has not reached the preset maximum iteration number, recalculate the wire cross density of each grid cell based on the updated logical cell coordinates and update the parasitic impedance gradient tensor field, and start the next round of coordinate perturbation calculation; when the maximum value is less than the coordinate offset convergence threshold, determine that the layout has converged, terminate the iteration and export the physical layout diagram file.

Citation Information

Patent Citations

  • Method, apparatus, and storage medium for optimizing digital logic circuit layout

    CN120449816B