Implementation system and method for improving single event upset protection capability based on FPGA
By using antifuse FPGA and PROM chips in the FPGA chip for regular refresh configuration, combined with MRAM's three partition storage backup and CRC verification mechanism, the fault problem caused by single particle flipping of the FPGA chip in the space environment is solved, improving It improves system reliability and data protection capabilities, and reduces the impact of high-energy particle impact.
Patent Information
- Application Number
- CN202411003571.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-09-27
AI Technical Summary
When running in space, FPGA chips are easily impacted by high-energy particles and space radiation, causing failures and affecting the normal operation of the system.
An antifuse FPGA is used as the refresh control chip, combined with a PROM chip and magnetic memory MRAM, and the configuration file of the signal processing FPGA is regularly refreshed through passive serial configuration, and three partition storage backups and CRC checks and two-out-of-three are used. Majority voting mechanism protects important data.
It significantly improves the FPGA chip's protection against single-particle flipping, reduces the impact of high-energy particle impact, ensures reliable operation of the system, and has low implementation costs, and the timing will not be affected after code transplantation.
Smart Images

Figure CN118708401A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of improving electronic equipment performance, and in particular to an implementation system and method for improving single particle upset protection capability based on FPGA. Background Art
[0002] The bitstream file of SRAM FPGA can be loaded from the external PROM for configuration. It has the advantages of low price, sufficient resources, fast processing speed and easy use, and is very suitable for data information processing. However, when operating in space, due to the presence of a large number of high-energy particles and various space radiation in the environment, there is a high probability of impacting the sensitive area of FPGA chip and causing failure, which may have a serious impact on the normal operation of the system.
[0003] In order to solve the above problems, it is necessary to design a system or method to improve the single-particle upset protection capability of FPGA chips. Summary of the invention
[0004] In order to solve the problem that high-energy particles or space radiation may impact and cause malfunctions of FPGA chips when they are running in space, the present invention provides an implementation system and method for improving the single particle upset protection capability based on FPGA.
[0005] The present invention is realized by the following technical scheme: an implementation system for improving the single particle upset protection capability based on FPGA, and the hardware platform structure is summarized as follows: an anti-fuse FPGA is used as a refresh control chip, and a PROM chip is used as a configuration chip of a signal processing FPGA, and the signal processing FPGA is of SRAM type; a control program is solidified in the refresh control chip, and a bit stream file of the signal processing FPGA is solidified in the PROM chip; after power-on, the refresh chip runs the control program and reads the bit stream file stored in the PROM in a passive serial configuration mode at a regular time, and completes the configuration of the signal processing FPGA, and the SRAM type FPGA configuration file is refreshed at a regular time in this way; in addition, the hardware platform adopts a magnetic memory MRAM chip to perform three partition storage backups on important data used by the signal processing FPGA or generated during operation, and the storage and selection process is realized by software design, and the cached data of the magnetic memory MRAM will not be lost after power failure.
[0006] When the present invention is powered on on a hardware platform, the PS (PassiveSerial) configuration mode is adopted to read the bitstream file solidified in the PROM and configure it to the SRAM type FPGA for operation under the passive serial configuration mode. An anti-fuse FPGA is adopted as a refresh control chip to periodically read the bitstream file stored in the PROM, and write the file into the signal processing FPGA, and complete the configuration process of the signal processing FPGA, thereby realizing the timing configuration refresh of the signal processing FPGA, and avoiding the problem of FPGA working abnormality due to single particle flip. For the protection of important data, a three-partition storage backup protection mode is adopted. The present invention adopts a magnetic MRAM memory with data protection capability, and the data will not be lost after power failure. The FPGA writes the important data into three storage areas divided by the MRAM for storage and backup. The address ranges of the three storage areas can be reasonably designed and divided according to the size of the important data to be stored, and CRC check is performed on each stored data block.
[0007] The specific connection relationship of the hardware platform of the present invention is as follows: the PROM chip is connected to the signal processing FPGA through the refresh control chip, and the signal processing FPGA is also connected to the MRAM; the PROM chip is connected to the corresponding pins of the refresh control chip through its own CLK, BUSY, OE, CE and serial data interface D[7:0] pins; the refresh control chip is connected to the corresponding pins of the signal processing FPGA through its own PROG, DONE, CCLK, BUSY, INIT, RD / WR, CS and serial data interface D[7:0] pins; the signal processing FPGA is connected to the corresponding pins of the MRAM through the serial data interface D[7:0], A[0:16], #CS, #WE, #OE pins.
[0008] The implementation method of the above system is summarized as follows: when developing and designing the signal processing FPGA logic, the important data that needs to be protected is divided into data blocks, and CRC check codes are additionally added to the divided data blocks according to categories. The check codes are used to check the integrity of the data blocks; the important data generated when the signal processing FPGA is working are stored in three partitions in the external MRAM in the format of data + check code. When storing each data block, a read-back operation and CRC check code calculation are performed, and the calculated CRC value is compared with the stored CRC value. When the results are consistent, it proves that the data block has been correctly written. The writing process of subsequent data blocks is the same as before, ensuring that the data stored in the MRAM is correct; when the signal processing FPGA uses important data, the three data blocks stored in the MRAM are read, and the results are output through a three-choice two majority voting mechanism for data bits to ensure the correctness of these important data when used.
[0009] The implementation method specifically includes the following steps: Step 1: The signal processing FPGA performs data block format division and CRC check calculation on the data to be written into the MRAM, and writes the data block and its CRC check value into the three data storage areas and check storage areas of the MRAM respectively, with the base addresses being 0x00000, 0x10000 and 0x20000 respectively; if the data needs to be divided into N data blocks, the high two bits of the base address can be used as chip select signals of the three address areas, and CRC check calculation is performed on each stored data block, and the data and CRC check value are stored in the data storage area and check storage area of the three areas respectively; Step 2: The signal processing FPGA reads the data blocks and CRC checks written into the three data storage areas and the check storage area of the MRAM, performs CRC check calculation on the read data, and compares the calculated CRC check with the check value read from the MRAM check storage area. If they are consistent, it proves that the data block is correctly stored in the MRAM. If they are inconsistent, repeat step 1; if the data is N data blocks, the first data block is compared correctly through the check value consistency, and then the next data block is read, CRC calculated and compared. If an error occurs, the step 1 is entered to rewrite the data block. If they are consistent, the next data block is performed, and the reading and check value comparison operations of N data blocks are completed in sequence, thereby ensuring that the data blocks written into the three address areas of the MRAM are correct; Step 3: When the signal processing FPGA reads the data in the MRAM cache, it first reads the data in data storage area 0 and verifies the check value of storage area 0, and performs CRC check calculation on the data part. The check result is judged to be consistent with the read CRC check value. If the comparison results are consistent, it proves that the read data is correct and the data reading operation is completed; if they are inconsistent, the data in data storage area 1 is read and the check value of storage area 1 is verified, and the consistency of the check calculated by the read data and the stored check value is verified. If the comparison results are consistent, it proves that the read data is correct and the data reading operation is completed; if they are inconsistent, the data in data storage area 2 is read and the check value of storage area 2 is verified. The checksum calculated by reading the data is consistent with the stored checksum value. If the comparison results are consistent, it proves that the read data is correct and the data reading operation is completed. If they are inconsistent, the data stored in the same address of data storage area 0, data storage area 1 and data storage area 2 are read respectively, and the three copies of the read data are subjected to a three-choice-two majority voting mechanism by bit, and then a CRC checksum calculation is performed on the selected data. The checksum result is compared with the CRC checksum value read from check storage area 0, check storage area 1 and check storage area 2 and processed by the three-choice-two majority voting mechanism by bit. If they are consistent, it proves that the data loading is correct and the data loading can be completed.
[0010] Compared with the prior art, the present invention has the following beneficial effects: the present invention provides a system and method for improving the single particle flip protection capability based on FPGA, which uses an anti-fuse FPGA as a refresh control chip and a PROM as a configuration chip to periodically refresh the bit stream configuration file of the signal processing FPGA, thereby improving the single particle flip protection capability of the signal processing FPGA. At the same time, an important data protection mechanism is provided, which relies on the magnetic memory MRAM chip to perform three partition storage backups of important data and the output results of the three-choice-two majority voting mechanism of the bits, thereby improving the protection capability of important data. The present invention can greatly reduce the impact of high-energy particle impacts in space application environments, and the single particle flip protection capability of the logic units and important data storage inside the FPGA has also been greatly improved, which can ensure the reliable operation of the system as much as possible; at the same time, the present invention completes the engineering implementation, and the technical details of the implementation do not need to be concerned by the user, and the timing will not be affected after the code is transplanted, and the implementation cost is low. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 This is a connection diagram of the hardware platform provided by the present invention.
[0012] Figure 2 This is a diagram of the MRAM storage data structure provided by the present invention.
[0013] Figure 3 This is a flow chart of storage data provided by the present invention.
[0014] Figure 4 This is a data reading flow chart provided by the present invention. DETAILED DESCRIPTION
[0015] The present invention is further described below in conjunction with specific embodiments.
[0016] A system based on FPGA to improve the single event upset protection capability. The hardware platform is connected as follows Figure 1As shown: an anti-fuse FPGA is used as a refresh control chip, and a PROM chip is used as a configuration chip of a signal processing FPGA, and the signal processing FPGA is an SRAM type; the refresh control chip is solidified with a control program, and the PROM chip is solidified with a bit stream file of the signal processing FPGA; after power-on, the refresh chip runs the control program and reads out the bit stream file stored in the PROM in a passive serial configuration mode at a regular interval, and completes the configuration of the signal processing FPGA, and in this way, the SRAM type FPGA configuration file is refreshed at a regular interval; in addition, the hardware platform uses a magnetic memory MRAM chip to perform three partition storage backups of important data used by the signal processing FPGA or generated during operation, and the storage and selection process is implemented by software design, and the cached data of the magnetic memory MRAM will not be lost after power failure. The specific connection method is as follows: the PROM chip is connected to the signal processing FPGA through the refresh control chip, and the signal processing FPGA is also connected to the MRAM; the PROM chip is connected to the corresponding pins of the refresh control chip through its own CLK, BUSY, OE, CE and serial data interface D[7:0] pins; the refresh control chip is connected to the corresponding pins of the signal processing FPGA through its own PROG, DONE, CCLK, BUSY, INIT, RD / WR, CS and serial data interface D[7:0] pins; the signal processing FPGA is connected to the corresponding pins of the MRAM through the serial data interface D[7:0], A[0:16], #CS, #WE, #OE pins.
[0017] The implementation method of the above system is as follows: when developing and designing the signal processing FPGA logic, the important data that needs to be protected is divided into data blocks, and CRC check codes are additionally added to the divided data blocks by category. The check codes are used to check the integrity of the data blocks; the important data generated when the signal processing FPGA is working are stored in the external MRAM in three partitions in the format of data + check code. When storing each data block, a read-back operation and CRC check code calculation are performed, and the calculated CRC value is compared with the stored CRC value. When the results are consistent, it proves that the data block has been correctly written. The writing process of subsequent data blocks is the same as before, ensuring that the data stored in the MRAM is correct. The MRAM storage data area is divided as follows Figure 2 When the signal processing FPGA uses important data, the three data blocks stored in the MRAM are read and the results are output through a two-out-of-three majority voting mechanism for the data bits to ensure the correctness of these important data when used. The specific steps of this method are as follows: Step 1: The signal processing FPGA performs data block format division and CRC check calculation on the data to be written into the MRAM, and writes the data block and its CRC check value into the three data storage areas and check storage areas of the MRAM respectively, with the base addresses being 0x00000, 0x10000 and 0x20000 respectively; if the data needs to be divided into N data blocks, the high two bits of the base address can be used as chip select signals of the three address areas, and CRC check calculation is performed on each stored data block, and the data and CRC check value are stored in the data storage area and check storage area of the three areas respectively; Step 2: The signal processing FPGA reads the data blocks and CRC checks written into the three data storage areas and the check storage area of the MRAM, performs CRC check calculation on the read data, and compares the calculated CRC check with the check value read from the MRAM check storage area. If they are consistent, it proves that the data block is correctly stored in the MRAM. If they are inconsistent, repeat step 1; if the data is N data blocks, the first data block is compared correctly through the check value consistency, and then the next data block is read, CRC calculated and compared. If an error occurs, go to step 1 and rewrite the data block. If they are consistent, proceed to the next data block, and complete the reading and check value comparison operations of N data blocks in sequence. Based on this, it can be ensured that the data blocks written into the three address areas of the MRAM are correct. The workflow is as follows Figure 3 As shown; Step 3: When the signal processing FPGA reads the data in the MRAM cache, it first reads the data in data storage area 0 and verifies the check value of storage area 0, and performs CRC check calculation on the data part. The check result is judged for consistency with the read CRC check value. If the comparison result is consistent, it proves that the read data is correct and the data reading operation is completed; if it is inconsistent, the data in data storage area 1 is read and the check value of storage area 1 is verified, and the consistency of the check calculated by the read data and the stored check value is verified. If the comparison result is consistent, it proves that the read data is correct and the data reading operation is completed; if it is inconsistent, the data in data storage area 2 is read and the check value of storage area 2 is verified. Verify the value and verify the consistency between the checksum calculated by reading the data and the stored checksum value. If the comparison results are consistent, it proves that the read data is correct and the data reading operation is completed. If they are inconsistent, read the data stored in the same address of data storage area 0, data storage area 1 and data storage area 2 respectively, and perform a three-choice-two majority voting mechanism on the three read data bits, and then perform CRC check calculation on the selected data. The check result is compared with the CRC check value read from check storage area 0, check storage area 1 and check storage area 2 and processed by the three-choice-two majority voting mechanism. If they are consistent, it proves that the data loading is correct and the data loading can be completed. The workflow is as follows Figure 4 shown.
[0018] The scope of protection claimed by the present invention is not limited to the above specific embodiments. For those skilled in the art, the present invention may have various deformations and changes. Any modifications, improvements and equivalent substitutions made within the concept and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A system for improving single event upset protection capability based on FPGA, Features: The hardware platform structure is as follows: an anti-fuse FPGA is used as a refresh control chip, and a PROM chip is used as a configuration chip of a signal processing FPGA, and the signal processing FPGA is an SRAM type; a control program is solidified in the refresh control chip, and a bit stream file of the signal processing FPGA is solidified in the PROM chip; after power-on, the refresh chip runs the control program and reads out the bit stream file stored in the PROM in a passive serial configuration mode at a regular interval, and completes the configuration of the signal processing FPGA, and in this way, the SRAM type FPGA configuration file is refreshed at a regular interval; in addition, the hardware platform uses a magnetic memory MRAM chip to perform three partition storage backups on important data used by the signal processing FPGA or generated during operation, and the storage and selection process is implemented by software design, and the cached data of the magnetic memory MRAM will not be lost after power failure.
2. According to claim 1, a system for improving single event upset protection capability based on FPGA, Features: The PROM chip is connected to the signal processing FPGA through the refresh control chip, and the signal processing FPGA is also connected to the MRAM; the PROM chip is connected to the corresponding pins of the refresh control chip through its own CLK, BUSY, OE, CE and serial data interface D[7:0] pins; the refresh control chip is connected to the corresponding pins of the signal processing FPGA through its own PROG, DONE, CCLK, BUSY, INIT, RD / WR, CS and serial data interface D[7:0] pins; the signal processing FPGA is connected to the corresponding pins of the MRAM through the serial data interface D[7:0], A[0:16], #CS, #WE, #OE pins.
3. A method for implementing a system for improving single event upset protection capability based on FPGA as claimed in claim 1, Features: When developing and designing the signal processing FPGA logic, the important data that needs to be protected is divided into data blocks, and CRC check codes are added to the divided data blocks according to categories. The check codes are used to check the integrity of the data blocks. The important data generated when the signal processing FPGA is working are stored in the external MRAM in three partitions in the format of data + check code. When storing each data block, a read-back operation and CRC check code calculation are performed, and the calculated CRC value is compared with the stored CRC value. When the results are consistent, it proves that the data block has been correctly written. The writing process of subsequent data blocks is the same as before, ensuring that the data stored in the MRAM is correct. When the signal processing FPGA uses important data, the three data blocks stored in the MRAM are read, and the results are output through a three-choice two majority voting mechanism for data bits to ensure the correctness of these important data when used.
4. The implementation method according to claim 3, Features: The steps include: Step 1: The signal processing FPGA performs data block format division and CRC check calculation on the data to be written into the MRAM, and writes the data block and its CRC check value into the three data storage areas and check storage areas of the MRAM respectively, with the base addresses being 0x00000, 0x10000 and 0x20000 respectively; if the data needs to be divided into N data blocks, the high two bits of the base address can be used as chip select signals of the three address areas, and CRC check calculation is performed on each stored data block, and the data and CRC check value are stored in the data storage area and check storage area of the three areas respectively; Step 2: The signal processing FPGA reads the data blocks and CRC checks written into the three data storage areas and the check storage area of the MRAM, performs CRC check calculation on the read data, and compares the calculated CRC check with the check value read from the MRAM check storage area. If they are consistent, it proves that the data block is correctly stored in the MRAM. If they are inconsistent, repeat step 1; if the data is N data blocks, the first data block is compared correctly through the check value consistency, and then the next data block is read, CRC calculated and compared. If an error occurs, the step 1 is entered to rewrite the data block. If they are consistent, the next data block is performed, and the reading and check value comparison operations of N data blocks are completed in sequence, thereby ensuring that the data blocks written into the three address areas of the MRAM are correct; Step 3: When the signal processing FPGA reads the data in the MRAM cache, it first reads the data in data storage area 0 and verifies the check value of storage area 0, and performs CRC check calculation on the data part. The check result is judged to be consistent with the read CRC check value. If the comparison results are consistent, it proves that the read data is correct and the data reading operation is completed; if they are inconsistent, the data in data storage area 1 is read and the check value of storage area 1 is verified, and the consistency of the check calculated by the read data and the stored check value is verified. If the comparison results are consistent, it proves that the read data is correct and the data reading operation is completed; if they are inconsistent, the data in data storage area 2 is read and the check value of storage area 2 is verified. The checksum calculated by reading the data is consistent with the stored checksum value. If the comparison results are consistent, it proves that the read data is correct and the data reading operation is completed. If they are inconsistent, the data stored in the same address of data storage area 0, data storage area 1 and data storage area 2 are read respectively, and the three copies of the read data are subjected to a three-choice-two majority voting mechanism by bit, and then a CRC checksum calculation is performed on the selected data. The checksum result is compared with the CRC checksum value read from check storage area 0, check storage area 1 and check storage area 2 and processed by the three-choice-two majority voting mechanism by bit. If they are consistent, it proves that the data loading is correct and the data loading can be completed.
Citation Information
Cited By
Satellite-borne equipment single event upset resisting system based on FPGA (Field Programmable Gate Array) and implementation method
CN120196484A
