Chip wiring resource generation method, device, equipment and storage medium
By obtaining the connection paths between chip functional unit blocks and generating local and global wiring resources, the problem of low efficiency of wiring resource generation solutions in the existing technology is solved, and a faster wiring process is achieved.
Patent Information
- Application Number
- CN202410210632.4
- 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
The existing chip wiring resource generation scheme causes the subsequent wiring process to take a long time and is inefficient.
By obtaining the connection paths between the chip functional unit blocks, local and global wiring resources are generated to avoid traversing the nodes one by one during wiring, and the path index is used to find the path to improve efficiency.
The wiring time is significantly reduced, the wiring efficiency is improved, and the time required for the subsequent wiring process is greatly reduced compared with the step-by-step path search method.
Smart Images

Figure CN118211556B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of chip design, and in particular to a method, device, equipment and storage medium for generating wiring resources of a chip. Background Art
[0002] Routing is a necessary step in the process of enabling Field Programmable Gate Array (FPGA) chips. Its core function is to combine the logic resource information with the results after layout and the connection relationship between pins to confirm the connection method between pins. The core goal of routing is to minimize the delay of the critical path (i.e. the path with the longest delay) while ensuring that there is no congestion. In order to achieve this goal, there are already a series of mature algorithms, such as the PathFinder algorithm and related evolutionary algorithms. However, this series of methods have some common features, namely traversal and iteration. This series of methods often searches for paths by traversing each possible connection one by one, and continuously updates the evaluation function in the algorithm through repeated iterations to find a suitable routing method, which often results in a huge runtime.
[0003] Therefore, it is urgent to improve the wiring scheme. Wiring mainly includes the process of using wiring resources for wiring, but before that, wiring resources need to be generated, and the generated wiring resources directly affect the subsequent wiring process. Summary of the invention
[0004] In view of this, the present invention provides a method, device, equipment and storage medium for generating wiring resources of a chip to solve the problem that the current wiring resource generation scheme will make the subsequent wiring process take a long time.
[0005] In a first aspect, the present invention provides a method for generating wiring resources of a chip, the method comprising:
[0006] For the functional unit block in the chip, a first connection path between the external input pin of the switch box and the input pin of the logic resource block is obtained, a second connection path between the output pin of the logic resource block and the external output pin of the switch box is obtained, and a third connection path between the external input pin and the external output pin of the switch box is obtained;
[0007] For the functional unit block, based on the third connection path, obtaining a fourth connection path between the external output pin of the functional unit block and the external input pin of other functional unit blocks, and / or obtaining a fifth connection path between the external input pin of the functional unit block and the external output pin of other functional unit blocks;
[0008] Local wiring resources of the chip are generated according to the first connection path, the second connection path, and the third connection, and global wiring resources of the chip are generated according to the fourth connection path and / or the fifth connection path.
[0009] In an optional implementation, for a functional unit block in a chip, obtaining a first connection path between an external input pin of a switch box and an input pin of a logic resource block, obtaining a second connection path between an output pin of the logic resource block and an external output pin of the switch box, and a third connection path between an external input pin and an external output pin of the switch box include:
[0010] Classify the functional unit blocks in the chip, and the logic resource blocks and switch boxes in the same functional unit blocks are the same;
[0011] For the functional unit blocks of the same type, a first connection path, a second connection path, and a third connection path of one of the functional unit blocks are obtained.
[0012] In an optional implementation, for a functional unit block, acquiring a fourth connection path between an external output pin of the functional unit block and an external input pin of another functional unit block based on the third connection path, and / or acquiring a fifth connection path between an external input pin of the functional unit block and an external output pin of another functional unit block includes:
[0013] Obtain the chip's area division parameters;
[0014] The area is divided according to the block division parameter, and the number of switch boxes in the divided chip areas is the same;
[0015] A fourth connection path and / or a fifth connection path of at least a portion of the functional unit blocks in a chip region is obtained.
[0016] In an optional implementation manner, obtaining the fourth connection path and / or the fifth connection path of at least part of the functional unit blocks in a chip region includes:
[0017] Determine a central switch box of the chip region, the central switch box belonging to a functional unit block in the chip region;
[0018] A fourth connection path and / or a fifth connection path between the central switch box and other switch boxes in the chip area is obtained.
[0019] In an optional implementation manner, obtaining the area division parameters of the chip includes:
[0020] Get the maximum combined length of global connections of the chip;
[0021] The area division parameters are determined based on the maximum global connection combination line length.
[0022] In an optional implementation, for a functional unit block, acquiring a fourth connection path between an external output pin of the functional unit block and an external input pin of another functional unit block based on the third connection path includes:
[0023] Obtaining a global connection combination between an external output pin of a functional unit block and an external input pin of another functional unit block;
[0024] For the global connection in the global connection combination, determine the intermediate switch boxes that need to be passed;
[0025] The third connection path of the middle switch box is obtained, and the fourth connection path is obtained by combining.
[0026] In an optional implementation, generating local wiring resources of a chip according to the first connection path, the second connection path, and the third connection, and generating global wiring resources of a chip according to the fourth connection path and / or the fifth connection path includes:
[0027] Acquire a starting point and an end point of a path, where the path is a first connection path, a second connection path, a third connection path, a fourth connection path and / or a fifth connection path;
[0028] The starting point and end point of the path are used as indexes, and the corresponding path is stored as the value.
[0029] In a second aspect, the present invention provides a wiring resource generation device for a chip, the device comprising:
[0030] A first path acquisition module is used to acquire, for a functional unit block in the chip, a first connection path between an external input pin of the switch box and an input pin of the logic resource block, a second connection path between an output pin of the logic resource block and an external output pin of the switch box, and a third connection path between an external input pin and an external output pin of the switch box;
[0031] A second path acquisition module is used to acquire, for the functional unit block, a fourth connection path between an external output pin of the functional unit block and an external input pin of another functional unit block based on the third connection path, and / or acquire a fifth connection path between an external input pin of the functional unit block and an external output pin of another functional unit block;
[0032] The generating module is used to generate local wiring resources of the chip according to the first connection path, the second connection path and the third connection, and to generate global wiring resources of the chip according to the fourth connection path and / or the fifth connection path.
[0033] 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, computer instructions are stored in the memory, and the processor executes the wiring resource generation method for a chip according to the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0034] 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 wiring resource generation method for a chip according to the first aspect or any corresponding embodiment thereof.
[0035] The wiring resource generation method, device, equipment and storage medium of the chip provided by the present invention, the essence of generating wiring resources is to obtain the path between pins in advance, thereby avoiding the traversal of nodes one by one during wiring. The time required to find the path based on the pin pair is much less than the time required to traverse the nodes one by one to find the path. That is, the wiring resources generated by the wiring resource generation method provided by the present invention can greatly reduce the time required for subsequent wiring compared to the wiring method of gradually searching for the path, and the wiring efficiency is greatly improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] 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.
[0037] Figure 1 It is a schematic diagram of the enabling process from user design to FPGA chip;
[0038] Figure 2 is a schematic diagram of an example of the internal structure of an FPGA chip applicable to an embodiment of the present invention;
[0039] Figure 3 It is a schematic diagram of the internal structure of a functional unit block;
[0040] Figure 4 It is a schematic diagram of the internal connection relationship of an FPGA;
[0041] Figure 5 is a schematic flow chart of a method for generating wiring resources of a chip according to an embodiment of the present invention;
[0042] Figure 6 It is a schematic diagram of a complete wiring resource;
[0043] Figure 7 It is a schematic diagram of the internal structure and pins of another functional unit block;
[0044] Figure 8 is a schematic diagram of a chip area where global wiring resources are located according to an embodiment of the present invention;
[0045] Fig. 9 This is another schematic diagram of the internal connection relationship of FPGA;
[0046] Fig.10 It is a schematic diagram of the path direction of a global wiring resource;
[0047] Fig.11 It is a schematic diagram of existing wiring resources;
[0048] Fig.12 is a structural block diagram of a wiring resource generating device for a chip according to an embodiment of the present invention;
[0049] Fig.13 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention.
[0050] In the figure: Switch Hub is a switch box, Tile is a functional unit block, and LUT is a lookup table. DETAILED DESCRIPTION
[0051] 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.
[0052] The process from user design to FPGA chip enabling can be referred to Figure 1The process includes five steps: analysis and optimization, synthesis, layout, routing, and bitstream generation. The FPGA chip is composed of a series of logic resources, including lookup tables (LUTs), flip-flops, etc. After the synthesis phase, the user design will be converted into hardware units and their connections that are equivalent to the logical functions on the FPGA. For example, if the user design implements a 1-bit addition a+b function, this function can be implemented in hardware with a LUT. After confirming the hardware units that are equivalent to the logical functions of the user design, it is necessary to confirm where each hardware unit should be placed on the FPGA chip. After the position of each hardware unit is confirmed, the routing phase begins. This phase confirms how the pin connection is implemented in hardware based on the position of each hardware unit in the routing phase and the connection relationship of its pins.
[0053] Figure 2 This is an example of the internal structure of an FPGA chip applicable to the embodiment of the present invention. The interior of an FPGA chip can be regarded as consisting of a series of neatly arranged functional unit blocks "Tiles" with a connection relationship. Figure 3 It is an example of the internal structure of the functional unit block. Each functional unit block consists of two parts, namely a switch box "Switch Hub" and a logic resource block. The switch box is composed of a series of data selectors "Mux", and its main function is to realize the programmable connection between the various pins of the switch box. In simple terms, different connection relationships between the pins on a switch box can be realized by configuring the data selector inside a switch box. For example, the connection between port C0 and port D3 can be realized by configuring the data selector inside the switch box. Simply put, a wire is connected between C0 and D3. Each switch box has a certain number of pins connected to its corresponding logic resource block, and the logic resource block contains the logic resources required in the FPGA chip. In the switch box, there are pins in each direction that can be connected to the switch box of other functional unit blocks.
[0054] Below Figure 4 For example, the internal connection relationship of FPGA is explained. In order to describe clearly, especially the connection relationship between functional unit blocks, Figure 4 The connection relationship between the switch box and its corresponding logic resource block (including one or more logic resources and may also include a data selector) is not drawn, but it is necessary to know that there is a connection relationship between the switch box and its corresponding logic resource block. In addition, it should be noted that although the switch box between the logic resource block and other functional unit blocks is connected in the figure, there is generally no connecting line between them. In essence, the switch box corresponding to the logic resource block is connected to the switch box between other functional unit blocks.
[0055] by Figure 4 For example, although the figure shows that there is a direct line between the logical resource block of Tile0 and Tile1, it is actually the connection between the switch box of Tile0 and the switch box of Tile1. Figure 4 The expression in the figure is only for the sake of aesthetics. It can be seen that the connection between tiles is mainly realized through the connection between switch boxes. Figure 4 The LUT in it is a lookup table, which is a common logic resource in a type of FPGA chip.
[0056] Combination Figure 1 The process and Figure 4 Here we can give a basic description of the wiring problem. Assume that the synthesis phase determines that the user design can be implemented by two 3-input 1-output lookup tables, where the output of one lookup table is connected to the input of the other lookup table. Then the layout phase determines that the two lookup tables are placed in Figure 4 The position of LUT0 and LUT8 in the circuit is as follows: the output of LUT0 should be connected to the input of LUT8. The next step is to enter the wiring stage, which will determine how to connect the LUT0 and LUT8 in the circuit. Figure 4 Such a connection is realized in the hardware resources. When routing is performed using the routing resources (routing resources based on a path (Pattern)) generated by the routing resource generation method provided by the embodiment of the present invention, the content in the routing resources is searched with the starting point and the end point as indexes, so as to find a group of paths that can connect the starting point and the end point from the routing resources. In this group of paths, a path that meets the conditions (such as not being occupied by other connections and meeting the timing requirements, etc.) is found. In this way, the routing is completed.
[0057] An embodiment of the present invention provides a method for generating wiring resources for a chip. By generating path-based wiring resources, the starting point and the end point are used as indexes during wiring to search for content in the wiring resources, thereby finding a group of paths that can connect the starting point and the end point from the wiring resources. Finally, the wiring can be completed by finding a path that meets the conditions in this group of paths, thereby improving the wiring speed.
[0058] According to an embodiment of the present invention, an embodiment of a method for generating wiring resources for a chip is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of executable computer instructions (the computer system can run an FPGA design tool), 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.
[0059] In this embodiment, a method for generating wiring resources of a chip is provided, which can be used in a computer device on which an FPGA design tool can be run. Figure 5 is a flow chart of a method for generating wiring resources for a chip according to an embodiment of the present invention. Figure 5 As shown, the process includes the following steps:
[0060] Step S101, for the functional unit blocks in the chip, obtain a first connection path between each external input pin of the switch box and each input pin of the logic resource block, obtain a second connection path between each output pin of the logic resource block and each external output pin of the switch box, and obtain a third connection path between each external input pin and each external output pin of the switch box. Here, the first connection path, the second connection path, and the third connection path may be obtained for each functional unit block in the chip, or only for some functional unit blocks, as described in the specific embodiments below.
[0061] The wiring resources generated by the embodiment of the present invention are divided into two categories. One category generates wiring resources within the functional unit block, namely "local wiring resources", see step S101 above; the other category generates wiring resources between different functional unit blocks, which is essentially the wiring resources between switch boxes, namely "global wiring resources", see step S102 below. It should be noted that the connection paths in the embodiment of the present invention are all paths between pins, and the paths contain a series of pins and data selectors.
[0062] For a complete routing resource based on a path (pattern), the starting point must be the output of a certain logic device, and the end point must be the input of a certain logic device. The logic device must be located in the logic resource block, so a complete pattern must be like this, which is divided into three sections:
[0063] A. From the output of the starting logic device to the output port of the switch box corresponding to this logic device, Figure 4 For example, the output of the lookup table (LUT) in Tile0 goes to an output of the switch hub in Tile0;
[0064] B. From the output port of the switch box corresponding to the starting logic device, through several intermediate switch boxes, to the input port of the switch box corresponding to the target logic device. It should be noted that these "intermediate switch boxes" only use the "switch box" part of the functional unit block and will not be connected to the "logic resource block". Figure 4For example, the output of the switch hub of Tile0 passes through the switch hub in Tile3, through the switch hub of Tile6, through the switch hub of Tile7, and reaches the input of the switch hub of Tile8.
[0065] C. Connect the input port of the switch box corresponding to the target logic device to the input port of the target logic device. Figure 4 For example, the input end of the switch hub of Tile8 reaches an input end of LUT8.
[0066] See also Figure 6 , the red line above is the A section of a complete routing resource, starting from the output of a logic component (LUT), passing through several data selectors in a switch box, and reaching the output of the corresponding switch box. In section B, from the output of the switch box at the starting point, through the global connection (the connection connecting different switch boxes), it reaches other switch boxes; then through this switch box, it also passes through the global connection and reaches other switch boxes. In this way, after passing through several different switch boxes, it finally passes through the global connection and reaches the input of the switch box corresponding to the end point. In section C, from the input of the switch box, through several data selectors, it reaches the end point, that is, a certain input of the logic component.
[0067] In the above three segments, the paths (patterns) of segments A and C are local wiring resources, and the path (pattern) of segment B is a global wiring resource. The global wiring resource segment B is composed of several local wiring resources.
[0068] In step S101, the path corresponding to the local wiring resource is obtained. The local wiring resource mainly focuses on the connection inside the functional unit block. The types of the connection can be divided into the following three types:
[0069] a. Switch box input to logic resource block input (such as Figure 7 C2 to I0 in the figure, where C2 is the input pin of a switch box, and I0 is the input pin of the logic resource block. The entire path is from C2 through a series of data selectors inside the switch box to the output pin D0 of the switch box, and then from D0 to I0).
[0070] b. Logic resource block output to switch box output (such as Figure 7 O to C0).
[0071] c. Switch Hub to Switch Hub (eg Figure 7From C2 to B1 in the figure, we can see that there is no connection between B1 and the logic resource block. This means that B1 is connected to another switch box (Switch Hub).
[0072] Figure 7 In the functional unit block shown in the figure, the {A2, A3, B2, B3, C2, C3, D2} pins are input pins on the switch hub, and the {A0, A1, B0, B1, C0, C1, D0, D1, D3} pins are output pins on the switch hub. {I0, I1} are input pins on the logic resource block, and {O} is an output pin on the logic resource block.
[0073] It should be noted here that routing is essentially to determine the connection between the pins of the logic unit. For example, the LUT mentioned above is a logic unit, but the three connections mentioned above do not mention the logic unit. This is because the pins inside the logic resource block, such as Figure 6 The LUT in the logic resource block has corresponding pins on the logic resource block. For example, it can be understood that I0, I1, and O on the logic resource block are connected to I0, I1, and O on the LUT respectively. Therefore, although the wiring is essentially a connection relationship between the pins of the logic unit, it can be converted into a connection relationship between the pins on the logic resource block, because each pin of the logic unit has a corresponding pin on the logic resource block (the corresponding relationship is not necessarily one-to-one, but for ease of understanding, it can be regarded as a one-to-one correspondence, which does not affect the implementation of the embodiment of the present invention).
[0074] Next, Figure 7For example, corresponding to the above three connections, we will see which paths between the pins will be obtained. First, from the switch box (Switch Hub) to the logic resource block, the input pins on the switch box (Switch Hub) that can lead to the logic resource block are {A2, A3, B2, B3, C2, C3} (the switch box input pins here do not include D2, because D2 is connected to the output of the logic resource block and does not belong to the external input pins), and the corresponding input pins on the logic resource block are {I0, I1} (only I0, I1 because these two pins can enter the switch box (Switch Hub), and O is the pin of the logic resource block output to the outside and therefore does not belong to the switch box (Switch Hub) to the logic resource block), then there are a total of 6×2=12 pin connection situations. Correspondingly, from the logic resource block to the switch hub, the output of the logic resource block can be output to the pins of the switch hub {O}, and the output pins on the switch hub are {A0, A1, B0, B1, C0, C1} (the output pins of the switch hub do not include D0, D1, D3, because D0, D1, D3 are connected to the logic resource block and are not external output pins), so there are a total of 1×6=6 pin connection situations. Next is Switch Hub to Switch Hub, the input pins are {A2, A3, B2, B3, C2, C3}, and the output pins are {A0, A1, B0, B1, C0, C1}. It should be noted that the input does not include D2, because D2 is connected to the output of the logic resource block, and the output does not include D0, D1, D3, because these three pins are directly output to the logic resource block. Therefore, there are a total of 6×6=36 pairing situations from Switch Hub to Switch Hub. Therefore, there are 12+6+36=54 pin pairing situations. Based on these 54 pairing situations, all possible paths corresponding to each pairing situation are searched one by one in a functional unit block.
[0075] Step S102, for the functional unit block, based on the third connection path, obtain a fourth connection path between the external output pin of the functional unit block to the external input pin of other functional unit blocks, and / or obtain a fifth connection path between the external input pin of the functional unit block to the external output pin of other functional unit blocks.
[0076] Here, according to the above, it can be known that the logic resource block in the functional unit block is not connected to the outside, but the switch box corresponding to the logic resource block is connected to the switch box between other functional unit blocks. A logic resource block can correspond to one or more switch boxes. That is, a functional unit block can have one or more switch boxes. Therefore, the external output pin of the functional unit block here is the external output pin of the switch box, and the external input pin of the functional unit block is the external input pin of the switch box. In addition, as long as there is a connection path here, it needs to be obtained, that is, the fourth connection path between each external output pin of the functional unit block to each external input pin of other functional unit blocks can be obtained, and the fifth connection path between each external input pin of the functional unit block to each external output pin of other functional unit blocks can be obtained. Without considering the pins, the fourth connection path and the fifth connection path are actually the same path, that is, the connection path between the functional unit block and other functional unit blocks. Therefore, when actually implementing the present invention, it is only necessary to obtain the fourth connection path between each external output pin of the functional unit block to each external input pin of other functional unit blocks, or it is only necessary to obtain the fifth connection path between each external input pin of the functional unit block to each external output pin of other functional unit blocks. There is no need to repeatedly obtain two copies of the same path, and the same applies to the following. However, the embodiment of the present invention does not exclude the solution of simultaneously obtaining two copies of the path and subsequently generating two copies of global wiring resources based on the two copies of the path. The other functional unit blocks here can be each functional unit block in the chip except the currently targeted functional unit block, or can be part of the functional unit blocks except the currently targeted functional unit block. See the specific implementation method below for details.
[0077] For the generation of global routing resources between different functional unit blocks, the generation of routing resources between different functional unit blocks essentially considers the possibility of all external pins of a functional unit block to all external pin combinations on a series of functional unit blocks around it, that is, all external output pins on the functional unit block to the external input pins of a series of functional unit blocks around it, and the external input pins of the functional unit block to the external output pins of a series of functional unit blocks around it. You can refer to Figure 8Let's take a simple example. Because the connection between functional unit blocks is essentially the connection between switch boxes (Switch Hub) and switch boxes (Switch Hub), the logic resource block can only connect to the corresponding switch box (Switch Hub) and cannot directly connect to other logic resource blocks. Therefore, for the convenience of description, it is explained directly through the switch box (Switch Hub). Assume here that the possibility of connecting Tile0 to all external pins on other surrounding Tiles is considered, that is, the possibility of connecting Switch Hub0 to its surrounding Tiles is considered. It should be noted that before building the path library between functional unit blocks, it is necessary to first ensure that the local wiring resources are built, because the path between Tiles generally needs to pass through the inside of the Tile, that is, the local wiring resources are used. First, there are 2×6=12 combinations from the external output pins {O0, O1} of the tile (Tile0) to the external input pins {I2, I3, I4, I5, I6, I7} of a series of tiles around it. It should be noted that, for example, from O1 to I7, it needs to pass through I4 and then output from O5 to I7. Then I4 to O5 must pass through the inside of the Switch Hub. Therefore, it is necessary to ensure that the local wiring resources of the Switch Hub have been built. Then consider the output pins {(O2, O3, O4, O5, O6, O7} of a series of tiles around it to the input {I0, I1} of the tile, there are 6×2=12 combinations, so there are a total of 12+12=24 combinations.
[0078] Step S103, generate local wiring resources of the chip according to the first connection path, the second connection path, and the third connection, and generate global wiring resources of the chip according to the fourth connection path and / or the fifth connection path. The local wiring resources and the global wiring resources can be used for wiring later. The local wiring resources and the global wiring resources can also be combined into a complete path-based wiring resource. A complete path-based (Pattern) can include a local wiring resource (corresponding to the second connection path), one or more global wiring resources, and a local wiring resource (corresponding to the first connection path). Wiring can be performed based on the complete wiring resources later.
[0079] In the embodiment of the present invention, the essence of generating wiring resources is to obtain the path between pins in advance, thereby avoiding traversing the nodes one by one during wiring. The time required to find the path based on the pin pair is much shorter than the time required to traverse the nodes one by one to find the path. There is an order of magnitude difference between the average time complexity of the two methods.
[0080] In this embodiment, a method for generating wiring resources of a chip is provided, which can be used in a computer device on which an FPGA design tool can be run. The process includes the following steps:
[0081] Step S201, for the functional unit block in the chip, obtain a first connection path between each external input pin of the switch box and each input pin of the logic resource block, obtain a second connection path between each output pin of the logic resource block and each external output pin of the switch box, and a third connection path between each external input pin and each external output pin of the switch box.
[0082] In some optional specific implementations, the above step S201, i.e., for the functional unit block in the chip, obtaining a first connection path between each external input pin of the switch box and each input pin of the logic resource block, obtaining a second connection path between each output pin of the logic resource block and each external output pin of the switch box, and a third connection path between each external input pin and each external output pin of the switch box, includes:
[0083] Step S2011, classify the functional unit blocks in the chip, and the logical resource blocks and switch boxes in the same functional unit blocks are the same; the logical resource blocks and switch boxes in the same functional unit blocks are the same, which means that the structures of the logical resource blocks in two different functional unit blocks of the same type are exactly the same, and the number and structure of the switch boxes are also exactly the same. Two functional unit blocks that do not belong to the same type have at least one of the following differences: the structure of the logical resource blocks, the number of switch boxes, and the structure of one of the switch boxes. Although the structures of the switch boxes are generally the same, the embodiment of the present invention does not exclude the possibility of different switch box structures.
[0084] Step S2012 , for the functional unit blocks of the same type, obtaining a first connection path, a second connection path, and a third connection path of one of the functional unit blocks.
[0085] The wiring resources (here, local wiring resources) of different types of functional unit blocks are different. The difference between functional unit blocks mainly lies in the difference in their logic resource blocks. For example, some functional unit blocks have a lookup table (LUT) in their logic devices, but some have a digital signal processor (DSP). Different types of functional unit blocks need to build different wiring resources, but the paths in the same type of functional unit blocks are the same. Assuming that functional unit blocks A and B are of the same type, then the components and connection relationships between them are the same, and the only difference is the placement of A and B on the FPGA. In this case, only the wiring resources of A can be built. When B needs to be wired, the wiring resources of A can be "translated" to the position of B by changing the coordinate-related information in the wiring resources of A. In this way, the reuse of wiring resources is achieved.
[0086] The embodiments of the present invention can greatly reduce the generation time of local wiring resources and reduce the storage space required for local wiring resources, thereby reducing the time required for generating the entire wiring resource and reducing the space required for storing the entire wiring resource.
[0087] Step S202, for the functional unit block, based on the third connection path, obtain a fourth connection path between the external output pin of the functional unit block and the external input pin of other functional unit blocks, and / or obtain a fifth connection path between the external input pin of the functional unit block and the external output pin of other functional unit blocks. For obtaining only the fourth connection path, or only the fifth connection path, or simultaneously obtaining the fourth connection path and the fifth connection path, refer to the above description of step S102.
[0088] In some optional specific implementations, the above step S202 specifically includes:
[0089] Step S2021, obtaining the chip area division parameters.
[0090] Step S2022, performing area division according to the block division parameters, wherein the number of switch boxes in the divided chip areas is the same. The chip area can be a square or a rectangle.
[0091] The layout of the switch boxes in the FPGA chip is uniform, and the generation of global routing resources only needs to consider the switch boxes without considering the logic resource blocks. Therefore, when dividing the chip area and obtaining the connection path, only the switch boxes need to be considered, and there is no need to pay attention to the logic resource blocks.
[0092] Step S2023, obtaining a fourth connection path and / or a fifth connection path of at least a portion of functional unit blocks in a chip region.
[0093] In an embodiment of the present invention, similar to the "translation" of local wiring resources, only one copy of global wiring resources will be generated. During wiring, global wiring resources can also be "translated" to achieve the reuse of wiring resources. This translation allows global wiring resources to be generated only once for each required path, rather than once for every two exact functional unit blocks. For example, the global wiring resources from Tile (0,0) to Tile (10,10) can be used on Tile (10,10) to Tile (20,20) after translation. In this way, only one copy of global wiring resources needs to be generated for each distance difference. As described above, the fourth connection path and the fifth connection path are the same path. Therefore, only one path needs to be obtained here, but obtaining two paths (the fourth connection path and the fifth connection path of at least some functional unit blocks in a chip area) is not excluded.
[0094] Specifically, you can set a region size and combine all possible global connections in this region to generate routing resources. In this way, global routing resources are constructed. For example, if you want to consider all global routing resources in the region from (0,0) to (1,1) (in fact, when actually generating routing resources, the region to be considered is much larger), then you need to generate three global paths: (0,0)->(0,1), (0,0)->(1,0), (0,0)->(1,1). The same is true when the region is larger.
[0095] The embodiments of the present invention can greatly reduce the generation time of global routing resources and reduce the storage space required for global routing resources, thereby reducing the time required for the generation of the entire routing resources and reducing the space required for storing the entire routing resources.
[0096] In some optional specific implementations, the specific process of constructing the fourth connection path in the above step S202 includes:
[0097] Step 1: Obtain a global connection combination between the external output pins of the functional unit block and the external input pins of other functional unit blocks;
[0098] Step 2: for the global connection in the global connection combination, determine the intermediate switch boxes that need to be passed;
[0099] Step 3: Obtain the third connection path of the middle switch box, and combine to obtain the fourth connection path.
[0100] The specific process of constructing the fifth connection path is similar to the above, and will not be repeated here.
[0101] For the construction of global wiring resources, the embodiment of the present invention uses a method different from that of local wiring resources, namely, a "splicing" method. Fig. 9 The FPGA shown in FIG. 1 is used as an example to illustrate the method of constructing the global routing resources. It should be noted that the actual FPGA is Fig. 9 The actual functional unit block (Tile) can be directly connected not only to adjacent Tiles, but also to separated Tiles. Fig. 9 In the figure, Tile(0,0) can be connected to Tile(0,1), Tile(1,0), Tile(-1,0), Tile(0,-1) (the latter two tiles are not shown in the figure), and can also be connected to Tile(0,2), etc. What determines which tiles a tile can be connected to is the length of the global wire. These global wires determine how far apart a tile can be connected to. For example Fig. 9There are three types of global connections, with lengths of 1, 2, and 4 respectively. So a Tile can be connected to other Tiles in the east, west, south, and north directions with distances of 1, 2, and 4.
[0102] When building global routing resources, first calculate the optional global connection combinations from the starting point (for example, the external output pin of a functional unit block) to the end point (the external input pin of another functional unit block). If you want to build a resource from Tile (0,0) to Tile (0,2), then the direction and distance of the global routing resource should be (0,2), that is, the horizontal direction remains unchanged, and the vertical direction goes up (north) by 2. Therefore, there are two optional global connection combinations:
[0103] 1. (0,1), (0,1), first go north through the global line 1, then go north through the global line 1;
[0104] 2. (0,2), go north through the global line 2.
[0105] Normally, the path is selected without "returning", that is, combinations such as (0,-1), (0,1), (0,2) are not selected.
[0106] After having global connection combinations, generate global routing resources for each combination.
[0107] For example, to generate (0,1), (0,1), this combination requires that the global connection of (0,1) should first be taken to reach Tile (0,1), and then the global connection of (0,1) should be taken to reach Tile (0,2). So, first select the output ports of Tile (0,0) that take the line (0,1), through which the input ports on Tile (0,1) can be obtained, assuming that they are port I1 and port I2. After that, since (0,1) will be taken next, all the output ports of Tile (0,1) that take the line (0,1) are obtained, assuming that they are port O1 and port O2. As can be seen from the above, based on a set of port combinations, the path between two ports can be obtained from the local routing resources. Therefore, for all possible combinations I1->O1, I1->O2, I2->O1, I2->O2, their paths can be obtained, and so on. If the path is longer, more intermediate local paths can be obtained, and these local paths can be combined into a global path.
[0108] It can be seen that the global routing resource is actually composed of several local routing resources through splicing. Obviously, this "splicing path" construction method saves a lot of time compared to the traditional one-by-one traversal.
[0109] The previous embodiment mainly describes how to generate global wiring resources, and the previous embodiment describes how to generate only one global wiring resource of a smaller chip area by dividing the chip area, and then realize the wiring of the entire chip by translation. The following describes how to determine the division parameters of the chip area, that is, how to determine the size of the chip area.
[0110] In some optional specific implementations, obtaining the area division parameters of the chip includes:
[0111] Get the maximum combined length of global connections of the chip;
[0112] The area division parameters are determined based on the maximum global connection combination line length.
[0113] In the embodiment of the present invention, when generating global wiring resources, the global wiring resources of the FPGA, that is, the global connections of the FPGA, should be considered. The size of the generated global wiring resources should include the largest combination of global connection lengths. For example, if there are six types of global connections of lengths 1, 2, 3, 4, 6, and 8 in the FPGA, among which the lengths 1, 2, and 3 can be used as the starting global connection and the ending global connection, while the lengths 4, 6, and 8 can only be used as the global connection of the middle segment, and cannot be used as the starting global connection and the ending global connection. For this FPFA, the required chip area range is to cover the combinations of (1, 2, 3) (starting global connection) -> (1, 2, 3, 4, 6, 8) (middle segment global connection) -> (1, 2, 3) (ending global connection), so the maximum possible length of a global wiring resource is 3+8+3=14, so a range of 28x28 should be defined, and global wiring resources should be generated in this size of chip area.
[0114] The embodiment of the present invention provides a method for selecting the size of a chip area range. The chip area range is selected using this method, which generates global wiring resources for most distances and considers the balance between the size of wiring resources and time and space consumption.
[0115] However, the method for determining the size of the chip area for generating global wiring resources is not limited to the above method, and there may be other determination methods. However, a general principle is that the size of the chip area for generating global wiring resources can be determined according to the specific conditions of the chip. It is necessary to make this chip area contain as many connections as possible, but also to make this chip area not too large to reduce the size of wiring resources.
[0116] Specifically, the above step S2023, i.e. obtaining the fourth connection path and / or the fifth connection path of at least part of the functional unit blocks in a chip region, specifically includes:
[0117] Determine a central switch box of the chip region, the central switch box belonging to a functional unit block in the chip region;
[0118] The fourth connection path and / or the fifth connection path from the central switch box to each other switch box in the chip area is obtained. As above, only one of the fourth connection path and the fifth connection path can be obtained.
[0119] like Fig. 9 The FPGA shown is a chip region. If only the fourth connection path and / or the fifth connection path between the switch box of Tile (0,0) and other switch boxes in the chip region are obtained to generate global routing resources, then these global routing resources are often insufficient to meet the requirements during actual routing. Fig.10 As shown, if an object Tile needs to be connected to the Tile to its southeast (lower right), the requirement cannot be met.
[0120] Therefore, in order to meet all possible routing requirements during routing, the embodiment of the present invention will traverse the fourth connection path and / or the fifth connection path between the central switch box and other switch boxes in the chip area when generating the global routing resources of a chip area. In this way, as long as they are within the chip area, the path between any two tiles can be included in the constructed global routing resources.
[0121] According to the above embodiments, different chips have different chip area sizes for generating global routing resources. Therefore, the size of the path library coverage between tiles constructed for chips of different sizes is not necessarily the same. The size of the path library construction can be determined according to actual conditions. The method adopted in the embodiment of the present invention is to test a series of use cases and record the distance between the tiles of each pair of connecting pins in all use cases, represented by (x, y), where x=1 indicates that the target tile is adjacent to the right side of the object tile, and x=-1 indicates that the target tile is adjacent to the left side of the object tile, and y indicates the position of the target tile relative to the upper and lower sides of the object tile.
[0122] Step S203, generate local wiring resources of the chip according to the first connection path, the second connection path, and the third connection, and generate global wiring resources of the chip according to the fourth connection path and / or the fifth connection path. Finally, the local wiring resources and the global wiring resources can be combined into a complete path-based wiring resource. The wiring resources can be used for wiring later. A complete path-based (Pattern) may include a local wiring resource (corresponding to the second connection path), one or more global wiring resources, and a local wiring resource (corresponding to the first connection path). The local wiring resources and the global wiring resources are combined into a complete wiring resource, and there are many ways of combination through permutations and combinations. If all the combinations are completed, a large amount of storage space is required. Therefore, it is not necessary to combine into a complete wiring resource, or only a part of the complete wiring resource can be combined. If there is no complete wiring resource to realize wiring later, the wiring is realized by splicing the local wiring resources and the global wiring resources.
[0123] In some optional specific implementations, generating local wiring resources of a chip according to the first connection path, the second connection path, and the third connection, and generating global wiring resources of a chip according to the fourth connection path and / or the fifth connection path include:
[0124] Acquire a starting point and an end point of a path, where the path is a first connection path, a second connection path, a third connection path, a fourth connection path and / or a fifth connection path;
[0125] The starting point and end point of the path are used as indexes, and the corresponding path is stored as the value.
[0126] In an embodiment of the present invention, for the first connection path, the second connection path, and the third connection path, a series of pin pairing situations, that is, the starting point and the end point can be used as indexes, and the corresponding paths can be stored as values and output in a file format. In this way, the construction of wiring resources within a type of functional unit block is completed.
[0127] If the local routing resources and the global routing resources are combined into a complete path-based routing resource, the starting point and the end point are also used as indexes, and the corresponding paths are stored as values.
[0128] For the fourth connection path and / or the fifth connection path corresponding to the global wiring resources, after all the pin pairing situations are known, similar to the local wiring resources, all paths for each pin pairing situation are found and the pin pairs are used as indexes. All paths are stored as values and finally output in the form of a file.
[0129] If multiple global routing resources are spliced together to obtain a new global routing resource as needed, the starting point and the end point of the new global routing resource are also used as indexes, and the corresponding path is stored as a value.
[0130] That is to say, the embodiment of the present invention will store the connection lines of each pin connection combination in a file in advance for searching. Fig.11 For example, the embodiment of the present invention stores the path of the connection between the pins. For example, for the connection between the two pins C0 and B0, the embodiment of the present invention directly stores a complete path of C0->node 3->node 6->B0. In this way, when it is known that a connection between C0 and B0 is required, the path can be directly extracted ( Fig.11 For the convenience of description only, there can be multiple paths between two pins. For example, there may be multiple paths from C0 to B0. At this time, all paths will be stored for selection during routing), thereby avoiding traversal of internal nodes one by one.
[0131] In this embodiment, a wiring resource generation device for a chip 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.
[0132] This embodiment provides a wiring resource generation device for a chip, such as Fig.12 As shown, including:
[0133] The first path acquisition module 1201 is used to acquire, for the functional unit block in the chip, a first connection path between the external input pin of the switch box and the input pin of the logic resource block, a second connection path between the output pin of the logic resource block and the external output pin of the switch box, and a third connection path between the external input pin and the external output pin of the switch box;
[0134] The second path acquisition module 1202 is used to acquire, for the functional unit block, a fourth connection path between the external output pin of the functional unit block and the external input pin of other functional unit blocks based on the third connection path, and / or acquire a fifth connection path between the external input pin of the functional unit block and the external output pin of other functional unit blocks;
[0135] The generating module 1203 is used to generate local wiring resources of the chip according to the first connection path, the second connection path and the third connection, and to generate global wiring resources of the chip according to the fourth connection path and / or the fifth connection path.
[0136] In some optional implementations, the first path acquisition module 1201 includes:
[0137] A classification unit is used to classify the functional unit blocks in the chip. The logical resource blocks and switch boxes in the same functional unit blocks are the same;
[0138] The first path acquisition unit is used to acquire, for the functional unit blocks of the same type, a first connection path, a second connection path and a third connection path of one of the functional unit blocks.
[0139] In some optional implementations, the second path acquisition module 1202 includes:
[0140] A partition parameter acquisition unit, used to acquire the area partition parameters of the chip;
[0141] A partitioning unit, used for performing area partitioning according to the block partitioning parameter, wherein the number of switch boxes in the chip areas obtained by the partitioning is the same;
[0142] The second path acquisition unit is used to acquire the fourth connection path and / or the fifth connection path of at least part of the functional unit blocks in a chip area.
[0143] In some optional implementations, the second path acquisition unit includes:
[0144] Determine a subunit, which is used to determine a central switch box of a chip region, where the central switch box belongs to a functional unit block in the chip region;
[0145] The path acquisition subunit is used to acquire a fourth connection path and / or a fifth connection path from the central switch box to other switch boxes in the chip area.
[0146] In some optional implementations, the partition parameter acquisition unit includes:
[0147] A maximum global connection combined line length acquisition subunit is used to acquire the maximum global connection combined line length of the chip;
[0148] The partition parameter determination subunit is used to determine the area partition parameter according to the maximum global connection combination line length.
[0149] In some optional implementations, the second path acquisition module 1202 includes:
[0150] A global connection combination acquisition unit, used to acquire a global connection combination between an external output pin of a functional unit block and an external input pin of another functional unit block;
[0151] An intermediate switch box determination unit, used for determining the intermediate switch boxes that the global connection in the global connection combination needs to pass through;
[0152] The combining unit is used to obtain the third connection path of the intermediate switch box and combine to obtain the fourth connection path.
[0153] In some optional implementations, the generating module 1203 includes:
[0154] A path start and end point acquisition unit, used to acquire a start point and an end point of a path, where the path is a first connection path, a second connection path, a third connection path, a fourth connection path and / or a fifth connection path;
[0155] A storage unit is used to store the starting point and the end point of the path as indexes and the corresponding path as values.
[0156] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0157] The wiring resource generation device of the chip 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.
[0158] The embodiment of the present invention also provides a computer device having the above Fig.12 The wiring resource generation device of the chip shown.
[0159] See also Fig.13 , Fig.13 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Fig.13 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.13 A processor 10 is taken as an example.
[0160] 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.
[0161] 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.
[0162] 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.
[0163] 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.
[0164] 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.13 The example of connecting through bus is taken in the following.
[0165] 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.
[0166] The computer device also includes a communication interface for the computer device to communicate with other devices or a communication network.
[0167] 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.
[0168] 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 method for generating wiring resources of a chip, characterized in that: The method comprises: For the functional unit block in the chip, a first connection path between an external input pin of the switch box and an input pin of a logic resource block is obtained, a second connection path between an output pin of the logic resource block and an external output pin of the switch box is obtained, and a third connection path between an external input pin and an external output pin of the switch box is obtained; For the functional unit block, based on the third connection path, a fourth connection path between an external output pin of the functional unit block and an external input pin of another functional unit block is obtained, and / or a fifth connection path between an external input pin of the functional unit block and an external output pin of another functional unit block is obtained; Generate local wiring resources of the chip according to the first connection path, the second connection path, and the third connection, and generate global wiring resources of the chip according to the fourth connection path and / or the fifth connection path; The step of acquiring, for the functional unit block, a fourth connection path between an external output pin of the functional unit block and an external input pin of another functional unit block based on the third connection path, and / or acquiring a fifth connection path between an external input pin of the functional unit block and an external output pin of another functional unit block comprises: Obtaining the area division parameters of the chip; Performing area division according to the block division parameter, wherein the number of the switch boxes in the divided chip areas is the same; Acquire the fourth connection path and / or the fifth connection path of at least part of the functional unit blocks in one chip region; Generating the local wiring resources of the chip according to the first connection path, the second connection path, and the third connection, and generating the global wiring resources of the chip according to the fourth connection path and / or the fifth connection path, comprises: Acquire a starting point and an end point of a path, where the path is the first connection path, the second connection path, the third connection path, the fourth connection path and / or the fifth connection path; The starting point and the end point of the path are used as indexes, and the corresponding path is stored as a value.
2. The method according to claim 1, characterized in that The method of acquiring, for a functional unit block in a chip, a first connection path between an external input pin of a switch box and an input pin of a logic resource block, acquiring a second connection path between an output pin of the logic resource block and an external output pin of the switch box, and a third connection path between an external input pin and an external output pin of the switch box comprises: Classifying the functional unit blocks in the chip, wherein the logical resource blocks and switch boxes in the functional unit blocks of the same type are the same; For the functional unit blocks of the same type, the first connection path, the second connection path, and the third connection path of one of the functional unit blocks are obtained.
3. The method according to claim 1, characterized in that The obtaining of the fourth connection path and / or the fifth connection path of at least part of the functional unit blocks in one chip region comprises: Determining a central switch box of the chip region, the central switch box belonging to one of the functional unit blocks in the chip region; The fourth connection path and / or the fifth connection path from the central switch box to other switch boxes in the chip area is obtained.
4. The method according to claim 1, characterized in that: The obtaining of the area division parameters of the chip includes: Obtaining the maximum combined global connection length of the chip; The area division parameter is determined according to the maximum global line combination line length.
5. The method according to claim 1, characterized in that The step of acquiring, for the functional unit block, a fourth connection path between an external output pin of the functional unit block and an external input pin of another functional unit block based on the third connection path includes: Acquire a global connection combination between an external output pin of the functional unit block and an external input pin of other functional unit blocks; For the global connection in the global connection combination, determining the intermediate switch boxes that the global connection needs to pass through; The third connection path of the intermediate switch box is acquired, and the fourth connection path is obtained by combining.
6. A chip wiring resource generation device, characterized in that: The device comprises: A first path acquisition module is used to acquire, for a functional unit block in a chip, a first connection path between an external input pin of a switch box and an input pin of a logic resource block, a second connection path between an output pin of the logic resource block and an external output pin of the switch box, and a third connection path between an external input pin and an external output pin of the switch box; a second path acquisition module, configured to acquire, for the functional unit block, a fourth connection path between an external output pin of the functional unit block and an external input pin of another functional unit block based on the third connection path, and / or acquire a fifth connection path between an external input pin of the functional unit block and an external output pin of another functional unit block; a generating module, configured to generate local wiring resources of the chip according to the first connection path, the second connection path, and the third connection, and to generate global wiring resources of the chip according to the fourth connection path and / or the fifth connection path; The second path acquisition module includes: A partition parameter acquisition unit, used to acquire the area partition parameters of the chip; A division unit, configured to perform area division according to the block division parameter, wherein the number of the switch boxes in the chip areas obtained by division is the same; A second path acquisition unit, configured to acquire the fourth connection path and / or the fifth connection path of at least a portion of the functional unit blocks in one chip region; The generation module comprises: a path start and end point acquisition unit, used to acquire a start point and an end point of a path, where the path is the first connection path, the second connection path, the third connection path, the fourth connection path and / or the fifth connection path; The storage unit is used to store the starting point and the end point of the path as indexes and the corresponding path as values.
7. 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 wiring resource generation method for a chip according to any one of claims 1 to 5 by executing the computer instructions.
8. 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 wiring resource generation method for a chip according to any one of claims 1 to 5.
Citation Information
Patent Citations
Navigation locating and wiring method applied to FPGA (field programmable gate array) test
CN102768692A
Semiconductor integrated circuit, program transformation apparatus, and mapping apparatus
US20090237113A1
