FPGA layout method based on layout range constraints of IP core

By determining the layout scope of the IP core in the FPGA design and performing global layout and routing, the problem of the complexity of timing constraints of multiple IP cores is solved, the flexibility and quality of the design are improved, and the performance of the IP core and user constraints are effectively satisfied. .

CN115081371BActive Publication Date: 2024-10-01WUXI ESIONTECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210757199.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-30
Publication Date
2024-10-01
Estimated Expiration
2042-06-30

AI Technical Summary

Technical Problem

In FPGA design, it is difficult for existing technology to effectively solve the complexity of timing constraints and interface constraints of multiple IP cores, resulting in difficulty in software design and layout. In particular, the flexibility and portability of soft cores and hard cores are insufficient, which affects Overall design performance and IP protection.

Method used

An FPGA layout method based on IP core layout range constraints is proposed. By obtaining the input netlist and user design constraints, the layout range of each IP core is determined, and global layout and routing is performed within this range to ensure the IP performance of the IP core. Constraints and user design constraints are satisfied, and layout positions and routing results are adjusted to achieve the best layout.

Benefits of technology

By predetermining the layout range of the IP core, the layout difficulty is reduced, layout efficiency and quality are improved, ensuring that the IP core meets performance constraints and user design constraints within the specified range, and improving the flexibility and reliability of the overall design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115081371B_ABST
    Figure CN115081371B_ABST
Patent Text Reader

Abstract

The present application discloses an FPGA layout method based on the layout range constraint of an IP core, which relates to the field of FPGA technology. The method is for an FPGA with a built-in IP core. First, the layout range of the IP core is determined according to the IP subnet table and IP performance constraint of each IP core. Then, under the condition that the IP subnet table of each IP core is laid out and routed within the corresponding layout range, the input netlist is globally laid out and routed on the FPGA based on the user design constraint and the IP performance constraint of each IP core. By predetermining the layout range of the IP core as a constraint, it can be ensured that the IP core can achieve the IP performance constraint when laying out the corresponding layout range, and the IP performance constraint and user design constraint of each IP core can be achieved as soon as possible, reducing the layout difficulty and improving the layout efficiency and quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of FPGA technology, in particular to an FPGA layout method based on layout range constraints of an IP core. Background Art

[0002] IP core (Intellectual Property Core) is a general term for integrated circuit cores with intellectual property rights. It is a macro module with specific functions that has been repeatedly verified. It is independent of the chip manufacturing process and can be transplanted to different semiconductor processes. There are three main types of IP cores: soft core (Soft IP Core), firm core (Firm IP Core) and hard core (Hard IP Core), among which:

[0003] (1) Soft core mainly describes functional behavior. It is a functional block described by hardware description languages ​​such as VHDL, but does not involve what specific circuit components are used to implement these functions. Soft core usually appears in the form of hardware description language HDL source files. The design cycle of soft core is short and the design investment is small. Since it does not involve physical implementation, it leaves a lot of room for subsequent design, increasing the flexibility and adaptability of IP. However, its disadvantage is that to a certain extent, the subsequent processes cannot adapt to the overall design, which requires a certain degree of modification, and it is impossible to obtain comprehensive optimization in performance. In addition, since the soft core is provided in the form of source code, its IP protection issue cannot be ignored.

[0004] (2) Hard cores are based on physical descriptions and are process-verified. They provide the final product of the design phase: masks, which are provided in the form of a fully laid-out and wired netlist. This type of hard core is both predictable and can be optimized for power consumption and size for specific processes or buyers, and is easier to implement IP protection. However, hard cores lack flexibility and have poor portability.

[0005] (3) Solid cores complete the structure description, which is a compromise between soft cores and hard cores, and is also one of the mainstream forms of IP cores. Some cores with strict timing requirements (such as PCIe interface cores) can pre-route specific signals or allocate specific routing resources to meet timing requirements. Such cores can be classified as solid cores. Since the core is a pre-designed code module, it may affect the overall design containing the core.

[0006] In the field of EDA design, soft core refers to the register transfer level (RTL) model before synthesis; hard core refers to the verified design layout; and solid core refers to the netlist with floorplan information. Specifically in FPGA design, soft core refers to the hardware language description of the circuit, including logic description, netlist, and help documents; hard core refers to the design with fixed layout and process, verified by the front-end and back-end, and designers are not allowed to modify it; solid core can be regarded as a soft core with layout planning, usually provided in a mixed form of RTL code and netlist corresponding to a specific process.

[0007] As mentioned above, various IP cores have their own characteristics and are widely used in various chips. Current chips are often composed of circuits designed by user designers and multiple IP cores integrated together. This requires that when designing software, not only the timing requirements set by the user should be met, but also the timing constraints of the included IP cores and the timing constraints of other circuits that interface with the IP. Due to the large number of timing requirements and the huge number of paths involved, software design is very difficult and challenging. Summary of the invention

[0008] In view of the above problems and technical requirements, the applicant proposes an FPGA layout method based on the layout range constraint of the IP core. The technical solution of this application is as follows:

[0009] An FPGA layout method based on layout range constraints of an IP core, the method comprising:

[0010] Obtain the input netlist and its user design constraints. The input netlist includes the user design logic subnetlist and several IP subnetlists. Each IP subnetlist corresponds to an IP core, and each IP core has its own corresponding IP performance constraints.

[0011] Determine the layout range of each IP core. For each IP core, there is at least one candidate layout area on the FPGA that can complete the layout and routing of the IP subnet table of the IP core under the condition that the IP performance constraint of the IP core is met. The area range of the candidate layout area is the layout range of the IP core.

[0012] Under the condition that the IP subnet list of each IP core is placed and routed within the corresponding layout range, the input netlist is globally placed and routed on the FPGA based on the user design constraints and the IP performance constraints of each IP core.

[0013] A further technical solution is that, when performing global layout and routing, a method for layout and routing the IP subnet table of each IP core within a corresponding layout range includes:

[0014] For any IP core, if it is determined that the IP core has a layout position constraint based on the input netlist and / or user design constraints, the legal layout area of ​​the IP core is determined based on the layout range and layout position constraint of the IP core, and the IP subnet table of the IP core is laid out and routed in the corresponding legal layout area with a fixed layout position when performing global layout and routing; if the IP core does not have a layout position constraint, the IP subnet table of the IP core is laid out and routed in a layout range with a fixed and variable layout position when performing global layout and routing.

[0015] A further technical solution is that, for any IP core, when a user design constraint specifies a legal layout position of at least one instance in an IP subnet table of the IP core, it is determined that the IP core has a layout position constraint.

[0016] Its further technical solution is that the area range of the legal layout area of ​​the IP core is the layout range of the IP core and covers the legal layout positions of each instance in the IP subnet table, and the instance layout in the IP subnet table is based on the corresponding legal layout positions, and the IP performance constraints of the IP core can be achieved when the IP subnet table is laid out and routed within the legal layout area.

[0017] A further technical solution is that, for any IP core, when there is at least one instance in the subnet list of the IP core that has a direct connection relationship with other instances in the input netlist that have a legal layout position, it is determined that the IP core has a layout position constraint.

[0018] Its further technical solution is that the area range of the legal layout area of ​​the IP core is the layout range of the IP core, and other instances with legal layout positions in the input netlist are laid out on the basis of the corresponding legal layout positions, and when the IP subnet list is laid out and routed within the legal layout area, the IP performance constraints of the IP core and the user design constraints can be achieved.

[0019] A further technical solution is to perform global layout and routing of the input netlist on the FPGA, including:

[0020] Perform layout and routing for the IP subnet table of each IP core within the corresponding layout range, and perform layout and routing for the user-designed logic subnet table within the free layout range. The free layout range is the area range in the FPGA except the layout range of each IP core;

[0021] On the basis that the layout range of all IP cores remains unchanged and the layout position of the IP core with a legal layout area is fixed, the layout position of the layout range of at least one other IP core is adjusted, and / or the layout and routing result of at least one IP subnet table within the respective layout range is adjusted, and / or the layout and routing result of the user-designed logic subnet table within the free layout range is adjusted, until the global layout and routing result satisfies the respective IP performance constraints within each layout range and satisfies the user design constraints globally.

[0022] A further technical solution is to determine the layout range of each IP core, including for each IP core:

[0023] Determine the initial placement area of ​​the IP core, which is the minimum placement area in which the logic resources contained in the FPGA meet the logic resource requirements of the IP subnet table of the IP core;

[0024] The IP subnet table of the IP core is placed and routed in the initial layout area. If the placement and routing cannot be completed under the condition that the IP performance constraints of the IP core are met, the area range of the initial layout area is adjusted at the current layout area until the placement and routing can be completed under the condition that the IP performance constraints of the IP core are met. The area range of the initial layout area at this time is determined to be the layout range of the IP core.

[0025] A further technical solution is that the layout range of the IP core is a rectangular area range, and the method for determining the layout range of the minimum layout area includes:

[0026] Determine the minimum rectangular area S that can accommodate all instances in the IP subnet table of the IP core;

[0027] Determine the height h of the initial layout area according to the logic resource requirements of the IP subnet table of the IP core;

[0028] Determines the width of the initial layout area Indicates rounding up.

[0029] A further technical solution is that the logic resource requirement of the IP subnet table of the IP core is the resource type and resource quantity of the logic resources required by the instance in the IP subnet table, and the height h of the initial layout area is determined according to the logic resource requirement of the IP subnet table of the IP core, including:

[0030] When the logic resource requirement includes logic resources of a predetermined resource type, the height h of the initial layout area is determined according to the logic resources of the predetermined resource type required by the instance in the IP subnet table and the corresponding resource quantity; wherein the height of the logic resources of the predetermined resource type is greater than the height of the CLB module;

[0031] When the logic resource requirement does not include logic resources of the predetermined resource type, the height h of the initial placement area is determined according to the resource quantity of the SLICE resources required by the instance in the IP subnet table.

[0032] The beneficial technical effects of this application are:

[0033] The present application discloses an FPGA layout method based on the layout range constraint of the IP core. The method is for an FPGA with a built-in IP core. First, the layout range of the IP core is determined according to the IP subnet table and the IP performance constraint. Then, global layout and routing are performed according to the user design constraint under the constraint of the layout range of the IP core. Since the layout range of the IP core is determined in advance, it can be ensured that the IP core can achieve the IP performance constraint when the IP core is laid out in the corresponding layout range. Then, the layout position is adjusted by adjusting the layout range as a whole. The IP performance constraint and the user design constraint of each IP core can be achieved as soon as possible, thereby reducing the layout difficulty and improving the layout efficiency and quality. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 It is a method flow chart of an FPGA layout method in one embodiment of the present application.

[0035] Figure 2 It is a flow chart of a method for determining a layout range of an IP core in one embodiment of the present application.

[0036] Figure 3 It is a schematic diagram based on the determined placement ranges of various IP cores in an example, and a schematic diagram for further determining the legal placement areas of the IP cores. DETAILED DESCRIPTION

[0037] The specific implementation of the present application is further described below in conjunction with the accompanying drawings.

[0038] This application discloses an FPGA layout method based on the layout range constraint of IP core, which includes the following steps, please refer to Figure 1 The flowchart shown,

[0039] The first step is to obtain the input netlist and its user design constraints.

[0040] The FPGA targeted by this application is an FPGA with a built-in IP core, so the input netlist includes a user-designed logic subnet list and several IP subnet lists, each IP subnet list corresponds to an IP core, and the IP core built into the FPGA includes at least one of a soft core, a hard core, and a solid core. The user-designed logic subnet list corresponds to the user-designed part other than the IP core, and there is a connected connection relationship between the modules. The module includes the user-designed module and each IP core, so there is also a corresponding connection relationship between the different subnet lists included in the input netlist.

[0041] Each IP core has its own corresponding IP performance constraint, which includes timing constraints and / or relative position constraints. The timing constraint indicates the timing requirements that should be met within the IP subnet table after the placement and routing is completed, and the relative position constraint indicates the relative position relationship requirements of the layout positions between the instances contained in the IP subnet table. IP performance constraints are generally timing constraints, and some IP cores also have relative position constraints.

[0042] In addition to the IP performance constraints for each IP core, the input netlist also has user design constraints globally, which include global timing constraints and / or global position constraints. Global timing constraints indicate the timing requirements that need to be met after the input netlist completes global placement and routing, including not only the timing requirements of the user-designed logic subnetlist, but also the timing requirements after the connection between different subnetlists. Global position constraints indicate the legal placement positions of some instances in the input netlist.

[0043] The second step is to determine the layout range of each IP core.

[0044] For each IP core, there is at least one candidate placement area on the FPGA that can complete the placement and routing of the IP subnet table of the IP core under the condition that the IP performance constraints of the IP core are met. The area range of the candidate placement area is the layout range of the IP core. For the same IP core, the FPGA can have one or more candidate placement areas located at different layout positions.

[0045] For each IP core, the layout range of the IP core needs to be determined based on the instances contained in the IP subnet table of the IP core and the IP performance constraints of the IP core. The layout range of the IP core finally determined must at least meet the following requirements: all instances contained in the IP subnet table can be placed within the layout range, and the IP performance constraints can be met within the layout range. In addition, the layout range of the IP core should be as small as possible on the basis of meeting the above two requirements, that is, the layout range of the IP core finally determined is generally the minimum layout range that meets the above two requirements.

[0046] In order to achieve the above requirements, in one embodiment, the method for determining the layout range of each IP core includes the following steps, please refer to Figure 2 The flowchart shown:

[0047] (1) Determine the initial layout area of ​​the IP core. The initial layout area is the minimum layout area whose logic resources contained in the FPGA meet the logic resource requirements of the IP subnet table of the IP core.

[0048] The logical resource requirements of the IP subnet table of the IP core are the resource types and corresponding resource quantities of the logical resources required by the instances in the IP subnet table. The resource types and corresponding resource quantities of the logical resources contained in the initial layout area need to meet the requirements of the IP subnet table. That is, first, it is necessary to find a minimum layout area on the FPGA that can meet the resources required by all instances of the IP core. The initial layout area can be at any layout position on the FPGA.

[0049] (2) The IP subnet table of the IP core is placed and routed in the initial layout area. If the placement and routing cannot be completed under the condition that the IP performance constraints of the IP core are met, the area range of the initial layout area is adjusted at the current layout area until the placement and routing can be completed under the condition that the IP performance constraints of the IP core are met. The area range of the initial layout area at this time is determined to be the layout range of the IP core.

[0050] The initial layout area can be of various shapes, but the approach that is more in line with the existing FPGA internal logic resource architecture is that, in one embodiment, the layout range of the IP core is a rectangular area range, and the initial layout area determined in this step is also a rectangular area range. When determining the initial layout area of ​​the IP core, it is necessary to determine the width and height of the initial layout area. When adjusting the area range of the initial layout area, it is actually to adjust the width and / or height of the initial layout area. In one embodiment, the method for determining the layout range of the minimum layout area of ​​a rectangular shape is:

[0051] (a) Determine the minimum rectangular area S that can accommodate all instances in the IP subnet table of the IP core. Analyze the IP subnet table of the IP core to determine the resource types of logical resources and their corresponding resource quantities required by the instances in the IP subnet table. The area required to place these instances can be determined based on the resource types of the required logical resources and their corresponding resource quantities. Then, the area S1 required to place these instances can be directly used as the minimum rectangular area S, or the minimum rectangular area S can be obtained based on S1 by further considering the resource utilization rate. For example, taking the resource utilization rate of 80% as an example, the minimum rectangular area S can be determined to be S180%.

[0052] (b) Determine the height h of the initial layout area based on the logic resource requirements of the IP subnet table of the IP core.

[0053] When the logic resource requirements include logic resources of a predetermined resource type, the height h of the initial layout area is determined according to the logic resources of the predetermined resource type and the corresponding resource quantity required by the instance in the IP subnet table. Among them, the height of the logic resources of the predetermined resource type is greater than the height of the CLB module, that is, the logic resources of the predetermined resource type are usually some special modules, and the common ones include at least one of DSP, BRAM, GTH and channel carry chain. These special modules have special module heights. The height h required for the initial layout area can be determined according to the type and number of special modules required by the IP subnet table.

[0054] When the logic resource requirement does not include logic resources of the predetermined resource type, the height h of the initial layout area is determined according to the number of SLICE resources required by the instance in the IP subnet table. For example, if the number of SLICE resources required by the instance in the IP subnet table is 20, the height h can be set to 1, 2, or 4 according to the architecture of the internal logic resources of the FPGA.

[0055] (c) Determine the width of the initial layout area Indicates rounding up.

[0056] Thus, the rectangular area with width w and height h is determined to be the size of the minimum layout area, and then the minimum layout area on the FPGA that meets the logic resource requirements of the IP subnet table of the IP core is used as the initial layout area. Then, the layout range of the IP core can be finally determined by the above method, and the actual layout range of the IP core is also limited by the width and height of the rectangular shape.

[0057] The third step is to perform global layout and routing of the input netlist on the FPGA based on the user design constraints and the IP performance constraints of each IP core, under the condition that the IP subnetlist of each IP core is laid out and routed within the corresponding layout range.

[0058] The layout range of the IP core determined in the second step constrains the size of the layout area of ​​each IP subnet table, but does not constrain the layout position of each IP subnet table. That is, after determining the layout range of the IP core, the IP subnet table of the IP core can be laid out and routed in the area with the layout range at any layout position on the FPGA: the IP subnet table of each IP core is laid out and routed within the corresponding layout range, and the user-designed logic subnet table is laid out and routed within the free layout range. The free layout range is the area range in the FPGA except the layout range of each IP core.

[0059] If the user design constraints are not met globally after layout and routing, then on the basis of the layout range of all IP cores remaining unchanged, the layout position of the layout range of at least one IP core is adjusted, and / or the layout and routing results of at least one IP subnet table within the respective layout range are adjusted, and / or the layout and routing results of the user-designed logic subnet table within the free layout range are adjusted, until the global layout and routing results meet the respective IP performance constraints within each layout range and the user design constraints are met globally. Through this method, the IP subnet table of each IP core can definitely meet the IP performance constraints of the IP core when it is laid out and routed within the corresponding layout range. During iterative adjustments, the layout range of the IP core is adjusted as a whole, and the IP performance constraints of each IP core and the global user design constraints can be achieved more quickly.

[0060] In the above embodiment, the layout ranges of all IP cores are predetermined, but the actual layout positions are uncertain and are adjusted in the global layout and routing. In another embodiment, on the basis of determining the layout ranges of each IP subnet table through the second step, there is at least one IP core whose layout position can be predetermined, then the layout range and layout position constraints of the IP core are known, and the legal layout area of ​​the IP core is determined. In this embodiment, when performing global layout and routing, the IP subnet table of each IP core is also placed and routed within the corresponding layout range, and the user-designed logic subnet table is placed and routed within the free layout range, but the IP subnet table of a part of the IP cores is placed and routed within the corresponding legal layout area with a fixed layout position, and the IP subnet table of another part of the IP cores is placed and routed within the layout range with a fixed and variable layout position.

[0061] If the user design constraints are not met globally after layout and routing, then on the basis that the layout range of all IP cores remains unchanged and the layout position of the IP core with a legal layout area is fixed, the layout position of the layout range of at least one other IP core is adjusted, and / or the layout and routing result of at least one IP subnet table within the respective layout range is adjusted, and / or the layout and routing result of the user-designed logic subnet table within the free layout range is adjusted, until the global layout and routing result satisfies the respective IP performance constraints within each layout range and satisfies the user design constraints globally. That is, during the iterative adjustment, the layout position of the IP core with a legal layout area remains unchanged and is no longer adjusted, and the layout position of the IP core without a legal layout area is adjusted based on the entire layout range as a whole.

[0062] For any IP core, it is determined that the IP core has a layout position constraint, and there are three main situations in which the legal layout area with a fixed layout position can be determined:

[0063] Case 1: There is only one candidate placement area on the FPGA that can complete the placement and routing of the IP subnet table of the IP core while satisfying the IP performance constraints of the IP core. In this case, the candidate placement area can be directly used as the legal placement area of ​​the IP core.

[0064] Case 2: When the user design constraint specifies the legal layout position of at least one instance in the IP subnet table of the IP core, it is determined that the IP core has a layout position constraint. In this case, the area range of the legal layout area of ​​the IP core is the determined layout range of the IP core, and the legal layout area covers the legal layout positions of each instance in the IP subnet table, and the instance layout in the IP subnet table is based on the corresponding legal layout position, and the IP performance constraint of the IP core can be achieved when the IP subnet table is laid out and routed within the legal layout area.

[0065] Case 3: When there is at least one instance in the subnet table of the IP core that is directly connected to other instances in the input net list that have a legal layout position, the IP core is determined to have a layout position constraint. In this case, the area range of the legal layout area of ​​the IP core is the layout range of the IP core that has been determined, and other instances with legal layout positions in the input net list are placed on the basis of the corresponding legal layout positions, and the IP performance constraints of the IP core and the user design constraints can be achieved when the IP subnet table is placed and routed in the legal layout area.

[0066] In one example, assume that the input netlist involves subnetlists of four modules, which are user design modules θ u 、DDR moduleθ D 、GTH module generated by Macro Module FPGAs Transceiver Wizardθ G And the trigonometric function calculation module θ generated by the macro module CORDIC F ,θ D ,θ G ,θ F All of them belong to IP cores. The connection relationship between the four modules is that the DDR module is connected to the GTH module, the GTH module is connected to the user-designed module, and the user-designed module is connected to the module for calculating trigonometric functions. The input netlist includes the user-designed module θ u The user-designed logic subnet table, θ D IP subnet table, θ G IP subnet table, and θ F IP subnet table. Each IP core has its own timing constraints. User design constraints include global timing constraints and global location constraints.

[0067] θ DThe IP subnet table contains instances that require FIFOs, and the number of FIFOs required can be determined based on the number of FIFOs required. D Layout range θ G The IP subnet table contains instances that require DSPs, which can be determined based on the number of DSPs required. G Layout range θ F The IP subnet table contains instances that require GTH channels, which can be determined based on the number of DSPs required. F Layout range Please refer to Figure 3 , which shows the layout range of the FPGA with dotted lines. The three regions of θ D ,θ G ,θ F The initial layout area is shown in Figure 1, but because the layout position is uncertain, it is represented by a dotted box.

[0068] Assume that the following connection relationship exists in the input netlist: data flow from θ D Incoming θ G , and then from θ G Via θ u Incoming θ F , and the user design constraint specifies θ D The legal placement of the FIFO in . Since the user design constraints specify θ D The legal layout position of the FIFO in and the legal placement of the FIFO directly determines θ D For legal layout areas, please refer to Figure 3 , that is, θ D The actual layout position is not in the dotted line frame, but can be directly determined in the corresponding solid line frame.

[0069] At this time θ D There is already a legal layout area, and θ G With θ D There is a strong direct connection relationship, then and θ D The layout position directly determines θ G Similarly, please refer to Figure 3 , that is, θ G The actual layout position is not in the dotted line frame, but can be directly determined in the corresponding solid line frame.

[0070] And θ F Need to pass θ u Talent and θ G There is an indirect connection, so it is impossible to determine θF The layout position constraints can only determine θ F Layout range The layout position cannot be determined, and any area with the layout range can be used. Figure 3 As shown, the area within the dashed box determined above is still taken as θ F The layout area is still represented by a dotted line because the layout position is still uncertain.

[0071] Perform global placement and routing on the FPGA based on the user design constraints. During the global placement and routing process, θ D The legal layout area and θ G The legal layout area remains unchanged, but θ F The layout area position is variable. The entire input netlist is run through the layout and routing process, so that the result can guarantee the performance of each IP core and the user design constraints.

Claims

1. An FPGA layout method based on layout range constraints of IP cores, It is characterized in that The method comprises: Obtaining an input netlist and its user design constraints, wherein the input netlist includes a user-designed logic subnetlist and a plurality of IP subnetlists, each IP subnetlist corresponds to an IP core, and each IP core has its own corresponding IP performance constraints; Determine the layout range of each IP core. For each IP core, there is at least one candidate layout area on the FPGA that can complete the layout and routing of the IP subnet table of the IP core under the condition that the IP performance constraint of the IP core is met. The area range of the candidate layout area is the layout range of the IP core. Under the condition that the IP subnetlist of each IP core is placed and routed within the corresponding layout range, the input netlist is globally placed and routed on the FPGA based on the user design constraints and the IP performance constraints of each IP core; Determining the layout range of each IP core includes, for each IP core: Determine the initial layout area of ​​the IP core, the initial layout area is the minimum layout area in which the logic resources contained in the FPGA meet the logic resource requirements of the IP subnet table of the IP core; the layout range of the IP core is a rectangular area range, and the method for determining the layout range of the minimum layout area includes: determining the minimum rectangular area area that can accommodate all instances in the IP subnet table of the IP core , determine the height of the initial layout area according to the logic resource requirements of the IP subnet table of the IP core , determine the width of the initial layout area , Indicates rounding up; The IP subnet table of the IP core is placed and routed in the initial layout area. If the placement and routing cannot be completed under the condition that the IP performance constraints of the IP core are satisfied, the area range of the initial layout area is adjusted at the current layout area until the placement and routing can be completed under the condition that the IP performance constraints of the IP core are satisfied. The area range of the initial layout area at this time is determined to be the layout range of the IP core.

2. The method according to claim 1, It is characterized in that When performing global layout and routing, the method of layout and routing the IP subnet table of each IP core within the corresponding layout range includes: For any IP core, if it is determined that the IP core has a layout position constraint based on the input netlist and / or user design constraints, the legal layout area of ​​the IP core is determined based on the layout range and layout position constraint of the IP core, and the IP subnet table of the IP core is laid out and routed in the corresponding legal layout area with a fixed layout position when performing global layout and routing; if the IP core does not have a layout position constraint, the IP subnet table of the IP core is laid out and routed in a layout range with a fixed and variable layout position when performing global layout and routing.

3. The method according to claim 2, It is characterized in that For any IP core, when a user design constraint specifies a legal placement position of at least one instance in the IP subnet table of the IP core, the IP core is determined to have a placement position constraint.

4. The method according to claim 3, It is characterized in that The area range of the legal layout area of ​​the IP core is the layout range of the IP core, and covers the legal layout positions of each instance in the IP subnet table. The instance layout in the IP subnet table is based on the corresponding legal layout positions, and the IP performance constraints of the IP core can be achieved when the IP subnet table is laid out and routed within the legal layout area.

5. The method according to claim 2, It is characterized in that For any IP core, when there is at least one instance in the subnet list of the IP core that has a direct connection relationship with other instances in the input netlist that have legal placement positions, it is determined that the IP core has a placement position constraint.

6. The method according to claim 5, It is characterized in that The area range of the legal layout area of ​​the IP core is the layout range of the IP core, and other instances with legal layout positions in the input netlist are laid out on the basis of corresponding legal layout positions, and the IP performance constraints and user design constraints of the IP core can be achieved when the IP subnet list is laid out and routed within the legal layout area.

7. The method according to claim 2, It is characterized in that Performing global placement and routing on the input netlist on the FPGA includes: Perform layout and routing for the IP subnet table of each IP core within the corresponding layout range, and perform layout and routing for the user-designed logic subnet table within the free layout range. The free layout range is the area range in the FPGA except the layout range of each IP core; On the basis that the layout range of all IP cores remains unchanged and the layout position of the IP core with a legal layout area is fixed, the layout position of the layout range of at least one other IP core is adjusted, and / or the layout and routing result of at least one IP subnet table within the respective layout range is adjusted, and / or the layout and routing result of the user-designed logic subnet table within the free layout range is adjusted, until the global layout and routing result satisfies the respective IP performance constraints within each layout range and globally satisfies the user design constraints.

8. The method according to claim 1, It is characterized in that The logical resource requirement of the IP subnet table of the IP core is the resource type and resource quantity of the logical resources required by the instance in the IP subnet table, and the height of the initial layout area is determined according to the logical resource requirement of the IP subnet table of the IP core. ,include: When the logical resource requirement includes a logical resource of a predetermined resource type, the height of the initial layout area is determined according to the logical resource of the predetermined resource type required by the instance in the IP subnet table and the corresponding resource quantity. ; Wherein, the height of the logic resource of the predetermined resource type is greater than the height of the CLB module; When the logic resource requirement does not include a logic resource of a predetermined resource type, the height of the initial layout area is determined according to the number of SLICE resources required by the instance in the IP subnet table. .