FPGA layout method based on data flow and frequency to form floor plan

Through the floor planning method based on data flow direction and frequency, the constrained area is determined and the layout is optimized, which solves the problem of limited clock frequency of FPGA during high-speed serial port data transmission, and achieves efficient data flow layout and timing requirements.

CN114330187BActive Publication Date: 2024-10-29WUXI ESIONTECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111581085.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-22
Publication Date
2024-10-29
Estimated Expiration
2041-12-22

AI Technical Summary

Technical Problem

When FPGA transmits high-speed serial port data, the clock frequency is limited, which causes the data to be stored and transmitted in frequency division, which increases the difficulty of layout and makes it difficult to meet the timing requirements of high-bandwidth data flow at the same time.

Method used

Using a plane planning method based on data flow direction and frequency, by analyzing the user input netlist, the starting and ending instance modules of the key data flow are determined, the constraint area is determined according to the timing requirements and transmission bandwidth, and the resources in the constraint area are used to carry out the instance module Layout, optimize layout results.

Benefits of technology

The delay is reduced, timing requirements are met, layout difficulty is reduced, and FPGA layout results are optimized.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114330187B_ABST
    Figure CN114330187B_ABST
Patent Text Reader

Abstract

The present application discloses an FPGA layout method for forming a plane planning based on data flow direction and frequency, and relates to the field of FPGA technology. The method obtains the constraint area conditions related to the transmission bandwidth of the key data flow by analyzing the data flow direction and timing requirements of the key data flow, and then determines the constraint area of ​​the key data flow. Then, all instance modules contained in the key data flow are placed in the constraint area to reduce the delay and meet the timing requirements, thereby realizing local plane planning before formal layout, reducing layout difficulty, and optimizing layout results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of FPGA technology, and in particular to an FPGA layout method for forming a plane plan based on data flow direction and frequency. Background Art

[0002] Field-Programmable Gate Array (FPGA) is a chip widely used in daily household appliances, large machinery and even aerospace. As a semi-custom circuit in the field of application-specific integrated circuits (ASIC), it not only solves the shortcomings of custom circuits, but also overcomes the characteristics of the limited number of gate circuits of the original programmable device. In recent years, FPGA has been introduced into many fields such as artificial intelligence, big data analysis, network communication, image processing, and robotics, and has achieved remarkable application results. The rapid development of FPGA has made it a mainstream general computing technology.

[0003] With the rapid development of information technology, the data transmission rate between boards and chips is getting higher and higher. Line rate refers to the number of code elements sent and received per second. At present, the line rate of high-speed serial ports in various mainstream chips can reach tens or even hundreds of Gb / s. For example, the line rate of each channel of the high-speed serial port GTH of the Virtex7 series chip can reach 13.1Gb / s, the line rate of each channel of the high-speed serial port GTY in the newer device Ultrascale+ can reach 32.75Gb / s, and the line rate of each channel of the high-speed serial port GTM in the latest device VersalACAP can reach 58Gb / s or 112Gb / s. However, the clock frequency that FPGA can achieve is limited at present, and the maximum can reach hundreds of MHz. Therefore, the data transmitted from the high-speed serial port to the outside of the chip or from the outside of the chip to the high-speed serial port needs to be divided to meet the clock frequency of the FPGA. The data bandwidth of the FPGA can be as high as tens or even hundreds of Gb / s, while the clock frequency can only reach hundreds of MHz, so the data to be transmitted needs to be stored in the internal memory, such as BRAM, and then sent to the high-speed serial port through several levels of registers, lookup tables, etc. At this time, the data bit width of BARM and the number of registers that the signal is transmitted to (the number of registers at each level) determine the frequency of the data line, which is: bandwidth / data bit width = frequency. The data bit width here can be 16, 32, 64, etc., so that the frequency on the data line can be reduced to several hundred MHz. Although the frequency at this time is many times lower than the line rate, the data transmission rate is still very fast.

[0004] The starting point and end point of the data flow on the data line are both instance modules with clock control. The signal transmission path reaches the end point of the data flow from the starting point of the data flow through zero or more intermediate nodes without clock control. The timing constraint requires that the delay of any path between a group of data flow starting points and data flow end points controlled by the same clock cannot be greater than the clock cycle. Therefore, when a high-bandwidth data flow flows from the starting point of the data flow to the end point of the data flow, the timing requirements of the path passed are high. Due to the short clock cycle or the large bit width and many instances involved, it is difficult to meet the timing of all paths at the same time in the layout, which is a difficult problem in layout. Summary of the invention

[0005] In view of the above problems and technical requirements, the inventors have proposed an FPGA layout method based on data flow and frequency to form a plane planning. The technical solution of the present invention is as follows:

[0006] An FPGA layout method for forming a plane plan based on data flow direction and frequency, the method comprising:

[0007] Parse the user input netlist to determine the starting instance module and the end instance module of the key data flow, as well as all the intermediate instance modules along the data flow from the starting instance module to the end instance module;

[0008] Determine the constraint region conditions according to the timing requirements of the key data flow and all instance modules in the key data flow. The constraint region conditions are related to the transmission bandwidth of the key data flow, and the transmission bandwidth is related to the data bit width and the operating frequency.

[0009] Determine a layout area that meets the constraint area conditions as a constraint area for the key data flow;

[0010] All instance modules in the critical data flow are placed using resources within the constraint region, and the FPGA is placed according to the user input netlist.

[0011] Its further technical solution is that the transmission bandwidth of the key data stream reaches a predetermined threshold, the transmission bandwidth of the key data stream is the product of the data bit width and the operating frequency, and the operating frequency does not exceed the clock frequency of the FPGA, the data bit width is related to the resource requirements of the instance module in the key data stream, and the operating frequency is related to the timing requirements of the key data stream.

[0012] Its further technical solution is that the constraint area condition includes that the maximum delay formed by the constraint area meets the timing requirements of the key data flow, and the maximum delay formed by the constraint area is the maximum delay formed between the two layout positions farthest apart in the constraint area.

[0013] A further technical solution is that the constraint area condition includes that the type and quantity of resources in the constraint area meet the resource requirements of all instance modules in the key data flow.

[0014] A further technical solution is that the constraint area condition includes that the height of the constraint area is not less than the highest module height of the key data stream, and the highest module height is the height of the highest instance module among all instance modules in the key data stream.

[0015] A further technical solution is that when the layout position of the start instance module or the end instance module of the key data flow is determined, a layout area that meets the constraint area condition is determined as the constraint area of ​​the key data flow, including:

[0016] The starting instance module or the end instance module determined by the layout position and the layout area around it that meets the constraint area conditions are used as the constraint area of ​​the key data flow.

[0017] A further technical solution is to use resources in the constraint area to layout all instance modules in the key data flow, including:

[0018] Utilize the global scope resources of the constraint region to layout each instance module in the key data flow.

[0019] A further technical solution is to use resources in the constraint area to layout all instance modules in the key data flow, including:

[0020] The constraint area is divided into several sub-areas according to the types of resources in the constraint area, each sub-area contains a type of resource in the constraint area, and different sub-areas contain different types of resources;

[0021] For each instance module in the key data flow, the instance module is laid out using resources in a sub-region corresponding to the type of resources required by the instance module.

[0022] Its further technical solution is that when all instance modules in the critical data flow are laid out using resources in the constraint area, the layout positions of all first-type instance modules in the critical data flow are arranged in sequence along the data flow direction, wherein the first-type instance modules are instance modules in the critical data flow that are controlled by clock signals.

[0023] A further technical solution is that the signal path delay between every two adjacent first-type instance modules along the data flow direction is no greater than the clock period of the clock signal.

[0024] Its further technical solution is that the type and quantity of resources between the layout positions of every two adjacent first-type instance modules along the data flow direction meet the resource requirements of the second-type instance module between the two first-type instance modules, and the second-type instance module between the two first-type instance modules is an instance module in the critical data flow that is located between the two first-type instance modules along the data flow direction and is not controlled by the clock signal.

[0025] Its further technical solution is that the method also includes: parsing the user input netlist and determining the starting instance module, the end instance module and all the intermediate instance modules of at least two different key data flows; determining the constraint area of ​​each key data flow in order from large to small working frequency; after determining the constraint area corresponding to all key data flows, respectively using the resources in the constraint area corresponding to each key data flow to layout all the instance modules in the key data flow, and completing the layout of the FPGA according to the user input netlist.

[0026] A further technical solution is that each key data stream corresponds to a constraint area, and the constraint areas corresponding to each key data stream are different; or, all key data streams correspond to the same constraint area; or, there are at least two key data streams corresponding to the same constraint area, and there are at least two different constraint areas.

[0027] Its further technical solution is that, when there is a resource conflict in the constraint areas corresponding to two key data streams, if there is no identical instance module in the two key data streams and the operating frequencies of the two key data streams are different, the constraint area of ​​the key data stream with the smaller operating frequency is re-determined; if there is no identical instance module in the two key data streams and the operating frequencies of the two key data streams are the same, the constraint area of ​​the key data stream with the smaller data bit width is re-determined; if there is the same instance module in the two key data streams, the constraint area of ​​the key data stream with the smaller operating frequency or the smaller data bit width is expanded in the direction away from the same instance module.

[0028] A further technical solution is that the starting instance module or the ending instance module of each key data stream is a high-speed transceiver channel of the high-speed serial port, and different key data streams use different high-speed transceiver channels. Then, the multiple key data streams belonging to the high-speed transceiver channels of the same high-speed serial port correspond to the same constraint area, and the multiple key data streams belonging to the high-speed transceiver channels of different high-speed serial ports correspond to different constraint areas.

[0029] A further technical solution is to use the number of key data streams of the high-speed transceiver channel W is the user-designed bandwidth of the FPGA, W 0It is the transmission bandwidth of a single critical data stream and is equal to the line rate of the high-speed transceiver channel in the critical data stream. Is the round-up symbol.

[0030] The beneficial technical effects of the present invention are:

[0031] The present application discloses an FPGA layout method for forming a plane planning based on data flow direction and frequency. The method analyzes the data flow direction and timing requirements of key data flows, determines the constraint area conditions related to the transmission bandwidth of the key data flows, and then determines the constraint area. Then, all instance modules contained in the key data flows are placed in the constraint area to reduce the delay and meet the timing requirements, thereby realizing local plane planning before formal layout, reducing layout difficulty, and optimizing layout results. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 It is a flowchart of the FPGA layout method of the present application.

[0033] Figure 2 It is a schematic diagram of the constraint area determined in an example and the sub-areas obtained by division.

[0034] Figure 3 yes Figure 2 A schematic diagram of another constraint region determined in the example shown.

[0035] Figure 4 It is a flowchart of executing the method of the present application on multiple key data streams.

[0036] Figure 5 It is a flow chart of using the FPGA layout method of the present application in the entire FPGA design process. DETAILED DESCRIPTION

[0037] The present application discloses an FPGA layout method for forming a plane plan based on data flow direction and frequency, the method comprises the following steps, please refer to Figure 1 The flowchart shown:

[0038] Step 102 , parse the user input netlist to determine the starting instance module and the ending instance module of the key data flow, as well as all the intermediate instance modules along the data flow from the starting instance module to the ending instance module.

[0039] The user input netlist here is generally a gate-level netlist after synthesis. By parsing the user input netlist, several data flows can be obtained. The key data flow is the data flow that meets the predetermined conditions among all the data flows in the user input netlist. The predetermined conditions can be customized. The data flow is a set of ordered bytes with a starting point and an end point, which flows from one storage to another storage. Through the user input netlist, the starting point of the data flow can be determined first. The starting point is located at the DATA output port of a certain instance module, which is the starting instance module of the data flow. It is connected to the input port of another instance module through the wiring network, and then the output of the instance module is connected to the next instance module through the wiring network. In this way, the data finally flows into the DATA input port of a certain instance module, and the instance module that finally flows into is the end instance module. Starting from the starting instance module, the direction of tracing to the end instance module in sequence is the data flow direction of the data flow, and each instance module passed in this process is the intermediate instance module.

[0040] The resource types of the instance modules in the key data flow include at least one of high-speed serial port, BRAM, register, DSP, adder, multiplier, and lookup table. The high-speed serial port includes at least one of GTH, GTY, and GTM. Since a high-speed serial port usually includes multiple high-speed transceiver channels, when the instance module in the key data flow is a high-speed serial port, it is actually a high-speed transceiver channel in the high-speed serial port, and generally the high-speed serial port is only used as the starting instance module or the end instance module of the key data flow.

[0041] According to whether they are controlled by clock signals, instance modules in the key data flow are divided into first-class instance modules and second-class instance modules. Any instance module among the starting instance module, the end instance module and the intermediate instance module is a first-class instance module or a second-class instance module. Among them, the first-class instance module is the instance module controlled by the clock signal in the key data flow, and the second-class instance module is the instance module not controlled by the clock signal. For example, high-speed serial ports, BRAMs and registers are all first-class instance modules, and the lookup table belongs to the second-class instance module. There are 0 or more second-class instance modules between every two adjacent first-class instance modules along the data flow. Usually, the starting instance module and the end instance module belong to the first-class instance module, while the intermediate instance module can belong to the first-class instance module or the second-class instance module.

[0042] In one embodiment, the key data stream is a data stream on a timing critical path, that is, the key data stream is a data stream with high timing requirements and plays a key role in the design performance. Considering that the timing requirements of the data stream are related to the transmission bandwidth, in one embodiment, it is determined that the key data stream is a data stream whose transmission bandwidth reaches a predetermined threshold, that is, the key data stream is a data stream with a large bandwidth, and the predetermined threshold is a preset value. The transmission bandwidth of the key data stream is the product of the data bit width and the operating frequency, so the larger the transmission bandwidth of the key data stream, the larger the data bit width and / or the higher the operating frequency, and the operating frequency does not exceed the clock frequency of the FPGA. The data bit width is related to the resource requirements of the instance module in the key data stream. The larger the data bit width, the greater the resource requirements of the instance module in the key data stream. The operating frequency is related to the timing requirements of the key data stream. The higher the operating frequency, the shorter the clock cycle determined by the operating frequency, and the timing requirements of the key data stream cannot exceed the clock cycle, so it will lead to higher timing requirements of the key data stream.

[0043] In an example, suppose that the key data flow flows out from the DOADO port of the BRAM, and reaches the TXDATA port of a channel of the GTH through a series of registers. The register is the beat point. Every time the clock signal beats, the data will be stored in some instance modules. These instance modules are the beat points of the same level. The key data flow flows from the starting instance module to the end instance module. There will be several levels of beat points according to the number of clock beats. In an example, suppose that the clock passes through 16 registers for one beat, and only one beat is made from the starting instance module to the end instance module. The data bit width is 16 and two BRAMs are needed. By parsing the user data file, it can be determined that the key data flow includes two BRAMs, a GTH channel, and 16 registers.

[0044] Step 104, determine the constraint region conditions according to the timing requirements of the key data flow and all the instance modules in the key data flow. It is usually necessary to consider the resource requirements of all the instance modules in the key data flow. The resource requirements mainly include the type and quantity of the required resources. The constraint region conditions determined in this step are mainly the conditions of the scope included in the constraint region. The constraint region conditions include the following three conditions:

[0045] (1) The constraint region condition includes the maximum delay formed by the constraint region to meet the timing requirements of the key data flow. The maximum delay formed by the constraint region is the maximum delay formed between the two layout positions with the longest distance in the constraint region. In other words, the scope of the constraint region cannot be too large. It is necessary to ensure that even if the starting instance module and the end instance module in the key data flow are placed at the two layout positions with the longest distance, the timing requirements can still be met. This ensures that the timing requirements can be met when any layout is made within the constraint region. In actual operation, since the resources inside the FPGA are generally arranged in a matrix, the constraint region is generally a rectangular region. This condition limits the maximum length and width of the constraint region.

[0046] (2) The constraint area condition includes that the type and quantity of resources in the constraint area meet the resource requirements of all instance modules in the key data flow. In other words, the scope of the constraint area cannot be too small. If the scope of the constraint area is too small, it will lead to the inability to place all instance modules in the key data flow. In general, the resource requirements of all instance modules in the key data flow relative to the total resources of the constraint area are set to not exceed the preset resource utilization rate, such as the resource utilization rate of 80%, so as to ensure that when all instance modules in the key data flow are placed in the constraint area, congestion will not be caused in the subsequent wiring process due to too high resource utilization.

[0047] (3) The constraint area condition includes that the height of the constraint area is not less than the highest module height of the key data flow, and the highest module height is the height of the highest instance module among all instance modules in the key data flow. Figure 2 , take the existing conventional Column-Based FPGA architecture as an example, where each column is the same module, such as the CLB column is a chip column filled with CLB modules arranged from top to bottom, the BRAM column is a chip column filled with BRAM modules arranged from top to bottom, and so on. The total length of each column is the same, the width of the same column is the same, but the width of different columns may be different. This structure makes the entire FPGA look like a two-dimensional array. The height of modules of various resource types may be different. For example, the height of CLB is generally the lowest, the height of BRAM is higher than CLB, generally twice the height of CLB, the height of DSP is higher than BRAM, generally three times the height of CLB, and so on. If the critical data flow includes BRAM, CLB and DSP, the height of the constraint area must be at least greater than the height of DSP.

[0048] Since the constraint region conditions are determined based on the timing requirements and the included instance modules, and as mentioned above, the timing requirements are related to the operating frequency and then to the transmission bandwidth, and the resource requirements of the included instance modules are related to the data bit width and then to the transmission bandwidth, the determined constraint region conditions are related to the transmission bandwidth of the key data stream, that is, the constraint region conditions are related to the data bit width and the operating frequency of the key data stream. In actual use, when the user design is completed and the user input netlist is obtained, the actual data bit width is already fixed and can be considered as an inherent parameter. Therefore, the transmission bandwidth of the key data stream depends more on the operating frequency, and the determined constraint region conditions are also related to the operating frequency.

[0049] Step 106, determine the layout area that meets the constraint area conditions as the constraint area of ​​the key data flow. The above step 104 only includes the conditions of the scope of the constraint area. There may be many areas in the FPGA that meet the constraint area conditions. In actual operation, it is generally required that the constraint area is as small as possible on the basis of meeting the constraint area conditions. Then, the area that meets the constraint area conditions and contains the smallest range is usually selected as the constraint area for the key data flow to be finally determined. If there are still multiple areas at this time, one of them can be selected as the constraint area. The determined constraint area can be a regular rectangular area, or it may not be a regular rectangular area.

[0050] In a more special embodiment, if the layout position of the starting instance module or the end instance module of the key data flow can be predetermined, the starting instance module or the end instance module with the determined layout position and the layout area around it that meets the constraint area conditions are used as the constraint area of ​​the key data flow. For example, please refer to Figure 2 The high-speed serial port GTH of the Virtex7 series chip is placed in the leftmost column or the rightmost column on the FPGA. Figure 2 Taking the leftmost column as an example, usually, a Quad GTH includes 4 channels and one common, which are placed in the leftmost column of the chip, such as Figure 2 When the starting instance module of the key data flow is BRAM and the ending instance module is channel2, channel2 and the area on its right that meets the constraint area conditions are taken as the constraint area, then Figure 2 As shown, the region 210 is determined as a constraint region. Figure 3 As shown, a region 220 that also satisfies the constraint region condition may be determined as a constraint region.

[0051] Step 108, layout all instance modules in the key data flow using resources in the constraint region, and complete the layout of the FPGA according to the user input netlist.

[0052] There are two main approaches to layout all instance modules in critical data flows using resources within the constraint region:

[0053] Method 1: Use the global resources in the constraint area to layout each instance module in the key data flow.

[0054] Method 2: First, divide the constraint area into several sub-areas according to the type of resources in the constraint area. Each sub-area contains a type of resource in the constraint area, and different sub-areas contain different types of resources. Figure 2 Based on the area 210 in the constraint area, it is determined that the constraint area contains three types of resources, namely the high-speed transceiver channel of GTH, BRAM and CLB. Then the constraint area 210 is divided into three sub-areas 211, 212 and 213 according to the type of resources. The sub-area 211 contains all the high-speed transceiver channels of GTH in the constraint area 210, the sub-area 212 contains all the CLBs in the constraint area 210, and the sub-area 213 contains all the BRAMs in the constraint area 210.

[0055] For each instance module in the key data flow, the instance module is laid out using the resources in the sub-area corresponding to the type of resources required by the instance module. For example, the end instance module of the key data flow is laid out using the resources in sub-area 211, the BRAM in the start instance module and the intermediate instance module is laid out using the resources in sub-area 213, and the other intermediate instance modules are laid out using sub-area 212.

[0056] Regardless of whether the above method 1 or method 2 is used for layout, in one embodiment, when all instance modules in the key data flow are laid out using resources in the constraint area, the layout positions of all first-class instance modules in the key data flow are arranged in sequence along the data flow direction. For example, if the starting instance module in the key data flow is a BRAM and the end instance module is a high-speed transceiver channel of a high-speed serial port, and there are two intermediate instance modules belonging to the first-class instance modules along the data flow direction, namely register 1 and register 2, then the BRAM, register 1, register 2 and the high-speed transceiver channel of the high-speed serial port are arranged in sequence, for example, Figure 2 In the example, the high-speed serial port's high-speed transceiver channel is at the far left of the constraint area, and the BRAM is at the far right of the constraint area, and registers 1 and 2 are arranged between the two from right to left.

[0057] In addition, the signal path delay between every two adjacent first-type instance modules along the data flow direction is no greater than the clock period of the clock signal, that is, the timing requirement must be met.

[0058] In addition, the type and quantity of resources between the layout positions of every two adjacent first-type instance modules along the data flow direction meet the resource requirements of the second-type instance module between the two first-type instance modules. The second-type instance module between the two first-type instance modules is an instance module that is not controlled by the clock signal and is located between the two first-type instance modules along the data flow direction in the critical data flow. That is, the area between the two first-type instance modules must be large enough to accommodate the second-type instance module between the two.

[0059] Therefore, using the method of the present application, a local plane plan can be formed for the key data flow, and all instance modules in the key data flow can be laid out in the constraint area to meet the timing requirements of the key data flow and reduce the difficulty of layout.

[0060] In the application process of the above method, the above method can be used to perform local plane planning on only one key data flow, but more commonly, the above method is used to perform the above local plane planning on at least two different key data flows. Please refer to Figure 4 Flow chart of the method comprising:

[0061] Step 402 , parse the user input netlist and determine the start instance module, the end instance module and all the intermediate instance modules of at least two different key data flows.

[0062] Step 404, determine the constraint area of ​​each key data stream in descending order of operating frequency. When there are multiple key data streams with the same operating frequency, process the key data streams with the same operating frequency in descending order of data bit width. If there are multiple key data streams with the same operating frequency and data bit width, they can be processed in a preset order. When processing each key data stream, determine the constraint area according to the method of steps 104 and 106 above.

[0063] Taking the example that the working frequencies of the key data streams are different, the constraint area is determined for the key data stream with the largest working frequency first. If there are still key data streams that have not been processed, the key data stream with the largest working frequency is selected and processed continuously until the constraint areas of all key data streams are determined.

[0064] Step 406, after determining the constraint regions corresponding to all key data flows, all instance modules in the key data flows are laid out using the resources in the constraint regions corresponding to each key data flow, and the FPGA layout is completed according to the user input netlist.

[0065] Therefore, there are three main situations for the constraint areas of multiple key data flows:

[0066] Case 1: Each key data flow corresponds to a constraint area, and the constraint areas corresponding to the key data flows are different.

[0067] Case 2: All key data flows correspond to the same constraint area.

[0068] Case 3: There are at least two key data flows corresponding to the same constraint area, and there are at least two different constraint areas. In this case, the number of key data flows corresponding to each constraint area can be customized, and the number of key data flows corresponding to any two constraint areas is equal or unequal.

[0069] Regardless of which case is used, for each key data flow, the above method 1 or method 2 can be used to layout in the corresponding constraint area. After experimental comparison, in case 1, when there are many data flows, the number of constraint areas will also increase, resulting in increased overall complexity and greater operational difficulty. In case 2, the final layout effect is not good. Case 3 is more balanced in terms of operational complexity and effect, and is a more commonly used approach.

[0070] A typical situation that may occur is that the user design bandwidth W of the FPGA is greater than the line rate W provided by a single high-speed transceiver channel of the high-speed serial port. 0 , in order to achieve the user design bandwidth W of FPGA, multiple high-speed transceiver channels are needed, and the number of high-speed transceiver channels used is Is a round-up symbol. At this time, the user input netlist includes n key data streams that use the high-speed transceiver channel, and each key data stream uses the high-speed transceiver channel as the starting instance module or the end instance module. Then in this embodiment, when the starting instance module or the end instance module in the key data stream is a high-speed transceiver channel of the high-speed serial port, and different key data streams use different high-speed transceiver channels, then the above situation three is specifically implemented as follows: multiple key data streams belonging to the same high-speed serial port where the high-speed transceiver channels are located correspond to the same constraint area, and multiple key data streams belonging to different high-speed serial ports where the high-speed transceiver channels are located correspond to different constraint areas.

[0071] When there are multiple key data flows, the constraint areas of the key data flows may overlap and cause resource conflicts. Therefore, the initially determined constraint areas need to be adjusted, including the following situations:

[0072] 1. If there are no identical instance modules in the two key data flows and the operating frequencies of the two key data flows are different, the constraint area of ​​the key data flow with the smaller operating frequency is re-determined. In other words, the existing constraint area of ​​the key data flow with the smaller operating frequency is moved away to resolve resource conflicts, and its constraint area is re-determined at other locations.

[0073] 2. If there are no identical instance modules in the two key data streams and the operating frequencies of the two key data streams are the same, the constraint area of ​​the key data stream with the smaller data bit width is re-determined. That is, the existing constraint area of ​​the key data stream with the smaller data bit width is moved away to resolve the resource conflict, and its constraint area is re-determined at other locations.

[0074] 3. If two key data streams have the same instance module and the operating frequencies of the two key data streams are different, the constraint area of ​​the key data stream with a smaller operating frequency is expanded in the direction away from the same instance module. That is, the resource conflict problem is solved by expanding the constraint area to increase resources.

[0075] 4. If two key data streams have the same instance module and the two key data streams have the same operating frequency, the constraint area of ​​the key data stream with a smaller data bit width is expanded in the direction away from the same instance module, that is, the resource conflict problem is solved by expanding the constraint area to increase resources.

[0076] Please refer to Figure 5 As shown in the flowchart, the design process of FPGA starts with the logic synthesis of HDL source code, converts the HDL source code into a gate-level netlist, and then converts the gate-level netlist into a lookup-level netlist through process mapping, and then logically packs (boxes) multiple lookup tables and triggers into a logic unit, and then performs formal layout and routing to complete the design process. The method provided in this application is generally executed after the completion of boxing and before the formal layout. After the completion of boxing, the constraint area conditions corresponding to each key data flow are determined according to the above process, the constraint area and the layout results of the instance modules in the key data flow in the constraint area are determined, and written into a constraint file. This constraint file is read in the formal layout process, and the position of the logic unit on the device is determined by the layout tool. The layout process, the routing process and the timing analysis are completed in sequence. If the timing requirements are met, the bit stream is generated. If the timing requirements are not met, the constraint area is readjusted, and the cycle is repeated until the timing requirements are met.

[0077] In order to illustrate the effectiveness of the method provided by the present application, experiments were conducted using GTH. The number of high-speed transceiver channels used was 1, 4, 8, 10, 16, 20, 40, and 80. The line rate of each channel was 13.1 Gb / s, and the data bit width was 32. The layout results of the conventional layout method and the layout method of the present application were compared, and the comparison results are shown in the following table. Among them, the reference clock is the clock of the QPLL or CPLL input into the GTH, and the clock frequency is 818.75 MHz. txusrclk2 is the sampling clock of the data interface TXDATA, and TXDATA is sampled on the rising edge. Its frequency is 409.375 MHz, which is equal to the line rate / interface data bit width. eFDT (in MHz) represents the results of the layout using the conventional method, where the four groups of results in gray are examples that do not meet the timing requirements. eFDT-rec (in MHz) represents the result of local plane planning using the method of the present application, which designs different constraint areas based on the different resources of the data streams of the four channels contained in each Quad of GTH. From the implementation results, it can be seen that after using the method of the present application, all results meet the timing requirements, which is better than conventional practices.

[0078]

[0079]

Claims

1. An FPGA layout method for forming a plane plan based on data flow and frequency, characterized in that: The method comprises: Parse the user input netlist to determine the starting instance module and the end instance module of the key data flow, as well as all the intermediate instance modules along the data flow from the starting instance module to the end instance module; Determine a constraint region condition according to the timing requirement of the key data stream and all instance modules in the key data stream, wherein the constraint region condition is related to the transmission bandwidth of the key data stream, and the transmission bandwidth is related to the data bit width and the operating frequency; Determining a layout area that meets the constraint area condition as the constraint area of ​​the key data flow; All instance modules in the key data flow are laid out using resources in the constraint area, and the layout of the FPGA is completed according to the user input netlist; when all instance modules in the key data flow are laid out using resources in the constraint area, the layout positions of all first-type instance modules in the key data flow are arranged in sequence along the data flow direction, wherein the first-type instance modules are instance modules in the key data flow that are controlled by clock signals.

2. The method according to claim 1, characterized in that The transmission bandwidth of the key data stream reaches a predetermined threshold. The transmission bandwidth of the key data stream is the product of the data bit width and the operating frequency, and the operating frequency does not exceed the clock frequency of the FPGA. The data bit width is related to the resource requirements of the instance module in the key data stream, and the operating frequency is related to the timing requirements of the key data stream.

3. The method according to claim 1, characterized in that The constraint area condition includes that the maximum delay formed by the constraint area meets the timing requirements of the key data flow, and the maximum delay formed by the constraint area is the maximum delay formed between the two layout positions with the farthest distance in the constraint area.

4. The method according to claim 1, characterized in that The constraint region condition includes that the types and quantities of resources in the constraint region meet the resource requirements of all instance modules in the key data flow.

5. The method according to claim 1, characterized in that The constraint area condition includes that the height of the constraint area is not less than the highest module height of the key data stream, and the highest module height is the height of the highest instance module among all instance modules in the key data stream.

6. The method according to claim 1, characterized in that When the layout position of the start instance module or the end instance module of the key data flow is determined, determining the layout area that meets the constraint area condition as the constraint area of ​​the key data flow includes: The starting instance module or the ending instance module whose layout position is determined and the layout area around it that meets the constraint area condition are used as the constraint area of ​​the key data flow.

7. The method according to any one of claims 1 to 6, characterized in that: The utilizing resources in the constraint region to layout all instance modules in the key data flow includes: The resources in the global scope of the constraint area are used to layout each instance module in the key data flow.

8. The method according to any one of claims 1 to 6, characterized in that: The utilizing resources in the constraint region to layout all instance modules in the key data flow includes: Dividing the constraint area into a plurality of sub-areas according to the types of resources in the constraint area, each sub-area contains a type of resources in the constraint area, and different sub-areas contain different types of resources; For each instance module in the key data flow, the instance module is laid out using resources in a sub-region corresponding to a type of resources required by the instance module.

9. The method according to claim 1, characterized in that: The signal path delay between every two adjacent first-type instance modules along the data flow direction is no greater than the clock period of the clock signal.

10. The method according to claim 1, characterized in that The type and quantity of resources between the layout positions of every two adjacent first-class instance modules along the data flow direction meet the resource requirements of the second-class instance module between the two first-class instance modules. The second-class instance module between the two first-class instance modules is an instance module in the critical data flow that is located between the two first-class instance modules along the data flow direction and is not controlled by the clock signal.

11. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: Parsing the user input netlist and determining the starting instance module, the ending instance module and all the intermediate instance modules of at least two different key data flows; Determine the constraint area of ​​each key data flow in order from the highest to the lowest working frequency; After determining the constraint areas corresponding to all key data flows, all instance modules in the key data flows are laid out using the resources in the constraint areas corresponding to each key data flow, and the layout of the FPGA is completed according to the user input netlist.

12. The method according to claim 11, characterized in that Each key data flow corresponds to a constraint area, and the constraint areas corresponding to the key data flows are different; Alternatively, all critical data flows correspond to the same constraint region; Alternatively, there are at least two key data flows corresponding to the same constraint area, and there are at least two different constraint areas.

13. The method according to claim 11, characterized in that The method of respectively utilizing resources in the constraint region corresponding to each key data flow to layout all instance modules in the key data flow includes: When there is a resource conflict in the constraint areas corresponding to two key data streams, if there is no identical instance module in the two key data streams and the operating frequencies of the two key data streams are different, the constraint area of ​​the key data stream with the smaller operating frequency is re-determined; if there is no identical instance module in the two key data streams and the operating frequencies of the two key data streams are the same, the constraint area of ​​the key data stream with the smaller data bit width is re-determined; if there is the same instance module in the two key data streams, the constraint area of ​​the key data stream with the smaller operating frequency or the smaller data bit width is expanded in the direction away from the same instance module.

14. The method according to claim 12, characterized in that The starting instance module or the end instance module of each key data stream is a high-speed transceiver channel of the high-speed serial port, and different key data streams use different high-speed transceiver channels. Then, the multiple key data streams belonging to the high-speed transceiver channels of the same high-speed serial port correspond to the same constraint area, and the multiple key data streams belonging to the high-speed transceiver channels of different high-speed serial ports correspond to different constraint areas.

15. The method according to claim 14, characterized in that The number of key data flows using high-speed transceiver channels , is the user designed bandwidth of the FPGA, is the transmission bandwidth of a single critical data stream and is equal to the line rate of the high-speed transceiver channel in the critical data stream, Is the round-up symbol.

Citation Information

Patent Citations

  • Netlist segmentation method using multi-bare-chip structure FPGA layout result

    CN113128151A

  • Field programmable gate array (FPGA) layout method for realizing layout legalization by utilizing netlist local re-integration

    CN113408224A