Method and device for realizing layout and wiring of FPGA (Field Programmable Gate Array) virtual input / output module
The layout and routing of FPGA virtual input/output modules is carried out by generating a fusion netlist file with distinguishing marks, which solves the problem of inconsistent layout and routing results when the user design is using and not using the module, improves debugging efficiency and design stability, and ensures timing requirements. of satisfaction.
Patent Information
- Application Number
- CN202410636148.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-21
- Publication Date
- 2024-08-30
Smart Images

Figure CN118569191A
Abstract
Description
Technical Field
[0001] The present application relates to, but is not limited to, digital circuit design and integrated circuit design technology, and in particular to a layout and routing method and device for implementing an FPGA virtual input / output module. Background Art
[0002] The development process of Field-Programmable Gate Array (FPGA) software tools mainly includes logic synthesis, layout, routing, timing analysis and bit stream generation.
[0003] FPGA Virtual Input / Output modules (VIO) are tools for real-time monitoring and driving FPGA internal signals. FPGA VIO is commonly used to debug, verify, and test FPGA designs, allowing engineers to inspect and control signals inside the FPGA at runtime without recompiling code or reconfiguring the FPGA. With FPGA VIO, engineers can monitor the state of internal signals, such as observing the values of registers, internal buses, or other logic cells; modify the values of internal signals, allowing engineers to dynamically change the behavior of the design without resynthesis and implementation; collect and record signal data for analysis and troubleshooting. These features are especially useful for debugging complex FPGA designs, which can greatly shorten the debugging cycle and help engineers find and solve problems faster.
[0004] The design of FPGA VIO helps improve the user's design efficiency and debugging capabilities. The input port of FPGA VIO is used to monitor the FPGA signals configured by the user, that is, the internal signals of the FPGA can be mapped to the input port of FPGA VIO, so as to monitor the status of these signals in real time; the output port of FPGA VIO is used to drive the FPGA signals configured by the user, that is, the values of these signals can be modified through the output port of FPGA VIO to drive the logic and state inside the FPGA. This function is particularly useful in fault reproduction scenarios, because users can ignore the impact of external devices (such as buttons, LED lights, etc.) on FPGA signals and focus on checking and modifying the behavior of internal signals. In this way, users can more easily reproduce and debug specific fault conditions without being disturbed by the external environment. In general, FPGA VIO provides FPGA designers with a powerful tool that can help them develop, debug, and verify complex FPGA designs more efficiently.
[0005] The principle of FPGA VIO is as follows: First, the user designs the FPGA VIO in the FPGA development environment and combines it with the FPGA design to be tested, which includes synthesizing the FPGA VIO with the FPGA design (converting the user's design into the underlying logic elements) and layout and routing (allocating logic resources and establishing physical connections on the FPGA chip). Then, after the synthesis and layout and routing are completed, a complete bitstream containing the user design is generated to realize the code stream download. This bitstream file contains all the information required to load the user design onto the FPGA chip. After that, the user downloads the generated bitstream file to the target FPGA chip to download the information of the user-designed FPGA VIO into the FPGA chip, for example, it can be completed through the download interface (such as JTAG) on the FPGA development board. Then, the user establishes a communication connection with the FPGA chip through the host computer, usually through a serial port, Ethernet or other communication interface. Here, the host computer is responsible for sending control instructions to the FPGA and receiving data from the FPGA. Once the communication connection is established, the FPGA VIO can drive the user-set signal in real time through the host computer, and can transmit the real-time captured signal data back to the host computer for display and analysis. In this way, users can use the host computer interface to monitor and control the signals inside the FPGA in real time, thereby speeding up the debugging and verification process.
[0006] In the related art, the layout and routing method of FPGA VIO is to synthesize FPGA VIO and user design together to generate a fusion netlist file, then perform layout and routing according to the information of the fusion netlist file, and finally generate a code stream file with FPGA VIO configuration information. The advantage of this method is that it can ensure that the signal selected by the user will not be optimized. However, this method will cause the connection relationship of FPGA VIO to occupy resources. In this case, when the FPGA VIO is removed from the user design to generate a netlist file for the user design, the information of the fusion netlist file generated by the synthesis will be changed, resulting in inconsistency between the layout and routing results of the user design that does not use FPGA VIO and when using FPGA VIO, which may cause confusion and confusion in the debugging and verification process, thereby reducing the efficiency of accelerating debugging and verification. At the same time, the increase of FPGA VIO may cause the layout and routing results to fail to meet the timing requirements, because after the resources are occupied, the layout and routing tools may be restricted in meeting the timing constraints, thereby affecting the performance and stability of the design. Summary of the invention
[0007] The present application provides a layout and routing method and device for implementing an FPGA virtual input / output module, which can improve the efficiency of debugging and verification, and improve the performance and stability of the design.
[0008] An embodiment of the present invention provides a layout and routing method for implementing an FPGA virtual input / output module, comprising:
[0009] Generate a fused netlist file according to the information designed by the user and the information of the virtual input / output module of the field programmable gate array FPGA, wherein the fused netlist file includes a distinguishing mark for distinguishing the information designed by the user and the information of the virtual input / output module of the FPGA;
[0010] Perform layout and routing according to the fused netlist file and generate first layout information and first routing information corresponding to the user design and the FPGA virtual input / output module, and obtain second layout information and second routing information corresponding to the user design from the first layout information and the first routing information respectively according to the distinguishing mark;
[0011] A first code stream file including information of the user design and the FPGA virtual input / output module is generated according to the first wiring information, and a second code stream file including information of the user design is generated according to the second wiring information.
[0012] In an exemplary embodiment, performing layout and routing according to the fused netlist file and generating first layout information and first routing information corresponding to the user design and the FPGA virtual input / output module, and acquiring second layout information and second routing information corresponding to the user design from the first layout information and the first routing information respectively according to the distinguishing mark, includes:
[0013] Parsing the generated fusion netlist file to obtain resources for user design and FPGA virtual input / output modules for layout;
[0014] Perform layout according to the user design and resources of the FPGA virtual input / output module for layout obtained by parsing and generate the first layout information, and obtain the second layout information corresponding to the user design from the first layout information according to the distinguishing identifier;
[0015] Routing is performed and the first wiring information is generated according to the user design and resources of the FPGA virtual input / output module obtained by parsing for layout, and the first layout information, and the second wiring information corresponding to the user design is obtained from the first wiring information according to the distinguishing identifier.
[0016] In an exemplary embodiment, after the wiring is completed, in case of wiring failure, the method further includes:
[0017] Constraining the position corresponding to the wiring failure in the layout according to the wiring failure information and generating secondary layout constraint information;
[0018] Return to the step of performing layout and continue to execute, and re-perform layout according to the secondary layout constraint information, and the user design for layout obtained by the analysis and the resources of the FPGA virtual input / output module to generate new first layout information and update the first layout information.
[0019] In an exemplary embodiment, after the routing is completed, if the timing does not meet the requirements, the method further includes:
[0020] Constraining the wiring information that does not meet the timing requirements according to the path delay information and generating secondary wiring constraint information;
[0021] Return to the step of performing routing and continue to execute, and perform routing according to the secondary layout constraint information, the user design and FPGA virtual input / output module resources obtained by the analysis for layout, and the first layout information to generate new first routing information and update the first routing information.
[0022] In an exemplary embodiment, after the routing is completed, if the timing does not meet the requirement, the method further includes:
[0023] According to the path delay information, the routing information that does not meet the timing requirements and the routing information that meets the timing requirements but the path delay is greater than a preset threshold is constrained and secondary routing constraint information is generated;
[0024] Return to the step of performing routing and continue to execute, and perform routing according to the secondary layout constraint information, the user design and FPGA virtual input / output module resources obtained by the analysis for layout, and the first layout information to generate new first routing information and update the first routing information.
[0025] An embodiment of the present application also provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute any of the above-mentioned methods for implementing a layout and routing method of an FPGA virtual input / output module.
[0026] An embodiment of the present application further provides a computer device, including a memory and a processor, wherein the memory stores the following instructions executable by the processor: used to execute the steps of any of the above-mentioned methods for implementing a layout and routing method of an FPGA virtual input / output module.
[0027] The present application embodiment further provides a layout and routing device for implementing an FPGA virtual input / output module, including: a fusion module, a processing module, and a generation module; wherein:
[0028] A fusion module, used to generate a fusion netlist file according to the information designed by the user and the information of the FPGA virtual input / output module, wherein the fusion netlist file includes a distinguishing mark for distinguishing the information designed by the user and the information of the FPGA virtual input / output module;
[0029] A processing module, configured to perform layout and routing according to the fused netlist file and generate first layout information and first routing information corresponding to the user design and the FPGA virtual input / output module, and to obtain second layout information and second routing information corresponding to the user design from the first layout information and the first routing information according to the distinguishing mark;
[0030] The generating module is used to generate a first code stream file including information of the user design and the FPGA virtual input / output module according to the first wiring information, and to generate a second code stream file including information of the user design according to the second wiring information.
[0031] In an exemplary embodiment, the processing module includes: a parsing module, a layout module and a routing module; wherein,
[0032] A parsing module, used for parsing the generated fusion netlist file to obtain resources for user design and FPGA virtual input / output modules for layout;
[0033] a layout module, configured to perform layout and generate the first layout information according to the user design for layout obtained by parsing and the resources of the FPGA virtual input / output module, and to obtain the second layout information corresponding to the user design from the first layout information according to the distinguishing identifier;
[0034] A routing module is used to perform routing and generate the first routing information according to the user design for layout obtained by parsing and the resources of the FPGA virtual input / output module and the first layout information, and to obtain the second routing information corresponding to the user design from the first routing information according to the distinguishing identifier.
[0035] In an exemplary embodiment, the routing module is further used to: after routing is completed, if a routing failure occurs, constrain the position corresponding to the routing failure in the layout according to the routing failure information and generate secondary layout constraint information; feed back the secondary layout constraint information to the layout module; accordingly,
[0036] The layout module is also used to: return to the layout process to continue execution, and re-layout according to the secondary layout constraint information, and the user design and FPGA virtual input / output module resources obtained by the analysis for layout to generate new first layout information and update the first layout information.
[0037] In an exemplary embodiment, the wiring module is further used for:
[0038] After the routing is completed, if the timing does not meet the requirements, the routing information that does not meet the timing requirements is constrained according to the path delay information and secondary routing constraint information is generated; the routing process is returned to continue execution, and routing is performed according to the secondary layout constraint information, the user design and FPGA virtual input / output module resources obtained by the analysis for layout, and the first layout information to generate new first routing information and update the first routing information.
[0039] In an exemplary embodiment, the wiring module is further used for:
[0040] After the routing is completed, for the case where the timing does not meet the requirements, the routing information that does not meet the timing requirements and the routing information that meets the timing requirements but has a path delay greater than a preset threshold is constrained according to the path delay information and secondary routing constraint information is generated; the routing process is returned to continue execution, and routing is performed according to the secondary layout constraint information, the user design and the resources of the FPGA virtual input / output module for layout obtained by the analysis, and the first layout information to generate new first routing information and update the first routing information.
[0041] The layout and routing method for implementing the FPGA virtual input / output module provided in the embodiment of the present application generates two code stream files, one with information of the FPGA virtual input / output module and the other without information of the FPGA virtual input / output module. The layout and routing results of the user design in the two code stream files are completely consistent, which not only ensures that after the user completes debugging and removes the FPGA virtual input / output module, the layout and routing results of the user design are completely consistent with those in the debugging process, thereby improving the efficiency of debugging and verification, providing convenience for subsequent fault reproduction and fault location, and improving the performance and stability of the design; it also ensures that the layout and routing results of the information with the FPGA virtual input / output module added meet the timing conditions, which helps the user to reproduce the fault and quickly locate the fault, thereby greatly improving the user's design efficiency.
[0042] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] The accompanying drawings are used to provide further understanding of the technical solution of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation on the technical solution of the present application.
[0044] Figure 1 A schematic diagram of a flow chart of a method for implementing a layout and routing method of an FPGA virtual input / output module in an embodiment of the present application;
[0045] Figure 2 Schematic diagram of the composition structure of the layout and routing device for implementing the FPGA virtual input / output module in the embodiment of the present application. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solution and advantages of the present application more clear, the embodiments of the present application will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other arbitrarily without conflict.
[0047] In order to facilitate understanding of the present application, the present application will be described more fully below with reference to the relevant drawings. Embodiments of the present application are provided in the drawings. However, the present application can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present application more thorough and comprehensive.
[0048] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0049] It is understood that the terms "first" and "second" used in this application are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0050] It can be understood that the “connection” in the following embodiments should be understood as “electrical connection”, “communication connection”, etc. if the connected circuits, modules, units, etc. have electrical signals or data transmission between each other.
[0051] When used herein, the singular forms "a", "an", and "said / the" may also include plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "include / comprise" or "have" and the like specify the presence of stated features, wholes, steps, operations, components, parts, or combinations thereof, but do not exclude the possibility of the presence or addition of one or more other features, wholes, steps, operations, components, parts, or combinations thereof. At the same time, the term "and / or" used in this specification includes any and all combinations of the relevant listed items.
[0052] The inventor of the present application has found that in the layout and routing method of the FPGA virtual input / output module of the related art, the fused netlist file is directly generated by synthesizing the user design and the configuration information of the FPGA virtual input / output module, and the configuration information of the user design and the virtual input / output module is not distinguished. Therefore, when the FPGA virtual input / output module is used and not used, there is a problem of inconsistency in the layout and routing results, so it is difficult to reproduce and locate the fault later. Moreover, due to the addition of a large number of resources of the FPGA virtual input / output module, the layout and routing results are unreasonable and the timing is not satisfied, which seriously reduces the user's design efficiency. In order to solve these problems, the embodiment of the present application provides a layout and routing method for implementing the FPGA virtual input / output module to improve the efficiency of debugging and verification, and improve the performance and stability of the design.
[0053] Figure 1 FIG. 1 is a flow chart of a method for implementing a layout and routing method of an FPGA virtual input / output module in an embodiment of the present application. Figure 1 As shown, it may include:
[0054] Step 100: Generate a fused netlist file according to the user-designed information and the information of the FPGA virtual input / output module, wherein the fused netlist file includes a distinguishing mark for distinguishing the user-designed information and the FPGA virtual input / output module information.
[0055] In an exemplary embodiment, the user-designed information and the FPGA virtual input / output module information are distinguished. For example, the FPGA virtual input / output module information can be specially marked to achieve the purpose of distinguishing the user-designed information from the FPGA virtual input / output module information. In this way, the generated fusion netlist file includes a distinguishing mark for distinguishing the user-designed information and the FPGA virtual input / output module information.
[0056] In an exemplary embodiment, the information designed by the user may vary according to the specific application scenario and requirements. The information designed by the user is usually determined and defined by the design engineer according to the project requirements and specifications. For example, it may include but is not limited to: logic circuit: including a combination of various logic gates, registers, memories and other components, and the connection relationship between them; timing constraints: determine the timing requirements of each logic component such as clock frequency, timing path, etc.; resource occupation: determine the required FPGA resources such as look-up table (LUT), registers, DSP, etc.; external interface: define the interface protocol with external devices such as UART, SPI, I2C, etc.; functional requirements: define the functions to be implemented such as algorithms, communication protocols, etc.; performance indicators: determine the performance indicators of the design such as speed, power consumption, area, etc.; test and debugging requirements: define test cases, debugging methods and requirements to ensure the correctness and stability of the design.
[0057] In an exemplary embodiment, the information of the FPGA virtual input / output module is usually determined and defined by the module designer according to the functions and requirements of the module. The information of the FPGA virtual input / output module may include, but is not limited to, module configuration: defining the functions and behaviors of the module, including the number, type and function of the input and output ports; resource requirements: determining the FPGA resources required by the module such as LUT, registers, memory, etc.; timing requirements: defining the timing requirements of the module such as clock frequency, timing path, etc.; interface protocol: defining the communication protocol between the module and other modules or external devices such as UART, SPI, I2C, etc.; configuration parameters: including the initialization parameters of the module, state control parameters, etc.; test and debug interface: defining the interface used by the module for testing and debugging such as control registers, state monitors, etc.; performance indicators: determining the performance indicators of the module such as processing speed, resource utilization, etc.
[0058] A netlist file is a file format that describes circuit elements and the connections between them in an electronic design. In digital circuit design, a netlist file describes elements such as logic gates, registers, and wires and the logical connections between them, but does not include specific physical location information. Netlist files are usually generated by synthesis tools and are used to convert circuit designs described in high-level languages into underlying logic circuit representations. The netlist file contains information about all logic elements and their interconnections, as well as necessary design constraints such as timing constraints. In FPGA design, a netlist file is one of the key steps in converting a user design into an internal logic element of an FPGA. The netlist file can be further used by a layout and routing tool to generate physical layout information, and ultimately converted into a bitstream file for loading into an FPGA chip for operation. The fused netlist file (Merged Netlist) in the embodiment of the present application contains a netlist file of the logical representation and connection relationship of the user-designed logic circuit and the elements of the FPGA virtual input / output module.
[0059] In the embodiment of the present application, through step 100, the information of the FPGA virtual input / output module required for layout and routing is specially marked and distinguished from the user-designed information, so that the generated fused netlist file contains the information of the user design and the virtual input / output module and is a fused netlist file that can distinguish the information of the FPGA virtual input / output module.
[0060] Step 101: Perform layout and routing according to the fused netlist file and generate first layout information and first routing information corresponding to the user design and the FPGA virtual input / output module, and obtain second layout information and second routing information corresponding to the user design from the first layout information and the first routing information according to the distinguishing mark.
[0061] In an exemplary embodiment, step 101 may include:
[0062] Parse the generated fusion netlist file to obtain resources for user design and FPGA virtual input / output modules for layout;
[0063] Performing layout and generating first layout information according to the user design for layout obtained by parsing and the resources of the FPGA virtual input / output module, and acquiring second layout information corresponding to the user design from the first layout information according to the distinguishing mark;
[0064] According to the user design for layout obtained by parsing and the resources of the FPGA virtual input / output module and the first layout information, wiring is performed and first wiring information is generated, and second wiring information corresponding to the user design is obtained from the first wiring information according to the distinguishing mark.
[0065] In an exemplary embodiment, after the wiring is completed, in case of wiring failure, the following may also be included:
[0066] According to the wiring failure information, constrain the position corresponding to the wiring failure in the layout and generate secondary layout constraint information;
[0067] Return to the above-mentioned layout step, and re-layout and generate new first layout information according to the secondary layout constraint information, and the user design and FPGA virtual input / output module resources obtained by parsing for layout (the new first layout information will update the first layout information generated previously). Then perform the subsequent steps, namely: obtain the new second layout information corresponding to the user design from the new first layout information according to the distinguishing mark (the new second layout information will update the second layout information generated previously); perform routing and generate new first routing information according to the user design and FPGA virtual input / output module resources obtained by parsing for layout and the new first layout information (the new first routing information will update the first routing information generated previously), and obtain the new second routing information corresponding to the user design from the new first routing information according to the distinguishing mark (the new second routing information will update the second routing information generated previously).
[0068] In an exemplary embodiment, after routing is completed, if the timing does not meet the requirements, it is necessary to optimize the timing path, which may also include:
[0069] Constrain the wiring information that does not meet the timing requirements based on information such as path delay and generate secondary wiring constraint information;
[0070] Return to the above-mentioned wiring step, and perform wiring and generate new first wiring information (the new first wiring information will update the first wiring information generated before) according to the secondary layout constraint information, the user design and the resources of the FPGA virtual input / output module for layout obtained by parsing, and the first layout information, and then perform subsequent steps, namely: obtain new second wiring information corresponding to the user design from the new first wiring information according to the distinguishing mark (the new second wiring information will update the second wiring information generated before).
[0071] In an exemplary embodiment, after routing is completed, if the timing does not meet the requirements, the following may be included:
[0072] According to the path delay information, the routing information that does not meet the timing requirements and the routing information that meets the timing requirements but the path delay is greater than a preset threshold is constrained and secondary routing constraint information is generated;
[0073] Return to the above-mentioned wiring step and continue to execute, and perform wiring according to the secondary layout constraint information, the user design and FPGA virtual input / output module resources for layout obtained by the analysis, and the first layout information to generate new first wiring information and update the first wiring information.
[0074] Step 102: Generate a first code stream file including information of the user design and the FPGA virtual input / output module according to the first wiring information, and generate a second code stream file including information of the user design according to the second wiring information.
[0075] This step generates two code stream files, one with information about the FPGA virtual input / output module and the other without information about the FPGA virtual input / output module. The layout and routing results of the user design in the two code stream files are completely consistent, achieving layout and routing of the FPGA virtual input / output module without crosstalk for the user design, solving the problem of inconsistent layout and routing results of the user design before and after using the FPGA virtual input / output module, avoiding confusion and confusion during debugging and verification, thereby improving the efficiency of debugging and verification, providing convenience for subsequent fault reproduction and fault location, and improving the performance and stability of the design. Moreover, the problem of unreasonable layout and routing results will not occur due to the addition of a large number of resources of the FPGA virtual input / output module, thereby improving the user's design efficiency.
[0076] The layout and routing method for implementing the FPGA virtual input / output module provided in the embodiment of the present application generates two code stream files, one with information of the FPGA virtual input / output module and the other without information of the FPGA virtual input / output module. The layout and routing results of the user design in the two code stream files are completely consistent, which not only ensures that after the user completes debugging and removes the FPGA virtual input / output module, the layout and routing results of the user design are completely consistent with those during the debugging process, but also ensures that the layout and routing results of the information of the FPGA virtual input / output module are added to meet the timing conditions, which helps the user to reproduce the fault and quickly locate the fault, and greatly improves the user's design efficiency.
[0077] The present application also provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute any of the above-mentioned methods for implementing a layout and routing method of an FPGA virtual input / output module.
[0078] The present application further provides a computer device, including a memory and a processor, wherein the memory stores the following instructions executable by the processor: used to execute the steps of any of the above-mentioned methods for implementing the layout and routing of an FPGA virtual input / output module.
[0079] Figure 2FIG. 1 is a schematic diagram of the structure of a layout and routing device for implementing an FPGA virtual input / output module in an embodiment of the present application. Figure 2 As shown, it may include: a fusion module, a processing module, and a generation module; wherein,
[0080] A fusion module, used to generate a fusion netlist file according to the information designed by the user and the information of the FPGA virtual input / output module, wherein the fusion netlist file includes a distinguishing mark for distinguishing the information designed by the user and the information of the FPGA virtual input / output module;
[0081] A processing module, configured to perform layout and routing according to the fused netlist file and generate first layout information and first routing information corresponding to the user design and the FPGA virtual input / output module, and to obtain second layout information and second routing information corresponding to the user design from the first layout information and the first routing information according to the distinguishing mark;
[0082] The generating module is used to generate a first code stream file including information of the user design and the FPGA virtual input / output module according to the first wiring information, and to generate a second code stream file including information of the user design according to the second wiring information.
[0083] The layout and routing device for implementing the FPGA virtual input / output module provided in the embodiment of the present application generates two code stream files, one with information of the FPGA virtual input / output module and the other without information of the FPGA virtual input / output module. The layout and routing results of the user design in the two code stream files are completely consistent, which not only ensures that after the user completes debugging and removes the FPGA virtual input / output module, the layout and routing results of the user design are completely consistent with those during the debugging process, but also ensures that the layout and routing results with the information of the FPGA virtual input / output module added meet the timing conditions, which helps the user to reproduce the fault and quickly locate the fault, and greatly improves the user's design efficiency.
[0084] In an exemplary embodiment, the processing module may include: a parsing module, a layout module and a routing module; wherein,
[0085] A parsing module, used for parsing the generated fusion netlist file to obtain resources for user design and FPGA virtual input / output modules for layout;
[0086] A layout module, used to perform layout and generate first layout information according to the user design for layout obtained by parsing and the resources of the FPGA virtual input / output module, and to obtain second layout information corresponding to the user design from the first layout information according to the distinguishing identifier;
[0087] A routing module is used to perform routing and generate first routing information according to the user design for layout obtained by parsing and the resources of the FPGA virtual input / output module and the first layout information, and to obtain second routing information corresponding to the user design from the first routing information according to the distinguishing mark.
[0088] In an exemplary embodiment, the routing module is further used to: after routing is completed, if a routing failure occurs, constrain the position corresponding to the routing failure in the layout according to the routing failure information and generate secondary layout constraint information; feed back the secondary layout constraint information to the layout module; accordingly,
[0089] The layout module is also used to: re-layout and generate new first layout information according to the secondary layout constraint information, and the user design and FPGA virtual input / output module resources obtained by parsing for layout (the new first layout information will overwrite the first layout information generated previously). Then, the subsequent steps are performed, namely: obtaining new second layout information corresponding to the user design from the new first layout information according to the distinguishing mark (the new second layout information will overwrite the second layout information generated previously); routing and generating new first routing information according to the user design and FPGA virtual input / output module resources obtained by parsing for layout and the new first layout information (the new first routing information will overwrite the first routing information generated previously), and obtaining new second routing information corresponding to the user design from the new first routing information according to the distinguishing mark (the new second routing information will overwrite the second routing information generated previously).
[0090] In an exemplary embodiment, the routing module is also used for: after routing is completed, if the timing does not meet the requirements, constraining the routing information that does not meet the timing requirements according to information such as path delay and generating secondary routing constraint information; routing according to the secondary layout constraint information, and the resources of the user design and FPGA virtual input / output module used for layout obtained by parsing and the first layout information and generating new first routing information (the new first routing information will overwrite the first routing information generated previously), and then executing subsequent steps, namely: obtaining new second routing information corresponding to the user design from the new first routing information according to the distinguishing mark (the new second routing information will overwrite the second routing information generated previously).
[0091] In an exemplary embodiment, the routing module is also used to: after routing is completed, for the case where the timing does not meet the requirements, constrain the routing information that does not meet the timing requirements and meets the timing requirements but the path delay is greater than a preset threshold according to the path delay information and generate secondary routing constraint information; return to the above-mentioned routing process to continue execution, and perform routing according to the secondary layout constraint information, as well as the resources of the user design and FPGA virtual input / output module obtained by parsing for layout and the first layout information to generate new first routing information and update the previous first routing information.
[0092] Although the embodiments disclosed in this application are as above, the contents described are only embodiments adopted to facilitate understanding of this application and are not intended to limit this application. Any technician in the field to which this application belongs can make any modifications and changes in the form and details of implementation without departing from the spirit and scope disclosed in this application, but the scope of patent protection of this application shall still be based on the scope defined in the attached claims.
Claims
1. A layout and routing method for implementing FPGA virtual input / output modules, It is characterized in that include: Generate a fused netlist file according to the information designed by the user and the information of the virtual input / output module of the field programmable gate array FPGA, wherein the fused netlist file includes a distinguishing mark for distinguishing the information designed by the user and the information of the virtual input / output module of the FPGA; Perform layout and routing according to the fused netlist file and generate first layout information and first routing information corresponding to the user design and the FPGA virtual input / output module, and obtain second layout information and second routing information corresponding to the user design from the first layout information and the first routing information respectively according to the distinguishing mark; A first code stream file including information of the user design and the FPGA virtual input / output module is generated according to the first wiring information, and a second code stream file including information of the user design is generated according to the second wiring information.
2. The layout and routing method according to claim 1, in, The method of performing layout and routing according to the fused netlist file and generating first layout information and first routing information corresponding to the user design and the FPGA virtual input / output module, and acquiring second layout information and second routing information corresponding to the user design from the first layout information and the first routing information according to the distinguishing mark, comprises: Parsing the generated fusion netlist file to obtain resources for user design and FPGA virtual input / output modules for layout; Perform layout according to the user design and resources of the FPGA virtual input / output module for layout obtained by parsing and generate the first layout information, and obtain the second layout information corresponding to the user design from the first layout information according to the distinguishing identifier; Routing is performed and the first wiring information is generated according to the user design and resources of the FPGA virtual input / output module obtained by parsing for layout, and the first layout information, and the second wiring information corresponding to the user design is obtained from the first wiring information according to the distinguishing identifier.
3. The layout and routing method according to claim 2, wherein after the wiring is completed, in the event of wiring failure, include: Constraining the position corresponding to the wiring failure in the layout according to the wiring failure information and generating secondary layout constraint information; Return to the step of performing layout and continue to execute, and re-perform layout according to the secondary layout constraint information, and the user design for layout obtained by the analysis and the resources of the FPGA virtual input / output module to generate new first layout information and update the first layout information.
4. The layout and routing method according to claim 2, wherein after the routing is completed, if the timing does not meet the requirements, include: Constraining the wiring information that does not meet the timing requirements according to the path delay information and generating secondary wiring constraint information; Return to the step of performing routing and continue to execute, and perform routing according to the secondary layout constraint information, the user design and FPGA virtual input / output module resources obtained by the analysis for layout, and the first layout information to generate new first routing information and update the first routing information.
5. The layout and routing method according to claim 2, wherein after the routing is completed, if the timing does not meet the requirements, include: According to the path delay information, the routing information that does not meet the timing requirements and the routing information that meets the timing requirements but the path delay is greater than a preset threshold is constrained and secondary routing constraint information is generated; Return to the step of performing routing and continue to execute, and perform routing according to the secondary layout constraint information, the user design and FPGA virtual input / output module resources obtained by the analysis for layout, and the first layout information to generate new first routing information and update the first routing information.
6. A computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the layout and routing method for implementing an FPGA virtual input / output module as described in any one of claims 1 to 5.
7. A computer device comprising a memory and a processor, in, The memory stores the following instructions executable by the processor: used to execute the steps of the layout and routing method for implementing an FPGA virtual input / output module as described in any one of claims 1-5.
8. A layout and routing device for implementing a FPGA virtual input / output module, It is characterized in that include: Fusion module, processing module, generation module; among them, A fusion module, used to generate a fusion netlist file according to the information designed by the user and the information of the FPGA virtual input / output module, wherein the fusion netlist file includes a distinguishing mark for distinguishing the information designed by the user and the information of the FPGA virtual input / output module; A processing module, configured to perform layout and routing according to the fused netlist file and generate first layout information and first routing information corresponding to the user design and the FPGA virtual input / output module, and to obtain second layout information and second routing information corresponding to the user design from the first layout information and the first routing information according to the distinguishing mark; The generating module is used to generate a first code stream file including information of the user design and the FPGA virtual input / output module according to the first wiring information, and to generate a second code stream file including information of the user design according to the second wiring information.
9. The layout and routing device according to claim 8, in, The processing module includes: a parsing module, a layout module and a routing module; wherein, A parsing module, used for parsing the generated fusion netlist file to obtain resources for user design and FPGA virtual input / output modules for layout; a layout module, configured to perform layout and generate the first layout information according to the user design for layout obtained by parsing and the resources of the FPGA virtual input / output module, and to obtain the second layout information corresponding to the user design from the first layout information according to the distinguishing identifier; A routing module is used to perform routing and generate the first routing information according to the user design for layout obtained by parsing and the resources of the FPGA virtual input / output module and the first layout information, and to obtain the second routing information corresponding to the user design from the first routing information according to the distinguishing identifier.
10. The layout and routing device according to claim 9, wherein the routing module is further configured to: after routing is completed, if a routing failure occurs, constrain the position corresponding to the routing failure in the layout according to the routing failure information and generate secondary layout constraint information; feed back the secondary layout constraint information to the layout module; accordingly, The layout module is also used to: return to the layout process to continue execution, and re-layout according to the secondary layout constraint information, and the user design and FPGA virtual input / output module resources obtained by the analysis for layout to generate new first layout information and update the first layout information.
11. The layout and routing device according to claim 9, wherein the routing module is further configured to: After the routing is completed, if the timing does not meet the requirements, the routing information that does not meet the timing requirements is constrained according to the path delay information and secondary routing constraint information is generated; the routing process is returned to continue execution, and routing is performed according to the secondary layout constraint information, the user design and FPGA virtual input / output module resources obtained by the analysis for layout, and the first layout information to generate new first routing information and update the first routing information.
12. The layout and routing device according to claim 9, wherein the routing module is further configured to: After the routing is completed, for the case where the timing does not meet the requirements, the routing information that does not meet the timing requirements and the routing information that meets the timing requirements but has a path delay greater than a preset threshold is constrained according to the path delay information and secondary routing constraint information is generated; the routing process is returned to continue execution, and routing is performed according to the secondary layout constraint information, the user design and the resources of the FPGA virtual input / output module for layout obtained by the analysis, and the first layout information to generate new first routing information and update the first routing information.
