Circuit division method and device
By using hyperedge and half-perimeter line length as one-dimensional features, circuit division is converted into a one-dimensional layout problem, and a nonlinear optimization algorithm is used to solve the instability problem of circuit division caused by the random two-partition algorithm, achieving higher quality and Stable partitioning results.
Patent Information
- Application Number
- CN202310344538.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-28
- Publication Date
- 2024-10-01
AI Technical Summary
In the existing technology, the quality of the circuit division results of the random two-partition algorithm relies on random seeds, resulting in unstable and poor results, making it difficult to guarantee the division quality.
By obtaining the netlist information of the circuit to be divided, and according to the set graph division characteristics and netlist information, the circuit is divided into the first division block and the second division block, using the hyperedge and half-perimeter line length as one-dimensional features, and converting into One-dimensional layout problems are solved using nonlinear optimization algorithms to improve the accuracy and stability of the division.
It achieves more stable and high-quality circuit division, avoids the influence of random seeds, and improves the robustness and efficiency of division.
Smart Images

Figure CN118734780A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and in particular to a circuit partitioning method and device. Background Art
[0002] Electronic design automation (EDA) refers to the steps of completing the circuit design, partitioning, layout and wiring of a chip. In the partitioning process, a multi-level partitioning method is often used to process the designed circuit netlist. In the initial partitioning stage of this multi-level partitioning method, the circuit netlist is partitioned using algorithms such as random binary partitioning to obtain corresponding partitioning results. However, the quality of the partitioning result obtained by random binary partitioning depends on the random seed used in random binary partitioning. If the selected random seed is poor, the quality of the partitioning result will be unstable and poor. Therefore, how to provide a more effective circuit partitioning method has become a problem that needs to be solved urgently. Summary of the invention
[0003] The present application provides a circuit partitioning method and device to solve the problem that the instructions of the partitioning results obtained by partitioning the circuit are unstable and poor.
[0004] In a first aspect, the present application provides a circuit partitioning method. The circuit partitioning method can be applied to a computer system or to a computing device that supports the computer system to implement the circuit partitioning method, such as a host or a lithography machine. The circuit partitioning method includes: the computing device obtains the netlist information of the circuit to be divided, and divides the circuit to be divided into a first partition block and a second partition block according to the set graph partitioning features and netlist information. The netlist information is used to indicate the association information between the multiple electronic devices included in the circuit to be divided. The graph partitioning features include a hyperedge and a semi-perimeter line length, the hyperedge includes at least two electronic devices among the multiple electronic devices, and the semi-perimeter line length is used to indicate half the perimeter of the rectangle surrounding the corresponding hyperedge. The sum of the semi-perimeter line lengths corresponding to the multiple hyperedges included in the first partition block and the second partition block is the smallest.
[0005] In the present application, the computing device divides the circuit to be divided into the first partition block and the second partition block according to the hyperedge in the graph partition feature and the semi-perimeter line length corresponding to the hyperedge, and the sum of the semi-perimeter line lengths corresponding to the multiple hyperedges included is the smallest. Since the semi-perimeter line length is a one-dimensional feature, it is equivalent to converting the division of the circuit to be divided into solving the one-dimensional layout problem according to the one-dimensional feature, realizing linear solution according to the one-dimensional feature, improving the accuracy and stability of the division, and thus improving the robustness of the division.
[0006] In a possible implementation, a computing device divides the circuit to be divided into a first partition block and a second partition block according to the graph partitioning characteristics and the netlist information, including: the computing device determines the first value of each vertex in the aggregate graph of the circuit to be divided corresponding to the netlist information, and optimizes the first value of the vertex according to the nonlinear algorithm to obtain the second value of each vertex. Then, the computing device divides the vertices whose second values meet the conditions into the first partition block, and divides the other vertices in the circuit to be divided into the second partition block. The first value of the vertex is used to indicate the initial layout of the vertex after the circuit to be divided is divided using the initial partitioning method; the vertex represents one or more electronic devices in the circuit to be divided; the objective function of the nonlinear optimization algorithm is the sum of the semi-perimeter line length corresponding to the multiple hyperedges included in the circuit to be divided and the penalty function.
[0007] In the present application, when the computing device uses a nonlinear optimization algorithm to optimize the first value of the vertex, the half-perimeter line length is used to obtain the second value. The half-perimeter line length is a one-dimensional feature, which is equivalent to converting the division of the circuit to be divided into a one-dimensional feature to solve the one-dimensional layout problem, and realizing linear solution according to the one-dimensional feature, thereby improving the accuracy and stability of the division, thereby improving the robustness of the division. And the penalty function is used to convert the balance constraint into an unconstrained problem, and then solve it using an unconstrained optimization method, that is, the computing device only needs to solve the above objective function, which improves the efficiency of the division of the circuit to be divided.
[0008] In one possible implementation, a computing device determines a first value of each vertex in an aggregate graph of a circuit to be divided corresponding to netlist information, including: the computing device obtains an aggregate graph according to the netlist information, and divides the aggregate graph using an initial division method to obtain a division situation of the vertex. Finally, the computing device assigns first values to the vertices in sequence based on the division situation and the assignment rule. The assignment rule includes values corresponding to different division situations. The division situation is used to indicate: the initial block to which the vertex belongs, and the order in which all vertices in the aggregate graph are added to the initial block.
[0009] In the present application, the computing device assigns first values to the vertices in the aggregate graph in sequence according to the partitioning situation and the assignment rules, thereby converting the two-partition problem into a one-dimensional continuous layout problem, and performing a linear solution on the one-dimensional feature according to the first value, thereby avoiding the problem of low partition quality of the circuit to be partitioned caused by the use of random seeds when partitioning in the two-partition problem, thereby improving the partition quality of multiple blocks to be partitioned.
[0010] In a possible implementation, the initial block includes a first initial block and a second initial block, and the above-mentioned assignment rule includes: according to the order in which all vertices in the circuit to be divided are added to the initial block, it is judged in turn whether the vertex belongs to the first initial block or the second initial block. If the vertex belongs to the first initial block, the vertex is assigned a value according to the first rule. If the vertex belongs to the second initial block, the vertex is assigned a value according to the second rule. If the ratio of the vertices assigned the first value in the first initial block to the vertices assigned the first value in the second initial block reaches a preset threshold, the vertices that have not been assigned a value in the initial block are assigned a value according to the third rule. Among them, the first rule is to use the first parameter as the first value of the vertex, the second rule is to use the second parameter as the first value of the vertex, and the third rule is to use the third parameter as the first value of the vertex that has not been assigned a value in the initial block.
[0011] In one possible implementation, a computing device obtains an aggregate graph based on netlist information, including: the computing device converts the netlist information of the circuit to be divided into a hypergraph, and iteratively shrinks the vertices in the hypergraph according to a set rating function, until the condensed hypergraph meets the set exit condition, thereby obtaining an aggregate graph; the rating function is used to determine a rating coefficient between two vertices in the hypergraph, and the rating coefficient between the two vertices to be condensed meets the set shrinkage condition.
[0012] In the present application, the computing device condenses the circuits to be divided to obtain an aggregate graph. The aggregate graph has a smaller amount of data than the netlist information, and the subsequent computing device processes according to the aggregate graph, which can improve the efficiency of dividing the circuits to be divided.
[0013] In one possible implementation, the circuit partitioning method also includes: the computing device performs a weighted summation on the first values of at least two vertices included in the hyperedge in the aggregate graph to obtain the coordinates of the hyperedge in the aggregate graph, and then determines the semi-perimeter line length corresponding to the hyperedge based on the absolute value of the difference between the coordinates of the hyperedge and the first coordinates of the vertices included in the hyperedge.
[0014] In the present application, the computing device calculates the semi-perimeter length of the hyperedge through the one-dimensional feature of each vertex, that is, the first value, thereby converting the two-division problem into a one-dimensional layout problem, realizing linear solution based on the one-dimensional feature, and improving the accuracy and stability of circuit division.
[0015] In a possible implementation manner, the circuit partitioning method further includes: a computing device displays the first partition block and the second partition block.
[0016] In the present application, the computing device displays the first partition block and the second partition block, so that the user can observe the circuit partition situation in time, and while achieving visualization, the user is prevented from adjusting the first partition block and the second partition block.
[0017] In a possible implementation, after the computing device divides the circuit to be divided into a first partition block and a second partition block according to the graph partitioning features and the netlist information, the circuit partitioning method further includes: re-optimizing the first partition block and the second partition block using a local optimization algorithm.
[0018] In a possible implementation, after the computing device divides the circuit to be divided into the first partition block and the second partition block according to the graph partition feature and the netlist information, the circuit partition method further includes: de-condensing the first partition block and the second partition block to obtain a refined graph, wherein a vertex in the refined graph represents an electronic device, thereby obtaining an accurate partition of each electronic device.
[0019] In a second aspect, the present application provides a circuit partitioning device. The circuit partitioning device can be applied to a computer system or to a computing device that supports the computer system to implement the circuit partitioning device, such as a host or a photolithography machine. The circuit partitioning device includes an acquisition module for acquiring the netlist information of the circuit to be divided. The partitioning module is used to divide the circuit to be divided into a first partition block and a second partition block according to the set graph partitioning features and netlist information. Among them, the netlist information is used to indicate the association information between multiple electronic devices included in the circuit to be divided. The graph partitioning features include a hyperedge and a semi-perimeter line length, the hyperedge includes at least two electronic devices among multiple electronic devices, and the semi-perimeter line length is used to indicate half the perimeter of the rectangle surrounding its corresponding hyperedge. The sum of the semi-perimeter line lengths corresponding to the multiple hyperedges included in the first partition block and the second partition block is the smallest.
[0020] In a possible implementation, the partitioning module is specifically used to determine the first value of each vertex in the aggregate graph of the circuit to be partitioned corresponding to the netlist information, and optimize the first value of the vertex according to the nonlinear algorithm to obtain the second value of each vertex, and to classify the vertices whose second values meet the conditions into the first partitioning block, and classify the other vertices in the circuit to be partitioned into the second partitioning block. The first value of the vertex is used to indicate the initial layout of the vertex after the circuit to be partitioned is partitioned using the initial partitioning method; the vertex represents one or more electronic devices in the circuit to be partitioned, and the objective function of the nonlinear optimization algorithm is the sum of the semi-perimeter line length corresponding to multiple hyperedges included in the circuit to be partitioned and the penalty function.
[0021] In a possible implementation, the partitioning module is further specifically used to obtain an aggregate graph according to the netlist information, and to partition the aggregate graph using an initial partitioning method to obtain the partitioning conditions of the vertices, and to assign first values to the vertices in sequence based on the partitioning conditions and the assignment rules; the assignment rules include values corresponding to different partitioning conditions. The partitioning conditions are used to indicate: the initial block to which the vertex belongs, and the order in which all vertices in the aggregate graph are added to the initial block.
[0022] In a possible implementation, the initial block includes a first initial block and a second initial block, and the above-mentioned assignment rule includes: according to the order in which all vertices in the circuit to be divided are added to the initial block, it is judged in turn whether the vertex belongs to the first initial block or the second initial block. If the vertex belongs to the first initial block, the vertex is assigned a value according to the first rule. If the vertex belongs to the second initial block, the vertex is assigned a value according to the second rule. If the ratio of the vertices assigned the first value in the first initial block to the vertices assigned the first value in the second initial block reaches a preset threshold, the vertices that have not been assigned a value in the initial block are assigned a value according to the third rule. Among them, the first rule is to use the first parameter as the first value of the vertex, the second rule is to use the second parameter as the first value of the vertex, and the third rule is to use the third parameter as the first value of the vertex that has not been assigned a value in the initial block.
[0023] In a possible implementation, the partitioning module is further specifically used to convert the netlist information of the circuit to be partitioned into a hypergraph, and iteratively condense the vertices in the hypergraph according to a set rating function until the condensed hypergraph meets the set exit condition to obtain an aggregate graph. The rating function is used to determine the rating coefficient between two vertices in the hypergraph, and the rating coefficient between the two vertices to be condensed meets the set condensation condition.
[0024] In one possible implementation, the circuit partitioning device also includes: a determination module, which is used to perform a weighted sum of the first values of at least two vertices included in the hyperedge in the aggregate graph to obtain the coordinates of the hyperedge in the aggregate graph, and determine the semi-perimeter line length corresponding to the hyperedge based on the absolute value of the difference between the coordinates of the hyperedge and the first coordinates of the vertices included in the hyperedge.
[0025] In a possible implementation, the circuit partitioning device further includes: a display module, configured to display the first partitioned block and the second partitioned block.
[0026] In a third aspect, the present application provides a chip. The chip includes a control circuit and an interface circuit, the interface circuit is used to receive netlist information of the circuit to be divided, and the control circuit is used to execute the method shown in the first aspect or any possible implementation of the first aspect according to the netlist information of the circuit to be divided.
[0027] In a fourth aspect, the present application provides a network card. The network card comprises: the chip and the interface of the third aspect; the interface is used to receive signals from other devices outside the network card and send them to the chip; or to send signals from the chip to other devices outside the network card.
[0028] In a fifth aspect, the present application provides a computing device cluster. The computing device cluster includes at least one computing device; each computing device in the at least one computing device includes a memory and a processor, the memory is used to store computer instructions; when the processor executes the computer instructions, the method in the above-mentioned first aspect and any possible implementation of the first aspect is implemented. The computing device may refer to a server, a processor included in the server, or a lithography machine.
[0029] In a sixth aspect, the present application provides a computer-readable storage medium, which includes computer program instructions. When the computer program instructions are executed by a computing device, the method shown in the above-mentioned first aspect or any possible implementation method of the first aspect can be implemented.
[0030] In a seventh aspect, the present application provides a computer program product. The computer program product includes a computer program or instructions, and when the computer program or instructions are executed by a computing device, the method shown in the first aspect or any possible implementation of the first aspect is implemented.
[0031] The beneficial effects of the second to seventh aspects above can refer to the description of the first aspect or any implementation of the first aspect, and will not be repeated here. Based on the implementations provided by the above aspects, this application can also be further combined to provide more implementations. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 A schematic diagram of a circuit divided into two parts is provided;
[0033] Figure 2 A flowchart of a multi-level partitioning method is shown;
[0034] Figure 3 It is a schematic diagram of a random binary partition;
[0035] Figure 4 A schematic diagram of a computer system provided for this application;
[0036] Figure 5 A schematic diagram of problem modeling provided for this application;
[0037] Figure 6 Schematic diagram of the circuit partitioning method provided in this application Figure 1 ;
[0038] Figure 7 Schematic diagram of the circuit partitioning method provided in this application Figure 2 ;
[0039] Figure 8 A schematic diagram of a process for determining a first value of a vertex provided by the present application;
[0040] Fig. 9 A schematic diagram of image conversion provided for this application;
[0041] Fig.10 A schematic diagram of the process of vertex condensation provided for this application;
[0042] Fig.11 A schematic diagram of the structure of a circuit division device provided in this application Figure 1 ;
[0043] Fig.12 A schematic diagram of the structure of a circuit division device provided in this application Figure 2 ;
[0044] Fig.13 A schematic diagram of the structure of a computing device provided for this application;
[0045] Fig.14 A schematic diagram of the structure of a computing device cluster provided for this application;
[0046] Fig.15 A schematic diagram of a connection method between computing devices provided in this application. DETAILED DESCRIPTION
[0047] To facilitate understanding, the relevant technical terms involved in this application are first introduced.
[0048] A very large scale integration circuit (VLSI) is a micro device or component. A very large scale integration circuit contains tens of millions or hundreds of millions of electronic components or devices.
[0049] A hypergraph is a graph that includes multiple vertices and links between vertices, and a hyperedge in the graph can connect any number of vertices. In form, a hypergraph H is represented as H = (V, E), where V is called a vertex set and E is a set of non-empty subsets of V, called hyperedges.
[0050] Half perimeter wire length (HPWL) refers to the half perimeter of a group of wires in a circuit layout, such as the hyperedge mentioned above.
[0051] The two-partition problem refers to dividing the vertex set P of a given hypergraph H = (V, E) into two non-intersecting vertex subsets V1 and V2 under the premise of satisfying certain constraints, and obtaining a partition P = {V1, V2}, where V1 and V2 can also be called partition blocks.
[0052] Cut edge: For a hypergraph, under a partition, the hyperedges that cross different partition blocks are called cut edges.
[0053] Random seed is a computer-generated random number "seed", which is a fixed value. By fixing the random seed, you can ensure that the random number sequence generated each time is exactly the same, which makes debugging and reproducing results easier, and also avoids problems caused by different random number generation results each time.
[0054] With the rapid development of integrated circuit manufacturing technology, the integrated circuit industry has turned to the use of ultra-deep sub-nanometer and nanometer processes, and the integration of chips has been further improved. As the number of circuit elements integrated on a chip continues to increase, the design difficulty of VLSI is also increasing. VLSI design directly affects circuit performance, area, reliability, power consumption and manufacturing output.
[0055] Due to the complexity of integrated circuits, it is difficult to directly manufacture the full chip layout. Therefore, in order to reduce the complexity and difficulty of design, the integrated circuit is usually divided into smaller modules. In other words, the integrated circuit is divided into several smaller parts and processed one by one, which can effectively reduce the complexity and difficulty of VLSI design.
[0056] Take a circuit netlist as an example. Figure 1 As shown, Figure 1 A schematic diagram of a circuit divided into two parts. Figure 1 A represents the circuit netlist, B represents the hypergraph H corresponding to the circuit netlist, and a logic gate in A corresponds to a vertex in B. The circuit netlist is divided into partition blocks V1 and partition blocks V2, and the weight sum of the cut edges between the partition blocks V1 and V2 is the smallest, and the partition blocks V1 and V2 are balanced.
[0057] For example, the basic problem of circuit partitioning (which can be called the two-partition problem) is to satisfy certain balance constraints and divide the Figure 1 The hypergraph H shown in B is divided into vertex set V1 and vertex set V2, so that the sum of the weights of the cut edge set cut(H,V1,V2) between vertex set V1 and vertex set V2 is as small as possible. This two-partition problem belongs to the classic NP-hard problem, and can be expressed as follows:
[0058]
[0059]
[0060] Among them, ε is the equilibrium parameter, c(V i ) represents the sum of the weights of the vertices in the i-th partition block, and c(V) represents the sum of the weights of all vertices on the hypergraph.
[0061] To solve the above NP-hard problems, three types of algorithms are often used: global partitioning algorithm, iterative improvement algorithm or multi-level partitioning algorithm.
[0062] For the global partitioning algorithm, the exact algorithm and the graph growth algorithm are used to directly partition the entire integrated circuit. Among them, the exact algorithm has a very high complexity and is only applicable to small-scale circuits. Although the graph growth algorithm has a lower complexity, the partitioning quality is poor.
[0063] For the iterative improvement algorithm, the local optimization algorithm and the taboo search algorithm are used to improve the initial partition solution. Among them, the complexity of the local optimization algorithm is low, but the quality of the final solution depends on the initial partition solution. The partition quality of the taboo search algorithm is improved compared with the local optimization algorithm, but the complexity is also increased accordingly. Among them, the initial partition solution is obtained by initially partitioning the integrated circuit, and the initial partition can adopt random two partitions.
[0064] Exemplarily, the local optimization algorithm includes a fiducia mattheyses (FM) algorithm, which is used to reduce the number of connections between different partitions, that is, the number of connections between multiple partition blocks.
[0065] For multi-level partitioning algorithms, high-quality partitioning results can be obtained in a relatively short time. Currently, commonly used partitioning tools include hMetis and KaHyPar. The following is a possible implementation of a multi-level partitioning algorithm. Figure 2 As shown, Figure 2 2 is a flow chart of a multi-level partitioning method. The multi-level partitioning algorithm includes three stages: a coarsening stage 210 , an initial partitioning stage 220 , and a refinement stage 230 . Figure 2 The vertices shown in may include one or more electronic devices in the circuit netlist, for example, vertex 1 may represent one electronic device, and vertex 2 may represent one or more electronic devices.
[0066] Coarsening stage 210: By clustering the vertices in the condensed hypergraph, the degree of freedom of the original problem is gradually sacrificed, the scale of the graph is reduced to obtain the condensed hypergraph, and the scale of the problem is reduced. The problem is solved on a smaller graph, thereby speeding up the processing efficiency.
[0067] Initial partitioning stage 220: performing multiple simple partitioning algorithms on the condensed hypergraph to obtain multiple intermediate results, and then selecting the intermediate result with the best quality from the multiple intermediate results as the initial partitioning.
[0068] The above simple partitioning algorithms include random two-partitioning, etc. Random two-partitioning refers to randomly assigning vertices in the hypergraph to any one of the two partition blocks. If assigning a vertex to a partition block will destroy the balance constraint, then in order to ensure the balance between each partition block, the vertex is assigned to another partition block.
[0069] Regarding the above random binary partitioning of the hypergraph, the following is a possible example: Figure 3 As shown, Figure 3 A schematic diagram of a random binary partition. Figure 3 The unfilled circles in represent vertices with the first attribute in the hypergraph, and the filled circles represent vertices with the second attribute in the hypergraph.
[0070] exist Figure 3 The original hypergraph is shown in A and B, and the original hypergraph contains two types of vertices, the first attribute and the second attribute. The partitioning goal of the original hypergraph is to divide the nodes of each type of attribute into two partitions in a balanced manner. Figure 3 A in the figure shows an ideal partition, but when the number of vertices of the original hypergraph is large, the complexity of the ideal partition is very high. Figure 3 B shows a random two-partition, which assigns the corresponding vertices in the original hypergraph to a random partition block, with extremely low complexity. However, the result of each partition is related to the random seed used for the random two-partition, and thus has a large randomness. Therefore, when the random seed is poor, the quality of the two partition blocks obtained by partitioning the original hypergraph is also poor.
[0071] Refinement stage 230: The initial partition is optimized again using a local optimization algorithm to improve the partition quality, and the initial partition is gradually restored to the granularity of the hypergraph.
[0072] For example, a vertex in the initial partition is split into multiple vertices in the hypergraph, and a local optimization algorithm is used for optimization during the splitting process.
[0073] Since the initial partitioning stage mentioned above requires the random seed selected during the partitioning to perform random binary partitioning on the hypergraph, the quality of the partitioned blocks obtained is uncertain, which in turn affects the partitioning results output in the subsequent refinement stage.
[0074] In order to improve the quality of the partition blocks obtained by partitioning the circuit netlist, the present application provides a circuit partitioning method, which obtains the netlist information of the circuit to be partitioned, and divides the circuit to be partitioned into a first partition block and a second partition block according to the set graph partitioning features and netlist information. The netlist information is used to indicate the association information between the multiple electronic devices included in the circuit to be partitioned. The graph partitioning features include a hyperedge and a semi-perimeter line length, the hyperedge includes at least two electronic devices among the multiple electronic devices, and the semi-perimeter line length is used to indicate half the perimeter of the rectangle surrounding the corresponding hyperedge. The sum of the semi-perimeter line lengths corresponding to the multiple hyperedges included in the first partition block and the second partition block is the smallest.
[0075] In the present application, the computing device divides the circuit to be divided into the first partition block and the second partition block according to the hyperedge in the graph partition feature and the semi-perimeter line length corresponding to the hyperedge, and the sum of the semi-perimeter line lengths corresponding to the multiple hyperedges included is the smallest. Since the semi-perimeter line length is a one-dimensional feature, it is equivalent to converting the division of the circuit to be divided into solving the one-dimensional layout problem according to the one-dimensional feature, realizing linear solution according to the one-dimensional feature, improving the accuracy and stability of the division, and thus improving the robustness of the division.
[0076] In order to improve the quality of the partition blocks obtained by partitioning the circuit netlist, the present application provides a computer system. Figure 4 As shown, Figure 4 A schematic diagram of a computer system provided in the present application, the computer system comprising: at least one computing device 410, the computing device 410 is used to divide the received circuit to be divided into a first divided block and a second divided block.
[0077] In a possible example, the computer system further includes a terminal 420 , a terminal 430 , and a terminal 440 .
[0078] In one possible scenario, the computing device 410 is a server, a lithography machine, a personal desktop computer, a laptop computer, etc.
[0079] The terminal 420 among the terminals 420, 430 and 440 is taken as an example for description. The terminal 420 may be a terminal server, a smart phone, a notebook computer, a tablet computer, a personal desktop computer or a smart camera.
[0080] The terminal 420 and the computing device 410 can communicate with each other through wired means, such as Ethernet, optical fiber, and a peripheral component interconnect express (PCIe) bus provided in a computer system for connecting the computing device 410 and the terminal 420; or they can communicate through wireless means, such as the Internet, wireless fidelity (WIFI), and ultra wide band (UWB) technology.
[0081] It should be noted that Figure 4 This is just an example provided in this application. The computer system may also include more computing devices 410 or more terminals. The internal components of the computing device 410 may include one or more processors, as well as a power supply, hard disk, optical drive, chassis, cooling system, and other input and output controllers and interfaces that support the operation of the processor. Figure 4 This application does not limit the form and quantity of the processor or the hardware supporting the operation of the processor.
[0082] Taking the interaction between terminal 420 and computing device 410 as an example, terminal 420 sends the netlist information of the circuit to be divided to computing device 410, and computing device 410 receives the netlist information and coarsens the netlist information to obtain an aggregate graph. Computing device 410 preprocesses the aggregate graph using the initial partitioning method to obtain the first value of the vertex in the aggregate graph. Computing device 410 optimizes the first value of the vertex according to the set graph partitioning feature to obtain the second value of each vertex, and divides the circuit to be divided into a first partition block and a second partition block according to the second value.
[0083] In view of the above two-partition problem, in the present application, the computing device 410 performs problem modeling on the circuit partitioning. The computing device 410 first converts the two-partition problem into a one-dimensional discrete problem, relaxes the value range of the problem, and then converts the one-dimensional discrete problem into a one-dimensional continuous layout problem, and uses the one-dimensional Poisson equation to replace the balance constraint in the two-partition problem.
[0084] For example, computing device 410 converts vertex v i Converted to a line segment with a length of 1, the vertex v i Center coordinate x i Represents the position of the vertex in one-dimensional coordinates, and abstracts the partition blocks V1 and V2 into vertex sets P1: = {v i :x i =a}, P2: ={v i :x i =b},x i∈{a,b}, and then when |ab|=1, the sum of the edge weights of the two-partition problem is equal to the line length in the layout problem corresponding to the hypergraph H(V,E), then:
[0085]
[0086] Where w(e) represents the weight of hyperedge e, HPWL e (x) represents the line length generated by the hyperedge e, and HPWL(x) represents the total line length of the hypergraph H. In the hypergraph H(V,E), V = {v1,v2,…,v n} represents the set of vertices in the hypergraph, that is, the set of electronic devices in the circuit; E = {e1, e2, …, e m} represents the set of hyperedges in the hypergraph, that is, the set of netlists in the circuit.
[0087] Furthermore, based on Formula 3, Formulas 1 and 2 corresponding to the above two-partition problem are equivalent to solving the following one-dimensional discrete layout problem, such as:
[0088] min HPWL(x) Formula 4
[0089]
[0090] x i ∈{α,b},i=1,2,…,n
[0091] Among them, c(P1) represents the sum of weights of vertices in vertex set P1, and c(P2) represents the sum of weights of vertices in vertex set P1.
[0092] In the case of |ab|=1, the present application shows a possible implementation method for converting the two-division problem into a one-dimensional discrete layout problem. Figure 5 As shown, Figure 5 A schematic diagram of problem modeling provided by the present application. The computing device 410 sets the vertex set a corresponding to the partition block V1 to 0.5, and sets the vertex set corresponding to the partition block V2 to 1.5, and then converts the vertices belonging to the partition block V1 into line segments with a center coordinate of 0.5, and the vertices belonging to the partition block V2 into line segments with a center coordinate of 1.5, so that the sum of the cut edge weights in the two partition problems is equal to the sum of the semi-perimeter lengths of the hyperedges in the hypergraph H. Figure 5 As shown, the coordinate of vertex 1 belonging to partition block V1 is 0.5, and the coordinate of vertex 2 belonging to partition block V2 is 1.5.
[0093] To convert the one-dimensional discrete layout problem into a one-dimensional continuous layout problem, the computing device 410 converts x i ∈a,b is relaxed to x i ∈[a,b], and then the partition block V1 can be abstracted as Q1: = {v i:a≤x i ≤0.5(a+b)}, the partition block V2 can be abstracted as Q2: = {v i :0.5(a+b)<x i ≤b}.
[0094] In order to achieve the balance constraint in the above two-partition problem, based on the above formula 4 and formula 5, the computing device 410 uses the one-dimensional display Poisson equation as a penalty function to achieve the effect of the balance constraint in the two-partition problem, thereby converting the above one-dimensional discrete layout problem into a one-dimensional continuous layout problem. The one-dimensional continuous layout problem is as follows:
[0095]
[0096] stx i ∈[a,b],i=1,2,…,n Formula 7
[0097] The Poisson equation in one dimension is:
[0098]
[0099] Where C is an arbitrary constant, λ represents the penalty parameter, and the above t i (x) can be seen from the following formula 16.
[0100] In the above, the partitioning problem is modeled and Figure 5 Based on the computer system shown, the present application shows a possible implementation method of a computing device to divide the circuit. Figure 6 As shown, Figure 6 Schematic diagram of the circuit partitioning method provided in this application Figure 1 . Figure 6 It is shown that the computing device 410 obtains the netlist information of the circuit to be divided, and divides the circuit to be divided into a first partition block and a second partition block according to the set graph partitioning characteristics and the netlist information.
[0101] S610 , the computing device 410 obtains netlist information of the circuit to be divided.
[0102] Exemplarily, the netlist information is used to indicate: association information between multiple electronic devices included in the circuit to be divided. The electronic devices may be various types of logic gates, such as OR gates, AND gates, NOT gates, and the like.
[0103] The association information between the multiple electronic devices includes connection information and a group relationship. The connection information is used to indicate that the multiple electronic devices have a line connection. The group relationship is used to indicate that at least two of the multiple electronic devices belong to the same group.
[0104] like Figure 6As shown, the plurality of electronic devices include device 1, device 2, device 3, device 4, device 5 and device 6. Among them, Figure 6 The connection lines between the electronic devices in the figure represent the above-mentioned line connection. For example, the connection information shows that device 1 is connected to device 2 by a line, and device 1 is connected to device 5 by a line. Figure 6 The electronic devices in the middle dotted box have a group relationship, for example, device 1 and device 2 have a group relationship, and device 3, device 4 and device 5 have a group relationship.
[0105] In a possible scenario, the netlist information also shows the weight of each electronic device in the circuit to be divided and the weight of the line connection between multiple electronic devices, such as the connection weight between device 1 and device 2.
[0106] S620. The computing device 410 divides the circuit to be divided into a first partition block and a second partition block according to the set graph partitioning features and netlist information.
[0107] Among them, the graph partitioning features of this setting include hyperedges and HPWL.
[0108] The hyperedge includes at least two electronic devices among the plurality of electronic devices. The computing device 410 can determine the hyperedge in the circuit to be divided according to the above group relationship, such as Figure 6 As shown, hyperedge 1 includes device 1 and device 2, and hyperedge 2 includes device 3, device 4, device 5 and device 6.
[0109] HPWL is used to indicate the half perimeter of the rectangle surrounding the hyperedge. Exemplarily, for the above-mentioned hyperedge 1, the computing device 410 determines rectangle 1 surrounding hyperedge 1, and calculates half the perimeter of rectangle 1, thereby obtaining the HPWL of hyperedge 1. For hyperedge 2, the computing device 410 determines rectangle 2 surrounding hyperedge 2, and calculates half the perimeter of rectangle 2, thereby obtaining the HPWL of hyperedge 2.
[0110] For example, device 1 and device 2 in hyperedge 1 can be regarded as two vertices. The two sides of rectangle 1 enclosing hyperedge 1 are parallel to the horizontal plane and the side perpendicular to the horizontal plane, respectively. Under the aforementioned parallel condition, rectangle 1 is the minimum rectangle enclosing hyperedge 1. The two sides of rectangle 2 enclosing hyperedge 2 also satisfy the aforementioned parallel condition, and rectangle 2 is the minimum rectangle enclosing hyperedge 2.
[0111] With respect to the process of dividing the circuit to be divided according to the netlist information in S620, a possible implementation is given below: the computing device 410 determines multiple hyperedges in the circuit to be divided according to the netlist information, and then calculates multiple HPWLs of the multiple hyperedges. The computing device 410 continuously adjusts the positions of the electronic devices in the circuit to be divided to minimize the sum of the multiple HPWLs of the multiple hyperedges, thereby dividing the multiple electronic devices in the circuit to be divided into a division block 1 (a first division block) and a division block 2 (a second division block) when the sum of the multiple HPWLs is minimized. The division block 1 and the division block 2 meet the set balance condition.
[0112] Exemplarily, the computing device 410 adjusts the position of the electronic device in the circuit to be divided, which means transferring the electronic device from partition block 1 to partition block 2, transferring the electronic device from partition block 2 to partition block 1, or the electronic device is transferred in the partition block to which it belongs. The computing device 410 can use the nonlinear optimization algorithm Nesterov method to solve the position of each electronic device in the hyperedge when the sum of multiple HPWLs of multiple hyperedges is minimized. Then the computing device 410 divides the circuit to be divided into the first partition block and the second partition block according to the position of each electronic device.
[0113] In one possible scenario, in the above-mentioned solution process, each time the computing device 410 adjusts the position of the electronic device, it determines the balance coefficient between the partition block 1 and the partition block 2. The balance coefficient between the partition block 1 and the partition block 2 finally obtained by the computing device 410 is less than the set balance condition. Figure 6 As shown, the computing device 410 divides the circuit to be divided by dividing the block boundaries to obtain block 1 including device 1, device 2 and device 5, and block 2 including device 3, device 4 and device 6. The block boundaries are only for illustration and may not actually exist.
[0114] The computing device 410 determines the balance coefficient by using the parameters of the electronic devices in the partition block 1 and the parameters of the electronic devices in the partition block 2, and the parameters include the weights of the electronic devices. For example, the balance coefficient is determined according to the ratio between the difference between the sum of the weights of the electronic devices in the partition block 1 and the sum of the weights of the electronic devices in the partition block 2, and the sum of the sum of the weights of the electronic devices in the partition block 1 and the sum of the weights of the electronic devices in the partition block 2.
[0115] For more possible implementations and processing procedures of S620, see the following Figure 7 The relevant description is not repeated here.
[0116] With respect to the process in which a computing device uses graph partitioning features and netlist information to partition a circuit to be partitioned into a first partition block and a second partition block, a possible implementation method of hierarchical partitioning is given below. Figure 7As shown, Figure 7 Schematic diagram of the circuit partitioning method provided in this application Figure 2 The initial partitioning method includes a random algorithm, a packing algorithm, a breadth-first search algorithm, a greedy graph growth algorithm, or a label transfer algorithm. In this embodiment, the random algorithm in the initial partitioning method is used as an example for explanation. Figure 6 S620 may include the following steps S710 to S730.
[0117] S710 . The computing device 410 determines a first value of each vertex in the aggregate graph corresponding to the netlist information.
[0118] The aggregation graph is an aggregation graph of the circuit to be divided determined by the computing device 410 according to the netlist information, and the aggregation graph includes a plurality of vertices, each of which represents one or more electronic devices in the circuit to be divided. The first value of the vertex is used to indicate: the initial layout of the vertex after the circuit to be divided is divided using the initial division method.
[0119] For example, the computing device 410 may partition the aggregate graph according to a random algorithm to obtain the partitioning of the vertices, and then assign the vertices in the aggregate graph with a first value according to the partitioning and the assignment rule. Figure 7 0.5, 1, 1.5 in the.
[0120] For the content of determining the first value of the vertex by the computing device 410, see the following Figure 8 The description is not repeated here.
[0121] S720 . The computing device 410 optimizes the first value of the vertex according to a nonlinear optimization algorithm to obtain a second value of each vertex.
[0122] The objective function of the nonlinear optimization algorithm is the sum of the semi-perimeter line lengths corresponding to the multiple hyperedges included in the circuit to be divided and the penalty function.
[0123] Exemplarily, the computing device 410 uses a set nonlinear optimization algorithm to solve the second value of each vertex in the aggregate graph when the sum of the semi-perimeter lengths corresponding to multiple hyperedges included in the aggregate graph is minimized.
[0124] In view of the above-mentioned solution process, the present application has modeled the problem in the foregoing and set the corresponding objective function, such as formula 6-8. The objective function shows the sum of the lengths of the multiple semi-perimeter lines corresponding to the multiple hyperedges included in the aggregate graph and the penalty function. The computing device uses a nonlinear optimization algorithm to solve the second value of each vertex in the aggregate graph when the objective function is minimized. The second value is as follows Figure 7 0.5, 0.6, 1.1, 1.2, 1.5.
[0125] The nonlinear optimization algorithm may be Nesterov, and the penalty function may be Poisson's equation. The computing device 410 uses Nesterov in the nonlinear optimization algorithm to solve, which can speed up the solution speed compared with other gradient descent algorithms, thereby improving the partitioning efficiency of the circuit to be partitioned.
[0126] For the content of obtaining the second value by the computing device 410, reference may be made to the content of solving the objective function described below, which will not be elaborated here.
[0127] S730: The computing device 410 divides the circuit to be divided into a first partition block and a second partition block according to the second values of all vertices.
[0128] The computing device divides the vertices whose second values meet the condition into the first partition block, and divides the other vertices in the circuit to be divided into the second partition block.
[0129] For example, the computing device 410 divides vertices whose second values are less than or equal to a preset value into the first partition block, and divides vertices whose second values are greater than a preset value into the second partition block. The preset value may be 1 or 1.1, etc., and the present application does not limit the preset value.
[0130] The computing device 410 can obtain the position of the electronic device in the circuit to be divided according to the second value of the aforementioned vertex and the recorded condensation content, that is, whether the electronic device belongs to partition block 1 or partition block 2. The condensation content indicates which electronic devices the vertex is condensed from. For the description of the condensation content, see the content of S810 below, which will not be repeated here.
[0131] In this embodiment, when the computing device 410 uses a nonlinear optimization algorithm to optimize the first value of the vertex, the half-perimeter line length is used to obtain the second value. The half-perimeter line length is a one-dimensional feature, which is equivalent to converting the division of the circuit to be divided into a one-dimensional feature to solve the one-dimensional layout problem, and realizing linear solution according to the one-dimensional feature, thereby improving the accuracy and stability of the division, thereby improving the robustness of the division. And the penalty function is used to convert the balance constraint into an unconstrained problem, and then solve it using an unconstrained optimization method, that is, the computing device 410 only needs to solve the above-mentioned objective function, which improves the efficiency of the division of the circuit to be divided.
[0132] The computing device 410 continuously executes the above Figure 7 The circuit partitioning method shown can partition the circuit to be partitioned into multiple partition blocks. For example, the computing device 410 performs the above circuit partitioning process on the circuit to be partitioned once to obtain partition block 1 and partition block 2. The computing device 410 further partitions the partition block 1 and the partition block 2 to obtain 4 sub-partition blocks, and repeats the above partitioning process until the circuit to be partitioned cannot be partitioned, that is, when there are no new partition blocks, the circuit to be partitioned is stopped from being partitioned.
[0133] Regarding the process of the computing device 410 determining the content of the first value of the vertex, a possible implementation method for determining the first value is given below, such as Figure 8 As shown, Figure 8 A schematic diagram of a process for determining the first value of a vertex provided by the present application. In this embodiment, the hyperedge included in the netlist information is called hyperedge a, and the hyperedge included in the aggregate graph is called hyperedge b. Figure 7 S710 may include the following steps S810 to S830.
[0134] S810. The computing device 410 obtains an aggregation graph according to the netlist information.
[0135] Among them, one electronic device in the netlist information can be represented by one vertex.
[0136] Exemplarily, the computing device 410 determines the rating coefficients between the vertices according to the multiple vertices respectively included in the multiple hyperedges a. The computing device 410 condenses two vertices according to the rating coefficients between the vertices and represents them with one vertex. In a round of condensation, the rating coefficient between the two vertices to be condensed meets the set condensation condition. The computing device 410 condenses the vertices multiple times until the number of vertices in the current condensation does not decrease or the number of vertices is less than the set value, thereby obtaining an aggregate graph.
[0137] The condensation condition is as follows: the computing device 410 condenses the determined vertex and the vertex in the netlist information that has the highest rating coefficient with the determined vertex.
[0138] In a possible scenario, during the condensation process of the computing device 410 , it is recorded that a vertex is condensed by several electronic devices, thereby obtaining condensed content.
[0139] For example, the above-mentioned set value may be 320 or 300, etc.
[0140] For the above rating coefficient, the computing device 410 may calculate it through the following rating function:
[0141]
[0142] Among them, c(v) represents the weight of vertex v, c(u) represents the weight of vertex u, w(e) represents the weight of hyperedge e, I(v):={e:v∈e} represents all hyperedges containing vertex v, I(u):={e:u∈e} represents all hyperedges containing vertex u, |e| represents the number of vertices included in the hyperedge. At the initial rating, the number of vertices is equal to the number of electronic devices, and w(e) is the sum of the weights of the vertices in the hyperedge e.
[0143] In the process of the computing device 410 condensing the vertices, the first round of condensation of the vertices by the computing device 410 is used as an example for explanation, and the hyperedge a to which the vertex belongs will be adaptively changed according to the two condensed vertices. For example, before the condensation, the hyperedge a1 includes device 1 and device 2, and the hyperedge a2 includes device 3, device 4, device 5, and device 6. Since device 2 and device 3 are condensed into one vertex, the hyperedge a1 after the condensation includes device 1 and vertex 1, and the hyperedge a2 after the condensation includes vertex 1, device 4, device 5, and vertex 6. The hyperedge b1 in the aggregate graph is the aforementioned hyperedge a1, and the hyperedge b2 is the aforementioned hyperedge a2. Among them, the aforementioned devices can also be represented by vertices.
[0144] For more possible implementations and processing procedures of S810, see the following Fig.10 The relevant description is not repeated here.
[0145] S820. The computing device 410 obtains the division status of the vertices in the aggregation graph according to the set initial division method and the aggregation graph.
[0146] The division situation is used to indicate: the initial block to which the vertex in the aggregate graph belongs, and the order in which all the vertices in the aggregate graph are added to the initial block. The initial block includes a first initial block and a second initial block.
[0147] Exemplarily, the computing device 410 partitions the aggregate graph using a random algorithm to obtain the initial block to which each vertex in the aggregate graph belongs and the partitioning order in which each vertex is added to the partitioned block.
[0148] S830. The computing device 410 sequentially assigns first values to vertices in the aggregate graph based on the partitioning situation and the assignment rule.
[0149] The assignment rule includes values corresponding to different division situations.
[0150] A possible example of the assignment rule is shown below, and the assignment rule includes the computing device 410 judging whether the vertex belongs to the first initial block or the second initial block in the order in which all vertices in the circuit to be divided are added to the initial block. If the vertex belongs to the first initial block, the vertex is assigned a value according to the first rule. If the vertex belongs to the second initial block, the vertex is assigned a value according to the second rule. If the ratio of the vertices assigned the first value in the first initial block to the vertices assigned the first value in the second initial block reaches a preset threshold, the vertices that have not been assigned a value in the initial block are assigned a value according to the third rule.
[0151] The first rule is to use the first parameter as the first value of the vertex; the second rule is to use the second parameter as the first value of the vertex; the third rule is to use the third parameter as the first value of the vertex that is not assigned a value in the initial block. The preset threshold can be 0.5 or 0.6. This application does not limit the threshold, and the threshold can be any other value.
[0152] For the example of the above assignment rule, a possible example of a computing device 410 assigning a first value to a vertex based on the division situation and the assignment rule is provided below. Based on the above problem modeling, the first parameter, the second parameter and the third parameter are set to 0.5, 1.5 and 1 respectively, the 0.5 is used to represent the position where the line segment length is 1 and the center coordinate of the line segment is 0.5, the 1.5 is used to represent the position where the line segment length is 1 and the center coordinate of the line segment is 1.5, and the 1 represents the center position of the position 0.5 and the position 1.5.
[0153] like Figure 8 As shown, in the vertex division, vertex 1, vertex 2 and vertex 5 belong to division block 1, vertex 3, vertex 4 and vertex 6 belong to division block 2, and the order in which the aforementioned vertices are added to the initial block is vertex 1, vertex 2, vertex 3, vertex 4, vertex 5, vertex 6. Therefore, according to the aforementioned division situation and assignment rule, the computing device 410 first assigns a value to vertex 1, which belongs to initial block 1, so the computing device 410 uses 0.5 as the first value of vertex 1 according to the first rule. Similarly, the computing device 410 uses 0.5 as the first value of vertex 2 according to the first rule.
[0154] The aforementioned vertex 3 belongs to the initial block 2, so the computing device 410 uses 1.5 as the first value of vertex 3 according to the second rule. Similarly, the computing device 410 uses 1.5 as the first value of vertex 4 according to the second rule.
[0155] The computing device 410 determines that the ratio between vertex 1 and vertex 2 and vertex 3 and vertex 4 reaches a preset threshold, such as 0.5, based on vertex 1, vertex 2, vertex 3, and vertex 4 that have been assigned the first value. Then, the computing device 410 assigns 1 as the first value to the remaining vertices 5 and 6 in the initial block according to the third rule.
[0156] In this embodiment, the computing device 410 assigns first values to the vertices in the aggregate graph in sequence according to the partitioning situation and the assignment rule, thereby converting the binary partitioning problem into a one-dimensional continuous layout problem, and performing a linear solution on the one-dimensional feature according to the first value, thereby avoiding the problem of low partitioning quality of the circuit to be partitioned due to the use of random seeds when partitioning in the binary partitioning problem, thereby improving the partitioning quality of the multiple blocks to be partitioned.
[0157] The following shows a possible implementation method for constructing and solving the above objective function. The first value of the vertex can be called the first coordinate; the second value of the vertex can be called the second coordinate. First, the computing device 410 determines the coordinates of the hyperedge b according to the first coordinates of each vertex. The coordinates of the hyperedge are obtained by weighting the coordinates of all the vertices of the hyperedge it represents, for example:
[0158] x v′ =∑ ∑∈h (w(v)·x v ) / ∑ v∈h w(v) Formula 10
[0159] Among them, x v′ represents the coordinates of the hyperedge v′, w(v) represents the weight of vertex v, and x v Represents the coordinates of vertex v.
[0160] Next, the computing device 410 may compute the HPWL of the hyperedge b according to the coordinates of the hyperedge b and the first coordinates of the vertices included in the hyperedge b.
[0161] For example, Fig. 9 As shown, Fig. 9 A schematic diagram of image conversion provided by the present application. For the convenience of calculation, the computing device 410 converts the above-mentioned aggregate graph into a star graph, that is, each hyperedge b in the aggregate graph is converted into a vertex, and the vertex is connected to each vertex included in the hyperedge b. The definition of the star graph G(V′, E′) is as follows:
[0162] V′=V∪E, E′={(v, h)|v∈h, h∈E} Formula 11
[0163]
[0164] Among them, V′ represents the vertices in the star graph, E′ represents all hyperedges b in the star graph, h represents a hyperedge b in the star graph, w(e′) represents the weight of the edge connecting the vertex corresponding to the hyperedge b in the star graph and the vertices included in the hyperedge b, w(h) represents the weight of the hyperedge h, and |h| represents the number of vertices in the hyperedge h.
[0165] like Fig. 9 As shown, the point set of the aggregate graph is V = {v1, v2, ..., v5}, the edge set is E = {h1, h2}, the point set of the converted star graph is V′ = {h1, h2, v1, v2, ..., v5}, and the computing device 410 takes the difference between the coordinates of vertices v3, v4 and v5 in the hyperedge h2 and the coordinates of the hyperedge h2 and then performs weighted summation to obtain the HPWL corresponding to the hyperedge h2, as follows:
[0166]
[0167]
[0168] Among them, e′=(v, v′), v′ is the neighboring point of vertex v, that is, the vertex corresponding to the hyperedge b in the star graph, and e′ represents the weight of the edge connecting vertex v and v′.
[0169] Finally, the computing device 410 determines the second coordinate of the vertex when the sum of the lengths of the multiple semi-perimeter lines corresponding to the multiple hyperedges b is the smallest according to the hyperedge b and the multiple vertices included in the hyperedge b, which can be converted into solving the following objective function:
[0170]
[0171] From formula 8, ti(x) can be expressed as follows:
[0172]
[0173] Among them, the initial penalty parameters are as follows:
[0174]
[0175] Based on the objective function obtained above, the computing device 410 uses a nonlinear optimization algorithm, such as Nesterov, to solve the objective function. A possible example of solving the objective function is provided below.
[0176] First, the computing device 410 takes the partial derivative of the objective function and obtains For HPWL(x1, x2, ..., x n ) Taking partial derivatives we get:
[0177]
[0178] To find the partial derivative of the penalty function, we can first calculate and , and for any other vertex v i , the partial derivative of the Poisson equation is estimated as follows:
[0179]
[0180] Next, the computing device 410 uses the Hessian matrix H′ f For the gradient vector Processing is performed to obtain the preprocessed gradient vector It can be expressed as follows:
[0181]
[0182] Here, |E1| represents the number of hyperedges associated with vertex v1.
[0183] Then, the computing device 410 calculates the step length α k , which can be expressed as follows:
[0184]
[0185] Among them, k represents the iteration round, s and t are step-limiting parameters, which can be arbitrary constants and are used to limit the step size to a reasonable range.
[0186] Finally, the computing device 410 updates the master solution u k 、Reference solution v k and parameter a k ,For example:
[0187]
[0188]
[0189] v k+1 =u k+1 +(a k -1)(u k+1 -u k ) / a k+1 Formula 24
[0190] The above calculation process only shows one round of the multiple rounds of calculation. After each round of calculation, the computing device 410 will also update the multiplier μ k and penalty parameter λ k ,For example:
[0191]
[0192] ΔHPWL ref =10%·HPWL0 Formula 26
[0193] λ k =μ k ·λ k-1 Formula 27
[0194] The computing device 410 continuously iterates the calculation by the above-mentioned calculation method until the number of iterative calculations reaches a preset number and the equilibrium condition between the partition block 1 and the partition block 2 is satisfied, or the main solution u k The partition block 1 and the partition block 2 in the partition block 1 satisfy the set balance condition and the sum of the semi-perimeter lengths of multiple hyperedges in the partition block 1 and the partition block 2 is the smallest, and then the main solution u under the above conditions is output. k The preset number of times can be 2000 or 3000 times, etc. The balance condition is as follows:
[0195] |c(P1)-c(P2)|>2ε[c(P1)+c(P2)] Formula 28
[0196] in, Represents the sum of the weights of vertices whose coordinates are less than or equal to 1. Represents the sum of the weights of vertices whose coordinates are greater than 1.
[0197] The above utilization and The value of approximates the gradient of each vertex with respect to the one-dimensional Poisson equation, which can effectively reduce the complexity, that is, solving The time complexity of approximate gradient is reduced from O(n 2 ) is reduced to O(n).
[0198] In the first round of calculation, u0=v0 represents the initial layout, a0=1, and the multiplier μ0=1.04. k This is the second value of each vertex in the aggregate graph, that is, the second coordinate. The main solution u k The expression form of can be a vector, each value in the vector corresponds to the second coordinate of a vertex, that is, each vertex belongs to partition block 1 or partition block 2, thereby partitioning the circuit to be divided into the first partition block and the second partition block.
[0199] In this embodiment, the computing device 410 aggregates the circuits to be divided to obtain an aggregate graph. The aggregate graph has a reduced amount of data compared to the netlist information, and the subsequent computing device 410 solves according to the first value of the vertex in the aggregate graph, which can improve the processing efficiency. And the computing device 410 optimizes the first value of the vertex based on the set graph partitioning feature to obtain the second value, and divides the circuit to be divided into the first partition block and the second partition block according to the second value, so that the sum of multiple HPWLs of the first partition block and the second partition block of the circuit to be divided indicated by the second value of the vertex is minimized, which is equivalent to minimizing the number of cut edges of the circuit to be divided, thereby improving the partition quality of the circuit to be divided.
[0200] For Figure 7 The calculation method and the above-mentioned solution process are shown in Table 1 below. An example of the comparison between the circuit partitioning method used in this application and the partitioning result of KaHyPar is given:
[0201] Table 1
[0202]
[0203] It can be seen that the circuit partitioning method provided in the embodiment of the present application is used to partition the circuit to be partitioned. Compared with the number of cut edges of the circuit to be partitioned by KaHyPar, the number of cut edges is reduced, and the quality of the multiple partition blocks obtained by partitioning is better.
[0204] Since the present application has converted the edge cutting weight into HPWL, the HPWL calculated by the computing device 410 is equivalent to the number of edge cutting in Table 1 above.
[0205] Since the above S710 is only described by taking the computing device 410 executing the random algorithm as an example, in this embodiment, the computing device 410 can also execute the random algorithm, the packing algorithm, the breadth-first search algorithm, the greedy graph growth algorithm, and the label transfer algorithm for a preset number of times. The computing device 410 will obtain the second value of the corresponding vertex according to each type of initial partitioning method mentioned above, and then obtain multiple HPWLs. The computing device 410 determines the minimum HPWL from the multiple HPWLs, and the minimum HPWL indicates the first partition block and the second partition block with the best partitioning.
[0206] For example, the computing device 410 executes the initial partitioning method 200 times, and the 200 initial partitioning methods include 10 different partitioning algorithms, and each algorithm is executed 20 times. The 10 algorithms can be summarized into 5 types, namely, random algorithm, box packing algorithm, breadth-first search algorithm, greedy graph growth algorithm, and label transfer algorithm. Then the computing device 410 can obtain 200 second values and 200 HPWLs corresponding to the vertices, and the computing device 410 determines the minimum HPWL from the 200 HPWLs, and then the computing device 410 divides the circuit to be divided into the first partition block and the second partition block according to the second value of the vertex corresponding to the minimum HPWL.
[0207] After step S720, the computing device 410 may use the FM algorithm to process the first partition block or the second partition block to which the vertex belongs, optimize the second value of the vertex, and then determine whether the optimized vertex belongs to the first partition block or the second partition block.
[0208] After the computing device 410 obtains the first partition block and the second partition block, the computing device 410 de-condenses the vertices in the first partition block and the second partition block according to the first partition block and the second partition block determined above to obtain a refined graph. A vertex in the refined graph represents an electronic device. Figure 2 As shown, the computing device gradually converts one or more electronic devices represented by a vertex in the first partition block and the second partition block into a vertex corresponding to only one electronic device, thereby determining the accurate partition of each electronic device.
[0209] In the above-mentioned division process, the first division block or the second division block of each electronic device is determined according to the first division block or the second division block to which the vertex belongs. The following provides a possible implementation method: the computing device 410 releases the condensed vertices, such as vertex u and vertex v, in the reverse order of the condensation. If vertex u or vertex v is a boundary point, the boundary point is set as a movable vertex. The computing device 410 selects the vertex with the largest movement gain value from multiple movable vertices to move, and locks the vertex, that is, the vertex is no longer moved in this round of movement. In a new round of movement, the computing device 410 updates the gain value of the movable vertex and sets the new boundary point as a movable vertex. If there is no movable vertex or the gain value of the movable vertex is moved for a set number of consecutive times, it will indicate that it has been converted to one vertex corresponding to one electronic device, thereby obtaining an accurate division of each electronic device, that is, the electronic device belongs to division block 1 or division block 2.
[0210] Among them, the boundary point is used to indicate two vertices in different partition blocks and connected by a line, such as Figure 1 The above gain values are used to indicate the change of the edge weight before and after moving a vertex, that is, the change of the HPWL of the hypergraph.
[0211] In one possible scenario, the computing device 410 uses a local optimization algorithm, such as the FM algorithm, to re-optimize the refinement graph to obtain accurate division of each electronic device.
[0212] Regarding the process of the computing device 410 obtaining the aggregate graph according to the netlist information, a possible implementation method of vertex condensation is given below, such as Fig.10 As shown, Fig.10 A schematic diagram of the vertex condensation process provided for this application, Figure 8 S810 may include the following steps S1010 to S1020.
[0213] S1010. The computing device 410 converts the netlist information of the circuit to be divided into a hypergraph.
[0214] Exemplarily, the computing device 410 uses vertices in the hypergraph to replace electronic devices in the circuit to be divided, the lines between the vertices are used to represent the line connections between the electronic devices, and the hyperedge a in the hypergraph is used to represent the netlist in the netlist information.
[0215] S1020. The computing device 410 iteratively condenses the vertices in the hypergraph according to the rating function until the condensed hypergraph meets the set exit condition, thereby obtaining an aggregate graph.
[0216] In the initial state, all vertices are set to the uncontracted state, and the two vertices after contraction are marked as the contracted state.
[0217] Exemplarily, the computing device 410 randomly accesses vertices in the hypergraph, such as vertex 1. The computing device 410 selects the vertex with the highest rating coefficient with vertex 1 from other vertices in the hypergraph according to vertex 1, the rating function shown in Formula 8, and the condensation condition, and then condenses vertex 1 with the vertex with the highest rating coefficient with vertex 1.
[0218] In a possible scenario, during a round of contraction, the two vertices to be contracted have not been contracted in this round. If the vertex is in a contracted state when the computing device 410 randomly accesses the vertex, the vertex is skipped. After traversing all vertices, the computing device 410 resets the state of all vertices to an uncontracted state for the next round of contraction, and records the number of vertices at this time as the initial number of vertices for the next round of contraction.
[0219] In the current round of condensation, after the computing device 410 has visited all vertices, it is determined whether the hypergraph satisfies the set exit condition. If so, the hypergraph obtained by the condensation is used as the aggregate graph.
[0220] If not satisfied, the computing device 410 condenses the hypergraph obtained from this round of condensation again.
[0221] The exit condition is: in the current round of contraction, after the computing device 410 has visited all vertices, the number of vertices in the hypergraph is equal to the initial number of vertices in the current round of contraction, and the hypergraph cannot be contracted, or the number of vertices included in the hypergraph is less than a set value, such as 320 or 300.
[0222] In the above-mentioned condensation process, if parallel edges are generated, that is, the vertices contained in the two hyperedges are exactly the same, the computing device 410 deletes one of the parallel edges and sets the weight of the other parallel edge to the sum of the weights of the two parallel edges. If a single-point edge is generated, that is, a hyperedge contains only one vertex, the computing device 410 directly deletes the single-point edge.
[0223] In this embodiment, the computing device 410 condenses the circuits to be divided to obtain an aggregate graph, which has a smaller amount of data than the netlist information, and the computing device 410 subsequently processes according to the aggregate graph, which can improve the efficiency of dividing the circuits to be divided.
[0224] In a possible implementation, after the computing device 410 condenses two vertices in the hypergraph each time, the hypergraph is updated in time, and the condensed content is recorded, that is, which two vertices are condensed to obtain a new vertex in the current round of condensation, so that a hypergraph that changes continuously with the condensation process can be obtained. The computing device 410 can display the continuously changing hypergraph and the first partition block and the second partition block obtained above, or the computing device 410 sends the continuously changing hypergraph and the first partition block and the second partition block obtained above to the terminal 420 for display.
[0225] In this embodiment, the computing device displays the first partition block and the second partition block, so that the user can observe the circuit partition situation in time, and while realizing visualization, the user is prevented from adjusting the first partition block and the second partition block.
[0226] Combined with the above Figures 1 to 10 , describes in detail the circuit partitioning method provided by the present application, and will be combined with Fig.11 , Fig.11 A schematic diagram of a circuit division device provided in this application Figure 1 , describes the circuit partitioning device provided by the present application. The circuit partitioning device 1100 can be used to implement the functions of the computing device 410 in the above method embodiment, and thus can also achieve the beneficial effects possessed by the above method embodiment.
[0227] like Fig.11 As shown, the circuit division device 1100 includes an acquisition module 1110 and a division module 1120. The circuit division device 1100 is used to implement the above Figures 6 to 10 In one possible example, the circuit partitioning device 400 is used to implement the circuit partitioning method described above, and the specific process includes the following process:
[0228] The acquisition module 1110 is used to acquire the netlist information of the circuit to be divided, where the netlist information is used to indicate: association information between multiple electronic devices included in the circuit to be divided.
[0229] The partitioning module 1120 is used to partition the circuit to be partitioned into a first partition block and a second partition block according to the graph partitioning feature and the netlist information. The graph partitioning feature includes a hyperedge and a semi-perimeter line length corresponding to the hyperedge, the hyperedge includes at least two electronic devices, the semi-perimeter line length is used to indicate half the perimeter of a rectangle surrounding the corresponding hyperedge, and the sum of the semi-perimeter line lengths corresponding to the multiple hyperedges included in the first partition block and the second partition block is the smallest.
[0230] To further achieve the above Figures 6 to 10 The present application also provides a circuit partitioning device, such as Fig.12 As shown, Fig.12 A schematic diagram of a circuit division device provided in this application Figure 2 The circuit partitioning device 1100 also includes a determination module 1130 and a display module 1140.
[0231] Among them, the determination module 1130 is used to perform weighted summation on the first values of at least two vertices included in the hyperedge in the aggregate graph to obtain the coordinates of the hyperedge in the aggregate graph; based on the absolute value of the difference between the coordinates of the hyperedge and the first coordinates of the vertices included in the hyperedge, determine the semi-perimeter line length corresponding to the hyperedge.
[0232] The display module 440 is configured to display the first partition block and the second partition block.
[0233] In a possible example, the acquisition module 1110 , the division module 1120 , the determination module 1130 , and the display module 1140 may all be implemented by software or by hardware.
[0234] For example, the following takes the acquisition module 1110 as an example to introduce the implementation of the acquisition module 1110. Similarly, the implementation of the division module 1120, the determination module 1130, and the display module 1140 can refer to the implementation of the acquisition module 1110.
[0235] As an example of a software functional unit, the acquisition module 1110 may include code running on a computing instance, wherein the computing instance may be a physical host (computing device), a virtual machine, a container, and the like.
[0236] For example, the computing instance may be one or more. For example, the acquisition module 1110 may include codes running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers for running the code may be distributed in the same region or in different regions.
[0237] For example, multiple hosts / virtual machines / containers for running the code may be distributed in the same availability zone (AZ) or in different AZs, each AZ including a data center or multiple geographically close data centers. Typically, a region may include multiple AZs.
[0238] Similarly, multiple hosts / virtual machines / containers used to run the code can be distributed in the same virtual private cloud (VPC) or in multiple VPCs. Usually, a VPC is set up in a region. For cross-region communication between two VPCs in the same region and between VPCs in different regions, a communication gateway needs to be set up in each VPC to achieve interconnection between VPCs through the communication gateway.
[0239] As an example of a hardware functional unit, the acquisition module 1110 may include at least one computing device, such as a server, etc. Alternatively, the acquisition module 1110 may also be a device implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.
[0240] The multiple computing devices included in the acquisition module 1110 can be distributed in the same region or in different regions. The multiple computing devices included in the acquisition module 1110 can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in the acquisition module 1110 can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.
[0241] It should be noted that, in other embodiments, the acquisition module 1110 can be used to execute any step in the circuit partitioning method, and the partitioning module 1120 can be used to execute any step in the circuit partitioning method. The steps that the acquisition module 1110, the partitioning module 1120, the determination module 1130, and the display module 1140 are responsible for implementing can be specified as needed, and the acquisition module 1110, the partitioning module 1120, the determination module 1130, and the display module 1140 respectively implement different steps in the circuit partitioning method to realize all functions of the circuit partitioning device.
[0242] It is worth noting that the computing device 410 of the aforementioned embodiment may correspond to the circuit partitioning device 400, and may correspond to executing the method according to the embodiment of the present application. Figures 6 to 10 The corresponding corresponding subjects, and the operations and / or functions of each module in the circuit partitioning device 400 are respectively to achieve Figures 6 to 10 For the sake of brevity, the corresponding processes of each method in the corresponding embodiments are not repeated here.
[0243] in addition, Fig.11 or Fig.12 The circuit division device 400 shown can also be implemented by a communication device, where the communication device may refer to the computing device 410 in the aforementioned embodiment, or, when the communication device is a chip or a chip system applied to the computing device 410, the circuit division device 400 can also be implemented by a chip or a chip system.
[0244] An embodiment of the present application also provides a chip system, which includes a control circuit and an interface circuit. The interface circuit is used to obtain a circuit partitioning request, and the control circuit is used to implement the function of the computing device 410 in the above method.
[0245] In a possible design, the chip system further includes a memory for storing program instructions and / or data. The chip system may be composed of a chip, or may include a chip and other discrete devices.
[0246] The present application also provides a computing device. Fig.13 As shown, Fig.13 The present application provides a schematic diagram of a computing device structure, wherein the computing device 1300 includes: a bus 1302, a processor 1304, a memory 1306, and a communication interface 1308. The processor 1304, the memory 1306, and the communication interface 1308 communicate with each other via the bus 1302. The computing device 1300 may be a server or a terminal device. It is worth noting that the present application does not limit the number of processors and memories in the computing device 1300.
[0247] The bus 1302 may be, but is not limited to: a PCIe bus, a universal serial bus (USB), or an inter-integrated circuit bus (I2C), an EISA bus, an UB, a CXL, a CCIX, etc. The bus 1302 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.13 The bus 1302 may include a path for transmitting information between various components of the computing device 1300 (eg, the memory 1306, the processor 1304, and the communication interface 1308).
[0248] The processor 1304 may include any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
[0249] The memory 1306 may include a volatile memory, such as a random access memory (RAM). The memory 1306 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).
[0250] The memory 1306 stores executable program codes, and the processor 1304 executes the executable program codes to respectively implement the functions of the acquisition module and the division module, thereby implementing the circuit division method. That is, the memory 1306 stores instructions for executing the circuit division method.
[0251] Alternatively, the memory 1306 stores executable codes, and the processor 1304 executes the executable codes to respectively implement the functions of the acquisition module and the division module, thereby implementing the circuit division method. That is, the memory 1306 stores instructions for executing the circuit division method.
[0252] The communication interface 1308 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 1300 and other devices or communication networks.
[0253] The embodiment of the present application also provides a computing device cluster. The computing device cluster includes at least one computing device 1300. The computing device can be a server, a lithography machine, for example, a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device 1300 can also be a terminal device such as a desktop computer, a laptop computer, or a smart phone.
[0254] like Fig.14 As shown, Fig.14The present application provides a schematic diagram of a computing device cluster structure, the computing device cluster includes at least one computing device 1300. The memory 1306 in one or more computing devices 1300 in the computing device cluster may store the same instructions for executing the image generation method.
[0255] In some possible implementations, one or more computing devices in the computing device cluster may be connected via a network, which may be a wide area network or a local area network, etc. Fig.15 A possible implementation is shown. Fig.15 A schematic diagram of a connection method between computing devices provided in this application.
[0256] like Fig.15 As shown, two computing devices 1300A and 1300B are connected via a network, for example, via a communication interface in each computing device.
[0257] The embodiment of the present application also provides a computer program product including instructions. The computer program product may be software or a program product including instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, the at least one computing device executes the circuit partitioning method.
[0258] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by a computing device or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk). The computer-readable storage medium includes instructions that instruct the computing device to perform the circuit partitioning method.
[0259] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instruction is loaded and executed on a computer, the process or function described in the embodiment of the present application is executed in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device or other programmable device. The computer program or instruction may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instruction may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired or wireless means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium, for example, a floppy disk, a hard disk, a tape; it may also be an optical medium, for example, a digital video disc (DVD); it may also be a semiconductor medium, for example, a solid state drive (SSD).
[0260] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements 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 circuit partitioning method, characterized in that: The method comprises: Acquire netlist information of the circuit to be divided, wherein the netlist information is used to indicate: association information between multiple electronic devices included in the circuit to be divided; Dividing the circuit to be divided into a first partition block and a second partition block according to the graph partition feature and the netlist information; Among them, the graph division feature includes a hyperedge and a semi-perimeter line length corresponding to the hyperedge, the hyperedge includes at least two electronic devices, the semi-perimeter line length is used to indicate half the perimeter of a rectangle surrounding the corresponding hyperedge, and the sum of the semi-perimeter line lengths corresponding to multiple hyperedges included in the first division block and the second division block is the smallest.
2. The method according to claim 1, characterized in that The step of dividing the circuit to be divided into a first divided block and a second divided block according to the graph division feature and the netlist information comprises: Determine a first value of each vertex in the aggregate graph of the circuit to be divided corresponding to the netlist information; the first value of the vertex is used to indicate the initial layout of the vertex after the circuit to be divided is divided using an initial division method; the vertex represents one or more electronic devices in the circuit to be divided; Optimizing the first value of the vertex according to a nonlinear algorithm to obtain a second value of each vertex; the objective function of the nonlinear optimization algorithm is the sum of the semi-perimeter line lengths corresponding to the multiple hyperedges included in the circuit to be divided and a penalty function; The vertices whose second values satisfy the condition are divided into the first division block, and the other vertices in the circuit to be divided are divided into the second division block.
3. The method according to claim 2, characterized in that The determining a first value of each vertex in the aggregation graph of the circuit to be divided corresponding to the netlist information includes: According to the netlist information, obtaining the aggregation graph; The aggregate graph is divided by using an initial division method to obtain the division of the vertex; wherein the division is used to indicate: the initial block to which the vertex belongs, and the order in which all vertices in the aggregate graph are added to the initial block; Based on the division situation and the assignment rule, the first value is assigned to the vertices in turn; the assignment rule includes values corresponding to different division situations.
4. The method according to claim 3, characterized in that The initial block includes a first initial block and a second initial block, and the assignment rule includes: According to the order in which all vertices in the circuit to be divided are added to the initial block, determining in sequence whether the vertex belongs to the first initial block or the second initial block; If the vertex belongs to the first initial block, assign a value to the vertex according to a first rule; the first rule is to use a first parameter as a first value of the vertex; If the vertex belongs to the second initial block, assign a value to the vertex according to a second rule; the second rule is to use a second parameter as the first value of the vertex; If the ratio of vertices assigned first values in the first initial block to vertices assigned first values in the second initial block reaches a preset threshold, the unassigned vertices in the initial block are assigned values according to a third rule; the third rule is to use a third parameter as the first value of the unassigned vertices in the initial block.
5. The method according to claim 3 or 4, characterized in that: The step of obtaining an aggregation graph according to the netlist information includes: Converting the netlist information of the circuit to be divided into a hypergraph; According to the set rating function, the vertices in the hypergraph are iteratively condensed until the condensed hypergraph meets the set exit condition, thereby obtaining the aggregate graph; the rating function is used to determine the rating coefficient between two vertices in the hypergraph, and the rating coefficient between the two vertices to be condensed meets the set condensation condition.
6. The method according to any one of claims 2 to 5, characterized in that The method further comprises: Performing a weighted summation on first values of at least two vertices included in the hyperedge in the aggregate graph to obtain coordinates of the hyperedge in the aggregate graph; The semi-perimeter line length corresponding to the hyperedge is determined based on the absolute value of the difference between the coordinates of the hyperedge and the first coordinates of the vertices included in the hyperedge.
7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: The first divided block and the second divided block are displayed.
8. A circuit partitioning device, characterized in that: The device comprises: An acquisition module, used for acquiring netlist information of the circuit to be divided, wherein the netlist information is used for indicating: association information between multiple electronic devices included in the circuit to be divided; A partitioning module is used to divide the circuit to be divided into a first partition block and a second partition block according to a graph partitioning feature and the netlist information; wherein the graph partitioning feature includes a hyperedge and a semi-perimeter line length corresponding to the hyperedge, the hyperedge includes at least two electronic devices, the semi-perimeter line length is used to indicate half the perimeter of a rectangle surrounding the corresponding hyperedge, and the sum of the semi-perimeter line lengths corresponding to multiple hyperedges included in the first partition block and the second partition block is the smallest.
9. The device according to claim 8, characterized in that The partitioning module is specifically used to determine the first value of each vertex in the aggregate graph of the circuit to be partitioned corresponding to the netlist information, and optimize the first value of the vertex according to a nonlinear algorithm to obtain a second value of each vertex, and to classify the vertices whose second values meet the conditions into the first partitioning block, and classify the other vertices in the circuit to be partitioned into the second partitioning block; Among them, the first value of the vertex is used to indicate the initial layout of the vertex after the circuit to be divided is divided using the initial division method; the vertex represents one or more electronic devices in the circuit to be divided, and the objective function of the nonlinear optimization algorithm is the sum of the semi-perimeter line lengths and the penalty function corresponding to multiple hyperedges included in the circuit to be divided.
10. The device according to claim 9, characterized in that The partitioning module is further specifically used to obtain the aggregate graph according to the netlist information, and partition the aggregate graph using an initial partitioning method to obtain the partitioning conditions of the vertices, and, based on the partitioning conditions and assignment rules, sequentially assign the first values to the vertices; the assignment rules include values corresponding to different partitioning conditions; The division situation is used to indicate: the initial block to which the vertex belongs, and the order in which all vertices in the aggregate graph are added to the initial block.
11. The device according to claim 10, characterized in that The initial block includes a first initial block and a second initial block, and the assignment rule includes: According to the order in which all vertices in the circuit to be divided are added to the initial block, determining in sequence whether the vertex belongs to the first initial block or the second initial block; If the vertex belongs to the first initial block, assign a value to the vertex according to a first rule; the first rule is to use a first parameter as a first value of the vertex; If the vertex belongs to the second initial block, assign a value to the vertex according to a second rule; the second rule is to use a second parameter as the first value of the vertex; If the ratio of vertices assigned first values in the first initial block to vertices assigned first values in the second initial block reaches a preset threshold, the unassigned vertices in the initial block are assigned values according to a third rule; the third rule is to use a third parameter as the first value of the unassigned vertices in the initial block.
12. The device according to claim 10 or 11, characterized in that The partitioning module is further specifically used to convert the netlist information of the circuit to be partitioned into a hypergraph, and iteratively condense the vertices in the hypergraph according to a set rating function until the condensed hypergraph meets a set exit condition to obtain the aggregate graph; The rating function is used to determine the rating coefficient between two vertices in the hypergraph, and the rating coefficient between the two vertices to be condensed satisfies the set condensation condition.
13. The device according to any one of claims 9 to 12, characterized in that The device also includes: A determination module is used to perform weighted summation on the first values of at least two vertices included in the hyperedge in the aggregate graph to obtain the coordinates of the hyperedge in the aggregate graph, and determine the semi-perimeter line length corresponding to the hyperedge based on the absolute value of the difference between the coordinates of the hyperedge and the first coordinates of the vertices included in the hyperedge.
14. The device according to any one of claims 8 to 13, characterized in that The device also includes: The display module is used to display the first divided block and the second divided block.
15. A chip, characterized in that: The method comprises a control circuit and an interface circuit, wherein the interface circuit is used to receive netlist information of a circuit to be divided, and the control circuit is used to execute the method according to any one of claims 1 to 7 according to the netlist information of the circuit to be divided.
16. A computing device cluster, characterized in that: include: at least one computing device, each computing device being provided with a processor and a memory; The processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the method according to any one of claims 1 to 7.
17. A computer-readable storage medium, characterized in that: The method comprises computer program instructions, which, when executed by a computing device, perform the method according to any one of claims 1 to 7.
Citation Information
Cited By
Large-scale circuit partitioning method and device based on space filling curve
CN119862844A
Large-scale circuit partitioning method and device based on space-filling curve
CN119862844B
