A FPGA design method based on block design
By adding virtual port modules and adjusting their layout in the block design of the FPGA chip, the problem of difficulty in realizing cross-block path timing constraints is solved, the design efficiency is improved and the design difficulty is reduced, and the effective integration of cross-block paths is achieved. .
Patent Information
- Application Number
- CN202211180954.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-27
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-09-27
AI Technical Summary
In the block design of FPGA chips, it is difficult to realize the timing constraints of cross-block paths, which may not meet the timing requirements during full chip integration. Moreover, the mutual coupling relationship between blocks is complex, and it is easy to enter the loop debugging dilemma.
By adding a virtual port module to the target block and determining its layout position at the periphery of the local chip area, we ensure the timing constraints of the cross-block path and avoid repeated deconsolidation and redesign during the full-chip integration phase, using the flip adjustment of the virtual port module. to optimize block layout.
It effectively realizes the timing constraints of cross-block paths, improves FPGA design efficiency, avoids repeated designs in the full-chip integration stage, reduces the difficulty of reused block design, and truly takes advantage of block-based design.
Smart Images

Figure CN115496023B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of FPGA technology, and in particular to an FPGA design method based on block design. Background Art
[0002] Field-Programmable Gate Array (FPGA) is a chip that is widely used in daily household appliances, large machinery and even aerospace. As the scale and complexity of FPGA chips increase, the difficulty of chip design is gradually increasing. In order to improve design efficiency, block-based design is often used to complete large-capacity and high-complexity user designs.
[0003] The block design method refers to dividing the entire user design into blocks according to specific requirements. Each block corresponds to a sub-design of a part of the user design, each block corresponds to a local netlist or local RTL design code of a sub-design, and each block also corresponds to a local chip area on the FPGA chip. Set goals (functions of the sub-design) and constraints (timing constraints, area constraints of the local chip area, and position constraints of the local chip area) for each block, that is, the corresponding sub-design can be implemented in the corresponding local chip area to complete the design of a block. After the design of each block is completed, all blocks are globally integrated, and the entire user design can be completed within the global scope of the FPGA chip.
[0004] Since the scale of the sub-design corresponding to each block is smaller than the global one, the design difficulty and debugging difficulty of each block are reduced exponentially compared to the method of directly designing the entire user design, thereby improving the design efficiency of the FPGA chip. In addition, in actual operation, each block can be designed and completed in sequence, or each block can be completed in parallel by multiple teams, which can further reduce the required design time, and can achieve multi-team collaboration or even remote collaboration, and the design flexibility is also higher. After a block is designed, the block can also be directly reused in multiple user designs, thereby reducing the time spent on repeated design and improving chip design efficiency from another perspective. Therefore, based on the above advantages, the block design method is of great significance for the efficient and rapid design of FPGA chips.
[0005] However, the problem that is difficult to avoid in the application of the block design method is that when the global user design is divided into blocks, the path will be divided into multiple parts and divided into sub-designs corresponding to different blocks. For example, the modules that the entire path passes through from the input end to the output end include A, B, and C. When dividing the blocks, module A is divided into the sub-design corresponding to block 1, and modules B and modules C are divided into the sub-design corresponding to block 2. In this case, the path between module A→module B is divided, which makes it difficult to express the delay between module A→module B in the timing constraints when designing block 1 or block 2. Therefore, it is often ignored when designing each block independently. This leads to the problem that the timing of module A→module B→module C often cannot meet the timing requirements during the full chip integration stage. At this time, it is necessary to adjust the layout of block 1 or block 2 to compress the delay of the wire network in the block to meet the delay requirements of the entire path.
[0006] However, after the design of a block is completed, its internal layout has been solidified. Therefore, if it is found that the timing requirements cannot be met during the full chip integration stage and the internal layout of the block needs to be adjusted to reduce the delay, the solidified block can only be desoldered and redesigned. Moreover, in actual application, there are often multiple paths in the user design that are divided. Different paths are distributed in different blocks, forming a mutual coupling relationship between blocks. When redesigning the block, the impact on other paths must be considered, which easily leads to the dilemma of loop debugging and makes it difficult to give full play to the advantages of the block design method. Summary of the invention
[0007] In view of the above problems and technical requirements, the inventors have proposed an FPGA design method based on block design. The technical solution of the present invention is as follows:
[0008] An FPGA design method based on block design, the method comprising:
[0009] The global user design is divided into a number of blocks with connection relationships, each block corresponds to a sub-design of a part of the global user design, and each block corresponds to a local chip area on the FPGA chip; there is at least one cross-block path in the global user design, the cross-block path includes multiple connected local paths and is distributed in multiple different target blocks and between target blocks, the target block is a block that contains at least one local path of the cross-block path, and the local path contained in each target block is externally connected to other local paths belonging to the same cross-block path through a virtual port module;
[0010] Determine the layout position of the virtual port module in the sub-design corresponding to each target block, wherein the layout position of each virtual port module of each target block is determined by the position of the winding structure around the local chip area corresponding to the target block;
[0011] The sub-design of each block is completed in the corresponding local chip area according to the respective block constraints. The block constraints of each target block include the delay constraints of the local paths of the cross-block paths within the target block.
[0012] The completed design blocks are fully integrated to obtain the design result of the global user design on the FPGA chip.
[0013] A further technical solution is that the method further includes determining the full path delay T of the cross-block path for each cross-block path in the global user design, and determining the delay constraints of the local paths of the cross-block path distributed in each target block according to the full path delay T;
[0014] When performing full-chip integration, for the full path formed by connecting multiple local paths belonging to the same cross-block path, the delay constraint of the full path is determined to be the full path delay T of the cross-block path. The formed full path includes local paths distributed in each block of the completed design and local paths connected between different target blocks.
[0015] A further technical solution is to determine the delay constraints of the local paths distributed across the block paths in each target block according to the full path delay T, including:
[0016] Determine the delay constraint of the local paths distributed in each target block by the cross-block path as T / N, where N is the total number of local paths included in the cross-block path.
[0017] A further technical solution is to determine the delay constraints of the local paths distributed across the block paths in each target block according to the full path delay T, including:
[0018] Determine the delay constraint of the local path distributed in each target block of the cross-block path as (T / M)*m, where M is the total number of sections included in the cross-block path, and m is the total number of sections included in the local path in the target block. A section is formed between two directly adjacent modules in the cross-block path, and each local path contains one or more sections.
[0019] A further technical solution is that when determining the layout positions of the virtual port modules in the sub-designs corresponding to each target block, the distance between the layout positions of two connected virtual port modules in the sub-designs corresponding to every two target blocks does not exceed a distance threshold.
[0020] A further technical solution is that among the multiple blocks obtained by the global user design division, there is at least one target block which is a multiplexing block whose design has been completed, and the layout position of the virtual port module of the multiplexing block is solidified;
[0021] On the basis that the layout position of the virtual port module of the multiplexing block has been solidified, the distance between the layout position of the virtual port module of any other target block connected to the virtual port module of the multiplexing block and the layout position of the virtual port module of the multiplexing block does not exceed the distance threshold.
[0022] Its further technical solution is that the method further comprises:
[0023] When using a reuse block that has been designed, under the condition that the resources contained in the local chip area corresponding to the reuse block support the conditions and the relative layout positions of the internal modules remain unchanged, the layout positions of the modules in the reuse block are adjusted so that the layout positions of its solidified virtual port modules face the other target blocks to which it is connected.
[0024] A further technical solution is that the layout position of the solidified virtual port module of the reuse block is at the boundary of the corresponding local chip area in the y direction;
[0025] The method for adjusting the layout position of the modules in the reuse block includes: flipping the layout position of the modules in the reuse block up and down in the y direction around a symmetry axis parallel to the x direction, so that the layout position of the virtual port module of the reuse block is flipped from one side boundary in the y direction to the other side boundary in the y direction;
[0026] Among them, the resources inside the FPGA chip are distributed according to the array structure, multiple columns of resources are distributed along the x direction, and the resources distributed in the same column along the y direction are of the same type. Then the resources inside the local chip area corresponding to the reuse block are symmetrical up and down in the y direction.
[0027] A further technical solution is that the layout position of the solidified virtual port module of the reuse block is at the boundary of the corresponding local chip area in the x direction;
[0028] When the resources inside the local chip area corresponding to the reuse block are symmetrical in the x-direction, the method for adjusting the layout position of the modules in the reuse block includes: flipping the layout position of the modules in the reuse block in the x-direction around the symmetry axis parallel to the y-direction, so that the layout position of the virtual port module of the reuse block is flipped from one side boundary in the x-direction to the other side boundary in the x-direction;
[0029] The resources inside the FPGA chip are distributed according to an array structure, multiple columns of resources are distributed along the x direction, and the resources distributed in the same column along the y direction are of the same type.
[0030] A further technical solution is to use the position of the peripheral winding structure at the middle position of the boundary of the local chip area corresponding to the target block as the layout position of the virtual port module of the target block.
[0031] The beneficial technical effects of the present invention are:
[0032] The present application discloses an FPGA design method based on block design. The method adds a virtual port module that serves as the input port or output port of the target block to a target block containing a local path of a cross-block path, and determines the layout position of the virtual port module according to the position of a winding structure outside a local chip area corresponding to the target block. This allows timing constraints to be imposed on the local paths of the cross-block paths contained in each target block when designing each block. When the whole chip is integrated, the full path delay requirement of the block path can be achieved as soon as possible, avoiding repeated decomposition and redesign in the full chip integration stage, making up for the defects of the existing block design, improving the FPGA design efficiency, and truly giving play to the advantages of the block design.
[0033] This method provides a method for flipping the reuse block to achieve the design. By flipping the reuse block so that the virtual port modules connected between different target blocks are in the appropriate layout position, the design difficulty when using the reuse block is reduced, so that the design requirements can be achieved as soon as possible when using the reuse block with a fixed structure, further improving the design efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 It is a flowchart of an FPGA design method based on block design according to an embodiment of the present application.
[0035] Figure 2 It is a schematic diagram of the original modules and their connections contained in the sub-design corresponding to each block obtained by dividing the global user design in an instance, as well as a schematic diagram of the local chip area corresponding to each block.
[0036] Figure 3 is based on Figure 2 The example shown is a schematic diagram of the layout positions of virtual port modules added to the target blocks, namely, the blocks 10 , 20 , and 30 .
[0037] Figure 4 is based on Figure 3 The example shown is a schematic diagram of flipping the block 30 upside down when the block 30 is formed by using multiplexed blocks.
[0038] Figure 5 It is a schematic diagram of flipping the blocks 50 and 60 left and right respectively when multiplexing blocks are used to form the blocks 50 and 60 in an example. DETAILED DESCRIPTION
[0039] The specific implementation of the present invention will be further described below in conjunction with the accompanying drawings.
[0040] This application discloses a FPGA design method based on block design, which includes the following steps, please refer to Figure 1 The flowchart shown:
[0041] Step 110, dividing the global user design into a plurality of blocks having connection relationships.
[0042] Each divided block corresponds to a sub-design of a part of the global user design. When the global user design is divided into multiple blocks, the original modules in the global user design are actually divided into sub-designs corresponding to different blocks. The sub-design corresponding to each block is pre-processed and analyzed to determine the resource type and resource quantity in the FPGA chip required for the block, and the local chip area corresponding to the block on the FPGA chip is determined based on the resource type and resource quantity required for each block. The sub-design of the block is subsequently implemented using the local chip area.
[0043] When the global user design is divided into blocks, the blocks are generally divided according to the implemented logical functions, that is, the netlist or RTL code that implements the same logical function is extracted to form a sub-design corresponding to a block. In one embodiment, all global user designs are divided into blocks to form various different logical functions. Or more commonly, in one embodiment, part of the design in the global user design is divided into blocks to form various different logical functions, but part of the design still exists in the form of random combinational logic. In this embodiment, the remaining part of the design that exists in the form of random combinational logic actually forms a block accordingly, and also has a corresponding local chip area.
[0044] For example, in one example, the global user design is divided into block 10, block 20, block 30, and block 40. Figure 2 The original modules included in the sub-design corresponding to each block are shown, and the resources included in the local chip area corresponding to each block are shown with dotted lines. The sub-design corresponding to block 10 includes original modules A, B, C, D, and H, the sub-design corresponding to block 20 includes original modules E, F, and G, the sub-design corresponding to block 30 includes original modules I and J, and the sub-design corresponding to block 40 includes original modules K and L. Figure 2 The location of each original module in the does not indicate the layout location of the original module. Figure 2 It is only for the purpose of illustrating a schematic diagram of implementing the original module in the sub-design by utilizing the resources in the local chip area corresponding to each block.
[0045] exist Figure 2 In the example shown, one case is that block 10, block 20, block 30 and block 40 are respectively used to implement different logic functions, or another case is that block 10, block 20, block 30 are respectively used to implement different logic functions, and the remaining design in the form of random combination logic automatically forms block 40. Therefore, no matter which of the above cases is the case, the global user design is actually divided into several blocks with connection relationships and corresponding to their respective local chip areas. The scale of the sub-design corresponding to each block may be equal or unequal, and the size of the local chip area corresponding to each block and the number and type of resources contained therein may be equal or unequal. Figure 2 A schematic diagram is shown, from which it can be seen that the sizes of the four local chip areas are different. Figure 2 The difference in size of different resources within the FPGA chip is not shown. This is just an example of a schematic diagram of the resource arrangement that forms an array structure that is currently common within the FPGA chip.
[0046] Since the original modules in the global user design are not independent, there are connections between the original modules to form the paths in the global user design, such as Figure 2 The connection relationship between the various original modules is shown, and the direction of the arrow indicates the signal transmission direction. It is defined that the original modules A, B and C form path 1, the original modules D, E, F form path 2, the original modules G, H, I, J form path 3, and the original modules L and K form path 4.
[0047] When the global user design is divided into multiple blocks and different original modules are divided into corresponding blocks, there may be some original modules in the paths in the global user design that are all divided into the same block, such as Figure 2 In the example, the original modules A, B, and C in path 1 are all divided into block 10, and the original modules L and K in path 4 are all divided into block 40. However, in the global user design, some original modules on some paths are divided into multiple different blocks, such as Figure 2 The original module D in path 2 is divided into block 10, and the original modules E and F in path 2 are divided into block 20. For another example, the original module G in path 3 is divided into block 20, the original module H in path 3 is divided into block 10, and the original modules I and J in path 3 are divided into block 30.
[0048] In this application, the path in which all the original modules are divided into the same block is called the intra-block path, and the path in which the original modules are divided into multiple different blocks is called the cross-block path. In the global user design, when it is divided into multiple blocks, at least one cross-block path is formed, which generally includes both intra-block paths and cross-block paths.
[0049] In fact, the original modules contained in each cross-block path can be divided into two or more different blocks. Since the original modules in the cross-block path are divided into multiple different blocks, each cross-block path is actually divided into multiple connected partial paths. Each partial path in each target block is externally connected to other partial paths belonging to the same cross-block path through a virtual port module (VIO). According to the signal transmission direction, a virtual port module is formed as an input end or an output end in the target block. The multiple partial paths formed by the same cross-block path are distributed in multiple different blocks and between blocks. Each block contains a partial path in a cross-block path, and the partial paths in different blocks are connected through the partial paths between blocks. At least one of the starting point and the end point of a partial path in each target block is a virtual port module, and the other is an original module or a virtual port module.
[0050] For example, corresponding Figure 2 Please refer to Figure 3 The enlarged schematic diagram of the block 10, block 20 and block 30 is shown, and the path 2 is divided into three local paths. One local path is located in the block 10 and its starting point is the original module D and its end point is the virtual port module VIO1. The local path in the block 10 connects the local path between the block 10 and the block 20 through VIO1; the other local path is located in the block 20 and its starting point is the virtual port module VIO2 and its end point is the original module F. The local path in the block 20 connects the local path between the block 10 and the block 20 through VIO2. For another example, path 3 is divided into five local paths, one local path is located in block 20, with the starting point being the original module G and the end point being the virtual port module VIO4, another local path is located in block 10, with the starting point being the virtual port module VIO3 and the end point being the virtual port module VIO5, another local path is located in block 30, with the starting point being the virtual port module VIO6 and the end point being the original module J, and the other two local paths are respectively located between block 20 and block 10, and between block 10 and block 30, and the local paths are also connected in accordance with the original signal transmission direction of the cross-block path.
[0051] This application defines a block that contains at least one original module across block paths and thus contains at least one local path across block paths as a target block, and defines a block that contains any original module across block paths but does not contain any local path across block paths as a common block. All blocks obtained by dividing the global user design can be target blocks, or only some blocks are target blocks and the rest are common blocks. Since the global user design contains at least one cross-block path, the blocks obtained by dividing the global user design contain at least two target blocks. For example Figure 2 In the example, block 10, block 20, and block 30 are all target blocks, but block 40 does not contain any local path of the cross-block path, so block 40 is not a target block but just a common block.
[0052] In addition, each target block may contain only one partial path of the cross-block path, or may contain partial paths of multiple different cross-block paths. Figure 2 and Figure 3 In the example shown, block 30 only includes partial paths in path 3. However, block 10 includes not only partial paths in path 3, but also partial paths in path 2. Similarly, block 20 includes not only partial paths in path 3, but also partial paths in path 2.
[0053] Step 120, determine the layout position of the virtual port module in the sub-design corresponding to each target block. In one embodiment, the layout position of each virtual port module in each target block is determined by the position of the wiring structure around the local chip area corresponding to the target block.
[0054] For ordinary blocks, they can be processed according to conventional design methods, such as Figure 1 Take the example of dividing into V target blocks and W common blocks.
[0055] Step 130 , completing the design of each block's sub-design in the corresponding local chip area according to the respective block constraints.
[0056] Similar to conventional methods, the block constraints of each block include functional constraints of the sub-design, constraints on the resources contained in the local chip area corresponding to the block, and timing constraints of the paths within the block. Since timing constraints require the use of timing analysis tools, the starting point and end point of the path that can be constrained by timing are subject to certain conditions. Only the following types of paths can be constrained by timing: (1) The starting point is a register and the end point is a register; (2) The starting point is an input terminal and the end point is a register; (3) The starting point is a register and the end point is an output terminal; (4) The starting point is an input terminal and the end point is an output terminal. Therefore, in conventional methods, there is usually no way to add timing constraints to cross-block paths because their starting points and end points are in different blocks, and the parts within each block do not meet the above four conditions for timing constraints.
[0057] However, in this application, since a virtual port module is added to the local path in each target block, the virtual port module can be used as an input or output in the target block according to the signal transmission direction, and the position of the virtual port module is also fixed, so the timing constraints can be performed on the local path of the cross-block path in each target block. Therefore, the block constraints of the common blocks in this application are the same as the block constraints in the conventional method, and the block constraints of the target blocks also include the delay constraints of the local paths of the cross-block paths in the target block relative to the block constraints in the conventional method.
[0058] For example, Figure 3 In the example shown, the starting point of path 2 is the original module D and the end point is the original module F. Both the original module D and the original module F are registers, so in the global user design, the entire path 2 can be subject to timing constraints. However, after being divided into blocks, since the original module D is located in block 10, and the original module E and the original module F are located in block 20, according to conventional methods, the portion of path 2 in block 10 does not conform to the above four categories of situations that can be subject to timing constraints, and the portion of path 2 in block 20 also does not conform to the above four categories of situations that can be subject to timing constraints. Therefore, in conventional methods, there is no way to perform timing constraints on path 2 during the block design process. However, in the method of the present application, since a virtual port module as an input or output end is added to the block and its position is fixed when the block is divided to form a block, timing constraints can be added. For example, in Figure 2 and Figure 3In the example shown, for the portion of path 2 located in block 10, since VIO1 is added as an output terminal, the local path in block 10 with the original module D as the starting point and VIO1 as the end point meets the situation that the starting point is a register and the end point is an output terminal, and a timing constraint can be added. Similarly, for the portion of path 2 located in block 20, since VIO2 is added as an input terminal, the local path in block 10 with VIO2 as the starting point and the original module F as the end point meets the situation that the starting point is an input terminal and the end point is a register, and a timing constraint can also be added.
[0059] In one embodiment, a timing constraint is added to a local path of a cross-block path located in each target block based on the full path delay T of the cross-block path. First, the full path delay T of the cross-block path is determined, and then the delay constraints of the local paths of the cross-block path distributed in each target block are determined according to the full path delay T. There are two methods:
[0060] Method 1: Determine the delay constraint of the local path distributed in each target block of the cross-block path as T / N, where N is the total number of local paths included in the cross-block path, that is, the full path delay T is equally divided according to the number of local paths, so the delay constraints of the local paths in each target block are equivalent.
[0061] for example Figure 2 and Figure 3 In the example shown, path 2 contains three local paths, so N=3. Therefore, it can be determined that the delay constraint of the local path of path 2 located in block 10 (the starting point is the original module D and the end point is VIO1) is T / 3, and the delay constraint of the local path of path 2 located in block 20 (the starting point is VIO2 and the end point is the original module F) is also T / 3.
[0062] Method 2: Determine the delay constraint of the local path distributed in each target block of the cross-block path as (T / M)*m, where M is the total number of sections included in the cross-block path, and m is the total number of sections included in the local path in the target block. A section is formed between two directly adjacent modules in the cross-block path. The modules here include the original module and the added virtual port module. Each local path contains one or more sections.
[0063] Combination Figure 2 and Figure 3 As can be seen from the example, the number of modules contained in each partial path of the same cross-block path may be equal or unequal, so the number of road segments m contained in each partial path may be equal or unequal. Figure 2 and Figure 3In the example shown, the local path of path 2 in block 10 includes two modules, module D and VIO1, forming a section, while the local path of path 2 in block 20 includes three modules, original module F, original module E and VIO2, forming two sections. In the second method, the timing constraints of the local paths are determined according to the number of sections included in the local paths, and the timing constraints of different local paths may be equal or unequal.
[0064] for example Figure 2 and Figure 3 In the example shown, path 2 includes a total of 5 modules, namely original module D, original module E, original module F, and added VIO1 and VIO2. The 5 modules form 4 road sections, so the total number of road sections included in path 2 is M=4. The delay constraint of the local path of path 2 in block 10 is (T / 4)*1, and the delay constraint of the local path of path 2 in block 20 is (T / 4)*2.
[0065] Step 140 , perform full chip integration on all blocks of the completed design to obtain a design result of the global user design on the FPGA chip.
[0066] When performing full-chip integration, for the full path formed by connecting multiple local paths belonging to the same cross-block path, the delay constraint of the full path is determined to be the full path delay T of the cross-block path. The formed full path includes local paths distributed in each target block of the completed design and local paths connected between different target blocks.
[0067] For the local paths between target blocks, since their starting and ending points do not meet the conditions for timing constraints, for example, Figure 2 and Figure 3 In the example shown, the local path between block 10 and block 20 starts at the output terminal VIO1 in block 10 and ends at the input terminal VIO2 in block 20, which does not meet the conditions for timing constraints. Therefore, when designing blocks, the local paths connecting different target blocks cannot be constrained individually. Therefore, when the whole chip is finally integrated, the timing constraints are restored to the full path.
[0068] That is, for example, Figure 2 and Figure 3For path 2 in the example shown, when designing block 10, the local path from original module D to VIO1 is designed according to the timing constraint of T / 3, and the local path is solidified. When designing block 20, the local path from VIO2 to original module F is designed according to the timing constraint of T / 3, and the local path is solidified. When the whole chip is integrated, since the local paths in blocks 10 and 20 have been solidified and meet the timing constraints, when the full path from original module D to original module F is designed according to the timing constraint of T, it is equivalent to realizing the timing constraint of the local path between blocks 10 and 20, and it can ensure that the entire cross-block path meets the timing requirements.
[0069] In the above step 120, in order to make the cross-block path meet the timing constraint as much as possible, when determining the layout position of the virtual port module in the sub-design corresponding to each target block, the distance between the layout positions of two connected virtual port modules in the sub-design corresponding to each two target blocks does not exceed the distance threshold, and the distance threshold can be determined according to the actual situation, that is, the layout positions of the two connected virtual port modules should be as close as possible. Based on this selection principle, there are mainly two types of situations:
[0070] Case 1: Neither of the two target blocks is a reused block.
[0071] As introduced in the background technology part, in the block design method, after a block is designed, the block can be directly reused next time. In the state where the global user design is divided into several blocks with connection relationships in the above step 110, some blocks may be reused blocks that have been previously implemented and completed. The reused block used may be an ordinary block that only contains paths within the block, or it may be a target block that contains a local path of a cross-block path. Since the method of this application is mainly aimed at the target block, the ordinary block does not need to add a virtual port module and its layout position, and the block design can be performed according to the conventional method. Therefore, for the reused block part, this application will focus on the situation where there is at least one target block that is a reused block that has been designed. The layout position of the modules contained in the reused block has been solidified, and the layout position of the virtual port module of the reused block has also been solidified and cannot be changed.
[0072] If neither of the two target blocks is a reused block, the structures of the two target blocks are not solidified. When determining the layout positions of the virtual port modules in the sub-designs corresponding to each target block, you can freely choose according to the actual situation. Then the top-level global designer can pre-allocate the layout position of each virtual port module of each target block based on the principle of shortening the distance between the layout positions of the two connected virtual port modules as much as possible.
[0073] Case 2: There are reused blocks in these two target blocks.
[0074] When a reuse block is used, as described above, since the internal structure of the reuse block and the layout position of the virtual port module have been solidified, on the basis that the layout position of the virtual port module of the reuse block has been solidified, the distance between the layout position of the virtual port module of any other target block connected to the virtual port module of the reuse block and the layout position of the virtual port module of the reuse block does not exceed the distance threshold, that is, the distance between the layout positions of the virtual port modules of the two target blocks does not exceed the distance threshold. This situation includes two cases:
[0075] 1. One of the two target blocks is a reuse block and the other is not a reuse block.
[0076] In this case, the layout position of the virtual port module can be freely selected for the target block that is not a multiplexing block. If a suitable layout position of the virtual port module can be selected to meet the distance threshold requirement, the design can still be completed.
[0077] However, in this case, it is possible that no matter how the layout position of the virtual port module is selected for the target block, the distance threshold requirement cannot be met, for example Figure 3 As shown, assuming that block 30 is a multiplexing block and block 10 is not a multiplexing block, its internal design and the layout position of the virtual port module VIO6 have been solidified. When selecting the layout position of the virtual port module VIO5 of block 10, even if the position closest to block 30 is selected, VIO5 and VIO6 cannot meet the distance threshold, which may easily cause the cross-block path to fail to meet the timing constraint.
[0078] 2. Both target blocks are reused blocks.
[0079] In this case, the layout positions of the virtual port modules in the two target blocks are fixed and cannot be adjusted, e.g. Figure 3 In the example, it is assumed that both block 10 and block 30 are reused blocks, the layout position of the virtual port module VIO5 on block 10 has been fixed, and the layout position of the virtual port module VIO6 on block 30 has been fixed. In this case, it is more likely that the distance threshold requirement between the layout positions of the two virtual port modules cannot be met.
[0080] Therefore, no matter which of the above situations is used, when the reuse block is used as the target block, it is easy to fail to meet the distance threshold requirement between the layout positions of the two virtual port modules. In view of this problem, this embodiment proposes a solution:
[0081] When using a multiplexing block that has been designed, under the condition that the resources contained in the local chip area corresponding to the multiplexing block support and the relative layout position of the internal modules remain unchanged, adjust the layout position of the modules in the multiplexing block so that the layout position of the virtual port module that has been solidified in the multiplexing block faces the other target blocks it is connected to. There are two cases:
[0082] (1) Flip the reused block up and down in the y direction.
[0083] The resources inside the FPGA chip are distributed in an array structure, with multiple columns of resources distributed along the x direction, and the resources distributed in the same column along the y direction are of the same type. This structure inside the FPGA chip makes the resources inside the local chip area corresponding to the reuse block symmetrical in the y direction.
[0084] Based on this feature, when the layout position of the solidified virtual port module of the multiplexing block is at the boundary of the corresponding local chip area in the y direction, the layout position of the module in the multiplexing block can be flipped up and down in the y direction around the symmetry axis parallel to the x direction, so that the layout position of the virtual port module of the multiplexing block can be flipped from one side boundary in the y direction to the other side boundary in the y direction.
[0085] For example, comparison Figure 3 and Figure 4 , in block 30, which is a multiplexing block, the layout position of its VIO6 is fixed at the bottom, such as Figure 3 As shown, when block 30 is used directly, the distance between VIO5 and VIO6 cannot meet the distance threshold no matter how the position of VIO5 is selected on block 10. Figure 4 As shown, the block 30 is flipped up and down in the y direction. Since the resources in the same column are the same, the original module J and the original module I in the block 30 are still implemented by the same resources and the relative layout positions remain unchanged, which will not affect the solidified structure inside the block 30. However, the layout position of VIO6 is flipped from the side away from the block 10 in the y direction to the side close to the block 10. At this time, the layout position of VIO5 can be successfully determined on the block 10 to meet the distance threshold requirement.
[0086] (2) Flip the reused block left and right in the x direction.
[0087] As mentioned above, the resources inside the FPGA chip are distributed according to an array structure. Multiple columns of resources are distributed along the x-direction, and the types of resources distributed in the same column along the y-direction are the same. Some columns of resources inside the FPGA chip are also the same. Therefore, this structure inside the FPGA chip makes it possible for the resources inside the local chip area corresponding to the reused block to be symmetrical in the x-direction.
[0088] Based on this feature, when the resources inside the local chip area corresponding to the reuse block are symmetrical in the x-direction, and the layout position of the solidified virtual port module of the reuse block is at the boundary of the corresponding local chip area in the x-direction, the layout position of the module in the reuse block is flipped left and right in the x-direction around the symmetry axis parallel to the y-direction, so that the layout position of the virtual port module of the reuse block is flipped from one side boundary in the x-direction to the other side boundary in the x-direction.
[0089] for example Figure 5 In the example shown, assuming that both block 50 and block 60 are multiplexed blocks, if the already solidified blocks 50 and 60 are used directly, the layout position of the virtual port module VIO7 of block 50 has been solidified on the left side of block 50, and the layout position of the virtual port module VIO8 of block 60 has been solidified on the right side of block 60. The distance between VIO7 and VIO8 is too long to meet the distance threshold requirement. The columns of resources occupied by blocks 50 and 60 are marked in the figure. It can be seen that the resources inside the local chip area corresponding to blocks 50 and 60 are symmetrical in the x direction. At this time, block 50 can be flipped left and right in the x direction. Since the resources are symmetrical in the x direction, the original module M and the original module N in block 50 are still implemented by the same resources and the relative layout position remains unchanged, which will not affect the solidified structure inside block 50, and VIO7 of block 50 is flipped to face block 60. The same is true for block 60. Block 60 can also be flipped left and right so that VIO8 faces block 50, so that the distance between VIO7 and VIO8 can meet the distance threshold requirement.
[0090] When both target blocks are multiplexed blocks, only one of the multiplexed blocks may be flipped, or both of the multiplexed blocks may be flipped.
[0091] Based on the method provided in this embodiment, when selecting a layout position for the virtual port module of the target block, the position of the peripheral winding structure at the middle position of the boundary of the local chip area corresponding to the target block is used as the layout position of the virtual port module of the target block. This not only reserves the possibility of flipping the block upside down and left side to right when it is reused later, but also makes the expected distance of the virtual port module connected to different directions shorter, with better symmetry, and can adapt to the connection requirements in different directions.
Claims
1. A FPGA design method based on block design, characterized in that: The method comprises: The global user design is divided into a plurality of blocks having a connection relationship, each block corresponds to a sub-design of a part of the global user design, and each block corresponds to a local chip area on the FPGA chip; there is at least one cross-block path in the global user design, the cross-block path includes a plurality of connected local paths and is distributed in a plurality of different target blocks and between target blocks, the target block is a block that contains at least one local path of the cross-block path, and the local paths contained in each target block are externally connected to other local paths belonging to the same cross-block path through a virtual port module; Determine the layout position of the virtual port module in the sub-design corresponding to each target block, wherein the layout position of each virtual port module of each target block is determined by the position of the winding structure around the local chip area corresponding to the target block; The sub-design of each block is designed in the corresponding local chip area according to the respective block constraints, and the block constraints of each target block include the delay constraints of the local paths of the cross-block paths in the target block; Performing full chip integration on each block of the completed design to obtain the design result of the global user design on the FPGA chip; Among the several blocks obtained by the global user design division, there is at least one target block that is a reuse block whose design has been completed, and the layout position of the virtual port module of the reuse block is solidified; on the basis that the layout position of the virtual port module of the reuse block has been solidified, the distance between the layout position of the virtual port module of any other target block connected to the virtual port module of the reuse block and the layout position of the virtual port module of the reuse block does not exceed a distance threshold; when using the reuse block whose design has been completed, under the condition that the resources contained in the local chip area corresponding to the reuse block support and the relative layout position of the internal modules remain unchanged, the layout position of the modules in the reuse block is adjusted so that the layout position of its solidified virtual port module faces the other target blocks connected to it.
2. The method according to claim 1, characterized in that The method further includes determining, for each cross-block path in the global user design, a full path delay T of the cross-block path, and determining delay constraints of local paths of the cross-block path distributed in each target block according to the full path delay T; When performing full-chip integration, for the full path formed by connecting multiple local paths belonging to the same cross-block path, the delay constraint of the full path is determined to be the full path delay T of the cross-block path. The formed full path includes local paths distributed in each block of the completed design and local paths connected between different target blocks.
3. The method according to claim 2, characterized in that The determining, according to the full path delay T, the delay constraints of the local paths of the cross-block paths distributed in each target block includes: Determine that the delay constraint of the local paths of the cross-block path distributed in each target block is T / N, where N is the total number of local paths included in the cross-block path.
4. The method according to claim 2, characterized in that: The determining, according to the full path delay T, the delay constraints of the local paths of the cross-block paths distributed in each target block includes: Determine the delay constraint of the local path of the cross-block path distributed in each target block as (T / M)*m, where M is the total number of sections included in the cross-block path, and m is the total number of sections included in the local path in the target block. A section is formed between two adjacent directly adjacent modules in the cross-block path, and each local path contains one or more sections.
5. The method according to claim 1, characterized in that When determining the layout positions of the virtual port modules in the sub-designs corresponding to the target blocks, the distance between the layout positions of two connected virtual port modules in the sub-designs corresponding to every two target blocks does not exceed the distance threshold.
6. The method according to claim 1, characterized in that The layout position of the solidified virtual port module of the multiplexing block is at the boundary of the corresponding local chip area in the y direction; The method for adjusting the layout position of the module in the multiplexing block includes: flipping the layout position of the module in the multiplexing block up and down in the y direction around a symmetry axis parallel to the x direction, so that the layout position of the virtual port module of the multiplexing block is flipped from one side boundary in the y direction to the other side boundary in the y direction; Among them, the resources inside the FPGA chip are distributed according to the array structure, multiple columns of resources are distributed along the x direction, and the resources distributed in the same column along the y direction are of the same type. Then the resources inside the local chip area corresponding to the reuse block are symmetrical up and down in the y direction.
7. The method according to claim 1, characterized in that The layout position of the solidified virtual port module of the multiplexing block is at the boundary of the corresponding local chip area in the x direction; When the resources inside the local chip area corresponding to the reuse block are symmetrical in the x-direction, the method for adjusting the layout position of the modules in the reuse block includes: flipping the layout position of the modules in the reuse block in the x-direction around the symmetry axis parallel to the y-direction, so that the layout position of the virtual port module of the reuse block is flipped from one side boundary in the x-direction to the other side boundary in the x-direction; The resources inside the FPGA chip are distributed according to an array structure, multiple columns of resources are distributed along the x direction, and the resources distributed in the same column along the y direction are of the same type.
8. The method according to claim 1, characterized in that The location of the peripheral winding structure at the middle position of the boundary of the local chip area corresponding to the target block is used as the layout location of the virtual port module of the target block.
Citation Information
Patent Citations
Method for designing large standard-cell based integrated circuits
US20020087939A1
