A software online upgrade and reconstruction method based on XILINX FPGA
Through the FPGA's own resources and QSPI interface, online software upgrade and reconstruction without external equipment and power outage are realized, which solves the problems of resource waste and poor maintainability in the existing technology, and improves the maintainability and resource utilization efficiency of the system.
Patent Information
- Application Number
- CN202210479638.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-05
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2042-05-05
AI Technical Summary
Existing FPGA software online upgrade and reconstruction methods require an external CPU or control device, which results in a waste of hardware and software resources and requires a power outage and restart, affecting system maintainability.
Through the FPGA's own resources, the QSPI interface is used to communicate with the data storage device to achieve online software upgrade and reconstruction without external equipment and power outage. The software upgrade assistance system and the ICAP source language module are used for data processing and configuration updates.
It reduces system hardware and software costs, improves the maintainability of embedded systems, avoids waste of hardware resources, and enables online upgrades and reconstruction without power outage.
Smart Images

Figure CN114968300B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of FPGA design control, and in particular relates to a software online upgrade and reconstruction method based on XILINX FPGA. Background Art
[0002] During the service period of FPGA products, if problems occur during operation or additional functions need to be added, the FPGA system needs to upgrade the storage device data and reconstruct the FPGA configuration data. Currently, the methods for online upgrading and reconstructing FPGA product software mostly use external CPUs or control devices to update the FPGA configuration files, and then power off and restart the FPGA to load the updated configuration files, and finally complete the online software upgrade and reconstruction. This method not only requires certain external control devices, but also requires additional hardware and software resources for data interaction and power-off reconstruction.
[0003] There are currently two solutions for online software upgrades and reconstruction of FPGAs: The first method is based on the FPGA+DSP architecture, and adopts a control strategy of mutual control, mutual guidance, and time-sharing loading. Under the instruction control of the payload management device, it realizes dynamic reconstruction functions such as multi-version switching of FPGA and DSP full-function software and on-orbit updates. This method requires DSP devices other than FPGAs. If only the FPGA software upgrade and reconstruction functions are considered, the system hardware and software design resources are increased. The second solution does not require additional devices, and the product's software function upgrade is achieved without changing the hardware status. This solution uses the FPGA's own resources to achieve software upgrades, but requires the design of an additional JTAG interface. The JTAG interface is only used for program upgrades, which wastes system resources and is difficult to achieve remote operation.
[0004] Considering that when external devices upgrade the FPGA program, they often only read and write to the FPGA's data storage device, wasting the FPGA's own resources in the process. Therefore, using the FPGA's own logic resources, only through external instructions, without the need for external devices and without powering off, to control the FPGA to automatically perform online software upgrades and reconstruction is of great significance to streamlining the system architecture, reducing hardware and software costs, and improving system maintainability. Summary of the invention
[0005] The purpose of the present invention is to provide a software online upgrade and reconstruction method based on XILINX FPGA. The method can realize FPGA software online upgrade and configuration data reconstruction without additional hardware equipment and power off and restart, thereby reducing the software and hardware costs of the system and improving the maintainability of the embedded system.
[0006] To achieve the above-mentioned object, the present invention provides a software online upgrade and reconstruction method based on XILINX FPGA, which is completed based on FPGA and data storage device through QSPI interface, wherein the data storage device includes at least two address areas, and comprises the following steps: step S1, storing code data of normal function in a first address area, and storing code data of a software upgrade auxiliary system in a second address area; step S2, FPGA loading the code data of the software upgrade auxiliary system stored in the second address area, so that the FPGA runs the software upgrade auxiliary system; step S3, processing the code data of normal function that needs to be upgraded online through an integrated wiring tool, and generating a plurality of data packets with a first CRC check code; step S4, the software upgrade auxiliary system deletes the code data of normal function stored in the first address area according to the instruction, and writes all the data packets with the first CRC check code generated in step S3 into the first address area of the data storage device in sequence to form the first configuration data; step S5, FPGA reads the updated first configuration data in the first address area, and completes the online upgrade and data reconstruction of FPGA.
[0007] Preferably, a CAN data transceiver module, whose input end is connected to an external device for transmitting cached data or operation instructions; a data parsing module, whose input end is connected to the CAN data transceiver module through a CAN bus, for parsing received cached data or operation instructions; a QSPI control module, whose input end is connected to the data parsing module, generates corresponding operation codes, operation addresses, instruction codes and operation types according to the operation instructions parsed by the data parsing module; a QSPI drive module, whose input end is connected to the QSPI control module, identifies the operation code, operation address, instruction code and operation type generated by the QSPI control module to generate a QSPI drive timing; the QSPI drive timing includes a clock signal sclk; an ICAP source language module, whose input end is connected to the data parsing module, performs address jump and software reconstruction operations according to the operation instructions parsed by the data parsing module; a STARTUPE2 source language module, which is connected to the output end of the QSPI drive module, and transmits the clock signal sclk in the QSPI drive timing to the CCLK interface of the FPGA.
[0008] Preferably, when the FPGA performs an online software upgrade, step S2 is executed: the external device sends a software upgrade and reconstruction instruction to the CAN data transceiver module of the FPGA via the CAN bus, the FPGA calls the ICAP source language module, loads the code data of the software upgrade auxiliary system in the second address area, and enables the FPGA to run the software upgrade auxiliary system.
[0009] Preferably, the generation of several data packets with a first CRC check code in step S3 comprises the following steps: step S31, using an integrated wiring tool, integrating and wiring the code data of normal functions that need to be upgraded online to form upgraded second code data, and generating a BIT stream file from the second code data; step S32, converting the BIT stream file generated in step S31 into a HEX file; step S33, according to the characteristics of the data storage device, packaging the data in the HEX file obtained in step S32 into several data packets, each of which carries a first CRC check code.
[0010] Preferably, step S4 of writing all the data packets with the first CRC check code generated in step S3 into the first address area of the data storage device, the first address area consists of n sectors, and each data packet is written into the corresponding sector, comprises the following steps:
[0011] Step S41, the QSPI control module generates an erase operation instruction for the first address area, operates the QSPI drive module to generate an erase drive timing, and drives the data storage device to erase the code data of n sectors in the first address area;
[0012] Step S42, sending the data packet with the first CRC check code that needs to be written into the Nth sector subsequently generated in step S33 to the data analysis module through the CAN data transceiver module, the data analysis module analyzes the data packet with the first CRC check code to generate analysis information, and transmits the analysis information to the QSPI control module (3); wherein N=1, 2, ..., n, where n is a natural number;
[0013] Step S43, after receiving the parsing information and the data packet of the Nth sector, the QSPI control module generates a page programming operation instruction and controls the QSPI driving module to generate a corresponding page programming driving sequence, and the STARTUPE2 source language module transmits the clock signal sclk contained in the page programming driving sequence to the hardware CCLK interface of the FPGA, and performs a page programming operation on the first address area of the data storage device through the QSPI interface;
[0014] Step S44: After the data programming of the Nth sector is completed, the software online upgrade system reads the data corresponding to the sector and generates a second CRC check code. If the second CRC check code is the same as the first CRC check code received by the CAN data transceiver module, it is considered that the programming of this sector is completed, and the data of the next sector continues to be sent through the CAN data transceiver module; if the second CRC check code is different from the first CRC check code received by the CAN data transceiver module, steps S42 to S43 are repeated;
[0015] Step S45, repeating steps S41 to S44 until all data packets generated in step S33 are programmed in the first address area to form first configuration data.
[0016] Preferably, the erasing of code data of n sectors in the first address area described in step S41 comprises the following steps: step S411, after the QSPI driver module of the FPGA software upgrade auxiliary system receives the Nth sector erase instruction, it executes a "write enable" operation; step S412, after the "write enable" operation is completed, the QSPI driver module cyclically executes the erase operation of n sectors until the code data of all sectors in the first address area are erased; step S413, after the code data of the first address area is erased, the QSPI driver module executes a "write disable" operation, enters an idle state, and waits for the next operation instruction.
[0017] Preferably, the page programming operation described in step S43 specifically includes the following steps: step S431, after receiving the page programming instruction, the QSPI control module executes the "write enable operation" and enters the page programming waiting state; step S432, after the QSPI control module in the page programming waiting state receives the data packet of the Nth sector for page programming, it will cyclically execute the page programming operation until all the data of the Nth sector is programmed; step S433, after the data packet of the Nth sector is programmed by page, the QSPI driver module executes the "write disable" operation, and then enters the idle state, waiting for the next operation instruction. .
[0018] Preferably, the erasing timing and programming timing in step S41 and step S43 are generated by the QSPI control module through the corresponding instruction code cmd, operation code code, operation type type and operation address addr, and the QSPI driving module is controlled to generate them at the QSPI interface.
[0019] Preferably, the external device in step S5 sends software upgrade and reconstruction instructions to the CAN data transceiver module of the FPGA through the CAN bus, and the FPGA reads the first configuration data updated in the first address area through the ICAP source language module to perform software upgrade and reconstruction, thereby realizing online software upgrade and reconstruction of the FPGA.
[0020] Preferably, the FPGA is a XILINX 7 series FPGA and supports ICAP source language and STARTUPE2 source language.
[0021] In summary, compared with the prior art, the software online upgrade and reconstruction method based on XILINX FPGA provided by the present invention has the following beneficial effects: First, the software online upgrade and configuration data reload are realized through the resources of FPGA itself, and there is no need for system power-off and restart operations, which improves the maintainability of the system. Second, the data in the storage device is updated by using the resources of FPGA itself, which can save the software and hardware resources of the external controller. Third, data reconstruction can be realized without power-off and restart operations, which reduces the hardware resources and control logic of the related power-on and power-off circuits and simplifies the system architecture. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 This is the hardware QSPI interface relationship diagram of the XILINX FPGA software online upgrade system;
[0023] Figure 2 Provide the overall software architecture and data flow diagram for the XILINX FPGA software upgrade auxiliary system;
[0024] Figure 3 QSPI control module state transition diagram for XILINX FPGA software upgrade auxiliary system;
[0025] Figure 4 State transition diagram of the QSPI driver module for the XILINX FPGA software upgrade auxiliary system. DETAILED DESCRIPTION
[0026] The following will be combined with the attached embodiment of the present invention Figure 1 ~Attached Figure 4 , the technical solutions, structural features, objectives achieved and effects in the embodiments of the present invention are described in detail.
[0027] It should be noted that, in the present invention, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only the elements explicitly listed, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0028] The present invention provides a software online upgrade and reconstruction method based on XILINX FPGA, which is implemented based on FPGA and data storage device, such as Figure 1As shown, in this embodiment, an N25Qxx data storage chip is used as a data storage device, and the FPGA is a XILINX 7 (Xilinx 7) series FPGA (Field Programmable Gate Array) that supports ICAP source language (Internet Content Adaptation Protocol) and STARTUPE2 source language. The FPGA and the N25Qxx data storage chip perform data interaction through a QSPI interface; the N25Qxx data storage chip includes at least two address areas, namely a first address area and a second address area. The software online upgrade and reconstruction method based on the XILINX FPGA includes the following steps:
[0029] Step S1, storing the code data of the normal function in the first address area, and storing the code data of the software upgrade auxiliary system in the second address area;
[0030] Step S2, the FPGA loads the code data of the software upgrade auxiliary system stored in the second address area, so that the FPGA runs the software upgrade auxiliary system;
[0031] Step S3, processing the code data of the normal functions that need to be upgraded online through the integrated wiring tool to generate a number of data packets with the first CRC check code;
[0032] Step S4, the software upgrade auxiliary system deletes the code data of the normal function stored in the first address area according to the instruction, and writes all the data packets with the first CRC check code generated in step S3 into the first address area of the N25Qxx data storage chip in sequence to form the first configuration data;
[0033] Step S5: The FPGA reads the updated first configuration data in the first address area to complete the online software upgrade and data reconstruction of the FPGA.
[0034] Wherein, in step S1, the normally powered-on FPGA will load the code data of the normal function stored in the first address area.
[0035] Among them, Figure 2 As shown, the software upgrade auxiliary system includes a CAN data transceiver module 1, a data analysis module 2, a QSPI control module 3, a QSPI driver module 4, an ICAP source language module 5, a STARTUPE2 source language module 6 and other auxiliary functional modules.
[0036] Further, the input end of the CAN data transceiver module 1 is connected to an external device through a CAN bus, and the output end is connected to the input end of the data parsing module 2, so that the external device can transmit cached data or operation instructions to the data parsing module 2 through the CAN data transceiver module 1; the output end of the data parsing module 2 is respectively connected to the QSPI control module 3 and the ICAP source language module 5, for parsing the received cached data or operation instructions; the output end of the QSPI control module 3 is connected to the input end of the QSPI driver module 4, and the QSPI control module 3 generates corresponding operation codes, operation addresses, instruction codes and operation types according to the operation instructions parsed by the data parsing module 2, and controls the QSPI driver module 4 to generate QSPI drive timing; the output end of the QSPI driver module 4 is respectively connected to the STARTUPE2 source language module 6 with a data storage device, which generates a QSPI drive timing by identifying the operation code, operation address, instruction code and operation type generated by the QSPI control module 3; the QSPI The driving timing includes a clock signal sclk, a chip select signal csn, a data receiving signal miso, and a data sending signal mosi; the STARTUPE2 source language module 6 transmits the clock signal sclk in the QSPI driving timing to the CCLK interface of the FPGA, and other driving timing signals (such as the chip select signal csn, the data receiving signal miso, and the data sending signal mosi) are respectively constrained to the corresponding hardware interfaces connected to the data storage device.
[0037] The external devices connected to the output end of the CAN data transceiver module 1 include a device integrated controller and an analog control host computer. In this embodiment, the analog control host computer is used as an external device to control the software upgrade auxiliary system. Further, after the online upgrade of the code data of the normal function is completed, the FPGA performs address jump and software reconstruction through the ICAP source language module 5.
[0038] When the FPGA needs to perform an online software upgrade, step S2 is executed, specifically: the simulation control host computer sends a software upgrade and reconstruction instruction to the CAN data transceiver module 1 of the FPGA through the CAN bus, and the FPGA will call the ICAP source language module 5 to reload the code data of the software upgrade auxiliary system in the second address area, so that the FPGA runs the software upgrade auxiliary system.
[0039] The step S3 of generating a plurality of data packets with the first CRC check code specifically includes the following steps:
[0040] Step S31: using a comprehensive wiring tool, the code data of normal functions that need to be upgraded online are integrated and wired to form upgraded second code data, and the second code data is generated into a BIT stream file;
[0041] Step S32, converting the BIT stream file generated in step S31 into a HEX file;
[0042] Step S33: According to the characteristics of the N25Qxx data storage chip, the data in the HEX file obtained in step S32 is packaged into a plurality of data packets, each of which carries a first CRC check code.
[0043] It should be noted that the second code data is the code data after the normal function code data is upgraded; at the same time, the length of each data packet is consistent with the sector length of the N25Qxx data storage chip. In this embodiment, every 256 bytes of data in the HEX file carries a one-byte first CRC check code.
[0044] Wherein, step S4 writes all the data packets with the first CRC check code generated in step S3 into the first address area of the N25Qxx data storage chip, the first address area consists of n sectors, and each data packet is written into the corresponding sector, specifically including the following steps:
[0045] Step S41, the QSPI control module 3 generates an Nth sector erase operation instruction for the first address area, operates the QSPI drive module 4 to generate an Nth sector erase drive timing, drives the N25Qxx data storage chip to perform an Nth sector erase operation, and loops the erase operation until the code data of all sectors in the first address area are erased; wherein N=1, 2, ..., n, where n is a natural number;
[0046] Step S42, sending the data packet with the first CRC check code that needs to be written into the Nth sector subsequently generated in step S33 to the data analysis module 2 through the CAN data transceiver module 1, the data analysis module 2 analyzes the data packet with the first CRC check code to generate analysis information, and transmits the analysis information to the QSPI control module 3; wherein the size of each data packet is a sector size plus a one-byte first CRC check code;
[0047] Step S43, after receiving the parsing information and the data packet of the Nth sector, the QSPI control module 3 generates a page programming operation instruction and controls the QSPI driving module 4 to generate a corresponding page programming driving sequence, and the STARTUPE2 source language module 6 transmits the clock signal sclk contained in the page programming driving sequence to the hardware CCLK interface of the FPGA, and performs a page programming operation on the first address area of the N25Qxx data storage chip through the QSPI interface;
[0048] Step S44: After the data programming of the Nth sector is completed, the software-assisted upgrade system reads the data corresponding to the sector and generates a second CRC check code. If the second CRC check code is the same as the first CRC check code received by the CAN data transceiver module 1, it is considered that the programming of this sector is completed, and the data of the next sector continues to be sent through the CAN data transceiver module 1; if the second CRC check code is different from the first CRC check code received by the CAN data transceiver module 1, repeat steps S42-S43;
[0049] Step S45, repeating steps S41 to S44 until all data packets generated in step S33 are programmed in the first address area to form the first configuration data, that is, the code data of the normal function in the first address area of the N25Qxx data storage chip is updated.
[0050] Among them, Figure 3 and Figure 4 As shown, the step S41 of erasing all data in the first address area includes the following steps:
[0051] Step S411, after receiving the Nth sector erase instruction, the QSPI driver module 4 of the FPGA software upgrade auxiliary system first performs a "write enable" operation;
[0052] Step S412: After the "write enable" operation is completed, the QSPI driver module 4 cyclically performs the erasing operation of n sectors until the data of all sectors in the first address area are completely erased;
[0053] Step S413: After the data in the first address area is erased, the QSPI driver module 4 performs a "write disable" operation, and then enters an idle state, waiting for the next operation instruction.
[0054] Furthermore, if Figure 3 and Figure 4 As shown, the page programming operation described in step S43 specifically includes the following steps:
[0055] Step S431, after receiving the page programming instruction, the QSPI control module 3 first executes the "write enable operation" and enters the page programming waiting state;
[0056] Step S432, after receiving the data packet of the Nth sector for page programming, the QSPI control module 3 in the page programming waiting state will cyclically perform the page programming operation until all the data of the Nth sector is programmed;
[0057] Step S433: After the data packet of the Nth sector is written page by page, the QSPI control module 3 performs a "write disable" operation, and then enters an idle state, waiting for the next operation instruction.
[0058] Specifically, Figure 2 As shown, the erasing timing and page programming timing in step S41 and step S43 are generated by the QSPI control module 3 through the corresponding instruction code (cmd), operation code (code), operation type (type) and operation address (addr), and the QSPI driver module 4 is controlled to generate them at the QSPI interface.
[0059] Specifically, in step S5, the simulation control host computer sends a software upgrade and reconstruction instruction to the CAN data transceiver module 1 of the FPGA through the CAN bus, and the FPGA reads the updated first configuration data in the first address area through the ICAP source language module 5 to perform software upgrade and reconstruction, thereby realizing the software online upgrade and reconstruction function of the FPGA.
[0060] In summary, compared with the prior art, the software online upgrade and reconstruction method based on XILINX FPGA provided by the present invention has the advantages of high system maintainability, cost saving, and software upgrade can be completed without powering off and restarting the system.
[0061] Although the content of the present invention has been described in detail through the above preferred embodiments, it should be appreciated that the above description should not be considered as a limitation of the present invention. After reading the above content, it will be apparent to those skilled in the art that various modifications and substitutions of the present invention will occur. Therefore, the protection scope of the present invention should be limited by the appended claims.
Claims
1. A software online upgrade and reconstruction method based on XILINX FPGA, the method is based on FPGA and data storage device through QSPI interface, the data storage device includes at least two address areas, characterized in that: The steps include: Step S1, storing the code data of the normal function in the first address area, and storing the code data of the software upgrade auxiliary system in the second address area; Step S2, the FPGA loads the code data of the software upgrade auxiliary system stored in the second address area, so that the FPGA runs the software upgrade auxiliary system; Wherein, the software upgrade auxiliary system includes: A CAN data transceiver module (1), whose input end is connected to an external device via a CAN bus and is used to transmit cached data or operation instructions; A data analysis module (2), whose input end is connected to the CAN data transceiver module (1) and is used to analyze the received cache data or operation instructions; A QSPI control module (3), whose input end is connected to the data analysis module (2), generates a corresponding operation code, operation address, instruction code and operation type according to the operation instruction analyzed by the data analysis module (2); A QSPI driving module (4), whose input end is connected to the QSPI control module (3), identifies the operation code, operation address, instruction code and operation type generated by the QSPI control module (3) to generate a QSPI driving timing sequence; the QSPI driving timing sequence includes a clock signal sclk; An ICAP source language module (5), whose input end is connected to the data analysis module (2), performs address jump and software reconstruction operations according to the operation instructions analyzed by the data analysis module (2); A STARTUPE2 source language module (6), which is connected to the output end of the QSPI driving module (4) and transmits the clock signal sclk in the QSPI driving timing to the CCLK interface of the FPGA; Step S3, processing the code data of the normal functions that need to be upgraded online through the integrated wiring tool to generate a number of data packets with the first CRC check code; Step S4, the software upgrade auxiliary system deletes the code data of the normal function stored in the first address area according to the instruction, and writes all the data packets with the first CRC check code generated in step S3 into the first address area of the data storage device in sequence to form the first configuration data; Step S5: the FPGA reads the updated first configuration data in the first address area to complete the online upgrade and data reconstruction of the FPGA; When the FPGA performs an online software upgrade, step S2 is executed: the external device sends a software upgrade and reconstruction instruction to the CAN data transceiver module (1) of the FPGA via the CAN bus, and the FPGA calls the ICAP source language module (5) to load the code data of the software upgrade auxiliary system in the second address area, so that the FPGA runs the software upgrade auxiliary system; In step S5, the external device sends a software upgrade and reconstruction instruction to the CAN data transceiver module (1) of the FPGA via the CAN bus, and the FPGA reads the updated first configuration data in the first address area via the ICAP source language module (5) to perform software upgrade and reconstruction, thereby realizing online software upgrade and reconstruction of the FPGA.
2. The software online upgrade and reconstruction method based on XILINX FPGA as claimed in claim 1, characterized in that: The step S3 of generating a plurality of data packets with the first CRC check code comprises the following steps: Step S31: using a comprehensive wiring tool, the code data of normal functions that need to be upgraded online are integrated and wired to form upgraded second code data, and the second code data is generated into a BIT stream file; Step S32, converting the BIT stream file generated in step S31 into a HEX file; Step S33: According to the characteristics of the data storage device, the data in the HEX file obtained in step S32 is packaged into a plurality of data packets, each of which carries a first CRC check code.
3. The software online upgrade and reconstruction method based on XILINX FPGA as claimed in claim 2, characterized in that: Step S4 of writing all the data packets with the first CRC check code generated in step S3 into the first address area of the data storage device, the first address area consists of n sectors, and each data packet is written into the corresponding sector, including the following steps: Step S41, the QSPI control module (3) generates an erase operation instruction for the first address area, operates the QSPI drive module (4) to generate an erase drive timing, and drives the data storage device to erase the code data of n sectors in the first address area; Step S42, sending the data packet with the first CRC check code that needs to be written into the Nth sector subsequently generated in step S33 to the data analysis module (2) through the CAN data transceiver module (1), the data analysis module (2) analyzes the data packet with the first CRC check code to generate analysis information, and transmits the analysis information to the QSPI control module (3); wherein N=1, 2, ..., n, where n is a natural number; Step S43, after receiving the parsing information and the data packet of the Nth sector, the QSPI control module (3) generates a page programming operation instruction and controls the QSPI driving module (4) to generate a corresponding page programming driving sequence, and the STARTUPE2 source language module (6) transmits the clock signal sclk contained in the page programming driving sequence to the hardware CCLK interface of the FPGA, and performs a page programming operation on the first address area of the data storage device through the QSPI interface; Step S44: After the data programming of the Nth sector is completed, the software online upgrade system reads the data corresponding to the sector and generates a second CRC check code. If the second CRC check code is the same as the first CRC check code received by the CAN data transceiver module (1), it is considered that the programming of this sector is completed, and the data of the next sector is continuously sent through the CAN data transceiver module (1); if the second CRC check code is different from the first CRC check code received by the CAN data transceiver module (1), steps S42 to S43 are repeated; Step S45, repeating steps S41 to S44 until all data packets generated in step S33 are programmed in the first address area to form first configuration data.
4. The software online upgrade and reconstruction method based on XILINX FPGA as claimed in claim 3, characterized in that: The step S41 of erasing the code data of n sectors in the first address area comprises the following steps: Step S411, after receiving the Nth sector erase instruction, the QSPI driver module (4) of the FPGA software upgrade auxiliary system executes a "write enable" operation; Step S412: After the "write enable" operation is completed, the QSPI driver module (4) cyclically executes the erasing operation of n sectors until the code data of all sectors in the first address area are completely erased; Step S413: After the code data in the first address area is erased, the QSPI driver module (4) performs a "write disable" operation, enters an idle state, and waits for the next operation instruction.
5. The software online upgrade and reconstruction method based on XILINX FPGA as claimed in claim 4, characterized in that: The page programming operation described in step S43 specifically includes the following steps: Step S431, after receiving the page programming instruction, the QSPI control module (3) executes a "write enable operation" and enters a page programming waiting state; Step S432: After receiving the data packet of the Nth sector for page programming, the QSPI control module (3) in the page programming waiting state will cyclically execute the page programming operation until all the data of the Nth sector is programmed; Step S433: After the data packet of the Nth sector is written page by page, the QSPI driver module (4) performs a "write disable" operation, and then enters an idle state, waiting for the next operation instruction.
6. The software online upgrade and reconstruction method based on XILINX FPGA as claimed in claim 3, characterized in that: The erasing timing and programming timing in step S41 and step S43 are generated by the QSPI control module (3) generating the corresponding instruction code cmd, operation code code, operation type type and operation address addr, and controlling the QSPI driving module (4) to generate them at the QSPI interface.
7. The software online upgrade and reconstruction method based on XILINX FPGA as claimed in claim 1, characterized in that: The FPGA is a XILINX 7 series FPGA and supports ICAP source language and STARTUPE2 source language.
