Multi-layer global routing method considering bus awareness
By introducing wiring density maps, dynamically adjusting wiring resources and DFS tracking algorithms into VLSI design, bus deviations are optimized, bus wiring timing matching problems are solved, and chip performance and wiring quality are improved.
Patent Information
- Application Number
- CN202210604474.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-31
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2042-05-31
AI Technical Summary
In VLSI design, bus wiring timing matching problems lead to reduced chip performance. The existing global wiring algorithm ignores the existence of the bus, causing the bus delay to expand, and does not differentiate between bus and non-bus wiring, resulting in poor wiring quality.
A multi-layer global wiring method considering bus awareness is proposed. By introducing wiring density map, local dewiring and redistribution model that dynamically adjusts wiring resources, and multi-result tracking algorithm based on DFS, the bus deviation is optimized and the layer based on deviation awareness is designed. Allocation algorithm to significantly reduce bus deviation in 3D wiring schemes.
It implements a global wiring scheme with small bus deviation and high quality, reduces bus delay, improves chip performance, and ensures the quality and efficiency of wiring results.
Smart Images

Figure CN114970442B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of integrated circuit computer-aided design technology, and in particular relates to a multi-layer global wiring method considering bus perception in a very large scale integrated circuit. Background Art
[0002] With the continuous development of industrial manufacturing technology, advanced technology nodes have entered the deep nano era, and the design complexity of chips has increased dramatically. In modern VLSI design, the proportion of bus lines is increasing, and the transmission bus is widely used to transmit parallel signals between functional modules and macros. These signals need to be guaranteed to arrive at the same time, so bus routing is a decisive factor in determining timing and power consumption in VLSI routing. Timing matching is an important bus design constraint in VLSI design. Each signal bit in the same bus needs to transmit the corresponding signal. The line length of the signal bit is usually used as the standard for signal transmission time. If the line length is too long or too short, bus deviation will occur, resulting in poor timing of the chip, thereby greatly reducing the performance of the chip. Global routing can usually be divided into two stages: 2D routing stage and layer allocation stage. The 2D routing stage is to network the multi-layer routing resources and non-bus and bus lines on the 2D plane, and then complete the routing on the 2D plane to obtain an initial 2D routing result.
[0003] The idea of ripping and rerouting is to select certain wire net paths that deteriorate chip performance after completing the initial routing, and then re-route them according to certain rules and update them to the original routing, thereby achieving the purpose of improving the routing quality. The ripping and rerouting routing method is usually used to improve the routing rate of wire nets. On this basis, factors such as timing analysis and the number of through holes have gradually been developed to enable the smooth routing of the wire net while achieving the desired high-quality results. Summary of the invention
[0004] In order to make up for the gaps and deficiencies in the prior art, the present invention proposes a multi-layer global routing method considering bus awareness, the purpose of which is to minimize the total wire length deviation, the total routing rate and the total wire length by optimizing the global routing algorithm.
[0005] The present invention specifically includes the following design process:
[0006] 1. In the process of 2D routing, a routing density map was introduced, and a routing model that controls bus routing through routing density was designed. It can simultaneously consider the routing rate of non-bus and the deviation value of the bus to ensure the quality of the routing results.
[0007] 2. A local wiring rewiring model is proposed to optimize bus deviation by dynamically adjusting wiring resources, effectively reducing bus delay.
[0008] 3. A multi-result tracking algorithm based on DFS is designed to select a low-deviation routing result that sacrifices a small amount of routing line length.
[0009] 4. A deviation-aware layer allocation algorithm is designed to significantly reduce the bus deviation of 3D routing schemes by considering the differences between buses and non-buses.
[0010] As advanced technology nodes enter the deep nano era, the complexity of integrated circuit design becomes more and more complex, and the proportion of buses in the network becomes larger and larger. Bus routing has become a key factor affecting chip performance. The existence of buses is often ignored in existing global routing algorithms, which directly leads to the expansion of bus delay and thus the reduction of chip performance. In addition, the existing work does not distinguish between buses and non-buses for bus routing in the complete routing process. Therefore, the present invention proposes a multi-layer global routing method considering bus perception, including the following key strategies: 1) By introducing a wiring density map, a wiring model that controls bus routing by wiring density is designed to simultaneously consider the routing rate of non-buses and the deviation value of the bus; 2) A local wiring rewiring model that dynamically adjusts wiring resources is proposed to optimize bus deviation and effectively reduce bus delay; 3) A multi-result tracking algorithm based on DFS is designed to obtain multiple routing schemes; 4) A layer allocation algorithm based on deviation perception is designed to significantly reduce the bus deviation of 3D routing schemes. A global routing scheme with small bus deviation and high quality can be obtained.
[0011] The present invention specifically adopts the following technical solutions:
[0012] A multi-layer global routing method considering bus awareness is characterized in that: in the 2D routing stage, the routing information is first compressed onto the 2D routing plane, a topology structure is generated for all wire nets by using the FLUTE algorithm, and an L-shaped routing is first performed on non-buses to obtain a routing density map;
[0013] Based on the wiring density map, a wiring path of the bus is planned using a wiring density-based heuristic search algorithm; then, a rewiring order and a wire removal and rerouting area are determined according to the 2D deviation of the bus and the wiring density map, and a path with a smaller deviation is found for the wire net with a larger deviation under the premise of ensuring that the overflow does not increase, and then a local wire removal and rerouting model that dynamically adjusts the wiring resources is used to dynamically adjust the wiring resources of the bus wire net group with a larger deviation to obtain a wiring solution with a more balanced wire length;
[0014] Then, the routing path is optimized again for the wire nets with large deviations using the DFS-based multi-result tracking algorithm;
[0015] In the layer allocation stage, the priority of routing is first determined according to the 2D routing results, and then a single network layer is allocated to each network according to the priority to obtain a preliminary layer allocation result. Then, according to the deviation value obtained from the preliminary layer allocation plan, the layer allocation order is changed again to shorten the deviation. Then, the layer adjustment and optimization of the bus network group with large deviation is performed to finally obtain the final 3D routing plan.
[0016] The local wiring rewiring model by dynamically adjusting wiring resources specifically adopts the following steps:
[0017] Step A1: sort the bus line network groups according to the line length and the number of signal bits, and select the line network group with a larger deviation value for wire removal;
[0018] Step A2: selecting a plurality of longer and shorter two-terminal wire nets from the bus wire net group with a larger deviation value;
[0019] Step A3: remove these wire nets, and perform multiple wiring on the shortest wire net to obtain a wiring path with appropriate wire length;
[0020] Step A4: Then route the remaining wire nets;
[0021] Among them, the length, shortness, deviation and appropriateness of the wire network are adjusted and determined based on experience;
[0022] The DFS-based multi-result tracking algorithm specifically adopts the following steps:
[0023] Step B1: Select a bus line network group with a large bus deviation, and remove all the lines in the area where it passes;
[0024] Step B2: Use the DFS algorithm to search N routing schemes for a two-terminal net;
[0025] Step B3: after obtaining multiple wiring schemes for a wire net, traverse each wiring scheme in turn to perform subsequent wiring, and so on to obtain multiple final wiring results;
[0026] Step B4: Select the most appropriate wiring solution from among the multiple wiring results.
[0027] Furthermore, the method for generating the wiring density map is specifically as follows: first, in the 2D wiring stage, the pin information of multiple wire nets is projected onto a 2D plane; then, a topological structure is constructed for each wire net using the FLUTE algorithm; then, an initial wiring result is generated through L-type wiring according to the topological structure of the wire net, and finally, a wiring density map is constructed by weighted recording based on the area through which the wiring passes.
[0028] Furthermore, based on the wiring density graph, a wiring density-based heuristic search algorithm is used to plan the wiring path of the bus specifically as follows: after constructing a complete wiring density graph, initial wiring is performed and a heuristic function of an A* algorithm is introduced to evaluate the nodes of the path search.
[0029] Furthermore, in step B3, only part of the network is selected for backtracking traversal.
[0030] Furthermore, in the layer allocation stage, for each line net, an initial layer allocation scheme is obtained according to the current state of the wiring resources; after obtaining the initial layer allocation scheme, the 3D wiring deviation of the line net can be obtained, and the bus deviation can be optimized by re-allocating the layers of the bus line net with serious timing disorder. The detailed steps are as follows:
[0031] Step C1: Remove all wire nets;
[0032] Step C2: Replace D(N) in the following formula with the 3D deviation obtained by the previous layer allocation i )Redetermine the layer allocation order of the line network;
[0033] Line network priority Q(N i ) is calculated as follows:
[0034]
[0035] Among them, each line network N i ∈N, α and β are custom coefficients; P(N i ) is N i Number of pins; L(N i ) is N i 2D wire mesh length; B(N i ) is N i The number of inflection points; D(N i ) is the line network N i The bus deviation is 0 if it is not a bus; bit is the line network N i The number of signals, if not a bus, it is 0;
[0036] Step C3: after determining the layer allocation order, first obtain multiple feasible layer allocation schemes for the first bus line network group through the DFS algorithm, and then perform layer allocation for the second line network group on the multiple results simultaneously, and so on to finally obtain multiple layer allocation schemes;
[0037] Step C4: after obtaining multiple layer allocation schemes, calculating the deviation and line length of each layer allocation scheme;
[0038] Step C5: Select the best layer allocation scheme with small 3D deviation and little line length increase.
[0039] Furthermore, only bus lines with fewer signal bits and larger deviation values are selected to execute step C3.
[0040] An electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the multi-layer global wiring method taking bus awareness into consideration as described above is implemented.
[0041] A computer-readable storage medium stores a computer program, wherein when the program is executed by a processor, the multi-layer global wiring method considering bus awareness as described above is implemented.
[0042] Compared with the prior art, the present invention and its preferred solution include the following key strategies: 1) By introducing a wiring density map, a wiring model that controls bus wiring through wiring density is designed to simultaneously consider the routing rate of non-buses and the deviation value of the bus; 2) A local wiring rewiring model that dynamically adjusts wiring resources is proposed to optimize bus deviation and effectively reduce bus latency; 3) A multi-result tracing algorithm based on DFS is designed to obtain multiple wiring schemes; 4) A layer allocation algorithm based on deviation perception is designed to significantly reduce the bus deviation of the 3D wiring scheme. A global wiring scheme with small bus deviation and high quality can be obtained. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 Schematic diagram of the bus wiring process.
[0044] Figure 2 A global routing grid diagram.
[0045] Figure 3 This is a schematic diagram of the bus wiring model.
[0046] Figure 4 The figure is a schematic diagram of the algorithm flow of an embodiment of the present invention.
[0047] Figure 5 A wiring density diagram is constructed for an embodiment of the present invention, wherein: (a) initial wire net (b) constructed topology (c) L-type wiring (d) wiring density diagram.
[0048] Figure 6 A schematic diagram of bus wiring path selection according to an embodiment of the present invention.
[0049] Figure 7 This is a schematic diagram of local adjustment of the bus wiring path according to an embodiment of the present invention.
[0050] Figure 8 Schematic diagram of the layer allocation process in an embodiment of the present invention, where (a) 2D wiring scheme (b) directed tree (c) wiring pin sequence (d) e1 is allocated to metal layer 1 (3) e1 is allocated to metal layer 3.
[0051] Fig. 9 Detailed description of the invention: (a) 2D wiring scheme; (b) layer allocation scheme 1; (c) layer allocation scheme 2; (d) layer allocation scheme 3. DETAILED DESCRIPTION
[0052] In order to make the features and advantages of this patent more obvious and easy to understand, the following embodiments are specifically described in detail as follows:
[0053] It should be noted that the following detailed descriptions are illustrative and are intended to provide further explanation of the present application. Unless otherwise specified, all technical and scientific terms used in this specification have the same meanings as those commonly understood by those skilled in the art to which the present application belongs.
[0054] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0055] like Figure 1-Figure 9 As shown, based on the improvement of the prior art, the overall solution of the multi-layer global routing method considering bus awareness provided by this embodiment includes the following contents:
[0056] 1. Bus wiring process:
[0057] In the VLSI physical design and routing stage, the routing area of the chip is distributed on multiple metal layers. The overall routing usually divides each layer into several rectangles of the same size. The 2D routing stage is to network the multi-layer routing resources and non-bus and bus lines on the 2D plane, and then complete the routing on the 2D plane to obtain an initial 2D routing result, such as Figure 1 (b) shows a 2D routing scheme for a bus. However, due to limited routing resources, if the allocation of bus and non-bus routing resources cannot be balanced and the routing method is too single, the 2D routing scheme will be too long or the bus timing will be too poor, resulting in a 3D routing scheme with low quality obtained by subsequent layer allocation. Therefore, it is worth exploring the routing algorithm that considers bus timing in the 2D routing stage.
[0058] The layer assignment phase assigns all edges of the 2D routing scheme to the appropriate metal layer according to the specific routing directions specified by different metal layers. Figure 1 (b) The 2D wiring scheme is assigned to layers to obtain Figure 1(c) is the final wiring result, where the dotted lines represent through-holes, which are used to connect the wires on different layers. However, too many through-holes will lead to timing disorder. It can be seen that if the layer allocation method only considers the 3D line length and the wiring sequence selection does not distinguish between non-bus and bus, the final result will lead to too many through-holes and too large 3D deviation.
[0059] 2. Global wiring process:
[0060] An example of global routing is represented by defining a grid graph G = (V, E), such as Figure 2 As shown, the multi-layer wiring area containing obstacles is divided into rectangles of the same size, which are defined as wiring units G-cells, where each vertex v∈V represents a wiring unit G-cell in the grid, and each wiring unit has pins and obstacles, where each e∈E represents the common boundary of two adjacent G-cells. For each edge e∈E, there is a capacity c e To represent the number of routable routes on the common boundary. At the same time, given the non-bus line net set N = {N 1 ,N 2 ,…,N m}, for each line net there is a set of pins P = {p 1 ,p 2 ,…,p k}.
[0061] 3. Bus deviation calculation:
[0062] This embodiment introduces a bus network into the wiring network based on the traditional global wiring model. For a bus, a bus pin group is represented by a combination of multiple pins. It has p bus pin groups and each pin group has r pins. Figure 3 In the example shown, there are three bus pin groups, each of which contains four pins. Pins with the same signal bits in each of the pin groups need to be interconnected.
[0063] When the lengths WL of the interconnected pins between two bus pin groups are inconsistent, the signal transmission time will be inconsistent, which will cause bus deviation D n In addition, due to the different wiring stages, WL and D n The calculation method can be divided into 2D stage and 3D stage as shown below:
[0064]
[0065]
[0066] in represents the routing path from the source pin group to the jth signal bit of the i-th sink pin group, e represents the edge that crosses two adjacent G-cells in the path, and E cost represents the routing cost of each edge; V cost represents the through hole cost, e∈e z Indicates whether the edge crosses the layer.
[0067]
[0068]
[0069] in represents the wiring cost of the path with the largest wiring cost from the source pin group to the i-th sink pin group, p-1 represents the sink pin group, and r represents the number of signal bits.
[0070] The main goal of the present invention is to minimize the total bus deviation (TD) and achieve higher routability during the routing of bus lines and non-bus lines. The calculation method of TD is as follows:
[0071]
[0072]
[0073] Where n is the number of buses.
[0074] 4.Overall process description:
[0075] The overall algorithm flow of this embodiment is as follows: Figure 4As shown in the figure, in the 2D routing stage, the routing information is first compressed onto the 2D routing plane, and the topology structure of all the wire nets is generated by the FLUTE algorithm. Based on this, a simple L-shaped routing is first performed on the non-bus to obtain a routing density map. Based on the routing density map, a heuristic search algorithm based on routing density is used to effectively plan the routing path of the bus. Since the number of buses is much lower than the number of non-buses, the line length will only increase slightly. Next, the rewiring order and the wire removal and rewiring area are determined according to the 2D deviation of the bus and the routing density map. Under the premise of ensuring that the overflow does not increase, a path with a smaller deviation is found for the wire net with a larger deviation. Then, a local wire removal and rewiring model that dynamically adjusts the routing resources is used to dynamically adjust the routing resources of the bus wire net group with a larger deviation to obtain a routing solution with a more balanced line length. Then, the routing path is optimized again for the wire net with a larger deviation using a multi-result tracking algorithm based on DFS to better improve the routing quality. In the layer allocation stage, the routing priority is first determined based on the 2D routing results. Then, a single network layer is allocated to each network based on the priority to obtain a preliminary layer allocation result. Then, based on the deviation value obtained from the preliminary layer allocation plan, the layer allocation order is changed again to shorten the deviation. Subsequently, the bus network group with large deviations is layer adjusted and optimized to obtain the final 3D routing plan.
[0076] 5. Algorithm Overview:
[0077] (1) Wiring density diagram
[0078] In the entire global routing process, the result of the initial routing determines the routing quality and the required CPU time, the initial topology of the routing net and the initial 2D deviation. Therefore, considering factors such as bus 2D deviation and bus length, this embodiment proposes a bus routing algorithm that considers non-bus routing density, and uses routing density to guide bus routing in the initial routing stage, which can effectively reduce the bus deviation of subsequent wire removal and rewinding. In addition, since the number of bus nets is far less than that of non-bus nets, the length of the net will not increase significantly.
[0079] like Figure 5 As shown in (a), in the implementation process, the pin information of multiple wire nets is first projected onto the 2D plane in the 2D routing stage. Figure 5 The two groups of pins in (a) represent two groups of nets. Then, for each net, the FLUTE algorithm is used to construct Figure 5 (b) The topology shown in FIG. 1 is then generated by L-type wiring according to the topology of the wire network. Figure 5 (c) shows the initial wiring result, where the two line segments connecting the two pins represent two possibilities of L-shaped wiring. Finally, the wiring density map is constructed by weighted recording according to the area passed by the wiring, as shown in Figure 5As shown in (d), the priority of the area passed through twice in the subsequent routing will be greatly reduced, ensuring that the subsequent bus routing will not produce too much overflow.
[0080] After constructing the complete wiring density graph, the initial wiring is performed and the heuristic function of the A* algorithm is introduced to evaluate the nodes of the path search, such as Figure 6 As shown in the figure, the initial bus routing previously only considers L-shaped routing, which will pass through multiple overlapping routing areas. This will cause a lot of overflow after the initial routing, and bring a lot of resource waste in the subsequent wiring removal and re-routing. Therefore, after constructing a complete wiring density map, it is used as a basis for guiding routing, such as Figure 5 The original initial bus wiring will pass through multiple overlapping areas. Although the re-planning of the wiring density map will increase the length of some lines, the subsequent wiring removal and re-wiring will greatly reduce the difficulty of wiring removal and re-wiring and the bus deviation.
[0081] (2) Dynamically adjust local wiring resources
[0082] After discovering that the deviation is affected by the line difference between the longest and shortest nets in a group of buses, we tried to shorten the length of the longest net, but found that it was difficult and ineffective to shorten the length of the wiring resources alone because the wiring sequence was late. Therefore, this embodiment considers reallocating resources to achieve the purpose of shortening the longest bus net and lengthening the shortest net at the same time. The steps for local adjustment of the net are as follows:
[0083] Step 1: Sort the bus line network groups according to line length and signal bit number, and select the line network group with larger deviation value to remove the line.
[0084] Step 2: Select multiple two-end wire nets, which are longer and shorter, from the bus wire net group with a larger deviation value.
[0085] Step 3: Remove these wire nets and perform multiple wiring on the shortest wire net to obtain a wiring path with appropriate wire length.
[0086] Step 4: Then route the remaining nets.
[0087] Since the shortest wiring path will free up multiple key wiring resources after selecting other wiring lines, the final wiring of other signal bits can have a probability of producing a chain reaction, reducing the length of the remaining wiring lines to achieve the purpose of optimizing the deviation.
[0088] by Figure 7 The following example illustrates the local adjustment of the wire network. The numbers in the figure represent the number of wire networks that can be used. Figure 7As shown in the left figure, the original bus wiring result is due to limited wiring resources. After the wire net of signal position 3 is laid out, the wire nets of other signal positions need to detour to reach the destination, so the deviation is large. Substituting into the deviation calculation formula, the original deviation of the bus line group is (5-3)+(5-3)+(11-3)=12. After re-routing the wiring of signal position 3, it is found that compared with the previous wiring, signal position 1 has other wiring methods such as Figure 7 As shown in the figure on the right. Changing its routing path will cause the subsequent routing to have a shorter routing path due to the vacancy of its key routing resources, and eventually become Figure 7 The result shown in the right figure has a deviation value of (5-5)+(5-5)+(9-5)=4, indicating that the wiring deviation value can be greatly reduced compared with before.
[0089] (3) Multi-result tracking algorithm based on DFS
[0090] According to the DFS algorithm, the characteristics of multiple routing results can be obtained. Then the path optimization steps considering the length matching of the line length are as follows:
[0091] Step 1: First, select the bus line network group with relatively large bus deviation, and remove all the lines in the area where it passes;
[0092] Step 2: For a two-terminal network, use the DFS algorithm to search for N routing solutions. DFS can explore each branch as much as possible without going back before backtracking. After visiting the target node, multiple solutions can be found by backtracking.
[0093] Step 3: After obtaining multiple routing schemes for a network, traverse each routing scheme in turn for subsequent routing. This process can be used to obtain multiple final routing results. Since the time complexity of the algorithm is relatively high, generally only some networks are selected for backtracking traversal.
[0094] Step 4: Select the most appropriate wiring solution from the multiple wiring results obtained.
[0095] In this embodiment, the length, deviation and suitability of the wire mesh can be adjusted and determined based on experience.
[0096] The pseudo code of the DFS pathfinding algorithm is shown in the following table:
[0097]
[0098]
[0099] (4) Layer Allocation Algorithm Based on Bias Awareness
[0100] After obtaining the 2D routing results, each edge of each net of the 2D routing results needs to be assigned to different layers, such as Figure 5 As shown first Figure 8 The undirected graph of the 2D wiring scheme shown in a is transformed into Figure 8 The directed tree shown in b and the decision Figure 8 The root node and leaf node of the tree of c are finally Figure 8 d and Figure 8 As shown in e, it will be considered to assign e1 to metal layer 1 or metal layer 3.
[0101] For the single net layer allocation algorithm used in the algorithm of this embodiment, a high-quality net layer allocation sequence can maximize the use of wiring resources and ultimately obtain the best wiring solution. The priority of different net 2D line lengths, number of pins, number of inflection points of wiring results, 2D deviation and other influencing factors is comprehensively calculated. The greater the priority of the net, the more the net needs to be processed first to obtain a high-quality layer allocation wiring solution.
[0102] When the line length of the line network is longer, the resources consumed for layer allocation will definitely be more. If the wiring is performed earlier, some line networks may not be able to complete the layer allocation, resulting in a large number of through-holes. Therefore, the longer the line length, the lower the priority; secondly, if the number of inflection points of the line network is too large, the more through-holes it has, and the more wiring resources it occupies. Therefore, the more through-holes there are, the lower the priority needs to be; if the line network is a bus, and its deviation, the priority of the line network needs to be relatively high; different bus line networks have different numbers of signals. If the length of the line network of a certain signal bit is too long, the more signal bits it has, the larger the deviation value, and the more signals there are, the higher the priority.
[0103] Priority Q(N i ) is calculated as follows:
[0104]
[0105] Among them, each line network N i ∈N, α and β are custom coefficients; P(N i ) is N i Number of pins; L(N i ) is N i 2D wire mesh length; B(N i ) is N i The number of inflection points; D(N i ) is the line network N i The bus deviation (0 if it is not a bus); bit is the line network N i The number of signals (0 if not a bus).
[0106] For each network, an initial layer allocation scheme is obtained according to the current state of routing resources. After obtaining the initial layer allocation scheme, the 3D routing deviation of the network can be obtained. By re-allocating the layers of the bus network with serious timing disorder, the bus deviation can be optimized. The detailed steps are as follows:
[0107] Step 1: Remove all the nets. The purpose of removing all the nets is that during the routing process, it was found that readjusting the layer allocation order according to the 3D routing deviation and then redistributing it can obtain better layer allocation results.
[0108] Step 2: To optimize the bus deviation, the algorithm replaces D(N) in Formula 7 with the 3D deviation obtained from the previous layer allocation. i ) to redetermine the order of layer allocation of the network;
[0109] Step 3: Since the DFS algorithm is usually used to find all solutions, it has high space efficiency. Therefore, after determining the layer allocation order, the DFS algorithm is used to obtain multiple feasible layer allocation schemes for the first bus network group. Then, the layer allocation of the second network group is performed on the multiple results at the same time. This process can eventually obtain multiple layer allocation schemes. Since the algorithm requires more time and space, a bus network with fewer signal bits and larger deviation values is selected for this step.
[0110] Step 4: After obtaining multiple layer allocation schemes, calculate the deviation and line length of each layer allocation scheme;
[0111] Step 5: Select the best layer allocation scheme with small 3D deviation and little line length increase.
[0112] like Fig. 9 As shown in the present embodiment, a 2D wiring scheme can obtain multiple layer allocation algorithms. Although some layer allocation schemes may not produce good results in the line network, they may bring huge wiring benefits in the subsequent wiring performance. However, since it needs to traverse all feasible schemes, its wiring complexity is huge. In the present embodiment, the best three schemes are selected from multiple wiring schemes for the next step of traversal. After multiple traversals, more wiring schemes can be obtained, from which relatively excellent wiring results are selected. The selection criteria are mainly based on deviation, supplemented by 3D line length.
[0113] The above-mentioned program design scheme involving the algorithm provided in this embodiment can be stored in a computer-readable storage medium in a coded form, and implemented in the form of a computer program, and the basic parameter information required for the calculation is input through computer hardware, and the calculation result is output.
[0114] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0115] The present invention is described with reference to flowcharts of methods, devices (apparatus), and computer program products according to embodiments of the present invention. It should be understood that each process in the flowchart, as well as the combination of processes in the flowchart, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process in the flowchart. Figure 1 A device that specifies functions in a process or multiple processes.
[0116] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple functions specified in a flowchart.
[0117] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 The steps of a specified function in a process or multiple processes.
[0118] The above is only a preferred embodiment of the present invention, and does not limit the present invention in other forms. Any technician familiar with the profession may use the above disclosed technical content to change or modify it into an equivalent embodiment with equivalent changes. However, any simple modification, equivalent change and modification made to the above embodiment according to the technical essence of the present invention without departing from the technical solution of the present invention still belongs to the protection scope of the technical solution of the present invention.
[0119] This patent is not limited to the above-mentioned optimal implementation mode. Anyone can derive various other forms of multi-layer global wiring methods that take bus awareness into consideration under the inspiration of this patent. All equal changes and modifications made according to the scope of the patent application of the present invention should be covered by this patent.
Claims
1. A multi-layer global routing method considering bus awareness, characterized in that: In the 2D routing stage, the routing information is first compressed onto the 2D routing plane, and the topology of all the nets is generated by the FLUTE algorithm. Based on this, L-shaped routing is first performed on non-buses to obtain a routing density map. Based on the wiring density map, a wiring path of the bus is planned using a wiring density-based heuristic search algorithm; then, a rewiring order and a wire removal and rerouting area are determined according to the 2D deviation of the bus and the wiring density map, and a path with a smaller deviation is found for the wire net with a larger deviation under the premise of ensuring that the overflow does not increase, and then a local wire removal and rerouting model that dynamically adjusts the wiring resources is used to dynamically adjust the wiring resources of the bus wire net group with a larger deviation to obtain a wiring solution with a more balanced wire length; Then, the routing path is optimized again for the wire nets with large deviations using the DFS-based multi-result tracking algorithm; In the layer allocation stage, the priority of routing is first determined according to the 2D routing results, and then a single network layer is allocated to each network according to the priority to obtain a preliminary layer allocation result. Then, according to the deviation value obtained from the preliminary layer allocation plan, the layer allocation order is changed again to shorten the deviation. Then, the layer adjustment and optimization of the bus network group with large deviation is performed to finally obtain the final 3D routing plan. The local wiring rewiring model by dynamically adjusting wiring resources specifically adopts the following steps: Step A1: sort the bus line network groups according to the line length and the number of signal bits, and select the line network group with a larger deviation value for wire removal; Step A2: selecting a plurality of longer and shorter two-terminal wire nets from the bus wire net group with a larger deviation value; Step A3: remove these wire nets, and simultaneously perform multiple wiring on the shortest wire net to obtain a wiring path with appropriate wire length; Step A4: Then route the remaining wire nets; Among them, the length, shortness, deviation and suitability of the wire mesh are empirical parameters; The DFS-based multi-result tracking algorithm specifically adopts the following steps: Step B1: Select a bus line network group with a large bus deviation, and remove all the lines in the area where it passes; Step B2: Use the DFS algorithm to search N routing schemes for a two-terminal net; Step B3: after obtaining multiple wiring schemes for a wire net, traverse each wiring scheme in turn to perform subsequent wiring, and so on to obtain multiple final wiring results; Step B4: Select the most appropriate wiring solution from among the multiple wiring results.
2. The multi-layer global routing method considering bus awareness according to claim 1, characterized in that: The method for generating the wiring density map is specifically as follows: first, in the 2D wiring stage, the pin information of multiple wire nets is projected onto a 2D plane; then, a topological structure is constructed for each wire net using the FLUTE algorithm; then, an initial wiring result is generated through L-type wiring according to the topological structure of the wire net, and finally, a wiring density map is constructed by weighted recording according to the area through which the wiring passes.
3. The multi-layer global routing method considering bus awareness according to claim 1, characterized in that: Based on the wiring density graph, a wiring density-based heuristic search algorithm is used to plan the wiring path of the bus. Specifically, after constructing a complete wiring density graph, initial wiring is performed and a heuristic function of the A* algorithm is introduced to evaluate the nodes of the path search.
4. The multi-layer global routing method considering bus awareness according to claim 1, characterized in that: In step B3, only part of the network is selected for backtracking traversal.
5. The multi-layer global routing method considering bus awareness according to claim 1, characterized in that: In the layer allocation phase, for each net, an initial layer allocation scheme is obtained based on the current state of routing resources; After obtaining the initial layer allocation scheme to obtain the 3D routing deviation of the line net, the bus deviation is optimized by re-allocating the layers of the bus line nets with serious timing disorder. The detailed steps are as follows: Step C1: Remove all wire nets; Step C2: Replace D(N) in the following formula with the 3D deviation obtained by the previous layer allocation i )Redetermine the layer allocation order of the line network; Line network priority Q(N i ) is calculated as follows: Among them, each line network N i ∈N, α and β are custom coefficients; P(N i ) is N i Number of pins; L(N i ) is N i 2D wire mesh length; B(N i ) is N i The number of inflection points; D(N i ) is the line network N i The bus deviation is 0 if it is not a bus; bit is the line network N i The number of signals, if not a bus, it is 0; Step C3: after determining the layer allocation order, first obtain multiple feasible layer allocation schemes for the first bus line network group through the DFS algorithm, and then perform layer allocation for the second line network group on the multiple results at the same time, and so on to finally obtain multiple layer allocation schemes; Step C4: after obtaining multiple layer allocation schemes, calculating the deviation and line length of each layer allocation scheme; Step C5: Select the best layer allocation scheme with small 3D deviation and little line length increase.
6. The multi-layer global routing method considering bus awareness according to claim 5, characterized in that: Only the bus lines with fewer signal bits and larger deviation values are selected to execute step C3.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the multi-layer global routing method considering bus awareness as described in any one of claims 1-6 is implemented.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the multi-layer global routing method considering bus awareness as described in any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Deviation-driven bus perception overall wiring method
CN110795908A
Overall wiring method based on topological optimization and heuristic search
CN111814420A
Integrated circuit overall wiring method and device and storage medium
CN112883682A
Layer distribution method considering bus time sequence matching
CN113449479A
Skew-driven global wiring method employing bus sensing
WO2021082867A1
