Integrated circuit quadratic programming layout method and device, equipment and storage medium

By dynamically updating line network weights and compressing sparse row matrix technology, the problem of dynamic network changes in the secondary planning layout of integrated circuits is solved, the calculation efficiency is improved, and the solution quality is improved, and chip performance and reliability are enhanced.

CN118798111APending Publication Date: 2024-10-18FUZHOU LIXIN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410833937.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Existing secondary planning layout methods for integrated circuits fail to effectively handle dynamic network changes, resulting in layout congestion, increased power consumption, reduced performance, high solution complexity, and large consumption of computing resources.

Method used

By traversing all the pins in the module set, the weight of the line network is dynamically updated, and compressed sparse row matrix technology is introduced to reduce the matrix size, improve the solution space and calculation efficiency, and use the conjugate gradient method to speed up the solution process.

Benefits of technology

It significantly improves storage and computing efficiency, expands the understanding space, improves understanding quality, enhances the performance and reliability of the chip, and adapts to different design constraints and optimization goals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118798111A_ABST
    Figure CN118798111A_ABST
Patent Text Reader

Abstract

The invention provides an integrated circuit quadratic programming layout method and device, equipment and a storage medium, is applied to the technical field of integrated circuit design, more truly captures the connection relation between pins through dynamic weight adjustment, remarkably improves the storage and calculation efficiency, not only expands the understanding space, but also improves the reliability of integrated circuit design. In addition, the sparse matrix technology is adopted to process the matrix, the calculation amount is remarkably reduced, the operation speed is improved, good expansibility is achieved, meanwhile, flexibility and adaptability are kept, the method is suitable for different design constraints and optimization targets, and the method is suitable for large-scale popularization and application. And the performance and the reliability of the chip are enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of integrated circuit design, and in particular to an integrated circuit secondary planning layout method and device, equipment, and storage medium. Background Art

[0002] In integrated circuits, the application of the quadratic programming (QP) model, as a sub-branch of nonlinear optimization algorithms, in layout problems mainly focuses on minimizing the wire length, improving layout quality, and reducing power consumption by optimizing the objective function built based on the wire network.

[0003] For quadratic programming network modeling, traditional solutions usually use clique or star models. However, both clique and star models are based on static network structures and do not consider dynamic network changes. In addition, the star model is dependent on the central node. Once the central node changes, the effectiveness of the entire model will be affected.

[0004] In the current rapid layout, a hybrid model is used. The hybrid model is a comprehensive model that combines the clique model based on the number of wire nets with the star model. The clique model regards the pin connection as a complete graph, and each pin has a wire net connection relationship with other pins; the star model connects the corresponding pin to the geometric center of a virtual wire net. Therefore, the hybrid model needs to introduce the geometric center of the bounding rectangle composed of the pins of the star wire net as the geometric center of the wire net, which leads to an increase in the matrix size and increases the complexity of the solution.

[0005] Based on this, a new integrated circuit secondary planning layout method is needed. Summary of the invention

[0006] In view of this, the embodiments of this specification provide an integrated circuit secondary planning layout method and apparatus, equipment, and storage medium, which traverse all pins in a module set and determine the networks to which they belong, dynamically update matrices and force vectors, and introduce compressed sparse row matrix technology to process matrices, reduce the storage and calculation operations of non-zero elements, expand the solution space, improve the solution quality, and enhance the performance and reliability of the chip.

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

[0008] The embodiment of this specification provides an integrated circuit secondary planning layout method, including:

[0009] According to the module set, pin set and wire net set involved in the layout, traverse all the pins in the module set and obtain the wire net to which each pin belongs;

[0010] Update the net weight to which each of the pins belongs; wherein the net weight is updated as follows:

[0011]

[0012] Among them, direction represents the horizontal direction or the vertical direction. Representative network ij The original weight in direction, Representative network ij Update weights in direction, Representative network ij Middle pin a The actual position in the layout, Representative network ij Middle pin b The actual location in the layout;

[0013] According to the updated weights of each wire net and the positional relationship of each pin, the matrix and force vector corresponding to the secondary planning layout are updated;

[0014] A solution corresponding to the quadratic planning layout is obtained based on the updated matrix and the force vector.

[0015] The embodiments of this specification also provide an integrated circuit secondary planning layout device, including: a pin and wire net identification module, a matrix and force vector update module, and a solution module;

[0016] The pin and wire net identification module is used to traverse all pins in the module set, pin set and wire net set involved in the layout, and obtain the wire net to which each pin belongs;

[0017] The matrix and force vector updating module is used to update the wire net weight to which each pin belongs, and update the matrix and force vector corresponding to the secondary planning layout according to the updated position relationship between each wire net weight and each pin;

[0018] The solving module is used to solve the solution corresponding to the quadratic planning layout according to the updated matrix and the force vector.

[0019] The present specification also provides an electronic device, including:

[0020] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute: an integrated circuit secondary planning layout method as described in any example in the present application.

[0021] The embodiments of the present specification also provide a computer storage medium, wherein the computer storage medium stores computer executable instructions, and when the computer executable instructions are executed by a processor, the integrated circuit secondary planning layout method as described in any example in the present application is executed.

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

[0023] This application captures the connection relationship between pins more realistically through dynamic weight adjustment, significantly improving storage and computing efficiency. It not only expands the solution space, but also improves the solution quality by selecting better iterative results as the initial solution of subsequent layout algorithms, maintains flexibility and adaptability, is suitable for different design constraints and optimization goals, and enhances the performance and reliability of the chip. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0025] Figure 1 is a schematic diagram of the integrated circuit secondary planning layout processing in this application;

[0026] Figure 2 is a flow chart of the integrated circuit secondary planning layout method in this application;

[0027] Figure 3 is the pseudo code for updating the matrix and force vector in this application;

[0028] Figure 4 is the pseudo code used in this application to construct the matrix and force vectors of the wire net model considering the pin boundary rectangle. DETAILED DESCRIPTION

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

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

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

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

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

[0034] In integrated circuits, quadratic planning layout can minimize the length of wires and improve layout quality by optimizing the objective function. For quadratic planning network modeling, the clique model or the star model is traditionally used to make the solution matrix sparse and reduce the amount of matrix solution calculations. However, both the star model and the clique modeling are designed based on static network structures and do not fully consider the dynamic network characteristics that change over time. As the network scale grows over time, layout congestion, increased power consumption, performance degradation, and scalability will occur. Secondly, the star model is dependent on the central node. Any changes in the central node may affect the effectiveness of the entire model, and the layout needs to be recalculated and adjusted when the central node changes.

[0035] Therefore, the existing rapid layout usually adopts a hybrid model that combines the characteristics of the cluster model and the star model to deal with the complexity of the line network connection and improve the quality of the layout. However, the use of the hybrid model cannot guarantee the provision of a sufficiently high-quality initial solution. As the starting point of the subsequent optimization algorithm, it is necessary to additionally introduce the geometric center of the bounding rectangle composed of the pins of the star line network as the geometric center of the line network, resulting in an increase in the matrix size. As the matrix size increases, the computational complexity of solving the optimal solution also increases, resulting in the solution process requiring more computing resources and time, increasing the complexity of the solution, and affecting the efficiency of layout optimization.

[0036] In view of this, the inventors discovered through research and improvement exploration that the existing solutions cannot adapt to dynamic network changes. As the number of network connections increases, the model needs to be recalculated and adjusted. Moreover, as the scale of the model increases, huge amounts of memory are required to store the matrix data. When solving the problem, the solution time increases exponentially with the increase in the scale of the problem, resulting in a sharp increase in computational complexity.

[0037] In the improvement of the integrated circuit quadratic planning layout method, it was further discovered that the matrix calculation time is too long and the space occupied is large.

[0038] Based on this, reference Figure 1 As shown, the embodiment of this specification proposes a method for secondary planning layout of integrated circuits. The overall idea is: by traversing all pins in the module set and determining the networks they belong to, dynamically adjusting the line network weights, and more realistically capturing the connection relationship between the pins, at the same time introducing compressed sparse row matrix technology to process the matrix, significantly reducing the matrix size, reducing the solution complexity, accelerating the convergence speed of the iterative solution algorithm, expanding the solution space, optimizing the solution quality, while maintaining flexibility and adaptability, suitable for different design constraints and optimization goals, and enhancing the performance and reliability of the chip.

[0039] It should be noted that, based on the existing wire mesh model, this application additionally considers the bounding rectangle of the pins of each wire mesh, and constructs a matrix and force vector for solving the optimal position according to the specific wire mesh distribution. On this basis, the matrix to be solved is compressed through the compressed sparse row matrix technology.

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

[0041] like Figure 2 As shown, the embodiment of this specification provides an integrated circuit secondary planning layout method, including the following steps:

[0042] Step S101: According to the module set, pin set and wire net set involved in the layout, all pins in the module set are traversed, and the wire net to which each pin belongs is obtained.

[0043] Specifically, based on existing models, such as a blob model or a hybrid model, consideration of the bounding rectangle formed by the pins of each net is introduced, taking into account the influence of whether the pins are on or within the bounding rectangle.

[0044] During implementation, for each pin corresponding to the wire net:

[0045] See Figure 4 The pseudo code shown first traverses to the module module i ,get according to Corresponding net, get the corresponding That is, traverse the pins in other modules in the line network, and then according to Corresponding module j The location is obtained location.

[0046] Step S102: Update the net weight to which each pin belongs.

[0047] In combination with the above embodiment, assuming that the current module module i Pin Corresponding wire net ij Connect to module j Pin The wire mesh weights in the horizontal or vertical direction are:

[0048]

[0049] Among them, direction represents the horizontal or vertical direction. Representative network ij The original weight in direction direction, Representative network ij Update weight in direction direction, Represents pin a The actual position in the layout. When the incoming direction is horizontal, it represents the pin a The horizontal axis represents the pin pin. a The vertical coordinate of .

[0050] Step S103: Update the matrix and force vector corresponding to the secondary planning layout according to the updated weights of each wire net and the positional relationship of each pin.

[0051] Specifically, in combination with the above embodiments, the matrix is ​​updated and the updated mesh weights are used to construct or update the matrix in the quadratic programming problem; the force vector is updated and the gradient vector is updated according to the mesh weights and the pin positions. Each component of the force vector can be expressed as a function of all mesh weights associated with the pins and their corresponding pin position differences.

[0052] Step S104: Obtain a solution corresponding to the quadratic planning layout according to the updated matrix and the force vector.

[0053] Specifically, in combination with the above embodiments, the solution process can be accelerated during the solution process, for example, by combining it with iterative algorithms such as the conjugate gradient method to speed up the operation of matrix-vector multiplication, thereby accelerating the entire solution process.

[0054] Parallel computing frameworks can also be exploited to speed up matrix operations and iterative processes, especially when dealing with large-scale problems.

[0055] In some implementations, restrictions are imposed on the distance between the pins to ensure that the layout is reasonable to meet specific design rules, for example: the difference between the positions of the two pins meets the following preset upper and lower limits, The upper limit max is preset to 200*region, which can prevent the pins from being placed too far away, thereby avoiding too long connections, resulting in signal transmission delays or increased power consumption; the lower limit min is preset to 2*region, ensuring that there is enough space between the pins to prevent them from being too close, thereby preventing electrical interference and short circuits; region represents the layout area.

[0056] In implementation, the upper and lower limits can be dynamically adjusted according to the needs of the optimization process to optimize the compactness of the layout and improve the integration of the chip.

[0057] In some implementations, the layout problem is converted into a quadratic programming problem, and the matrix and force vector are updated to obtain the corresponding objective function:

[0058]

[0059] The matrix M and the force vector b are assigned values ​​in the x and y directions respectively, where M represents the quadratic term matrix in the quadratic objective function, which is a matrix constructed based on the interconnected wire mesh weights, and b represents the vector corresponding to the linear term. x represents the horizontal direction, and y represents the vertical direction. M and b are constructed based on the positional relationship between the weights of each wire mesh and each pin.

[0060] In some implementations, the matrix and the force vector are updated according to whether the module where the pin is located is a non-movable module or a movable module.

[0061] Specifically, the update is performed in the following manner:

[0062] like Figure 3 The pseudo code shown is updated as follows if the module is a movable module and is affected by the forces from other modules and pins:

[0063]

[0064] Among them, direction indicates horizontal or vertical direction. Represents the element in the i-th row and j-th column of the matrix M in the direction, Represents module i The force vector, Indicates that in module i Middle pin a The offset distance relative to the module in direction.

[0065] If the module is a non-removable module, such as a power supply, an important signal interface, or an integrated circuit block with other specific functions, update it as follows:

[0066]

[0067] in, Indicates pin a The actual position in the layout. When the incoming direction is horizontal, it represents the pin a The horizontal axis represents the pin pin. a The vertical coordinate of .

[0068] In some embodiments, the matrix and the force vector are the matrix and force vector required by the conjugate gradient method;

[0069] Solving the solution corresponding to the quadratic programming layout includes: using a conjugate gradient method to solve the solution corresponding to the quadratic programming layout.

[0070] In some implementations, before using the conjugate gradient method to solve the matrix, the matrix to be solved is compressed using a compressed sparse row matrix to reduce the storage and calculation operations of non-zero elements.

[0071] Specifically, the compressed sparse row matrix technology (CSR) is used to compress the solved matrix. When performing matrix operations, the CSR format only stores the values ​​of non-zero elements and the index information of rows and columns, which greatly reduces the storage space requirements. Only non-zero elements are considered, avoiding meaningless calculations on zero elements, significantly reducing the amount of calculations and improving the operation speed, as well as improving the stability of numerical calculations.

[0072] Secondly, matrix operations in CSR format are easier to parallelize, because the calculation of non-zero elements is usually independent and can be assigned to different processors for simultaneous calculation.

[0073] In some implementations, the matrix to be solved is first compressed using compressed sparse row matrix technology (CSR), and on this basis, a parallelization framework is introduced to accelerate the operation speed, and then the conjugate gradient method is used to solve the converged position vector x.

[0074] The aforementioned integrated circuit secondary planning layout method provided in the present application is essentially a boundary to boundary (Bound to Bound, B2B) wire network model for accelerating the secondary planning layout, which aims to improve the efficiency and effectiveness of the secondary planning layout process. The model is based on the existing wire network model (cluster model or hybrid model), and additionally adds considerations for the boundary rectangle of the pins of each wire network. According to the specific wire network distribution, a matrix and force vector for solving the optimal position are constructed. On this basis, the optimal position of each module is solved by combining compressed sparse row matrix technology with the conjugate gradient method.

[0075] Based on the same inventive concept, the present application also provides an integrated circuit secondary planning layout device corresponding to the aforementioned method example, including: a pin and wire net identification module, a matrix and force vector update module, and a solution module;

[0076] The pin and wire net identification module is used to traverse all pins in the module set, pin set and wire net set involved in the layout, and obtain the wire net to which each pin belongs;

[0077] The matrix and force vector updating module is used to update the wire net weight to which each pin belongs, and update the matrix and force vector corresponding to the secondary planning layout according to the updated position relationship between each wire net weight and each pin;

[0078] The solving module is used to solve the solution corresponding to the quadratic planning layout according to the updated matrix and the force vector.

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

[0080] Based on the same inventive concept, the present application also provides an electronic device based on the integrated circuit secondary planning layout method, the device comprising: a processor, a memory and a computer program; wherein

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

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

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

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

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

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

[0087] It should be noted that the computer storage medium may include but is not limited to: a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device or any suitable combination thereof.

[0088] In a possible implementation, the present invention may also provide a form of a program product that implements data processing, which includes program code. When the program product runs on a terminal device, the program code is used to enable the terminal device to execute several steps of the method described in any of the aforementioned embodiments.

[0089] The program code for executing the present invention may be written in any combination of one or more programming languages, and may be executed entirely on a user device, partially on a user device, as an independent software package, partially on a user device and partially on a remote device, or entirely on a remote device.

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

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

Claims

1. A method for secondary planning and layout of an integrated circuit, characterized in that: include: According to the module set, pin set and wire net set involved in the layout, traverse all the pins in the module set and obtain the wire net to which each pin belongs; Update the net weight to which each of the pins belongs; wherein the net weight is updated according to the following formula: Among them, direction represents the horizontal direction or the vertical direction. Representative network ij The original weight in direction, Representative network ij Update weights in direction, Representative network ij Middle pin a The actual position in the layout, Representative network ij Middle pin b The actual location in the layout; According to the updated weights of each wire net and the positional relationship of each pin, the matrix and force vector corresponding to the secondary planning layout are updated; A solution corresponding to the quadratic planning layout is obtained based on the updated matrix and the force vector.

2. The integrated circuit secondary planning layout method according to claim 1, characterized in that: During weight update, the pin position difference meets the following preset upper and lower limits: Among them, the upper limit max is preset to 200*region, the lower limit min is preset to 2*region, and region represents the layout area.

3. The integrated circuit secondary planning layout method according to claim 1, characterized in that: The objective function of the quadratic planning layout is: Among them, M represents the quadratic term matrix in the quadratic objective function, b represents the force vector corresponding to the linear term, x represents the horizontal position, and y represents the vertical position, where M and b are constructed according to the positional relationship between each wire net weight and each pin.

4. The integrated circuit secondary planning layout method according to claim 3, characterized in that: According to whether the module where the pin is located is a non-movable module or a movable module, the matrix and the force vector are updated in the following updating manner; If the module is a removable module, it is updated as follows: in, represents the element in the i-th row and j-th column of the matrix M in the direction, b i Represents module i The force vector, Indicates that in module i Middle pin a The offset distance relative to the module in the direction; If the module is a non-removable module, update it as follows: in, Indicates pin a The actual position in the layout. When the incoming direction is horizontal, it represents the pin a The horizontal axis represents the pin pin. a The vertical coordinate of .

5. The integrated circuit secondary planning layout method according to claim 1, characterized in that: The matrix and the force vector are the matrix and force vector required by the conjugate gradient method; Solving the solution corresponding to the quadratic programming layout includes: using a conjugate gradient method to solve the solution corresponding to the quadratic programming layout.

6. The integrated circuit secondary planning layout method according to claim 5, characterized in that: Before using the conjugate gradient method to solve the matrix, the matrix to be solved is compressed using a compressed sparse row matrix to reduce the storage and calculation operations of non-zero elements.

7. An integrated circuit secondary planning layout device, characterized in that: include: Pin and net identification module, matrix and force vector update module, and solver module; The pin and wire net identification module is used to traverse all pins in the module set, pin set and wire net set involved in the layout, and obtain the wire net to which each pin belongs; The matrix and force vector updating module is used to update the wire net weight to which each pin belongs, and update the matrix and force vector corresponding to the secondary planning layout according to the updated position relationship between each wire net weight and each pin; The solving module is used to solve the solution corresponding to the quadratic planning layout according to the updated matrix and the force vector.

8. The integrated circuit secondary planning layout device according to claim 7, characterized in that: Also includes matrix processing modules; Before solving the solution corresponding to the quadratic programming layout, the matrix to be solved is compressed using a compressed sparse row matrix to reduce the storage and calculation operations of non-zero elements.

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

10. A computer storage medium, characterized in that: The computer storage medium stores computer executable instructions, and when the computer executable instructions are executed by the processor, the integrated circuit secondary planning layout method according to any one of claims 1 to 7 is performed.