Chip wiring method, device, equipment and storage medium

By using the path-based routing resource method in FPGA chips to directly connect or splice pre-generated routing resources, the problem of low efficiency of traditional routing algorithms is solved, achieving faster routing speed, higher efficiency and optimized results.

CN118133765BActive Publication Date: 2024-10-29SUZHOU YIGE TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410210832.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-26
Publication Date
2024-10-29
Estimated Expiration
2044-02-26

AI Technical Summary

Technical Problem

The traditional FPGA chip wiring algorithm is inefficient, resulting in slow speed, low efficiency, and difficulty in finding the optimal solution path.

Method used

Adopting a path-based routing resource method, by obtaining pre-generated routing resources, including starting points, ending points, and intermediate paths, directly using or splicing these resources to realize path connections between wiring starting points and ending points, avoiding traversal searches, improving speed, and obtaining multiple paths to choose from.

Benefits of technology

Significantly improve the speed and efficiency of chip wiring, obtain better wiring results and higher routing rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118133765B_ABST
    Figure CN118133765B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of chip design technology, and discloses a chip wiring method, device, equipment and storage medium, the method comprising: obtaining pre-generated wiring resources, the wiring resources comprising a starting point, an end point and at least one intermediate path; obtaining a wiring starting point and a wiring end point; determining a path between the wiring starting point and the wiring end point based on the wiring resources; and performing wiring using the wiring resources corresponding to the path. The present invention provides a wiring method, which greatly improves the wiring speed, has a better wiring result and a higher wiring pass rate than a traditional wiring method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of chip design, and in particular to a chip wiring method, device, equipment and storage medium. Background Art

[0002] In Field Programmable Gate Array (FPGA) design, routing refers to the process of establishing the connection relationship between various logic components. Routing is a key step in implementing the user's target circuit on the chip. The quality of the routing algorithm will significantly affect the performance, power consumption and reliability of the chip.

[0003] In traditional routing algorithms, routing resources are the abstraction of all components and their ports and connection relationships on the entire FPGA. The inevitable result brought about by the characteristics of routing resources is that when routing each set of starting and ending points, not only is it necessary to traverse and search each intermediate point, but the searched points are also likely to be irrelevant to this routing. A large number of search operations and a large number of irrelevant points lead to the shortcomings of slow speed and low efficiency of traditional routing algorithms. Summary of the invention

[0004] In view of this, the present invention provides a chip wiring method, device, equipment and storage medium to solve the problem of low FPGA chip wiring efficiency.

[0005] In a first aspect, the present invention provides a chip wiring method, comprising:

[0006] Acquire pre-generated routing resources, where the routing resources include a starting point, an end point, and at least one intermediate path;

[0007] Get the wiring start point and wiring end point;

[0008] Determine a path between a wiring start point and a wiring end point based on wiring resources;

[0009] Use the routing resources corresponding to the path for routing.

[0010] The chip wiring method provided in this embodiment uses path-based wiring resources, which can be called pattern-based wiring resources. The wiring method can be called Pattern Route. Different from the traditional wiring method that needs to traverse and search for the connection relationship of the current node, it can directly use one wiring resource or several spliced ​​wiring resources to realize the path connection between the wiring start point and the wiring end point. It is faster than the traditional wiring method and can obtain multiple paths for wiring selection at the same time, so the wiring result is better and the wiring pass rate is higher.

[0011] In an optional implementation, the wiring resource includes a point-to-point wiring resource, wherein a starting point of the point-to-point wiring resource is an output of a logic component and an end point is an input of another logic component;

[0012] Determine the path between the routing start point and the routing end point based on the routing resources, including:

[0013] Determine whether the wiring start point and the wiring end point are consistent with the start point and the end point of the first wiring resource; the first wiring resource is one of the wiring resources;

[0014] If they are consistent, an intermediate path of the first wiring resource is selected as the path between the wiring start point and the wiring end point.

[0015] In an optional implementation, the wiring resources include local wiring resources and global wiring resources, and the local wiring resources include first local wiring resources, second local wiring resources, and third local wiring resources;

[0016] The starting point of the first local wiring resource is the output of the logic component, and the end point is the first output of the corresponding switch box;

[0017] The starting point of the second local wiring resource is the first input of the switch box, and the end point is the input of the corresponding logic component;

[0018] The start point of the third local wiring resource is the first input of the switch box and the end point is the first output of the same switch box;

[0019] The starting point of the global routing resource is the first output of a switch box, the end point is the first input of another switch box, and one or more global lines are passed in between;

[0020] The first input and the first output are both used to connect to the global line.

[0021] In an optional implementation, determining a path between a routing start point and a routing end point based on routing resources includes:

[0022] Filter out the target first local wiring resource according to the wiring starting point;

[0023] Filter out the target second local wiring resource according to the wiring endpoint;

[0024] Screening out a target global wiring resource and / or a target third local wiring resource that can directly connect or connect through splicing an end point of a target first local wiring resource and a start point of a target second local wiring resource;

[0025] The screened target first local wiring resource, target second local wiring resource, target global wiring resource and / or target third local wiring resource are spliced ​​to obtain a path between a wiring start point and a wiring end point.

[0026] In an optional implementation, screening out a target global wiring resource that can directly connect or connect through splicing an end point of a target first local wiring resource and a start point of a target second local wiring resource comprises:

[0027] Acquire a global wiring resource in the global wiring resource, the starting point of which is the end point of the target first local wiring resource, and the end point of which is the starting point of the target second local wiring resource;

[0028] The acquired global routing resource is used as the target global routing resource.

[0029] In an optional implementation, screening out a target global wiring resource that can directly connect or connect through splicing an end point of a target first local wiring resource and a start point of a target second local wiring resource comprises:

[0030] Acquire a combination of multiple global wiring resources whose starting point is the end point of the target first local wiring resource and whose end point is the starting point of the target second local wiring resource after global line splicing;

[0031] A plurality of global routing resources in the combination of global routing resources are used as target global routing resources.

[0032] In an optional implementation, screening out a target global wiring resource and a target third local wiring resource that can directly connect or connect, by splicing, an end point of a target first local wiring resource and a start point of a target second local wiring resource comprises:

[0033] Acquire a wiring resource combination whose starting point is the end point of the target first local wiring resource and whose end point is the starting point of the target second local wiring resource after global line splicing, wherein the wiring resource combination includes one or more global wiring resources and one or more third local wiring resources;

[0034] The global wiring resource in the wiring resource combination is used as the target global wiring resource, and the third local wiring resource in the wiring resource combination is used as the target third local wiring resource.

[0035] In an optional implementation, screening out a target third local wiring resource that can directly connect or connect through splicing an end point of the target first local wiring resource and a start point of the target second local wiring resource comprises:

[0036] Acquire a third local wiring resource combination after global line splicing, the starting point of which is the end point of the target first local wiring resource and the end point of which is the starting point of the target second local wiring resource, the third local wiring resource combination including a plurality of third local wiring resources;

[0037] The third local wiring resource in the third local wiring resource combination is used as a target third local wiring resource.

[0038] In an optional implementation, using the routing resources corresponding to the path to perform routing includes:

[0039] If there are multiple paths between the determined wiring start point and the wiring end point, the number of global lines included in the path is obtained;

[0040] From the paths, select the path that contains the least number of global lines and none of them is occupied;

[0041] Route the route along the selected path.

[0042] In an optional implementation, using the routing resources corresponding to the path to perform routing includes:

[0043] If there are multiple paths between the determined wiring start point and the wiring end point, the number of data selectors used by the paths is obtained, or the delay of the paths is obtained;

[0044] From the paths, select the path that uses the least data selectors, or the path with the shortest delay;

[0045] Route the route along the selected path.

[0046] In an optional implementation, using the routing resources corresponding to the path to perform routing includes:

[0047] Obtain the absolute position of each component in the wiring area in the chip;

[0048] According to the relative position relationship of each component in the wiring resource corresponding to the path, the wiring resource is translated to the absolute position.

[0049] In a second aspect, the present invention provides a chip wiring device, the device comprising:

[0050] A first acquisition module is used to acquire pre-generated wiring resources, where the wiring resources include a starting point, an end point, and at least one intermediate path;

[0051] A second acquisition module is used to acquire a wiring start point and a wiring end point;

[0052] A determination module, used for determining a path between a wiring start point and a wiring end point based on wiring resources;

[0053] The routing module is used to perform routing using routing resources corresponding to the path.

[0054] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the chip wiring method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0055] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the chip wiring method of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0057] Figure 1 This is a typical schematic diagram of the structure of an FPGA chip;

[0058] Figure 2 It is a schematic diagram of the global line-local relationship of the FPGA chip;

[0059] Figure 3 It is a schematic diagram of the local structure of an FPGA chip;

[0060] Figure 4 is based on Figure 3 One of the schematic diagrams for wiring the local structure of the FPGA chip shown;

[0061] Figure 5 is based on Figure 3 The second schematic diagram of wiring the local structure of the FPGA chip shown;

[0062] Figure 6 is a schematic flow chart of a chip wiring method according to an embodiment of the present invention;

[0063] Figure 7 is a schematic diagram of a path of a point-to-point wiring resource according to an embodiment of the present invention;

[0064] Figure 8 is a schematic diagram of a path corresponding to a first local wiring resource according to an embodiment of the present invention;

[0065] Fig. 9 is a schematic diagram of paths corresponding to two third local wiring resources according to an embodiment of the present invention;

[0066] Fig.10 According to a path schematic diagram corresponding to a second local wiring resource according to an embodiment of the present invention;

[0067] Fig.11 According to a path schematic diagram corresponding to a global wiring resource according to an embodiment of the present invention;

[0068] Fig.12 According to an embodiment of the present invention, a path diagram corresponding to a target first local wiring resource screened out according to a wiring starting point;

[0069] Fig.13 According to an embodiment of the present invention, a path diagram corresponding to a target second local wiring resource screened out according to a wiring endpoint;

[0070] Fig.14 According to a wiring path schematic diagram of an embodiment of the present invention;

[0071] Fig.15 is a structural block diagram of a chip wiring device according to an embodiment of the present invention;

[0072] Fig.16 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention.

[0073] In the figure: Log is the logic function area, Swh is the switch box, Global Wire is the global line, Logic Element is the logic component, and Mux is the data selector. DETAILED DESCRIPTION

[0074] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0075] Figure 1This is a schematic diagram of a typical FPGA structure. The blue area is the switch box (Swh), which is full of data selectors. These data selectors are part of the wiring resources. By changing the control end of the data selector, the connection relationship of the path can be changed, thereby realizing "field programmability". The green area is the logic function area (Log). There are many types of logic function areas. The internal structure of each logic function area and the basic components it contains are different, but their connection relationship is the same. In addition to the internal connection, the logic function area can only connect to its corresponding Swh. The dotted line between Swh and Log represents this connection relationship. It can be seen that the connection between Log and Swh is bidirectional. The signal can reach Swh from Log and also from Swh to Log. The black solid line is the global line (Global Wire). As can be seen from the figure, Swh will be connected to the global line, and the global line can be connected to other Swh, so that the connection of Swh in different positions is realized.

[0076] It should be made clear that Figure 1 The global line connection relationship in the figure is not accurate. The actual local diagram is as follows Figure 2 From this Figure 2 As can be seen from the figure, the global line is not infinitely long, but has several different line lengths, such as 1, 2, and 4. Each Swh will be connected to several different global lines. For example, if it is connected to a global line with a line length of 1, this global line will be connected to a Swh with a distance of 1, thereby realizing the interconnection of Swhs with a distance of 1. Similarly, a global line with a line length of 2 will connect a Swh to other Swhs with a distance of 2.

[0077] First, let’s briefly introduce the traditional wiring method through a simple example.

[0078] like Figure 3 As shown, if the starting point of the wiring is the starting point S of Log0 and the end point is the end point E of Log1, then the traditional wiring will be operated as follows:

[0079] First, find the connection relationship of all starting points S and find the next point connected to it, assuming that this point is a;

[0080] Secondly, find all the connections of a and find the next point it connects to...

[0081] And so on. Assume that the wiring is carried out to Figure 4 In the stage, when the output terminal b of a data selector is found, it is found that this output terminal has two outputs, one connected to the other output terminal and the other connected to the boundary output terminal of this Swh. At this time, for the traditional routing algorithm, both outputs need to be searched.

[0082] Continue to deduce the traditional routing algorithm, such as Figure 5 As shown, when searching for port c, it is found that port c also has two outputs, but one of the outputs (see the green line) cannot be connected to the end point E.

[0083] However, the traditional routing algorithm cannot predict this, so when searching for port c, the traditional algorithm will search for both output paths of c, just like when searching for port b. Obviously, the green path is an irrelevant path. When searching for this path, the traditional routing algorithm will know that this path is invalid when it searches for the Log1 logic component (indicated by the yellow rectangle), so it will abandon this path and search for another path of port c.

[0084] In the above example, it is assumed that only two ports have multiple outputs, and the number of outputs is only 2. However, in actual wiring, a large number of multi-output ports will be encountered. These ports not only have a large number of outputs, but most of the outputs are irrelevant to the wiring. This makes traditional wiring extremely slow, and a large number of irrelevant paths need to be stored during wiring. At the same time, traditional wiring cannot predict whether there are multiple paths. Because traditional wiring methods are slow and inefficient, it is difficult to find all feasible paths. Therefore, after finding the first path, this path is often used as the result, which makes the result of traditional wiring difficult to be the optimal solution.

[0085] According to an embodiment of the present invention, a chip wiring method embodiment is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer device such as a set of executable computer instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0086] In this embodiment, a chip wiring method is provided, which can be used in a computer device, in which an FPGA design tool is running. Figure 6 is a flow chart of a chip wiring method according to an embodiment of the present invention. Figure 6 As shown, the process includes the following steps:

[0087] Step S601: obtaining pre-generated wiring resources, where the wiring resources include a starting point, an end point, and at least one intermediate path.

[0088] The wiring resources in this embodiment are different from traditional wiring resources. Traditional wiring resources discretely record each port and connection relationship of each component, while the wiring resources in this embodiment record the path and only record the relevant points. For example, the path A->B->C->D, the wiring resources in this embodiment will only record A, B, C, D. Even if B may be connected to E at the same time, this link relationship will not be recorded. The starting point and end point of the wiring resources in this embodiment span at least one switch box, or even multiple switch boxes, and are not in the same logical functional area. When storing wiring resources, the starting point and end point of the wiring resources can be used as indexes, and the value is one or more intermediate paths between the starting point and the end point.

[0089] In this embodiment, there may be more than one intermediate path between the starting point and the end point of the wiring resource. When generating the wiring resources, all of them may be generated. However, considering the storage space occupied by the wiring resource storage and the wiring needs, only part of them may be generated. For example, for global wiring resources, only several types of which use less global lines may be generated. Because global lines are relatively scarce resources, global lines that use less are generally selected as much as possible during wiring.

[0090] Step S602, obtaining a wiring start point and a wiring end point.

[0091] Step S603: determining a path between a wiring start point and a wiring end point based on wiring resources.

[0092] According to the above, when storing routing resources, the starting point and end point of the routing resources can be used as indexes, and the value is one or more intermediate paths between the starting point and the end point. In the FPGA design tool program, the value can be directly obtained by giving the index. Therefore, only the routing starting point and the routing end point need to be given, and the routing resources based on the pattern can immediately give all the paths between these two points. Subsequently, the most suitable path can be selected from these paths for routing.

[0093] Step S604: perform routing using routing resources corresponding to the path.

[0094] The chip wiring method provided in this embodiment uses path-based wiring resources, which can be called pattern-based wiring resources. The wiring method can be called Pattern Route. Different from the traditional wiring method that needs to traverse and search for the connection relationship of the current node, it can directly use one wiring resource or several spliced ​​wiring resources to realize the path connection between the wiring start point and the wiring end point. It is faster than the traditional wiring method and can obtain multiple paths for wiring selection at the same time, so the wiring result is better and the wiring pass rate is higher.

[0095] In the embodiment of the present invention, wiring resources are divided into three types: point-to-point wiring resources, local wiring resources and global wiring resources. The use of these three wiring resources during wiring is described in detail below.

[0096] In some optional specific implementations, the wiring resources include point-to-point wiring resources, the starting point of the point-to-point wiring resources is the output of a logic component (also called logic output), and the end point is the input of another logic component (also called logic input); in the FPGA chip, the logic components are in the logic function area, and here a logic component and another logic component can be in the same logic function area or in different logic function areas.

[0097] Determine the path between the routing start point and the routing end point based on the routing resources, including:

[0098] Determine whether the wiring start point and the wiring end point are consistent with the start point and the end point of the first wiring resource; the first wiring resource is one of the wiring resources;

[0099] If they are consistent, an intermediate path of the first wiring resource is selected as the path between the wiring start point and the wiring end point.

[0100] In the embodiment of the present invention, the point-to-point wiring resource itself is a complete path (and the local wiring resource and the global wiring resource need to be spliced ​​together to form a complete path). When generating wiring resources, for some simple paths, such wiring resources can be directly extracted. For example, two logic components in the same logic functional area, such as Figure 7 The starting point and end point in the , you can directly save the path between these two points. Since it is a complete path, if the starting point and the end point match during routing, you can directly use the routing resource for routing. For example, if the routing start point and the routing end point are in the same logical functional area, you can choose point-to-point routing. Use the routing start point and the routing end point as indexes to extract point-to-point routing resources from the routing resources, and the extracted point-to-point routing resources are the complete path. Of course, if when generating routing resources, point-to-point routing resources are generated whose starting point and the end point are not in the same logical functional area, then even if the routing start point and the routing end point are not in the same logical functional area, as long as there is a point-to-point routing resource whose starting point and the end point match, then point-to-point routing can also be used.

[0101] In some other optional specific implementations, the wiring resources include local wiring resources and global wiring resources, and the local wiring resources include first local wiring resources, second local wiring resources, and third local wiring resources;

[0102] The starting point of the first local wiring resource is the output of the logic component, and the end point is the first output of the corresponding switch box;

[0103] The starting point of the second local wiring resource is the first input of the switch box, and the end point is the input of the corresponding logic component;

[0104] The start point of the third local wiring resource is the first input of the switch box and the end point is the first output of the same switch box;

[0105] The starting point of the global routing resource is the first output of a switch box, the end point is the first input of another switch box, and one or more global lines are passed in between;

[0106] The first input and the first output are both used to connect to the global line.

[0107] In the embodiment of the present invention, local wiring resources are wiring resources inside the functional unit block "Tile" (each functional unit block includes two parts, namely a switch box "Switch Hub" and a logic function area). For the output of any logic component, if it wants to be connected to a logic function area at another location, it must first pass through the switch box, then connect to the global line through the switch box, and then pass through several other switch boxes and global lines to reach the switch box where the target logic function area is located, and finally reach the target logic function area through this switch box. Therefore, there are three types of local wiring resources:

[0108] 1. The first local wiring resource can also be called logic output wiring resource, such as Figure 8 As shown in the figure, the logic output routing resource is the routing resource from the output of the logic component to the corresponding switch box output. The output port of this switch box must be connected to the global line instead of the corresponding logic functional area. In most cases, a complete path must first pass through this local routing resource before it can reach the global line and then reach other locations on the FPGA.

[0109] Second, the third local wiring resource can also be called switch box wiring resource, such as Fig. 9 As shown (each switch box is the same, Figure 8 and Fig. 9 The switch box in is different because there are too many data selectors (Mux) in the switch box, so Figure 8 and Fig. 9 Only the relevant data selectors are drawn in the figure. Figure 8 In the figure, only the Mux that needs to be passed from the logic output to the global line is drawn, and Fig. 9Only the Mux that needs to be passed from global line to global line is drawn in the figure. After the signal reaches the global line, the global line will connect to a switch box on the FPGA. Since the global line is not infinitely long and not any two switch boxes can be directly connected through the global line, the global line at the starting point of the routing needs to reach the first switch box first, then pass through this switch box to reach another global line, and so on, until it reaches the switch box corresponding to the end point of the routing. The path "through the switch box" is the switch box routing resource. The starting point of the switch box routing resource is the input of the switch box, which is connected to the global line; the end point is the output of the switch box, which is also connected to the global line. The role of the switch box routing resource is to connect two global lines so that any two locations on the FPGA can be connected through multiple segments of global lines.

[0110] 3. The second local wiring resource can also be called logic input wiring resource. Fig.10 As shown in the figure, when the signal reaches the last segment of the global line and then finds the switch box corresponding to the end point, the signal will pass through the input of the switch box, pass through the switch box, and finally reach the end point. This segment of the path is the logic input routing resource.

[0111] Regarding global routing resources, the local routing resources mentioned above mentioned that the path of a signal from one location of the FPGA to another location of the FPGA is: the switch box corresponding to the starting point -> global line -> through the switch box -> global line -> ... -> through the switch box -> global line -> switch box corresponding to the end point. The first section from the starting point to the switch box corresponding to the starting point is the logic output routing resource, and the last section from the switch box corresponding to the end point to the end point is the logic input routing resource. The path in the middle that passes through several switch boxes is the global routing resource. So, Fig.11 As shown, the global routing resources are as follows (note that for ease of viewing, Fig.11 No logical functional areas are drawn, and no irrelevant global lines are drawn. Fig.11 It can be seen that global lines have different line lengths, and each switch box is connected to several global lines of different line lengths and directions):

[0112] The starting point of the global routing resource is the output of a switch box. Starting from the output of the switch box, it passes through a global line to reach another switch box, passes through this switch box, reaches the global line, passes through this global line, reaches the next switch box, continues to pass through the switch box... Finally, it reaches the input of the terminal switch box.

[0113] Obviously, the global routing resources are composed of several third local routing resources.

[0114] For two positions (the starting point and the end point of the routing resources), when generating global routing resources, it is necessary to consider the balance between the number of routing resources and the size of the storage space. For example, if the global lines of the FPGA have three lengths of 1, 2, and 4, and global routing resources for the two positions (0, 0) and (0, 5) need to be generated, then first calculate which global line length combinations can generate such global routing resources. Obviously, if you want to use the least global lines, you can take the two lines (0, 4) -> (0, 1) (this is just one of them, the routing order can be interchanged, so after permutations and combinations, there are 2*1=2 routing methods), these two routing methods are the routing methods that use the least global lines and switch boxes. Secondly, you can use two 2-line routings and one 1-line routing to achieve this, and this routing method requires 3 global lines. Thirdly, you can use 1 2-line routing, 3 1-line routings, and so on. However, if you want to generate global routing resources for all routing schemes, it will cause the space occupied by the routing resources to be too large, so in general, you can only generate a few global routing resources that use fewer global lines.

[0115] In some optional specific implementations, determining a path between a routing start point and a routing end point based on routing resources includes:

[0116] Filter out the target first local wiring resource according to the wiring starting point; specifically, filter out one or more first local wiring resources whose starting point is consistent with the wiring starting point from the first local wiring resources as the target first local wiring resource. Fig.12 For example, there are two target first local wiring resources (corresponding to Fig.12 The two red lines in the figure).

[0117] The target second local wiring resource is selected according to the wiring endpoint; specifically, one or more second local wiring resources whose endpoints are consistent with the wiring endpoint are selected from the second local wiring resources as the target second local wiring resources. Fig.13 For example, there are two target second local wiring resources (corresponding to Fig.13 The two red lines in the figure).

[0118] Filter out the endpoints that can be directly connected or connected to the target first local routing resource through splicing (such as Fig.12 SwhPinO0 and SwhPinO1 as shown) and the starting point of the target second local wiring resource (such as Fig.13 The target global routing resource and / or the target third local routing resource of SwhPinI0 and SwhPinI1 shown;

[0119] The wiring resources selected here to connect the end point of the target first local wiring resource and the start point of the target second local wiring resource may be only global wiring resources, may be global wiring resources and target third local wiring resources, or may be only target third local wiring resources.

[0120] When there are only global routing resources, there may be only one global routing resource or multiple global routing resources. For one of the global routing resources, it may not need to be spliced ​​with other global routing resources to connect the end point of the target first local routing resource and the starting point of the target second local routing resource, or it may need to be spliced ​​with other global routing resources to connect the end point of the target first local routing resource and the starting point of the target second local routing resource.

[0121] When there are global wiring resources and target third local wiring resources at the same time, one of the global wiring resources can connect the end point of the target first local wiring resource and the starting point of the target second local wiring resource alone, and can connect the end point of the target first local wiring resource and the starting point of the target second local wiring resource without splicing with other global wiring resources or target third local wiring resources, or can connect the end point of the target first local wiring resource and the starting point of the target second local wiring resource by splicing with other global wiring resources, or can connect the end point of the target first local wiring resource and the starting point of the target second local wiring resource by splicing with the target third local wiring resource. In actual implementation, there is a priority, that is, if there is only a global wiring resource that can connect the end point of the target first local wiring resource and the starting point of the target second local wiring resource, then the splicing path of the global wiring resource and the target third local wiring resource will not be obtained. The target third local wiring resource may need to be spliced ​​with the global wiring resource to connect the end point of the target first local wiring resource and the starting point of the target second local wiring resource, or may not need to be spliced ​​with the global wiring resource and only need to be spliced ​​with other target third local wiring resources to connect the end point of the target first local wiring resource and the starting point of the target second local wiring resource.

[0122] When there is only the target third local wiring resource, the target third local wiring resource generally needs to be spliced ​​with other target third local wiring resources to connect the end point of the target first local wiring resource and the starting point of the target second local wiring resource. Of course, there are a few cases where the end point of the target first local wiring resource and the starting point of the target second local wiring resource can be connected without splicing with other target third local wiring resources. This situation is generally that there is only a switch box between the end point of the target first local wiring resource and the starting point of the target second local wiring resource. In actual implementation, this situation is that the wiring requirements can also be achieved through point-to-point wiring.

[0123] The screened target first local wiring resources, target second local wiring resources, and target global wiring resources and / or target third local wiring resources are spliced ​​to obtain a path between the wiring start point and the wiring end point. The splicing here obtains a path, which may require only one target global wiring resource, or may require multiple target global wiring resources, may require one target global wiring resource and one or more target third local wiring resources, may require multiple target global wiring resources and one or more target third local wiring resources, or may require only one or more target third local wiring resources. The spliced ​​path may be one or more.

[0124] As a specific implementation method, selecting a target global wiring resource that can directly connect or connect, by splicing, an end point of a target first local wiring resource and a start point of a target second local wiring resource includes:

[0125] Acquire a global wiring resource whose starting point is the end point of the target first local wiring resource and whose end point is the starting point of the target second local wiring resource, that is, only one global wiring resource is needed to connect the end point of the target first local wiring resource and the starting point of the target second local wiring resource, but there may be more than one such global wiring resource;

[0126] The acquired global routing resource is used as the target global routing resource.

[0127] In the embodiment of the present invention, when routing, it is only necessary to first find the corresponding target first local wiring resource and target second local wiring resource according to the routing start point and the routing end point, and then find one or more connection paths according to the end point of the target first local wiring resource and the starting point of the target second local wiring resource, which is extremely fast.

[0128] As another specific implementation, screening out a target global wiring resource that can directly connect or connect through splicing an end point of a target first local wiring resource and a start point of a target second local wiring resource comprises:

[0129] Acquire a combination of multiple global wiring resources whose starting point is the end point of the target first local wiring resource and whose end point is the starting point of the target second local wiring resource after global line splicing; that is, multiple global wiring resources need to be spliced ​​to connect the end point of the target first local wiring resource and the starting point of the target second local wiring resource, but there may be more than one combination, that is, the end point of the target first local wiring resource and the starting point of the target second local wiring resource can be connected by splicing using (partial or all) different global wiring resources;

[0130] A plurality of global routing resources in the combination of global routing resources are used as target global routing resources.

[0131] Specifically, a combination of one or more global wiring resources can be obtained by traversing, and each combination can be obtained by the following traversing method: first obtain a global wiring resource whose starting point is the end point of the target first local wiring resource, then find another global wiring resource whose starting point can be connected to the end point of the global wiring resource through a global line, and so on. If a global wiring resource whose end point is the starting point of the target second local wiring resource can be found in the end, then a combination of global wiring resources is found, and the global wiring resources in the combination can connect the end point of the target first local wiring resource and the starting point of the target second local wiring resource through global line splicing. Of course, it is also possible to start the traversal from the starting point of the target second local wiring resource.

[0132] In the embodiment of the present invention, although the combination of global wiring resources is found by traversal, the granularity of traversal is much larger than that of the traditional wiring method. The granularity of the traditional wiring method is one component (data selector), while the granularity here is the global wiring resource. One global wiring resource spans at least two switch boxes, or even more. Therefore, the wiring speed is also greatly improved.

[0133] In addition, the combination of global wiring resources can also be found in a segmented manner. For example, if the distance between the end point of the target first local wiring resource and the starting point of the target second local wiring resource is (40, 40), then it can be divided into four segments, and one or more global wiring resources that can directly connect the starting point and the end point of each segment can be found.

[0134] As a third specific implementation method, selecting a target global wiring resource and a target third local wiring resource that can directly connect or connect, by splicing, an end point of a target first local wiring resource and a start point of a target second local wiring resource comprises:

[0135] A wiring resource combination is obtained, whose starting point is the end point of the target first local wiring resource and whose end point is the starting point of the target second local wiring resource after global line splicing, and the wiring resource combination includes one or more global wiring resources and one or more third local wiring resources; there can be more than one wiring resource combination, and the wiring resources in one combination can be connected to the target first local wiring resource and the target second local wiring resource through splicing.

[0136] The global wiring resource in the wiring resource combination is used as the target global wiring resource, and the third local wiring resource in the wiring resource combination is used as the target third local wiring resource.

[0137] Here, the wiring resource combination is also obtained by traversal. Generally speaking, the global wiring resources are traversed first. When no global wiring resource combination can be found to splice a path connecting the target first local wiring resource and the target second local wiring resource, the third local wiring resource is traversed. For example, if the distance between the end point of the target first local wiring resource and the starting point of the target second local wiring resource is (40, 40), one or more global wiring resources that can go to (10, 10) without splicing can be found first, and then the third local wiring resource is traversed to form the remaining (30, 30) path.

[0138] Of course, it is also possible to traverse the third local wiring resources first and then traverse the global wiring resources.

[0139] In the embodiment of the present invention, considering the situation that it is impossible to use all global wiring resources for wiring, the third local wiring resources can be combined for wiring. In the embodiment of the present invention, although the combination of global wiring resources and local wiring resources is found by traversal, the granularity of traversal is much larger than that of the traditional wiring method. The granularity of the traditional wiring method is one component (data selector), while the granularity here is global wiring resources or local wiring resources. One global wiring resource spans at least two switch boxes, or even more, and one third local wiring resource spans one switch box. Therefore, the wiring speed is also greatly improved.

[0140] As a fourth specific implementation manner, selecting a target third local wiring resource that can directly connect or connect through splicing an end point of the target first local wiring resource and a start point of the target second local wiring resource comprises:

[0141] A third local wiring resource combination is obtained after global line splicing, the starting point of which is the end point of the target first local wiring resource and the end point is the starting point of the target second local wiring resource, and the third local wiring resource combination includes multiple third local wiring resources; there may be more than one third local wiring resource combination, and the third local wiring resources in one combination can be connected to the target first local wiring resource and the target second local wiring resource through splicing.

[0142] The third local wiring resource in the third local wiring resource combination is used as a target third local wiring resource.

[0143] Here, the third local wiring resource combination is obtained by traversal, as follows:

[0144] Firstly, obtaining a first input of a first switch box connected to an end point of a first local wiring resource through a global line;

[0145] Then, obtaining a first output of the first switch box based on the third local wiring resource;

[0146] Then, obtaining a first input of another first switch box connected to the first output of the first switch box through a global line, and obtaining a first output of another first switch box based on a third local wiring resource;

[0147] Repeat the previous step until the starting point of the second local wiring resource is connected through the global line.

[0148] In the embodiment of the present invention, considering the situation that the global wiring resources cannot be used for wiring, only the third local wiring resources can be used for wiring. Fig.14 When routing a set of routing start points and routing end points shown in the figure, if there is no global routing resource available between the two, then it is necessary to use traversal search for the third local routing resource for routing. First, the first local routing resource (i.e., logic output routing resource) is obtained from the routing resources according to the routing start point. The end point of the logic output routing resource is the output port on the switch box, and this output port must be connected to the global line. Through the global line, the input port on another switch box can be found. Taking this input port as the starting point, all the third local routing resources that meet the requirements are found from the third local routing resources. The end points of these third local routing resources are the output ports of the switch box, and they must be connected to the global line, and so on, until the switch box at the end point is found, and finally the second local routing resource (i.e., logic input routing resource) at the end point is taken out, and these local routing resources are spliced ​​together to form a complete path.

[0149] In the embodiment of the present invention, although the combination of the third local wiring resources is found by traversal, the granularity of the traversal is much larger than that of the traditional wiring method. The granularity of the traditional wiring method is a component (data selector), while the granularity here is the third local wiring resource, and one third local wiring resource spans one switch box. Therefore, the wiring speed is also greatly improved.

[0150] In some optional specific implementations, routing is performed using routing resources corresponding to the path, including:

[0151] If there are multiple paths between the determined wiring start point and the wiring end point, the number of global lines included in the path is obtained;

[0152] From the paths, select the path that contains the least number of global lines and none of them is occupied;

[0153] Route the route along the selected path.

[0154] Among the wiring resources, global lines are relatively scarce wiring resources, so using fewer global lines can give other connections greater freedom. In the embodiment of the present invention, whether only global wiring resources are used for wiring, or global wiring resources and third local wiring resources are combined for wiring, or only third local wiring resources are used for wiring, there may be multiple paths to choose from, because in the embodiment of the present invention, even if the path is obtained by traversal, it is much faster than the traditional wiring method, so there is time to obtain multiple paths. The number of global lines required for different paths is different. The embodiment of the present invention preferentially selects the path using the least global lines for wiring, unless the global lines on the path are already occupied, thereby achieving the purpose of reducing wiring delay, optimizing wiring quality, and reducing global line usage conflicts. In addition, using fewer global lines will also use fewer switch boxes, so it can also reduce the conflict of switch box usage.

[0155] The specific path selection method can be: assuming that a certain connection requires at least n global lines, then the path using n global lines is preferentially selected, and if such a path is available (that is, there is such a path and there is no conflict), then this path is selected. If there is no such path, then try to obtain a path using global line n+1, and so on, until an available path is found.

[0156] In some other optional specific implementations, routing is performed using routing resources corresponding to the path, including:

[0157] If there are multiple paths between the determined wiring start point and the wiring end point, the number of data selectors used by the paths is obtained, or the delay of the paths is obtained;

[0158] From the paths, select the path that uses the least data selectors, or the path with the shortest delay;

[0159] Route the route along the selected path.

[0160] Of course, when selecting a path, if the switch box and / or global line usage in a certain path conflicts with the previous routing, it cannot be selected.

[0161] In other specific implementations, the above three factors can be combined to select a path, that is, the least global lines used, the least data selectors used, and the shortest delay, or only two of them can be considered. The three factors can be set with priorities. For example, the least global lines are the first priority, so the path with the least global lines is selected first. If there are still multiple paths to choose from, then further selection is made based on the number of data selectors used and the delay.

[0162] Of course, you can also choose other factors to select a path based on the factors that you actually need to focus on.

[0163] In the traditional wiring method, after traversing a path or in the process of traversing a path, if the global line or data selector is found to be occupied, then other paths can only be traversed again, which takes a long time. In the present application, multiple optional paths can be obtained. If the global line or data selector in a path is occupied, other paths can be directly selected, which improves the routing rate. In addition, in an embodiment of the present invention, if there is no conflict among multiple paths, a better path can be selected from them, such as a path with a smaller delay, thereby greatly improving the wiring quality, reducing the delay, and improving the stability.

[0164] In some optional specific implementations, routing is performed using routing resources corresponding to the path, including:

[0165] Obtain the absolute position of each component in the wiring area in the chip;

[0166] According to the relative position relationship of each component in the wiring resource corresponding to the path, the wiring resource is translated to the absolute position.

[0167] In an embodiment of the present invention, the wiring resources generated in advance are universal wiring resources, that is, the wiring resources only contain the relative position relationship between the components, and do not store the absolute position of the components in the chip. When the chip needs to be wired, the wiring resources are "translated" to the absolute position of the components that need to be wired according to the relative position relationship of the components. Universal wiring resources can reduce the storage space required for wiring resources. For example, since the internal components (i.e., data selectors) of the switch boxes are the same, that is, the switch boxes are the same, only one universal wiring resource is needed for the third local wiring resource, and there is no need to generate a wiring resource for each switch box on the chip, so the space required for wiring resource storage can be greatly reduced. For the first local wiring resources and the second local wiring resources, the first local wiring resources corresponding to the logical functional area with exactly the same structure are the same universal first local wiring resources, and the corresponding second local wiring resources are also the same universal second local wiring resources. For global routing resources, only global routing resources within a chip area can be generated as general global routing resources. If the size of the chip area that needs to be routed subsequently exceeds the chip area size when the routing resources are generated, path planning and routing can be performed by splicing global routing resources or splicing global routing resources with third local routing resources.

[0168] In the embodiment of the present invention, the operation of translating the general wiring resources to the absolute position on the FPGA is performed very quickly on the computer device.

[0169] In this embodiment, a chip wiring device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0170] This embodiment provides a chip wiring device, such as Fig.15 As shown, including:

[0171] A first acquisition module 1501 is used to acquire pre-generated wiring resources, where the wiring resources include a start point, an end point, and at least one intermediate path;

[0172] The second acquisition module 1502 is used to acquire a wiring start point and a wiring end point;

[0173] A determination module 1503, configured to determine a path between a routing start point and a routing end point based on routing resources;

[0174] The routing module 1504 is used to perform routing using routing resources corresponding to the path.

[0175] In some optional implementations, the wiring resource includes a point-to-point wiring resource, where a starting point of the point-to-point wiring resource is an output of a logic component and an end point is an input of another logic component;

[0176] The determination module 1503 includes:

[0177] A first judgment unit is used to judge whether the wiring start point and the wiring end point are consistent with the start point and the end point of the first wiring resource; the first wiring resource is one of the wiring resources;

[0178] The first selection unit is used to select an intermediate path of the first wiring resource as a path between the wiring start point and the wiring end point when the wiring start point and the wiring end point are consistent with the start point and the end point of the first wiring resource.

[0179] In some optional implementations, the wiring resources include local wiring resources and global wiring resources, and the local wiring resources include first local wiring resources, second local wiring resources, and third local wiring resources;

[0180] The starting point of the first local wiring resource is the output of the logic component, and the end point is the first output of the corresponding switch box;

[0181] The starting point of the second local wiring resource is the first input of the switch box, and the end point is the input of the corresponding logic component;

[0182] The start point of the third local wiring resource is the first input of the switch box and the end point is the first output of the same switch box;

[0183] The starting point of the global routing resource is the first output of a switch box, the end point is the first input of another switch box, and one or more global lines are passed in between;

[0184] The first input and the first output are both used to connect to the global line.

[0185] In some optional implementations, the determining module 1503 includes:

[0186] A first screening unit, used for screening out a target first local wiring resource according to a wiring starting point;

[0187] A second screening unit, used for screening out a target second local wiring resource according to a wiring endpoint;

[0188] A third screening unit is used to screen out a target global wiring resource and / or a target third local wiring resource that can be directly connected or can be connected by splicing to an end point of the target first local wiring resource and a start point of the target second local wiring resource;

[0189] The first path splicing unit is used to splice the screened target first local wiring resources, target second local wiring resources, and target global wiring resources and / or target third local wiring resources to obtain a path between a wiring start point and a wiring end point.

[0190] In some optional embodiments, the third screening unit includes:

[0191] A first acquisition subunit is used to acquire a global wiring resource whose starting point is an end point of a target first local wiring resource and whose end point is a starting point of a target second local wiring resource;

[0192] The first determining subunit is configured to use the acquired global wiring resource as a target global wiring resource.

[0193] In some optional embodiments, the third screening unit includes:

[0194] A second acquisition subunit is used to acquire a combination of multiple global wiring resources whose starting point is the end point of the target first local wiring resource and whose end point is the starting point of the target second local wiring resource after being spliced ​​by the global line;

[0195] The second determining subunit is configured to use a plurality of global wiring resources in the combination of global wiring resources as target global wiring resources.

[0196] In some optional embodiments, the third screening unit includes:

[0197] A third acquisition subunit is used to acquire a wiring resource combination whose starting point is the end point of the target first local wiring resource and whose end point is the starting point of the target second local wiring resource after global line splicing, wherein the wiring resource combination includes one or more global wiring resources and one or more third local wiring resources;

[0198] The third determining subunit is used to use the global wiring resource in the wiring resource combination as the target global wiring resource and the third local wiring resource in the wiring resource combination as the target third local wiring resource.

[0199] In some optional embodiments, the third screening unit includes:

[0200] a fourth acquisition subunit, configured to acquire, after global line splicing, a third local wiring resource combination whose starting point is the end point of the target first local wiring resource and whose end point is the starting point of the target second local wiring resource, wherein the third local wiring resource combination includes a plurality of third local wiring resources;

[0201] The fourth determining subunit is configured to use the third local wiring resource in the third local wiring resource combination as a target third local wiring resource.

[0202] In some optional implementations, the wiring module 1504 includes:

[0203] A global line number acquisition unit, used for acquiring the number of global lines included in the path when there are multiple paths between the determined wiring start point and the wiring end point;

[0204] A second selection unit is used to select a path containing the least number of global lines and which is not occupied from the paths;

[0205] The first wiring unit is used for wiring according to the selected path.

[0206] In some optional implementations, the wiring module 1504 includes:

[0207] A first acquisition unit, configured to acquire the number of data selectors used by the paths or the delay of the paths when there are multiple paths between the determined wiring start point and the wiring end point;

[0208] A third selection unit, configured to select a path using the least data selectors from the paths, or a path with the shortest delay;

[0209] The second wiring unit is used for wiring according to the selected path.

[0210] In some optional implementations, the wiring module 1504 includes:

[0211] A second acquisition unit is used to acquire the absolute position of each component in the wiring area in the chip;

[0212] The translation unit is used to translate the wiring resources to an absolute position according to the relative position relationship of each component in the wiring resources corresponding to the path.

[0213] The further functional description of the above modules, units and sub-units is the same as that of the above corresponding embodiments and will not be repeated here.

[0214] The chip wiring device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0215] The embodiment of the present invention also provides a computer device having the above Fig.15 The chip wiring device shown.

[0216] See also Fig.16 , Fig.16 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, on which an FPGA design tool is run, such as Fig.16 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Fig.16 A processor 10 is taken as an example.

[0217] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0218] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.

[0219] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0220] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0221] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Fig.16 The example of connecting through bus is taken in the following.

[0222] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.

[0223] The computer device also includes a communication interface for the computer device to communicate with other devices or a communication network.

[0224] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0225] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A chip wiring method, characterized in that: The method comprises: Acquire pre-generated wiring resources, wherein the wiring resources include a starting point, an end point, and at least one intermediate path; Get the wiring start point and wiring end point; Determine a path between the wiring start point and the wiring end point based on the wiring resources; Perform routing using the routing resources corresponding to the path; The wiring resources include local wiring resources and global wiring resources, and the local wiring resources include first local wiring resources, second local wiring resources and third local wiring resources; The starting point of the first local wiring resource is the output of the logic component, and the end point is the first output of the corresponding switch box; The starting point of the second local wiring resource is the first input of the switch box, and the end point is the input of the corresponding logic component; The starting point of the third local wiring resource is the first input of the switch box and the end point is the first output of the same switch box; The global wiring resource starts from the first output of a switch box, ends at the first input of another switch box, and passes through one or more global lines in between; Wherein, the first input and the first output are both used to connect to a global line; The determining a path between the wiring start point and the wiring end point based on the wiring resource comprises: Filter out a target first local wiring resource according to the wiring starting point; Filter out a target second local wiring resource according to the wiring endpoint; Screening out a target global wiring resource and / or a target third local wiring resource that can directly connect or connect through splicing an end point of the target first local wiring resource and a start point of the target second local wiring resource; The screened target first local wiring resource, the target second local wiring resource, the target global wiring resource and / or the target third local wiring resource are spliced ​​to obtain a path between the wiring start point and the wiring end point.

2. The method according to claim 1, characterized in that The wiring resource includes a point-to-point wiring resource, wherein the starting point of the point-to-point wiring resource is the output of one logic component and the end point is the input of another logic component; The determining a path between the wiring start point and the wiring end point based on the wiring resource comprises: Determine whether the wiring start point and the wiring end point are consistent with the start point and end point of a first wiring resource; the first wiring resource is one of the wiring resources; If they are consistent, one of the middle paths of the first wiring resource is selected as the path between the wiring start point and the wiring end point.

3. The method according to claim 1, characterized in that The step of screening out a target global wiring resource that can directly connect or connect, by splicing, the end point of the target first local wiring resource and the start point of the target second local wiring resource comprises: Acquire the global wiring resource whose starting point is the end point of the target first local wiring resource and whose end point is the starting point of the target second local wiring resource; The acquired global wiring resource is used as the target global wiring resource.

4. The method according to claim 1, characterized in that The step of screening out a target global wiring resource that can directly connect or connect, by splicing, the end point of the target first local wiring resource and the start point of the target second local wiring resource comprises: Acquire a combination of a plurality of global wiring resources whose starting point is the end point of the target first local wiring resource and whose end point is the starting point of the target second local wiring resource after global line splicing; A plurality of the global wiring resources in the combination of the global wiring resources are used as the target global wiring resources.

5. The method according to claim 1, characterized in that The step of screening out the target global wiring resource and the target third local wiring resource that can directly connect or connect the end point of the target first local wiring resource and the start point of the target second local wiring resource through splicing includes: Acquire a wiring resource combination whose starting point is the end point of the target first local wiring resource and whose end point is the starting point of the target second local wiring resource after global line splicing, wherein the wiring resource combination includes one or more global wiring resources and one or more third local wiring resources; The global wiring resource in the wiring resource combination is used as the target global wiring resource, and the third local wiring resource in the wiring resource combination is used as the target third local wiring resource.

6. The method according to claim 1, characterized in that The step of screening out a target third local wiring resource that can directly connect or connect through splicing an end point of the target first local wiring resource and a start point of the target second local wiring resource comprises: Acquire a third local wiring resource combination whose starting point is the end point of the target first local wiring resource and whose end point is the starting point of the target second local wiring resource after global line splicing, wherein the third local wiring resource combination includes a plurality of the third local wiring resources; The third local wiring resource in the third local wiring resource combination is used as the target third local wiring resource.

7. The method according to any one of claims 1 to 2, characterized in that The using the wiring resource corresponding to the path to perform wiring includes: If the determined paths between the wiring starting point and the wiring end point are multiple, then obtaining the number of global lines included in the paths; From the paths, select the path that contains the least number of global lines and none of which is occupied; Route the route according to the selected path.

8. The method according to any one of claims 1 to 2, characterized in that The using the wiring resource corresponding to the path to perform wiring includes: If the determined paths between the wiring start point and the wiring end point are multiple, then obtaining the number of data selectors used by the paths, or obtaining the delay of the paths; From the paths, select the path that uses the least data selectors, or select the path that has the shortest delay; Route the route according to the selected path.

9. The method according to any one of claims 1 to 2, characterized in that The using the wiring resource corresponding to the path to perform wiring includes: Obtain the absolute position of each component in the wiring area in the chip; According to the relative position relationship of each component in the wiring resource corresponding to the path, the wiring resource is translated to the absolute position.

10. A chip wiring device, characterized in that: The device comprises: A first acquisition module, configured to acquire pre-generated wiring resources, wherein the wiring resources include a starting point, an end point, and at least one intermediate path; A second acquisition module is used to acquire a wiring start point and a wiring end point; A determination module, configured to determine a path between the wiring start point and the wiring end point based on the wiring resources; A routing module, used for routing using the routing resources corresponding to the path; The wiring resources include local wiring resources and global wiring resources, and the local wiring resources include first local wiring resources, second local wiring resources and third local wiring resources; The starting point of the first local wiring resource is the output of the logic component, and the end point is the first output of the corresponding switch box; The starting point of the second local wiring resource is the first input of the switch box, and the end point is the input of the corresponding logic component; The starting point of the third local wiring resource is the first input of the switch box and the end point is the first output of the same switch box; The global wiring resource starts from the first output of a switch box, ends at the first input of another switch box, and passes through one or more global lines in between; Wherein, the first input and the first output are both used to connect to a global line; The determination module comprises: A first screening unit, configured to screen out a target first local wiring resource according to the wiring starting point; A second screening unit, configured to screen out a target second local wiring resource according to the wiring endpoint; A third screening unit is used to screen out a target global wiring resource and / or a target third local wiring resource that can be directly connected or can be connected by splicing to the end point of the target first local wiring resource and the starting point of the target second local wiring resource; The first path splicing unit is used to splice the screened target first local wiring resource, the target second local wiring resource, the target global wiring resource and / or the target third local wiring resource to obtain a path between the wiring start point and the wiring end point.

11. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the chip wiring method according to any one of claims 1 to 9 by executing the computer instructions.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the chip wiring method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Modeling method and device for wiring structure

    CN110472340A