A 3-bend pattern wiring method

By employing the 3-bend mode routing method, which utilizes edge weight prefix sums and parallel computation, the problem of uneven load distribution in global routing is solved, improving computational efficiency and speed, making it suitable for GPU devices.

CN119047411BActive Publication Date: 2026-11-24INSTITUTE OF ELECTRONIC DESIGN AUTOMATION PEKINGUNIVERSITY WUXI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410898450.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2026-11-24
Estimated Expiration
2044-07-05

AI Technical Summary

Technical Problem

Existing global routing methods typically use parallel methods between nets, which suffer from uneven load distribution, resulting in low efficiency of multi-threaded computation and affecting the speed of global routing.

Method used

The 3-bend routing method is adopted. By calculating the edge weight prefix sum of each point, a data structure is constructed, and the minimum value of the 3-bend scheme is calculated in parallel. By utilizing devices with a large number of parallel computing units such as GPUs, the impact of uneven load is reduced and the computing efficiency is improved.

Benefits of technology

Although it increases the total computational load, it greatly reduces the impact of uneven load distribution, making it suitable for parallel computing devices such as GPUs, significantly improving computational efficiency and reducing computation time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119047411B_ABST
    Figure CN119047411B_ABST
Patent Text Reader

Abstract

This invention provides a 3-bend routing method, comprising the following steps: preprocessing the solution region to obtain the minimum value within the continuous intervals corresponding to the nets; constructing a data structure and calculating its minimum value; and finally querying the minimum value of the interval corresponding to each net on the data structure, with parallel querying possible. This 3-bend routing method, while increasing the total computational load, significantly reduces the impact of uneven load distribution, making it more suitable for computing devices with a large number of parallel computing units, such as GPUs, greatly improving computational efficiency and reducing the computation time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of automated integrated circuit design, and more particularly to a 3-bend pattern routing method. Background Technology

[0002] Global routing is a crucial step in physical design. In this step, the program provides coarse-grained routing results. These results guide subsequent detailed routing steps, reducing the time cost of detailed routing and improving its quality.

[0003] Global routing takes far less time than detailed routing, so it is often used in the early stages of physical design to provide quick feedback on the quality of the design and to adjust unreasonable areas in the design.

[0004] As circuits become increasingly large, global routing can take hours or even days. Improving global routing speed without sacrificing quality is a key technical challenge in the current design field.

[0005] Existing global routing methods typically employ parallel approaches between nets. However, due to the significant differences in net problem size, these methods often suffer from uneven load distribution, impacting the efficiency of multi-threaded computation. Furthermore, there is a lack of research on GPU algorithms, highlighting the need for more GPU algorithms to leverage the powerful computing capabilities of GPUs. Summary of the Invention

[0006] In view of the aforementioned shortcomings of the prior art, the technical problem to be solved by the present invention is that existing routing methods typically use inter-net parallel methods, which often suffer from uneven load distribution, low multi-threaded computation efficiency, and thus low global routing speed. The present invention provides a 3-bend mode routing method, which, although increasing the total computational load, significantly reduces the impact of uneven load distribution, making it more suitable for computing devices such as GPUs with a large number of parallel computing units, greatly improving computational efficiency and reducing the computation time.

[0007] To achieve the above objectives, the present invention provides a 3-bend mode routing method, comprising the following steps:

[0008] Calculate the horizontal and vertical edge weights corresponding to each point in the solution domain, and calculate the prefix sum of the edge weights;

[0009] Calculate the cost of the 3-bend routing scheme corresponding to each point using prefix sums;

[0010] Construct a data structure to compute the minimum value of the 3-bend scheme within the specified interval of the algorithm in parallel;

[0011] The algorithm is executed in parallel on the data structure to calculate the minimum value of the interval corresponding to each wire and find the optimal solution.

[0012] Furthermore, in the preprocessing of the solution domain, all the wire mesh regions that need to be solved are labeled, and their corresponding two-dimensional regions are mapped to one dimension. Each wire mesh corresponds to a continuous segment in the one-dimensional sequence whose length is equal to the area of ​​the region corresponding to the wire mesh. The prefix sum of the edge weights is calculated on the one-dimensional sequence, and the optimal 3-bend routing cost corresponding to each point is calculated using the prefix sum. At this time, the answer for each wire mesh is the minimum value in the continuous interval corresponding to the wire mesh.

[0013] Further, the horizontal and vertical edge weights corresponding to each point are calculated, and the prefix sum of the edge weights is calculated, specifically including the following steps:

[0014] For the nets that need to be solved, number each point in the solution area of ​​each net that may be the midpoint of the 3-bend routing scheme in a horizontal or vertical order, according to any net order.

[0015] On this numbering sequence, the prefix sum of the edge weights of the horizontal or vertical edges is solved in parallel.

[0016] Furthermore, the data structure is constructed and its minimum value is found, specifically by calculating a special interval and then calculating the minimum value of the specified special interval.

[0017] Furthermore, constructing the data structure specifically includes the following steps:

[0018] Let d(i,j) have i as its left endpoint and a length of 2. j The interval, i.e., from i to i+2 j The minimum value of the left-closed, right-open interval;

[0019] Selecting i is 2 j The interval containing multiples is a special interval, and then the minimum value of the special interval is calculated.

[0020] Furthermore, the process of finding the answer involves finding the longest special interval that is contained within the query interval and whose left endpoint is the same as the query interval, merging its minimum value into the answer, and then either ending or continuing the query based on the answer until the final answer is found.

[0021] Furthermore, if there are no dependencies or competition between queries for each network, then parallel queries are performed.

[0022] Technical effect

[0023] The 3-bend mode routing method of the present invention, although increasing the total computational load, greatly reduces the impact of uneven load, making it more suitable for computing devices such as GPUs with a large number of parallel computing units, greatly improving computational efficiency and reducing the computation time required.

[0024] The following will further explain the concept, specific structure, and technical effects of the present invention in conjunction with the accompanying drawings, so as to fully understand the purpose, features, and effects of the present invention. Attached Figure Description

[0025] Figure 1 This is a wiring diagram of a 3-bend mode wiring method according to a preferred embodiment of the present invention;

[0026] Figure 2 This is a flowchart illustrating a preferred embodiment of a 3-bend mode routing method according to the present invention.

[0027] Figure 3 This is a schematic diagram illustrating the data structure construction and answer query of a 3-bend mode wiring method according to a preferred embodiment of the present invention. Detailed Implementation

[0028] To make the technical problems to be solved, the technical solutions, and the beneficial effects of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present invention and are not intended to limit the present invention.

[0029] In the following description, specific details, such as particular internal procedures and techniques, are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of the invention. However, those skilled in the art will appreciate that the invention may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of the invention with unnecessary detail.

[0030] This invention provides a 3-bend mode routing method, comprising the following steps:

[0031] Calculate the horizontal and vertical edge weights corresponding to each point in the solution domain, and calculate the prefix sum of the edge weights;

[0032] Calculate the cost of the 3-bend routing scheme corresponding to each point using prefix sums;

[0033] Construct a data structure to compute the minimum value of the 3-bend scheme within the specified interval of the algorithm in parallel;

[0034] The algorithm is executed in parallel on the data structure to calculate the minimum value of the interval corresponding to each wire and find the optimal solution.

[0035] In the preprocessing of the solution domain, all the wire mesh regions that need to be solved are labeled, and their corresponding two-dimensional regions are mapped to one dimension. Each wire mesh corresponds to a continuous segment in the one-dimensional sequence whose length is equal to the area of ​​the region corresponding to the wire mesh. The prefix sum of the edge weights is calculated on the one-dimensional sequence, and the optimal 3-bend routing cost corresponding to each point is calculated using the prefix sum. At this time, the answer for each wire mesh is the minimum value in the continuous interval corresponding to the wire mesh.

[0036] Calculate the horizontal and vertical edge weights corresponding to each point, and calculate the prefix sum of the edge weights. This includes the following steps:

[0037] For the nets that need to be solved, number each point in the solution area of ​​each net that may be the midpoint of the 3-bend routing scheme in a horizontal or vertical order, according to any net order.

[0038] On this numbering sequence, the prefix sum of the edge weights of the horizontal or vertical edges is solved in parallel.

[0039] Constructing a data structure and finding its minimum value involves calculating a specific interval and then calculating the minimum value within that interval. Constructing the data structure includes the following steps:

[0040] Let d(i,j) have i as its left endpoint and a length of 2. j The interval, i.e., from i to i+2 j The minimum value of the left-closed, right-open interval;

[0041] Selecting i is 2 j The interval containing multiples is a special interval, and then the minimum value of the special interval is calculated.

[0042] If there are no dependencies or competition between queries on each network, then parallel queries are performed.

[0043] like Figure 3 As shown, the first row is the minimum value corresponding to each point, which is the minimum value of the interval of length 1, i.e., d(i,0).

[0044] The formula for calculating the minimum value of a special interval is: d(i,j)=min{d(i,j-1),d(i+2)} j-1 ,j-1)}.

[0045] Calculate in ascending order of j; the same j can be calculated in parallel.

[0046] Finally, the process of finding the answer involves finding the longest special interval that is contained within the interval whose left endpoint is the same as the interval to be queried, merging its minimum value into the answer, and then either ending the query or continuing the query based on the answer, until the final answer is found.

[0047] This invention provides a 3-bend routing method, which is a massively parallel 3-bend routing method based on RMQ (Real-Time Queries). The method in this embodiment is implemented through solution region preprocessing, data structure construction, and answer lookup. In the solution region preprocessing step, all the net regions to be solved are labeled, and their corresponding two-dimensional regions are mapped to one dimension. Each net corresponds to a continuous segment in the one-dimensional sequence whose length is equal to the area of ​​the net's corresponding region. The prefix sum of the edge weights is calculated on the one-dimensional sequence, and the optimal 3-bend routing cost corresponding to each point is calculated using the prefix sum. At this point, the answer for each net is the minimum value within the continuous interval corresponding to the net. In the data structure construction step, some specific intervals are selected, and their minimum values ​​are found using a divide-and-conquer method. In the answer lookup step, the minimum value of the interval corresponding to each net is looked up on the data structure. Specifically:

[0048] A. Solution Domain Preprocessing

[0049] Calculate the horizontal and vertical edge weights corresponding to each point in the solution region, and calculate the prefix sum of the edge weights; use the prefix sum to calculate the cost of the 3-bend routing scheme corresponding to each point.

[0050] For the nets to be solved, number each possible intermediate point of a 3-bend routing scheme within the solution region of each net in an arbitrary net order, arranged horizontally (vertically). Each possible intermediate point of a net corresponds to a point in the numbered sequence, and all intermediate points of a net form a continuous segment within the sequence. On this numbered sequence, we can solve for the prefix sum of the edge weights of the horizontal (vertical) edges in parallel. Using the prefix sum, we can calculate the cost of the 3-bend routing scheme corresponding to each point in parallel. The optimal 3-bend routing scheme for each net is the one with the lowest cost among all 3-bend routing schemes corresponding to points within the sub-intervals of the numbered sequence corresponding to the solution region of the net.

[0051] B. Data Structure Construction

[0052] The criterion for determining a special interval is whether i is 2. j The multiples of the original one-dimensional sequence, and whether this interval is a subinterval of the original one-dimensional sequence.

[0053] The criterion for determining whether to continue or end is whether there are any special intervals that have not been calculated.

[0054] For each is 2j For i that is a multiple of , consider the interval [i, i+2 j ) as a special interval, and we calculate the minimum value of all special intervals (if such a special interval exists). When j≥1, the minimum value of interval [i, i+2 j ) can be calculated from the minimum values of smaller intervals [i, i+2 j-1 ) and [i+2 j-1 , i+2 j ). The minimum values of intervals with the same j can be calculated in parallel.

[0055] C. Query the answer. For each net, the query answer is the minimum value of the interval corresponding to the net. Assume the corresponding interval is [L, R), and the following strategy is used to query the answer: each time, find the largest special interval [L, L+2 j that is a sub-interval of [L, R), and merge its minimum value into the answer. If L+2 j =R, the query ends. If L+2 j <R, then solve for [L+2 j , R) using the same method. This method can query the answer within O(log₂(R-L)) steps. Moreover, the queries for each net have no dependencies or competition relationships, so they can be performed in parallel.

[0056] As shown in Figure 1 , a typical 3-bend routing scheme is presented. 3-bend routing is a category of pattern routing, which is characterized by limiting the routing scheme from source to sink to have at most three turns.

[0057] As shown in Figure 2 . First, for the two nets in the figure, arrange them in order, and sequentially label the points in the solution region in order. The two nets correspond to numbers 0-5 and 6-20 respectively. We calculate the edge weight cost between each point and its adjacent right point (e.g., 0-1, 1-2). If there is no point on the right, any value can be assumed, which has no impact on the algorithm. Store this edge weight in a one-dimensional array (0-20), where position i+1 corresponds to the horizontal edge weight between i and the point adjacent to i (e.g., position 1 stores the edge weight of 0-1, position 2 stores the edge weight of 1-2). Calculate the prefix sum of this sequence to obtain the prefix sum sequence d of edge weights in the horizontal direction h . Similarly, calculate the prefix sum sequence d of edge weights in the vertical direction v . Any parallel strategy can be used to calculate edge weights, and the prefix sum algorithm can use any implementation from algorithm libraries. After calculating d h and d v , the edge weight of a horizontal or vertical segment can be directly calculated in a simple way. For example, for Figure 2The weight of the longest horizontal edge between point 6 and point 10 is the sum of the weights of the edges 6-7, 7-8, 8-9, and 9-10, which is d. h (10)-d h (6). For each point, there are at most 4 possible 3-bend schemes with this point as the intermediate turning point. For example, for point 13, the four schemes are (6->8->13->15->20), (6->8->13->18->20), (6->11->13->15->20), and (6->11->13->18->20).

[0058] The cost calculation method for 6->8->13->15->20 is as follows:

[0059] d h (8)-d h (6)+d v (13)-d v (8)+d h (15)-d h (13)+d v (20)-d v (15)

[0060] Cost calculation method for 6->8->13->18->20:

[0061] d h (8)-d h (6)+d v (13)-d v (8)+d v (18)-d v (13)+d h (20)-d h (18)

[0062] Cost calculation method for 6->11->13->15->20:

[0063] d v (11)-d v (6)+d h (13)-d h (11)+d h (15)-d h (13)+d v (20)-d v (15)

[0064] Cost calculation method for 6->11->13->18->20:

[0065] d v (11)-d v (6)+dh (13)-d h (11)+d v (18)-d v (13)+d h (20)-d h (18)

[0066] The algorithm selects the smallest cost solution for that point. It enumerates all 3-bend schemes for all points within each net, aiming to find the one with the minimum edge weight cost (solving global routing problems always involves finding the minimum cost solution under a certain model; if multiple minimum solutions exist, any one is acceptable). For example... Figure 2 The second net needs to select the least costly 3-bend routing scheme from 60 options corresponding to 15 intermediate points (i.e., points 6-20). For each point, first select the least costly of the four schemes with that point as the intermediate turning point. Figure 2 In the lower left corner of the diagram, the cost of the solution with the minimum cost corresponding to each point is marked.

[0067] Next, we will construct the data structure. Figure 3 It shows Figure 2 The corresponding data structure. The first line represents 21 points from 0 to 20. d(i,0) is the minimum cost of the solution corresponding to point i. For network 1, the solution to be found is the smallest of the 6 solutions corresponding to the interval [0,6). For network 2, the solution to be found is the smallest of the 15 solutions corresponding to the interval [6,21). Let d(i,j) be the minimum cost of the solution corresponding to the interval [i,i+2]. j The minimum value of ). Only for i is 2. j Find d(i,j) within the interval of multiples. For j≥1, d(i,j)=min{d(i,j-1),d(i+2)} j-1 ,j-1)};where i is 2 j The interval of multiples is a special interval; j≥1, d(i,j)=min{d(i,j-1),d(i+2)} j-1 The method for calculating the minimum value of a special interval is ,j-1)}. Figure 3 This shows all the d values ​​that need to be computed and their data dependencies. It can be noted that d(i,j) with the same j can be computed in parallel. If there are enough computational cores, then... Figure 3 The structure in the code can complete all calculations within 4 calculations.

[0068] Next, we query the answer using data structures. For wire mesh 1, we first try adding the longest interval with the calculated minimum value and left endpoint 0 to the answer. Figure 3It can be seen that [0,4) is the longest interval with a calculated minimum value and a left endpoint of 0. Therefore, d(0,2) is incorporated into the answer. Next, we try to find the longest interval with a calculated minimum value and a left endpoint of 4. Figure 3 It can be seen that [4,6) is the longest interval with the minimum value calculated using 4 as the left endpoint. d(4,1) is then incorporated into the answer. For mesh 1, the answer is min(d(0,2),d(4,1)). Similarly, for mesh 2, the answer is min(d(6,1),d(8,3),d(16,2),d(20,0)). It is proven that for any interval of length N, the minimum value can always be found in O(log₂N) time using the data structure. Furthermore, it can be noted that queries for different meshes can be computed in parallel.

[0069] Compared to the simple method of directly calculating the minimum value among all solutions in a serial manner, the method of the present invention increases the total amount of computation, but reduces the impact of uneven load, and is more suitable for computing devices such as GPUs with a large number of parallel computing units, which greatly improves the efficiency of computation and reduces the time required for computation.

[0070] The preferred embodiments of the present invention have been described in detail above. It should be understood that those skilled in the art can make numerous modifications and variations based on the concept of the present invention without creative effort. Therefore, all technical solutions that can be obtained by those skilled in the art based on the concept of the present invention through logical analysis, reasoning, or limited experimentation on the basis of existing technology should be within the scope of protection defined by the claims.

Claims

1. A 3-bend mode routing method, characterized in that, Includes the following steps: Calculate the horizontal and vertical edge weights corresponding to each point in the solution domain, and calculate the prefix sum of the edge weights; specifically, this includes the following steps: For the nets that need to be solved, number each point in the solution area of ​​each net that may be the midpoint of the 3-bend routing scheme in a horizontal or vertical order, according to any net order. On this numbering sequence, the prefix sum of the edge weights of the horizontal or vertical edges is solved in parallel; Calculate the cost of the 3-bend routing scheme corresponding to each point using prefix sums; Construct a data structure to compute the minimum value of the 3-bend scheme within a specified interval in parallel. Specifically, this includes calculating the minimum value within the specified interval and then calculating the minimum value within that interval. The data structure construction includes the following steps: remember With i as the left endpoint and length as The interval, i.e. arrive The minimum value of the left-closed, right-open interval; Selected yes The interval of multiples is a special interval, and then the minimum value of the special interval is calculated; Finally, the answer is found by executing the algorithm in parallel on the data structure, calculating the minimum value of the interval corresponding to each wire, and finding the optimal solution; In the preprocessing of the solution domain, all the wire mesh regions that need to be solved are labeled, and their corresponding two-dimensional regions are mapped to one dimension. Each wire mesh corresponds to a continuous segment in the one-dimensional sequence whose length is equal to the area of ​​the region corresponding to the wire mesh. The prefix sum of the edge weights is calculated on the one-dimensional sequence, and the optimal 3-bend routing cost corresponding to each point is calculated using the prefix sum. At this time, the answer for each wire mesh is the minimum value in the continuous interval corresponding to the wire mesh.

2. The 3-bend mode routing method as described in claim 1, characterized in that, The query answer involves finding the longest special interval that is contained within the query interval and has the same left endpoint as the interval to be queried, merging its minimum value into the answer, and ending or continuing the query based on the answer until the final answer is found.

3. The 3-bend mode routing method as described in claim 2, characterized in that, If there are no dependencies or competition between queries on each network, then parallel queries are performed.