FPGA online development method, device, development server and medium

By using an FPGA development server to perform synthesis, syntax checking, and pin assignment on a web-based interface, and generating downloadable stream files, the cumbersome FPGA development process is solved, and a simplified online development workflow is achieved.

CN115454397BActive Publication Date: 2024-11-12SUZHOU SDP INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211026822.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-25
Publication Date
2024-11-12
Estimated Expiration
2042-08-25

AI Technical Summary

Technical Problem

In existing technologies, FPGA development requires downloading large programming software, resulting in high computer configuration requirements, time and effort consumption, and cumbersome operation.

Method used

By using an FPGA development server, comprehensive compilation, syntax checking, pin assignment, and mapping compilation are performed on a web-based interface to generate downloadable stream files, reducing reliance on local computers and development software.

Benefits of technology

It simplifies the FPGA development process, makes operation simpler, reduces constraints on local computers and development software, and improves development efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115454397B_ABST
    Figure CN115454397B_ABST
Patent Text Reader

Abstract

The present application relates to an FPGA online development method, device, development server and medium, and the method includes: when it is detected that a user triggers a code confirmation instruction on a user interaction webpage, the program code is obtained; based on the program code, comprehensive compilation is performed to obtain a gate-level netlist and a comprehensive report; according to the comprehensive report, it is determined whether there is a syntax error in the program code; if there is no syntax error, the input parameters and output parameters corresponding to the top-level module are obtained according to the comprehensive report; pin allocation is performed according to the input parameters and output parameters to generate a corresponding relationship between parameters and pins; mapping compilation is performed based on the gate-level netlist and the corresponding relationship between parameters and pins to generate a downloadable stream file; and the stream file is sent to a local device. The FPGA development server performs relevant processing, which reduces the constraints of FPGA development on local computers and development software, making FPGA development operations simpler.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of FPGA, and in particular to an FPGA online development method, device, development server and medium. Background Art

[0002] General-purpose processors have experienced decades of development. As Moore's Law has reached its limit, the room for improving energy efficiency has been quite limited. In order to achieve further performance improvement, it has become necessary to customize processors for core industrial applications (artificial intelligence, big data processing, etc.). As a result, FPGA (Field-Programmable Gate Array) chip technology has gradually entered the public's field of vision. FPGA has the characteristics of hardware reconfiguration, low power consumption, and low latency. FPGA, or field programmable gate array, is a product further developed on the basis of programmable devices such as PAL (Programmable Array Logic), GAL (generic array logic), and CPLD (Complex Programmable Logic Device). As a semi-custom circuit in the field of application-specific integrated circuits, FPGA not only solves the shortcomings of customized circuits, but also overcomes the shortcomings of the limited number of gate circuits of the original programmable devices. From the perspective of the chip, FPGA is a programmable digital logic chip. We can program FPGA through HDL (Hardware Description Language) language to achieve the digital functions we want.

[0003] However, in the related art, when developing FPGA, it is necessary to download a large amount of programming software to encode the FPGA based on the hardware description language, and then the technicians design and produce based on the downloaded programming software, download the designed files to the local computer, and then use the local designed files to develop the FPGA. Since the programming software needs to be downloaded, not only is the computer configuration required to be high, but the download and installation is also time-consuming and labor-intensive.

[0004] Therefore, how to solve the above technical problems is an urgent problem to be solved by those skilled in the art. Summary of the invention

[0005] The purpose of this application is to provide an FPGA online development method, device, development server and medium to solve at least one of the above technical problems.

[0006] The above invention objectives of the present application are achieved through the following technical solutions:

[0007] In a first aspect, the present application provides an FPGA online development method, which adopts the following technical solution:

[0008] An FPGA online development method, the method comprising:

[0009] When it is detected that the user triggers a code determination instruction on the user interaction webpage, a program code is obtained, wherein the program code is a code generated based on a target function implemented by the FPGA;

[0010] Performing comprehensive compilation based on the program code to obtain a gate-level netlist and a comprehensive report;

[0011] Determining whether the program code has a syntax error according to the comprehensive report;

[0012] If there is no syntax error, then obtaining input parameters and output parameters corresponding to the top-level module according to the comprehensive report, wherein the input parameters and output parameters corresponding to the top-level module correspond to the FPGA input and output;

[0013] Perform pin allocation according to the input parameters and output parameters to generate a corresponding relationship between the parameters and the pins;

[0014] Mapping and compiling are performed based on the gate-level netlist and the corresponding relationship between the parameters and the pins to generate a downloadable stream file;

[0015] The stream file is sent to a local device.

[0016] By adopting the above technical solution, users can carry out FPGA development on the web page, and the FPGA development server will perform relevant operations, compile the program code, convert the program code that is easy for users to understand into a gate-level netlist that is easy for FPGA, and process the program code and check whether there are syntax errors in the program code. If there are no syntax errors in the program code, the input parameters and output parameters corresponding to the top-level module are obtained according to the comprehensive report, and the input parameters and output parameters are assigned to the pins of the FPGA chip to generate the corresponding relationship between the parameters and the pins. Mapping compilation is performed based on the gate-level netlist and the corresponding relationship between the parameters and the pins to generate a downloadable stream file and send it to the local. Users carry out FPGA online development, and the FPGA development server performs relevant processing, which reduces the constraints of FPGA development on the local computer and development software, making FPGA development operations simpler.

[0017] In a preferred example, the present application can be further configured as follows: the step of obtaining the input parameters and output parameters corresponding to the top-level module according to the comprehensive report includes:

[0018] Based on the comprehensive report, the input keywords and output keywords in the top-level module are captured, and the parameter formats of the input keywords and the output keywords are determined, wherein the parameter formats include single variable formats and array formats;

[0019] When the parameter format of the input keyword and the parameter format of the output keyword are both in array form, obtaining multiple input parameters corresponding to the input keyword and multiple output parameters corresponding to the output keyword;

[0020] When the parameter format of the input keyword and the parameter format of the output keyword are both single variable formats, obtaining a unique input parameter corresponding to the input keyword and a unique output parameter corresponding to the output keyword;

[0021] When the parameter format of the input keyword is a single variable format and the parameter format of the output keyword is an array format, obtaining a unique input parameter corresponding to the input keyword and multiple output parameters corresponding to the output keyword;

[0022] When the parameter format of the input keyword is in array form and the parameter format of the output keyword is in single variable form, multiple input parameters corresponding to the input keyword and a unique output parameter corresponding to the output keyword are obtained.

[0023] By adopting the above technical solution, the parameter format of the input keywords and output keywords corresponding to the top-level module is determined, and all input parameters and output parameters are obtained according to the parameter format, fully considering the form of the input signal and output signal to ensure that all input parameters and output parameters can be obtained.

[0024] In a preferred example, the present application may be further configured as follows: performing pin allocation according to the input parameters and output parameters to generate a corresponding relationship between parameters and pins includes:

[0025] Obtaining a pin allocation instruction; wherein the pin allocation instruction is generated based on a user's selection of input, output, and pin on a user interaction webpage;

[0026] According to the pin allocation instruction, each input parameter and each output parameter are matched with the corresponding pin, and it is determined whether the input parameters and the output parameters are all allocated with pins;

[0027] If there are input parameters or output parameters without assigned pins, it will prompt that the pin allocation failed;

[0028] If both input parameters and output parameters are assigned to pins, a correspondence between the parameters and the pins is generated.

[0029] By adopting the above technical solution, pins are allocated to each input parameter and each output parameter according to the pin allocation instruction, wherein the pin allocation instruction is determined based on the user's selection of input, output and pins, and determines whether the input parameters and output parameters are all allocated pins. If there are parameters that are not allocated pins, it will be prompted that the pin allocation failed; if the parameters are all allocated pins, the corresponding relationship between the parameters and the pins is generated. The user can arbitrarily design the corresponding relationship between input, output and pins according to actual needs, and the corresponding relationship between parameters and pins is automatically generated after the pin allocation is completed, which simplifies the operation process of pin allocation.

[0030] In a preferred example, the present application may be further configured as follows: after performing pin allocation according to the input parameters and the output parameters to generate a corresponding relationship between the generated parameters and the pins, the method further includes:

[0031] Determine all allocated pins according to the corresponding relationship between the parameters and the pins;

[0032] Determine the peripherals corresponding to all the allocated pins according to all the allocated pins and the correspondence between the pins and the peripherals;

[0033] Highlight all peripherals with assigned pins on the FPGA development board in the user interactive web page.

[0034] By adopting the above technical solution, the peripherals corresponding to all the allocated pins are determined according to the allocated pins and the correspondence between the pins and the peripherals, so that the peripherals with the allocated pins are highlighted, allowing the user to intuitively see the location of the peripherals with the allocated pins, making it easier to clearly understand which peripheral is allocated.

[0035] In a preferred example, the present application may be further configured as follows: the obtaining of program code includes:

[0036] When it is detected that the user triggers a connection relationship diagram confirmation instruction on the user interaction webpage, a connection relationship diagram of the logic function module is obtained;

[0037] Generate program code according to the connection relationship diagram;

[0038] Among them, the logic function module includes gate circuits, combinational logic, and sequential logic.

[0039] By adopting the above technical solution, a connection relationship diagram of the logic function module is obtained, program code is generated according to the connection relationship diagram, and FPGA development is performed in the form of visual programming, which helps users focus on functional design.

[0040] In a preferred example, the present application may be further configured as follows: after sending the stream file to the local device, the following further includes:

[0041] When connected to the FPGA, the connected FPGA is identified as a removable disk;

[0042] The stream file is copied to a removable disk, so that the stream file is copied to the FPGA.

[0043] By adopting the above technical solution, the connected FPGA is identified as a removable disk so that the stream file can be copied to the FPGA. Since the operating system has driver support for removable disks, there is no need for users to install drivers or specified development software, which solves the cumbersome operations when downloading stream files and improves the data transmission rate.

[0044] In a preferred example, the present application can be further configured as follows: the FPGA online development method further includes:

[0045] Acquire a test file code, use the test file code to perform simulation test on the RTL gate-level netlist that completes the pin allocation, and obtain a simulation report;

[0046] A simulation waveform diagram is generated according to the simulation report, and the simulation waveform diagram is displayed on a user interactive web page.

[0047] By adopting the above technical solution, using the test file code to perform simulation testing, and knowing the actual output of the FPGA based on the simulation waveform, the damage to the FPGA chip caused by logical errors in program design is effectively reduced.

[0048] In a second aspect, the present application provides an FPGA online development device, which adopts the following technical solution:

[0049] An FPGA online development device, comprising:

[0050] An acquisition module, used to acquire a program code after detecting that a user triggers a code determination instruction on a user interaction webpage, wherein the program code is a code generated based on a target function implemented by the FPGA;

[0051] A comprehensive compilation module, used for performing comprehensive compilation based on the program code to obtain a gate-level netlist and a comprehensive report;

[0052] A grammar judgment module, used for judging whether there is a grammatical error in the program code according to the comprehensive report;

[0053] A parameter acquisition module, used for acquiring input parameters and output parameters corresponding to the top-level module according to the comprehensive report if there is no syntax error, wherein the input parameters and output parameters corresponding to the top-level module correspond to the FPGA input and output;

[0054] A pin allocation module, used for performing pin allocation according to the input parameters and output parameters to generate a corresponding relationship between the parameters and the pins;

[0055] A mapping compilation module, used for performing mapping compilation based on the gate-level netlist and the corresponding relationship between the parameters and the pins to generate a downloadable stream file;

[0056] The file download module is used to send the stream file to the local device.

[0057] By adopting the above technical solution, users can carry out FPGA development on the web page, and the FPGA development server will perform relevant operations, perform comprehensive compilation on the program code, convert the program code that is easy for users to understand into a gate-level netlist that is easy for FPGA, and process the program code and check whether there are syntax errors in the program code. If there are no syntax errors in the program code, the input parameters and output parameters corresponding to the top-level module are obtained according to the comprehensive report, and the input parameters and output parameters are assigned to the pins of the PGA chip to generate the corresponding relationship between the parameters and the pins. Mapping compilation is performed based on the gate-level netlist and the corresponding relationship between the parameters and the pins to generate a downloadable stream file and send it to the local. Users carry out FPGA online development, and the FPGA development server performs relevant processing, which reduces the constraints of FPGA development on the local computer and development software, making FPGA development operations simpler.

[0058] In a third aspect, the present application provides an FPGA development server, which adopts the following technical solution:

[0059] at least one processor;

[0060] Memory;

[0061] At least one application, wherein the at least one application is stored in the memory and configured to be executed by at least one processor, and the at least one application is configured to: execute the above method.

[0062] By adopting the above technical solution, users can carry out FPGA development on the web page, and the FPGA development server will perform relevant operations, compile the program code, convert the program code that is easy for users to understand into a gate-level netlist that is easy for FPGA, and process the program code and check whether there are syntax errors in the program code. If there are no syntax errors in the program code, the input parameters and output parameters corresponding to the top-level module are obtained according to the comprehensive report, and the input parameters and output parameters are assigned to the pins of the FPGA chip to generate the corresponding relationship between the parameters and the pins. Mapping compilation is performed based on the gate-level netlist and the corresponding relationship between the parameters and the pins to generate a downloadable stream file and send it to the local. Users carry out FPGA online development, and the FPGA development server performs relevant processing, which reduces the constraints of FPGA development on the local computer and development software, making FPGA development operations simpler.

[0063] In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution:

[0064] A computer-readable storage medium stores a computer program, which, when executed in a computer, causes the computer to execute the above method.

[0065] By adopting the above technical solution, users can carry out FPGA development on the web page, and the FPGA development server will perform relevant operations, compile the program code, convert the program code that is easy for users to understand into a gate-level netlist that is easy for FPGA, and process the program code and check whether there are syntax errors in the program code. If there are no syntax errors in the program code, the input parameters and output parameters corresponding to the top-level module are obtained according to the comprehensive report, and the input parameters and output parameters are assigned to the pins of the FPGA chip to generate the corresponding relationship between the parameters and the pins. Mapping compilation is performed based on the gate-level netlist and the corresponding relationship between the parameters and the pins to generate a downloadable stream file and send it to the local. Users carry out FPGA online development, and the FPGA development server performs relevant processing, which reduces the constraints of FPGA development on the local computer and development software, making FPGA development operations simpler.

[0066] In summary, the present application includes at least one of the following beneficial technical effects:

[0067] 1. The user performs FPGA development on the web page, and the FPGA development server performs related operations, performs comprehensive compilation of the program code, converts the program code that is easy for users to understand into a gate-level netlist that is easy for FPGA, and processes the program code and checks whether there are syntax errors in the program code. If there are no syntax errors in the program code, the input parameters and output parameters corresponding to the top-level module are obtained according to the comprehensive report, and the input parameters and output parameters are assigned to the pins of the FPGA chip to generate the corresponding relationship between the parameters and the pins. Mapping compilation is performed based on the gate-level netlist and the corresponding relationship between parameters and pins to generate a downloadable stream file and send it to the local. The user performs FPGA online development, and the FPGA development server performs related processing, which reduces the constraints of FPGA development on the local computer and development software, making FPGA development operations simpler. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] Figure 1 It is a flowchart of an FPGA online development method according to one embodiment of the present application.

[0069] Figure 2 It is a schematic diagram of the program module structure of one embodiment of the present application.

[0070] Figure 3 It is a structural schematic diagram of an FPGA online development device according to one embodiment of the present application.

[0071] Figure 4 It is a structural diagram of an FPGA development server according to one embodiment of the present application. DETAILED DESCRIPTION

[0072] The following is combined with Figure 1 To Attachment Figure 4 This application is described in further detail.

[0073] This specific embodiment is merely an explanation of the present application and is not a limitation of the present application. After reading this specification, a person skilled in the art may make non-creative modifications to the present embodiment as needed, but such modifications are protected by the patent law as long as they are within the scope of the present application.

[0074] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0075] In addition, the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article, unless otherwise specified, generally means that the associated objects before and after are in an "or" relationship.

[0076] The embodiments of the present application are further described in detail below in conjunction with the drawings in the specification.

[0077] An embodiment of the present application provides an online FPGA development method, which is executed by an FPGA development server. The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services.

[0078] Among them, online FPGA development can be performed on the FPGA development server. Users can log in to the web FPGA platform on the FPGA development server based on their account and password. When the user logs in for the first time, the web FPGA platform can automatically record the login information and user identification, and can log in directly later, reducing user operations and improving efficiency. Specifically, the FPGA development server has a pre-integrated instruction monitoring program to monitor the behavior of various certain instructions on the user interaction web page. Once a certain instruction is monitored to be executed, the operation corresponding to the certain instruction can be executed.

[0079] like Figure 1 As shown, the method includes step S101, step S102, step S103, step S104, step S105, step S106 and step S107, wherein:

[0080] Step S101: when it is detected that a user triggers a code determination instruction on a user interaction webpage, a program code is obtained, where the program code is a code written based on a target function implemented by the FPGA;

[0081] Among them, when the user logs in to the web FPGA platform on the local device and operates on the user interaction web page, the instruction monitoring program pre-integrated in the FPGA development server can detect that the user has triggered the code confirmation instruction, and the FPGA development server obtains the corresponding program code.

[0082] For the embodiments of the present application, there are multiple ways for users to perform FPGA development on the user interaction web page. In one feasible way, a code editor module is provided on the web page FPGA platform. When the user enters the code editor module, the user writes the relevant program code in the area corresponding to the code editor on the user interaction web page based on the needs of FPGA development. The user can write one, two or more modules according to the target function of the FPGA to be developed. The number of modules is related to the difficulty of the target function of the FPGA development. The sum of the codes of all modules constitutes the program code. If the program includes two or more modules, it can be determined that it includes a top-level module and one, two or more bottom-level modules, as shown in the following example. Figure 2 As shown, Figure 2 The middle top-level module corresponds to the top-level module. Figure 2 The submodules and leaf units correspond to the bottom-level modules, where the input parameters and output parameters of the top-level modules are associated with the input and output of the FPGA. When the user writes the file code, the file name, input and output must be defined, and the target function to be implemented must be written using the circuit description language. When the user writes the program code on the user interaction web page and clicks the confirmation button, a code confirmation instruction is generated, and then, when the FPGA development server detects the code confirmation instruction, the program code is obtained.

[0083] In another achievable method, a visual programming module is provided on the web FPGA platform. When the user enters the visual programming module, the user can perform visual programming according to the target function of the FPGA development, that is, each logic function module is regarded as a black box. The user only needs to know the input, output and realized function of the logic function module, and does not need to master the specific implementation process of the logic function. When the user is developing the target function of the FPGA, the input and output of the required logic function module can be connected according to the connection relationship by drawing, and the development of the FPGA target function can be completed in a visual form. The FPGA development server automatically generates program code according to the connection relationship of the logic function module. When the user completes the confirmation of the FPGA target function on the user interaction web page, a code confirmation instruction is generated, and then, when the FPGA development server detects the code confirmation instruction, the program code is obtained.

[0084] In the embodiment of the present application, the target functions of FPGA include but are not limited to any one or more of the following: lighting up LED (Light-Emitting Diode), lighting up three-color LED, 38 decoder, driving digital tube, divider, running light, button debouncing, timing control, breathing light, traffic light. Of course, users can also design FPGA functions according to their needs.

[0085] Step S102: Perform comprehensive compilation based on the program code to obtain a gate-level netlist and a comprehensive report;

[0086] For the embodiment of the present application, the program code is written in a hardware description language, and thus the program code is compiled by a compiler to convert the program code into a file format recognizable by the FPGA. Specifically, the comprehensive compilation converts the program code into a gate-level netlist and a comprehensive report, where the gate-level netlist is used to describe the interconnection relationship between circuit elements; the comprehensive report includes some key information output during the comprehensive compilation process and output parameters and output parameters corresponding to the program code, and the key information includes but is not limited to: error information, warning information, and resource usage information. Specifically, the error information indicates that the comprehensive compilation process failed, and the common cause of failure is the presence of syntax errors in the program code; the warning information includes warning information of uncertain situations that occur during the comprehensive compilation process, or warning information that the compiler processes without permission; the resource usage information indicates the amount of hardware resources used by the gate-level netlist in the FPGA.

[0087] Step S103: judging whether there are any syntax errors in the program code according to the comprehensive report;

[0088] Step S104: If there is no syntax error, the input parameters and output parameters corresponding to the top-level module are obtained according to the comprehensive report, wherein the input parameters and output parameters corresponding to the top-level module correspond to the FPGA input and output;

[0089] For the embodiments of the present application, it is possible to determine whether there is a syntax error based on the error information in the comprehensive report. If there is a syntax error, no subsequent processing will be performed. At the same time, the error information in the comprehensive report can be displayed on the user interaction web page so that the user can know the detailed information of the error; if there is no syntax error, the input parameters and output parameters corresponding to the top-level module are obtained according to the comprehensive report.

[0090] It is understandable that the program code is composed of multiple modules, and each module will also have corresponding input parameters and output parameters. Therefore, the comprehensive report includes the input parameters and output parameters of all modules. After passing the syntax error detection, only the program design is completed. Then, the FPGA input and output need to be determined to complete the correspondence between the program input parameters and output parameters and the FPGA input and output.

[0091] Step S105: performing pin allocation according to input parameters and output parameters to generate a corresponding relationship between parameters and pins;

[0092] For the embodiments of the present application, the user completes the design of the program according to the target function implemented by the FPGA and determines the input and output. However, the pins of the FPGA chip can be designed according to the user's needs, or can be customized based on set rules. The user can customize the selection. Specifically, the FPGA chip includes a large number of pins. In one feasible method, the user can choose which pins to use according to needs on the user interaction web page, correspond the input and output of the program with the FPGA chip, and generate a pin allocation confirmation instruction. When the FPGA development server detects the pin allocation confirmation instruction, it completes the pin allocation to generate the corresponding relationship between the input parameters, output parameters and pins. In another achievable method, the attribute information of all pins of the FPGA is obtained, the target attribute information of the pins is determined from the correspondence between the pins of the preset functions according to the target function, and the input parameters and output parameters are assigned to the pins based on the attribute information of all pins and the target attribute information to obtain the correspondence between the parameters and the pins, which can improve the efficiency of the pin assignment. Furthermore, it can also include: displaying a confirmation request for the correspondence between the parameters and the pins on a user interactive web page; when the user confirms, completing the confirmation of the correspondence between the parameters and the pins to improve the accuracy of the pin assignment.

[0093] This application does not limit the structure of the FPGA development board, which can be a conventional FPGA development board or an improved FPGA development board. In one possible scenario, the FPGA development board includes: a Micro USB (Universal SerialBus) interface, a power module, an FPGA chip and peripherals, wherein the peripherals include 36 expandable GPIOs (General-purpose input / output), 4 touch buttons, 4 dip switches, 2 tri-color lights, 8 LEDs and 2 7-segment digital tubes, and the peripherals are connected to the FPGA chip. When the FPGA development board leaves the factory, the correspondence between the peripherals and the FPGA chip pin numbers is completed. Then, the developed program can be copied to the FPGA chip, and after completing the correspondence between the input parameters, output parameters and pins, the input and output of the program can be linked to the peripherals.

[0094] Step S106: mapping and compiling based on the gate-level netlist and the corresponding relationship between parameters and pins to generate a downloadable stream file;

[0095] Step S107: Send the stream file to the local device.

[0096] For the embodiment of the present application, mapping and compiling are performed based on the gate-level netlist and the corresponding relationship between parameters and pins, so as to compress and package the executable program to generate a downloadable stream file. The user can download the stream file to a local device, or copy the stream file to the FPGA to complete the development process of the FPGA.

[0097] It can be seen that in the embodiment of the present application, the user performs FPGA development on the web page, and the FPGA development server performs relevant operations, performs comprehensive compilation of the program code, converts the program code that is easy for the user to understand into a gate-level netlist that is easy for the FPGA, and processes the program code and checks whether there are syntax errors in the program code. If there are no syntax errors in the program code, the input parameters and output parameters corresponding to the top-level module are obtained according to the comprehensive report, and the input parameters and output parameters are assigned to the pins of the FPGA chip to generate the corresponding relationship between the parameters and the pins. Mapping compilation is performed based on the gate-level netlist and the corresponding relationship between the parameters and the pins to generate a downloadable stream file and send it to the local. The user performs FPGA online development, and the FPGA development server performs relevant processing, which reduces the constraints of FPGA development on the local computer and development software, making FPGA development operations simpler.

[0098] Furthermore, in order to ensure that all input parameters and output parameters can be obtained, the input parameters and output parameters corresponding to the top-level module are obtained according to the comprehensive report, including:

[0099] Based on the comprehensive report, the input keywords and output keywords corresponding to the top-level module are captured, and the parameter formats of the input keywords and the output keywords are determined, wherein the parameter formats include single variable format and array format;

[0100] When the parameter format of the input keyword and the parameter format of the output keyword are both in array form, multiple input parameters corresponding to the input keyword and multiple output parameters corresponding to the output keyword are obtained;

[0101] When the parameter format of the input keyword and the parameter format of the output keyword are both single variable formats, obtain the unique input parameter corresponding to the input keyword and the unique output parameter corresponding to the output keyword;

[0102] When the parameter format of the input keyword is a single variable format and the parameter format of the output keyword is an array format, obtain the unique input parameter corresponding to the input keyword and the multiple output parameters corresponding to the output keyword;

[0103] When the parameter format of the input keyword is in array form and the parameter format of the output keyword is in single variable form, multiple input parameters corresponding to the input keyword and a unique output parameter corresponding to the output keyword are obtained.

[0104] For the embodiments of the present application, the comprehensive reports are all in the form of text reports, by capturing the input keywords and output keywords corresponding to the top-level modules from the comprehensive reports, and determining the parameter formats of the input keywords and output keywords.

[0105] For example, if the parameter format is: input clk; input rst; output led; then the parameter format of the input keyword and output keyword is determined to be a single variable, the input parameters are clk and rst, and the output parameter is led. If the parameter format is: input [2:0] sw; output [7:0] led; then the parameter format of the input keyword and output keyword is determined to be an array format, the input parameters are sw[0], sw[1], sw[2], and the output parameters are led[0], led[1], led[2], led[3], led[4], led[5], led[6], led[7]. If the parameter format is: input clk; input rst; output [7:0] led; then the parameter format of the input keyword is determined to be a single variable, the input parameters are clk and rst, the parameter format of the output keyword is an array format, and the output parameters are led[0], led[1], led[2], led[3], led[4], led[5], led[6], led[7]. If the parameter format is such as: input [2:0] a; input [1:0] sel; output reg led; then the parameter format of the input keyword is determined to be in array form, the input parameters are a [0], a [1], a [2], sel [0], sel [1], the parameter format of the output keyword is a single variable, and the output parameter is led.

[0106] By determining the parameter format, all input parameters and output parameters are obtained, and the number of input parameters and output parameters and the name of each input parameter and output parameter can be known, which is convenient for subsequent pin allocation.

[0107] It can be seen that in the embodiment of the present application, the parameter format of the input keywords and output keywords corresponding to the top-level module is determined, and all input parameters and output parameters are obtained according to the parameter format, taking full account of the form of the input signal and the output signal to ensure that all input parameters and output parameters can be obtained.

[0108] Further, in order to simplify the operation process of pin allocation, step S105: performing pin allocation according to input parameters and output parameters to generate a corresponding relationship between parameters and pins includes:

[0109] Obtaining a pin allocation instruction; wherein the pin allocation instruction is generated based on a user's selection of input, output, and pin on a user interaction webpage;

[0110] According to the pin allocation instruction, each input parameter and each output parameter are matched with the corresponding pin, and it is determined whether the input parameters and output parameters are all allocated pins;

[0111] For the embodiments of the present application, in the related art, pin allocation requires manual modification of the correspondence between input parameters, output parameters and pins or editing the correspondence between pins and input parameters and output parameters on the local development software. In the present application, the board diagram of the FPGA development board and the correspondence between the peripherals and the pin numbers of the FPGA chip when the FPGA development board leaves the factory can be seen on the user interaction webpage on the user side. The user only needs to click to allocate the input parameters, output parameters and pin numbers according to actual needs, and visually allocate the pins on the user side, which simplifies the traditional manual modification of the corresponding files. After the user manually selects the correspondence between the input, output and pins on the user side, the FPGA development server will obtain the pin allocation instruction.

[0112] In an embodiment of the present application, the peripherals in the FPGA development board are digitally compiled. The digital compilation is to correspond the peripherals on the hardware to the pin relationships. For example, the digital compilation of the three-color light is: {pin: 'M2', signal: 'R_LED1', io: 'output', selected: false}, where pin: 'M2' determines the pin number as M2, signal: 'R_LED1' defines the signal as R_LED1, io: 'output' determines it as the output signal, and selected: false determines that the current state is not selected. The input of the program is input [2:0] sw; output [2:0] led. The user can select any one of the output parameters: led[0], led[1], led[2] to connect to the M2 pin number of the three-color light according to the needs. If the output parameter led[0] is connected to the M2 pin number of the three-color light, the corresponding compiled data structure will be changed to: { pin: 'M2', signal: ' led[0]', io: 'output', selected: true}.

[0113] According to the pin allocation instruction obtained by the user for pin allocation, each input parameter and each output parameter are matched with the pin number, and the compiled data structure corresponding to the pin number is modified, so as to judge whether the input parameters and output parameters are all allocated with pins.

[0114] If there are input parameters or output parameters without assigned pins, it will prompt that the pin allocation failed;

[0115] If both input parameters and output parameters are assigned to pins, a correspondence between the parameters and the pins is generated.

[0116] For the embodiment of the present application, if there are input parameters and output parameters that are not assigned pins, a prompt indicating that the pin assignment failed is issued, and subsequent operations cannot be performed; if both input parameters and output parameters are assigned pins, a correspondence between the parameters and the pins can be generated. Following the example of connecting the output parameter led[0] to the M2 pin number of the three-color light, it can be known that the output parameter led[0] corresponds to the M2 pin of the three-color light. The determination of the correspondence between the remaining input parameters, output parameters and pins is the same, and will not be discussed one by one here.

[0117] It can be seen that in the embodiment of the present application, pins are allocated to each input parameter and each output parameter according to the pin allocation instruction, wherein the pin allocation instruction is determined based on the user's selection of input, output and pins, and determines whether the input parameters and output parameters are all allocated pins. If there are parameters that have not been allocated pins, it will be prompted that the pin allocation has failed; if the parameters are all allocated pins, the corresponding relationship between the parameters and the pins will be generated. The user can arbitrarily design the corresponding relationship between input, output and pins according to actual needs, and the corresponding relationship between parameters and pins will be automatically generated after the pin allocation is completed, which simplifies the operation process of pin allocation.

[0118] Furthermore, in order to enable the user to intuitively see the location of the peripherals to which the pin numbers have been assigned, so as to clearly know which peripherals have been assigned, after the pins are assigned according to the input parameters and the output parameters to generate the corresponding relationship between the parameters and the pins, the method further includes:

[0119] According to the correspondence between parameters and pins, determine all allocated pins;

[0120] According to all the allocated pins and the correspondence between the pins and the peripherals, determine the peripherals corresponding to all the allocated pins;

[0121] Highlight all peripherals with assigned pins on the FPGA development board in the user interactive web page.

[0122] For the embodiment of the present application, the correspondence between the peripherals and the FPGA chip pins is completed when the FPGA development board leaves the factory. All the allocated pins can be determined according to the corresponding relationship between the generated parameters and the pins, and the peripherals corresponding to all the allocated pins can be determined according to the allocated pins, the corresponding relationship between the pins and the peripherals. For example: the three-color light includes three LED lights as an output peripheral, and corresponds to three pins. The correspondence between the three LED lights and the three pin numbers is: R_LED1 corresponds to M2, G_LED1 corresponds to N2, and B_LED1 corresponds to P2. Following the example of the output parameter led[0] and the M2 pin of the three-color light, it can be determined that the M2 pin has been allocated. According to the allocated pins and the corresponding relationship between the pins and the peripherals, it can be determined that the R_LED1 peripheral has been allocated pins. Then, the R_LED1 peripheral is highlighted on the FPGA development board of the user interaction webpage, so that the R_LED1 peripheral presents a special state, so that the user can clearly know which peripheral is allocated. There are many forms of highlighting, which can be flashing once or multiple times, and of course, the peripherals of the assigned pins can also be highlighted. The embodiments of the present application will not limit the form of highlighting.

[0123] It can be seen that in the embodiment of the present application, the peripherals corresponding to all the allocated pins are determined based on the allocated pins and the correspondence between the pins and the peripherals, so that the peripherals with the allocated pins are highlighted, allowing the user to intuitively see the location of the peripherals with the allocated pins, making it easier to clearly understand which peripheral is allocated.

[0124] Furthermore, in order to help users focus on functional design, obtain program code, including:

[0125] When it is detected that the user triggers a connection relationship diagram confirmation instruction on the user interaction webpage, a connection relationship diagram of the logic function module is obtained;

[0126] Generate program code according to the connection relationship diagram;

[0127] Among them, the logic function module includes gate circuits, combinational logic, and sequential logic.

[0128] For the embodiment of the present application, the user obtains the program code using visual programming. Specifically, the user connects the logic functions according to the target function developed by the FPGA so that the connection relationship diagram after the connection can logically realize the target function. The logic function module includes gate circuits, combinational logic, and sequential logic, wherein the gate circuits include and, or, not, nor, nand, xor, xnor, multiple inputs, 74hc00, the combinational logic includes carry-lookahead addition, 38 decoders, BCD transcoding, 42 encoders, selectors, 24 decoders, voters, comparators, full adders, and half adders, and the sequential logic includes integer dividers, Johnson counters, ring counters, counters, parallel to serial, serial to parallel, right shift registers, left shift registers, T flip-flops, JK flip-flops, asynchronous set D flip-flops, synchronous set D flip-flops, asynchronous reset D flip-flops, synchronous reset D flip-flops, D flip-flops, D latches, and RS flip-flops.

[0129] The user can connect the inputs and outputs of multiple logic function modules in a logically implementable manner to generate a connection diagram of the logic function modules to achieve the target function of FPGA development. When the FPGA development server detects that the user triggers the confirmation connection diagram instruction on the user interaction web page, the program code can be automatically generated according to the connection diagram of the logic function modules.

[0130] It can be seen that in the embodiment of the present application, a connection relationship diagram of the logic function module is obtained, program code is generated according to the connection relationship diagram, and FPGA development is performed in the form of visual programming, which helps users focus on functional design.

[0131] Furthermore, in order to solve the cumbersome operation when downloading streaming files and improve the data transmission rate, after sending the streaming files to the local, it also includes:

[0132] After the FPGA is connected, the connected FPGA is identified as a removable disk, and the stream file is copied to the removable disk, so that the stream file is copied to the FPGA.

[0133] For the embodiment of the present application, in the related art, the compiled and packaged stream file is downloaded to the FPGA, and the manufacturer's driver and development software need to be installed. Due to the different compatibility of the operating system, the driver is often incompatible, resulting in download failure. In this application, the FPGA development board includes: a Micro USB interface, a power module, an FPGA chip, a peripheral module, and a download and debug module connected to the FPGA chip. The download and debug module is a bridge connecting the local stream file and the FPGA chip, and mainly completes the work of receiving the FPGA stream file, decoding the stream file and converting the JTAG timing, downloading the configuration data to the FPGA, etc. When the FPGA is connected to the local computer via a USB data cable, after the USB initialization configuration, under the interrupt control of the host, the connected FPGA is enumerated as a large-capacity storage device, and is displayed in the computer's resource manager in the form of a removable disk. After the stream file is stored in the removable disk, the download and debug module decodes the stream file and converts the JTAG timing, and downloads the configuration data to the FPGA to complete the copying of the stream file to the FPGA.

[0134] It can be seen that in the embodiment of the present application, the connected FPGA is identified as a removable disk so that the stream file can be copied to the FPGA. Since the operating system has driver support for removable disks, there is no need for the user to install a driver or specified development software, which solves the cumbersome operations when downloading stream files and improves the data transmission rate.

[0135] Furthermore, in order to effectively reduce the damage to FPGA chips caused by logical errors in program design, it also includes:

[0136] Obtain the test file code, use the test file code to simulate the gate-level netlist that has completed the pin allocation, and obtain a simulation report;

[0137] Generate a simulation waveform according to the simulation report, and display the simulation waveform on the user interactive web page. For the embodiment of the present application, the simulation includes functional simulation and timing simulation. Functional simulation is used to verify whether the function of the circuit meets the design requirements. Timing simulation truly reflects the delay and function of the logic, and comprehensively considers the influence of the path delay and gate delay of the circuit. Since the internal delays of different devices are different, different layout and wiring schemes also cause different effects on the delay. Therefore, timing simulation is performed to analyze the timing relationship, estimate the performance of the design, and check and eliminate competition risks. When developing FPGA, if the designed program has logical problems, and directly importing the designed program directly into the FPGA, it will cause damage to the FPGA chip. Therefore, it is meaningful to perform simulation operations before importing the designed program into the FPGA.

[0138] The user writes a test file based on the target function, input, and output implemented by the FPGA. The test file can generate the input signal required by the FPGA. The FPGA development server obtains the test file code, uses the test code to complete the simulation test of the gate-level netlist with pin assignment, obtains a simulation report, generates a simulation waveform based on the simulation report, and sends it to the user interaction web page. The user can know whether the output is correct based on the obtained simulation waveform.

[0139] It can be seen that in the embodiment of the present application, the test file code is used to perform simulation testing, and the actual output of the FPGA can be known based on the simulation waveform diagram, which effectively reduces the situation where the FPGA chip is damaged due to logical errors in program design.

[0140] The above embodiment introduces an FPGA online development method from the perspective of method flow, and the following embodiment introduces an FPGA online development device from the perspective of a virtual module or a virtual unit. Please refer to the following embodiment for details.

[0141] The embodiment of the present application provides an FPGA online development device 200, such as Figure 3 As shown, the FPGA online development device 200 may specifically include:

[0142] An acquisition module 210 is used to acquire a program code after detecting that a user triggers a code determination instruction on a user interaction webpage, wherein the program code is a code generated based on a target function implemented by the FPGA;

[0143] A comprehensive compilation module 220, used to perform comprehensive compilation based on program code to obtain a gate-level netlist and a comprehensive report;

[0144] The grammar judgment module 230 is used to judge whether there is a grammatical error in the program code according to the comprehensive report;

[0145] A parameter acquisition module 240 is used to acquire input parameters and output parameters corresponding to the top-level module according to the comprehensive report if there is no syntax error, wherein the input parameters and output parameters corresponding to the top-level module correspond to the FPGA input and output;

[0146] The pin allocation module 250 is used to allocate pins according to input parameters and output parameters to generate a corresponding relationship between parameters and pins;

[0147] A mapping compilation module 260, for performing mapping compilation based on a gate-level netlist and a correspondence between parameters and pins to generate a downloadable stream file;

[0148] The file download module 270 is used to send the stream file to the local device.

[0149] For the embodiment of the present application, the user performs FPGA development on the web page, and the FPGA development server performs relevant operations, performs comprehensive compilation on the program code, converts the program code that is easy for the user to understand into a gate-level netlist that is easy for the FPGA, and processes the program code and checks whether there are syntax errors in the program code. If there are no syntax errors in the program code, the input parameters and output parameters corresponding to the top-level module are obtained according to the comprehensive report, and the input parameters and output parameters are assigned to the pins of the FPGA chip to generate the corresponding relationship between the parameters and the pins. Mapping compilation is performed based on the gate-level netlist and the corresponding relationship between the parameters and the pins to generate a downloadable stream file and send it to the local. The user performs FPGA online development, and the FPGA development server performs relevant processing, which reduces the constraints of FPGA development on the local computer and development software, making FPGA development operations simpler.

[0150] Preferably, when the parameter acquisition module 240 acquires the input parameters and output parameters corresponding to the top-level module according to the comprehensive report, it is used to:

[0151] Based on the comprehensive report, the input keywords and output keywords in the top-level module are captured, and the parameter formats of the input keywords and output keywords are determined, wherein the parameter formats include single variable format and array format;

[0152] When the parameter format of the input keyword and the parameter format of the output keyword are both in array form, multiple input parameters corresponding to the input keyword and multiple output parameters corresponding to the output keyword are obtained;

[0153] When the parameter format of the input keyword and the parameter format of the output keyword are both single variable formats, obtain the unique input parameter corresponding to the input keyword and the unique output parameter corresponding to the output keyword;

[0154] When the parameter format of the input keyword is a single variable format and the parameter format of the output keyword is an array format, obtain the unique input parameter corresponding to the input keyword and the multiple output parameters corresponding to the output keyword;

[0155] When the parameter format of the input keyword is in array form and the parameter format of the output keyword is in single variable form, multiple input parameters corresponding to the input keyword and a unique output parameter corresponding to the output keyword are obtained.

[0156] Preferably, when performing pin allocation according to input parameters and output parameters to generate a corresponding relationship between parameters and pins, the pin allocation module 250 is used to:

[0157] Obtaining a pin allocation instruction; wherein the pin allocation instruction is generated based on a user's selection of input, output, and pin on a user interaction webpage;

[0158] According to the pin allocation instruction, each input parameter and each output parameter are matched with the corresponding pin, and it is determined whether the input parameters and output parameters are all allocated pins;

[0159] If there are input parameters or output parameters without assigned pins, it will prompt that the pin allocation failed;

[0160] If both input parameters and output parameters are assigned to pins, a correspondence between the parameters and the pins is generated.

[0161] Preferably, the FPGA online development device further includes:

[0162] The peripheral determination module is used to determine all allocated pins according to the corresponding relationship between parameters and pins;

[0163] According to all the allocated pins and the correspondence between the pins and the peripherals, determine the peripherals corresponding to all the allocated pins;

[0164] Highlight all peripherals with assigned pins on the FPGA development board in the user interactive web page.

[0165] Preferably, when executing the acquisition program code, the acquisition module 210 is used to:

[0166] When it is detected that the user triggers a connection relationship diagram confirmation instruction on the user interaction webpage, a connection relationship diagram of the logic function module is obtained;

[0167] Generate program code according to the connection relationship diagram;

[0168] Among them, the logic function module includes gate circuits, combinational logic, and sequential logic.

[0169] Preferably, the FPGA online development device further includes:

[0170] When connected to the FPGA, the connected FPGA is identified as a removable disk;

[0171] Copy the stream file to a removable disk so that the stream file can be copied to the FPGA.

[0172] Preferably, the FPGA online development device further includes:

[0173] Obtain the test file code, use the test file code to simulate the RTL gate-level netlist that has completed the pin assignment, and obtain a simulation report;

[0174] A simulation waveform diagram is generated according to the simulation report, and the simulation waveform diagram is displayed on a user interactive web page.

[0175] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the FPGA online development device 200 described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0176] The present application embodiment provides an FPGA development server, such as Figure 4 As shown, Figure 4 The FPGA development server 300 shown includes: a processor 301 and a memory 303. The processor 301 and the memory 303 are connected, such as through a bus 302. Optionally, the FPGA development server 300 may also include a transceiver 304. It should be noted that in actual applications, the transceiver 304 is not limited to one, and the structure of the FPGA development server 300 does not constitute a limitation on the embodiments of the present application.

[0177] The processor 301 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor 301 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0178] The bus 302 may include a path to transmit information between the above components. The bus 302 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 302 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the diagram, but it does not mean that there is only one bus or only one type of bus.

[0179] The memory 303 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.

[0180] The memory 303 is used to store the application code for executing the solution of the present application, and the execution is controlled by the processor 301. The processor 301 is used to execute the application code stored in the memory 303 to implement the contents shown in the above method embodiment.

[0181] Among them, FPGA development servers include but are not limited to: mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. It can also be a server, etc. Figure 4 The FPGA development server shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0182] The embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and when it is run on a computer, the computer can execute the corresponding content in the aforementioned method embodiment. Compared with the related art, in the embodiment of the present application, the user performs FPGA development on the web page, and the FPGA development server performs relevant operations, performs comprehensive compilation of the program code, converts the program code that is easy for the user to understand into a gate-level netlist that is easy for the FPGA, and processes the program code and checks whether the program code has syntax errors. If there is no syntax error in the program code, the input parameters and output parameters corresponding to the top-level module are obtained according to the comprehensive report, and the input parameters and output parameters are allocated to the pins of the FPGA chip to generate the corresponding relationship between the parameters and the pins. Mapping compilation is performed based on the gate-level netlist and the corresponding relationship between the parameters and the pins to generate a downloadable stream file and send it to the local. The user performs FPGA online development, and the FPGA development server performs relevant processing, which reduces the constraints of FPGA development on the local computer and development software, making the FPGA development operation simpler.

[0183] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0184] The above are only some implementation methods of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. An FPGA online development method, characterized in that: Executed by the FPGA Development Server, including: When it is detected that the user triggers a code determination instruction on the user interaction webpage, a program code is obtained, wherein the program code is a code generated based on a target function implemented by the FPGA; Performing comprehensive compilation based on the program code to obtain a gate-level netlist and a comprehensive report; Determining whether the program code has a syntax error according to the comprehensive report; If there is no syntax error, then obtaining input parameters and output parameters corresponding to the top-level module according to the comprehensive report, wherein the input parameters and output parameters corresponding to the top-level module correspond to the FPGA input and output; Perform pin allocation according to the input parameters and output parameters to generate a corresponding relationship between the parameters and the pins; The pin allocation method includes: The user selects the pins corresponding to the input parameters and the output parameters on the user interaction webpage to generate a corresponding relationship between the parameters and the pins; Or, obtaining attribute information of all pins of the FPGA, and determining target attribute information of the pins from the preset correspondence relationship between the function pins according to the target function; based on the attribute information of all pins and the target attribute information, pin allocation is performed on the input parameters and the output parameters to obtain the correspondence relationship between the parameters and the pins; Mapping and compiling are performed based on the gate-level netlist and the corresponding relationship between the parameters and the pins to generate a downloadable stream file; Sending the stream file to a local device; After performing pin allocation according to the input parameters and the output parameters to generate a corresponding relationship between the parameters and the pins, the method further includes: Determine all allocated pins according to the corresponding relationship between the parameters and the pins; Determine the peripherals corresponding to all the allocated pins according to all the allocated pins and the correspondence between the pins and the peripherals; Highlight all peripherals corresponding to the assigned pins on the FPGA development board on the user interactive web page; The obtaining of program code comprises: When it is detected that the user triggers the instruction to confirm the connection relationship diagram on the user interaction webpage, a connection relationship diagram of the logic function module is obtained; wherein the user connects the inputs and outputs of multiple logic function modules in a logically implementable manner to obtain the connection relationship diagram; Generate program code according to the connection relationship diagram; Among them, the logic function module includes gate circuits, combinational logic, and sequential logic.

2. The FPGA online development method according to claim 1, characterized in that: The step of obtaining input parameters and output parameters corresponding to the top-level module according to the comprehensive report includes: Based on the comprehensive report, the input keywords and output keywords in the top-level module are captured, and the parameter formats of the input keywords and the output keywords are determined, wherein the parameter formats include single variable formats and array formats; When the parameter format of the input keyword and the parameter format of the output keyword are both in array form, obtaining multiple input parameters corresponding to the input keyword and multiple output parameters corresponding to the output keyword; When the parameter format of the input keyword and the parameter format of the output keyword are both single variable formats, obtaining a unique input parameter corresponding to the input keyword and a unique output parameter corresponding to the output keyword; When the parameter format of the input keyword is a single variable format and the parameter format of the output keyword is an array format, obtaining a unique input parameter corresponding to the input keyword and multiple output parameters corresponding to the output keyword; When the parameter format of the input keyword is in array form and the parameter format of the output keyword is in single variable form, multiple input parameters corresponding to the input keyword and a unique output parameter corresponding to the output keyword are obtained.

3. The FPGA online development method according to claim 2, characterized in that: The performing pin allocation according to the input parameters and the output parameters to generate a corresponding relationship between the parameters and the pins includes: Obtaining a pin allocation instruction; wherein the pin allocation instruction is generated based on a user's selection of input, output, and pin on a user interaction webpage; According to the pin allocation instruction, each input parameter and each output parameter are matched with the corresponding pin, and it is determined whether the input parameters and the output parameters are all allocated with pins; If there are input parameters or output parameters without assigned pins, it will prompt that the pin allocation failed; If both input parameters and output parameters are assigned to pins, a correspondence between the parameters and the pins is generated.

4. The FPGA online development method according to claim 1, characterized in that: After sending the stream file to the local computer, the method further includes: When connected to the FPGA, the connected FPGA is identified as a removable disk; The stream file is copied to a removable disk, so that the stream file is copied to the FPGA.

5. The FPGA online development method according to any one of claims 1 to 4, characterized in that: Also includes: Acquire a test file code, use the test file code to perform simulation test on the RTL gate-level netlist that completes the pin allocation, and obtain a simulation report; A simulation waveform diagram is generated according to the simulation report, and the simulation waveform diagram is displayed on a user interactive web page.

6. An FPGA online development device, characterized in that: Setup on the FPGA development server, including, An acquisition module, used to acquire a program code after detecting that a user triggers a code determination instruction on a user interaction webpage, wherein the program code is a code generated based on a target function implemented by the FPGA; A comprehensive compilation module, used for performing comprehensive compilation based on the program code to obtain a gate-level netlist and a comprehensive report; A grammar judgment module, used for judging whether there is a grammatical error in the program code according to the comprehensive report; A parameter acquisition module, used for acquiring input parameters and output parameters corresponding to the top-level module according to the comprehensive report if there is no syntax error, wherein the input parameters and output parameters corresponding to the top-level module correspond to the FPGA input and output; A pin allocation module, used for performing pin allocation according to the input parameters and output parameters to generate a corresponding relationship between the parameters and the pins; A mapping compilation module, used for performing mapping compilation based on the gate-level netlist and the corresponding relationship between the parameters and the pins to generate a downloadable stream file; A file download module, used for sending the stream file to a local device; A peripheral determination module, used to determine all allocated pins according to the corresponding relationship between the parameters and the pins; Determine the peripherals corresponding to all the allocated pins according to all the allocated pins and the correspondence between the pins and the peripherals; Highlight all peripherals corresponding to the assigned pins on the FPGA development board on the user interactive web page; When executing the acquisition program code, the acquisition module is used to: When it is detected that the user triggers the instruction to confirm the connection relationship diagram on the user interaction webpage, a connection relationship diagram of the logic function module is obtained; wherein the user connects the inputs and outputs of multiple logic function modules in a logically implementable manner to obtain the connection relationship diagram; Generate program code according to the connection relationship diagram; Among them, the logic function module includes gate circuits, combinational logic, and sequential logic; The pin allocation module is also used for the user to select the pins corresponding to the input parameters and the output parameters respectively on the user interaction webpage to generate a corresponding relationship between the parameters and the pins; The pin allocation module is also used to obtain the attribute information of all pins of the FPGA, and determine the target attribute information of the pins from the corresponding relationship of the preset functional pins according to the target function; based on the attribute information and target attribute information of all pins, the pin allocation of the input parameters and the output parameters is realized to obtain the corresponding relationship between the parameters and the pins.

7. An FPGA development server, characterized in that: include: at least one processor; Memory; At least one application, wherein the at least one application is stored in a memory and configured to be executed by at least one processor, and the at least one application is configured to: execute the method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed in a computer, the computer is caused to execute the method according to any one of claims 1 to 5.