FPGA configuration FLASH chip anti-single-particle upset circuit and method

Through the combination of configuration management and control FPGA chips and FLASH chips, combined with convolutional coding and Viterbi decoding technology, the self-healing and data error correction of the FPGA configuration circuit is realized, which solves the problem of low reliability caused by single particle flipping and improves the ultra-large Radiation hardening capabilities of large-scale FPGA chips.

CN113380294BActive Publication Date: 2024-10-11SHANGHAI SPACEFLIGHT INST OF TT&C & TELECOMM
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110792634.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-13
Publication Date
2024-10-11
Estimated Expiration
2041-07-13

AI Technical Summary

Technical Problem

Existing FPGA configuration FLASH chips are susceptible to single particle flipping in the space radiation environment, resulting in low reliability. Existing radiation-resistant reinforcement measures such as three-module redundancy method and group code error correction method cannot completely solve the problem of bad blocks and are complicated. The degree is high and cannot meet the needs of ultra-large-scale FPGA chips.

Method used

The configuration management and control FPGA chip, main configuration FLASH chip, secondary configuration FLASH chip and geological equipment configuration circuit are used to achieve cold backup and self-repair of data through block segmentation, convolutional encoding, Viterbi decoding and CRC verification and other technologies. , which improves the anti-single event flipping capability of the configuration circuit.

Benefits of technology

It reduces the probability of failure caused by single-event events, shortens configuration time, improves the reliability and anti-single-event flipping capabilities of ultra-large-scale FPGA chips, and corrects single-bit and multi-bit errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113380294B_ABST
    Figure CN113380294B_ABST
Patent Text Reader

Abstract

The present invention discloses an FPGA configuration FLASH chip anti-single particle upset circuit, including a configuration control FPGA chip, an ultra-large-scale FPGA chip, a main configuration FLASH chip, a secondary configuration FLASH chip, a power supply chip, a first interface and a ground measurement equipment configuration circuit; the ultra-large-scale FPGA chip, the main configuration FLASH chip and the secondary configuration FLASH chip are respectively connected to the configuration control FPGA chip; the enable end of the configuration control FPGA chip is connected to the power supply chip, and the power supply chip is connected to the secondary configuration FLASH chip; the configuration control FPGA chip is connected to the ground measurement equipment configuration circuit through the first interface. Correspondingly, the present invention also discloses an FPGA configuration FLASH chip anti-single particle upset method. The present invention reduces the failure rate of the circuit of the ultra-large-scale FPGA configuration FLASH chip and improves the reliability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of radiation-resistant reinforcement of FPGA chips, and in particular to a circuit and method for FPGA-configured FLASH chip to resist single-particle upset. Background Art

[0002] With the continuous development of space platform payload technology, there is an increasing demand for SRAM-type FPGA chips with programmable arrays above 10 million gates, and the demand for the capacity of FPGA configuration program file storage chips is also increasing. The single-chip storage capacity of conventional anti-fuse PROM chips does not exceed 16Mb, which cannot meet the use requirements of ultra-large-scale FPGA chips. When used in cascade, it not only increases the complexity, volume and cost of the circuit, but also reduces the anti-interference and reliability of the circuit. Only large-capacity FLASH chips or MRAM chips can be used to store configuration program files. From a cost perspective, FLASH chips are usually used as configuration chips for ultra-large-scale FPGA chips. However, when FLASH chips are working in orbit, they are easily affected by the space radiation environment and single-particle flips occur. At the same time, as the number of uses increases, bad blocks will be generated, resulting in extremely low reliability of FPGA chip configuration circuits. At present, the focus of FPGA circuits for space applications is mainly on the field of radiation reinforcement of FPGA chips. It is urgent to study the configuration circuits of FLASH chips for ultra-large-scale FPGAs to reduce failure rates and improve reliability.

[0003] At present, the methods for FLASH chips to resist single-particle upset are mainly limited to the three-module redundancy method and the block code error correction method. The three-module redundancy method is a design method that uses three identically designed circuits in hardware circuit design or software design to process data in parallel and make a two-out-of-three judgment on the results. It not only increases the complexity of the circuit or algorithm, but the three-module redundancy method cannot completely solve the problem of bad blocks in FLASH chips during long-term use. At the same time, the three-out-of-two judgment circuit also has the possibility of single-particle upset or single-point failure. The block code error correction method has a low fault tolerance rate and can generally only correct one and detect two. In addition, the decoding algorithm is complex and the decoding delay is long. It is not suitable for data reading of FLASH chips with large storage capacity. Summary of the invention

[0004] In order to enhance the ability of ultra-large-scale FPGA configuration FLASH chips for space applications to cope with single particle upset events and other data error problems, the present invention proposes an FPGA configuration FLASH chip anti-single particle upset circuit and method.

[0005] In order to solve the above technical problems, the technical solution of the present invention is:

[0006] An FPGA configuration FLASH chip anti-single particle upset circuit comprises a configuration control FPGA chip, an ultra-large-scale FPGA chip, a main configuration FLASH chip, a secondary configuration FLASH chip, a power supply chip, a first interface and a ground measurement equipment configuration circuit; the ultra-large-scale FPGA chip, the main configuration FLASH chip and the secondary configuration FLASH chip are respectively connected to the configuration control FPGA chip; the enable end of the configuration control FPGA chip is connected to the power supply chip, and the power supply chip is connected to the secondary configuration FLASH chip; the configuration control FPGA chip is connected to the ground measurement equipment configuration circuit via the first interface.

[0007] Preferably, the configuration control FPGA chip includes a configuration control module, a normal configuration working module, a bad block data migration module, a problem data block repair module, a backup FLASH configuration working module, a gating configuration module, an input gating module, a deinterleaving module, a Viterbi decoding module, a descrambling module, a first CRC check module and an output gating module; the normal configuration working module, the bad block data migration module, the problem data block repair module and the backup FLASH configuration working module are respectively connected to the configuration control module in communication; the normal configuration working module and the backup FLASH configuration working module are respectively connected to the gating configuration module, and the gating configuration module writes the configuration data into the ultra-large-scale FPGA chip; the ultra-large-scale FPGA chip writes the configuration result The main configuration FLASH chip feeds back the chip status information to the configuration control module; the main configuration FLASH chip reads the block data to the input selection module, the input selection module is connected with the deinterleaving module, the Viterbi decoding module, the descrambling module, the first CRC check module and the output selection module in sequence, and the output selection module is connected with the normal configuration working module and the bad block data migration module respectively; the configuration control module, the bad block data migration module and the problem data block repair module write the block data to the main configuration FLASH chip and the secondary configuration FLASH chip; the secondary configuration FLASH chip reads the block data to the input selection module and the backup FLASH configuration working module.

[0008] Preferably, the geodesic equipment configuration circuit includes a segmentation and framing module, a second CRC check module, a convolutional coding module, an interleaving module, an scrambling module and a second interface module; the segmentation and framing module is sequentially connected to the second CRC check module, the convolutional coding module, the interleaving module, the scrambling module and the second interface module; the first interface is connected to the second interface.

[0009] Preferably, the first interface is a first telemetry interface, and the second interface is a second telemetry interface; or, the first interface is a first remote control interface, and the second interface is a second remote control interface.

[0010] Preferably, the power supply chip is an LDO low-dropout voltage conversion chip, which provides a power supply voltage to the secondary configuration FLASH chip according to the configuration control FPGA chip instructions.

[0011] Preferably, the configuration control FPGA chip is an anti-fuse FPGA chip, and the ultra-large-scale FPGA chip is an SRAM-type FPGA chip.

[0012] A method for FPGA configuration FLASH chip anti-single event upset, comprising the following steps:

[0013] S1, divide and frame the FPGA configuration program file by blocks on the configuration circuit of the ground measurement equipment, add CRC check bits, scramble, convolutional code, and interleave each frame of data in each data block in turn, and then upload the divided framed data blocks through the remote control interface, configure the control FPGA chip to store the FPGA configuration program file in the main configuration FLASH chip and the secondary configuration FLASH chip, and store the storage address table mapping information in the designated location of the spare storage area of ​​the two FLASH chips;

[0014] S2, when working normally, enters the normal configuration working mode by default, and the configuration control module reads the FPGA configuration program file data block from the main configuration FLASH chip according to the address table mapping relationship, and performs de-interleaving, Viterbi decoding, descrambling, and CRC check processing on each frame of data in turn. After the check passes, the ultra-large-scale FPGA chip is configured;

[0015] S3, when the check result of the data block of the FPGA configuration program file is wrong, the problem data block is re-read and processed according to step S2. If the check result is still wrong, the configuration process is terminated, and the problem data block repair mode is entered, the data of the data block is erased, the secondary configuration FLASH chip is powered on and the data block with the same address is read, and each frame of data is de-interleaved, Viterbi decoded, descrambled, and CRC checked in turn. After the check passes, the data in the data area is written to the problem data area of ​​the main configuration FLASH chip. After completion, the data in the data area is read again and each frame of data is interleaved, Viterbi decoded, descrambled, and CRC checked in turn. If the check passes, the problem data block repair mode is exited, and the normal configuration working mode is entered, and the configuration of the ultra-large-scale FPGA chip is restarted from step S2;

[0016] S4, if the verification result of the problem data block after re-erasing is still wrong, it is determined that there is a bad block in the data area, and the bad block data migration mode is entered. The address table in the main configuration FLASH chip is modified, the bad block address is marked and the data block address is remapped to the unused spare storage area address, and the data corresponding to the problem data area in the secondary configuration FLASH chip is read and written into the remapped spare storage area in the main configuration FLASH chip. After completion, the data in the data area is read again and each frame of data is deinterleaved, Viterbi decoded, descrambled, and CRC checked in turn. After the check passes, the problem data block repair mode is exited and the normal configuration working mode is entered. The ultra-large-scale FPGA chip is configured again from step S2. Otherwise, the next spare storage area address should be selected to rewrite the problem data area data until the spare storage area resources are exhausted;

[0017] S5, when the scale of bad blocks exceeds the capacity of the spare storage area, it is determined that the main configuration FLASH chip fails, and the backup FLASH configuration working mode is entered, and the secondary configuration FLASH chip is used to configure the ultra-large-scale FPGA chip.

[0018] Compared with the prior art, the present invention has the following beneficial effects:

[0019] The present invention reduces the probability of FPGA function failure caused by configuration FLASH chip failure caused by single particle events through the setting of cold backup secondary configuration FLASH chip circuit, and improves the reliability of ultra-large-scale FPGA chip configuration circuit; by introducing convolution coding and Viterbi decoding to perform data error correction in the FPGA program configuration process, compared with the block code data error correction method, it not only shortens the configuration time of ultra-large-scale FPGA chips, but also improves the ability of the configuration FLASH chip to resist single particle upsets (including SEU and MBU). BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 A schematic diagram of a FPGA configuration FLASH chip anti-single-particle upset circuit of the present invention;

[0021] Figure 2 A flowchart of writing configuration file data in one embodiment of the present invention;

[0022] Figure 3 This is a normal configuration workflow diagram in one embodiment of the present invention;

[0023] Figure 4 This is a flowchart of repairing a problem data block in one embodiment of the present invention;

[0024] Figure 5 A flowchart of bad block data migration in one embodiment of the present invention;

[0025] Figure 6This is a flowchart of error correction code processing in one embodiment of the present invention;

[0026] Figure 7 This is a flowchart of cold backup FLASH configuration in one embodiment of the present invention. DETAILED DESCRIPTION

[0027] The specific embodiments of the present invention are further described below in conjunction with the accompanying drawings. It should be noted that the description of these embodiments is used to help understand the present invention, but does not constitute a limitation of the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0028] Embodiment 1

[0029] Please refer to Figures 1 to 7 , an FPGA configuration FLASH chip anti-single particle upset circuit, including a configuration control FPGA chip, an ultra-large-scale FPGA chip, a main configuration FLASH chip, a sub-configuration FLASH chip, a power supply chip, a first interface and a ground measurement equipment configuration circuit; the ultra-large-scale FPGA chip, the main configuration FLASH chip and the sub-configuration FLASH chip are respectively connected to the configuration control FPGA chip; the enable end of the configuration control FPGA chip is connected to the power supply chip, and the power supply chip is connected to the sub-configuration FLASH chip; the configuration control FPGA chip is connected to the ground measurement equipment configuration circuit through the first interface.

[0030] Working principle:

[0031] In the configuration circuit of the ground measurement equipment, the FPGA configuration program file is processed by block division, and is uploaded through the telemetry / remote control interface after convolution coding and other processing; the FPGA configuration circuit receives and processes the data and stores them in two configuration FLASH chips respectively; when working on-orbit, the data blocks in the configuration FLASH chip are read sequentially, and Viterbi decoding and other processing are performed and configured to the FPGA; when an uncorrectable single particle upset event or other problem occurs, the problematic data block is repaired; when a bad block occurs, the original data block is stored in the backup storage address; when the main configuration FLASH chip loses its function, it can be replaced by the secondary configuration FLASH chip.

[0032] Among them, the ultra-large-scale FPGA chip is an SRAM-type FPGA chip, with a programmable gate circuit of more than 10 million gates, and the FPGA configuration program file size is not less than 64Mb. A large-capacity FLASH chip is used to store the FPGA configuration program file, which is applied to space environments with strong radiation to realize specific circuit functions;

[0033] The capacity of the main configuration FLASH chip is not less than 128Mb, and its function is to store FPGA configuration program files and FLASH chip status information, output the stored FPGA configuration program file data blocks for ultra-large-scale FPGA chip configuration according to the configuration control FPGA chip instructions, write or update the FLASH chip status information according to the configuration control FPGA chip instructions, repair the problematic data blocks according to the configuration control FPGA chip instructions, and migrate the data of the damaged storage area to the spare storage area according to the configuration control FPGA chip instructions;

[0034] The capacity of the secondary configuration FLASH chip is not less than 128Mb, which is used to store FPGA configuration program files. When the circuit is working normally, it is in cold backup state. When the main configuration FLASH chip has a repairable problem data block or bad block, the stored FPGA configuration program file data block is output according to the configuration control FPGA chip instruction for use in repairing the main configuration FLASH chip. When the scale of the bad block of the main configuration FLASH chip exceeds the capacity of the spare storage area, the main configuration FLASH chip can be replaced according to the configuration control FPGA chip instruction to configure a super-large-scale FPGA chip;

[0035] The configuration control FPGA chip is an anti-fuse FPGA chip, and its functions include receiving / processing / forwarding remote control commands, receiving / processing / sending telemetry information, providing data block write channels for two FLASH chips in the ground phase for storing FPGA configuration program files, and can also be used as a write channel for the ultra-large-scale FPGA chip configuration circuit to update the FPGA configuration program files in the on-orbit working phase, reading the configuration program files from the main configuration FLASH chip for deinterleaving / Viterbi decoding / descrambling / CRC check and other processing, and then configuring them to the ultra-large-scale FPGA chip in Slave SelectMAP mode, repairing the data blocks that cannot be corrected after the configuration process finds the data blocks, controlling the working status of the power supply chip, updating and maintaining the address table of the bad blocks found by the main configuration FLASH chip, and reading / processing the corresponding data from the secondary configuration FLASH chip and writing them into the spare storage area to replace the bad blocks, and using the secondary configuration FLASH chip to configure the ultra-large-scale FPGA chip when the scale of the bad blocks of the main configuration FLASH chip exceeds the capacity of the spare storage area.

[0036] In one embodiment, the configuration control FPGA chip includes a configuration control module, a normal configuration working module, a bad block data migration module, a problem data block repair module, a backup FLASH configuration working module, a gating configuration module, an input gating module, a deinterleaving module, a Viterbi decoding module, a descrambling module, a first CRC check module and an output gating module; the normal configuration working module, the bad block data migration module, the problem data block repair module and the backup FLASH configuration working module are respectively connected to the configuration control module; the normal configuration working module and the backup FLASH configuration working module are respectively connected to the gating configuration module, and the gating configuration module writes the configuration data into the ultra-large-scale FPGA chip; the ultra-large-scale F The PGA chip feeds back the configuration result to the normal working module; the main configuration FLASH chip feeds back the chip status information to the configuration control module; the main configuration FLASH chip reads the block data to the input selection module, the input selection module is connected to the deinterleaving module, the Viterbi decoding module, the descrambling module, the first CRC check module and the output selection module in sequence, and the output selection module is connected to the normal configuration working module and the bad block data migration module respectively; the configuration control module, the bad block data migration module and the problem data block repair module write the block data to the main configuration FLASH chip and the secondary configuration FLASH chip; the secondary configuration FLASH chip reads the block data to the input selection module and the backup FLASH configuration working module.

[0037] In one embodiment, the ground surveying equipment configuration circuit includes a segmentation and framing module, a second CRC check module, a convolutional coding module, an interleaving module, an scrambling module and a second interface module; the segmentation and framing module is sequentially connected to the second CRC check module, the convolutional coding module, the interleaving module, the scrambling module and the second interface module; the first interface is connected to the second interface.

[0038] In this embodiment, the ground surveying equipment configuration circuit is a PCIE board or CPCI board installed on the ground surveying equipment and equipped with an RS422 interface chip, an LVDS interface chip, a 1553B interface chip, an FPGA chip and a DSP chip. Its functions include generating / sending remote control commands, receiving / processing / storing telemetry information, segmenting and framing FPGA configuration files, CRC check processing, convolution coding processing, interleaving and scrambling processing, and segmenting and framing data blocks for sending.

[0039] In one embodiment, the first interface is a first telemetry interface, and the second interface is a second telemetry interface; or, the first interface is a first remote control interface, and the second interface is a second remote control interface.

[0040] In one embodiment, the power supply chip is an LDO low voltage difference voltage conversion chip, which provides a power supply voltage to the secondary configuration FLASH chip according to the configuration control FPGA chip instructions.

[0041] In one embodiment, the process of writing the configuration file of the FPGA configuration FLASH chip anti-single-particle upset circuit is shown in Figure 2 .

[0042] The ground measurement equipment first divides the configuration program file of the ultra-large-scale FPGA chip into blocks according to the minimum sector size of 8Kbytes of SPANSION's FLASH chip S29JL064H, and then divides and frames the block data with reserved check bits; CRC check is performed on each frame and the check bits are filled. The recommended CRC check generator polynomial is:

[0043] F(x)=x 32 +x 26 +x 23 +x 22 +x 16 +x 12 +x 11 +x 10 +x8+x7+x5+x 4 +x 2 +x+1

[0044] Because there are a lot of long 0 and long 1 data in the FPGA configuration program file, the block data after adding the CRC check bit needs to be cyclically scrambled before convolution coding. It is recommended to use PN23 or PN15 scrambling code; the scrambled frame data is convolutionally encoded in blocks. It is recommended to use (2, 1, 7) convolution coding. If you want to save storage space, it is recommended to use (4, 3, 7) punctured convolution coding. A certain amount of fixed data should be reserved at the end of the block data so that all valid data can be fully received during decoding. After encoding, new block data is generated; the block data is interleaved. It is recommended to shift the data starting from the second bit by 5 The data interleaving method is to write the bit data, write to the tail address and then start writing from the first bit of the data that has not been written, and write cyclically until the data area is full. This method is not as random as the random interleaving method for block data interleaving, but it can completely separate the adjacent 6-bit data. Combining convolutional coding and Viterbi decoding can solve the problem of multi-bit single-particle flip; the interleaved block data is divided according to the data transmission frame format of the measurement and control link, and is saved in the form of independent files in units of data blocks in sequence. It is written into the two FLASH chips of the FPGA configuration circuit through the measurement and control channel of the ground measurement equipment and the configuration control FPGA chip. According to the situation of the FLASH chip, the address of the bad block area and the starting address of the storage area of ​​each block of data are recorded to generate a data table, and written into the specified area of ​​FLASH.

[0045] In addition, when the FPGA configuration program needs to be upgraded on-orbit, the FLASH chip storage file can be updated on-orbit via the satellite-to-ground measurement and control link using the above method.

[0046] In one embodiment, the normal configuration workflow of the FPGA configuration FLASH chip anti-single event upset circuit is shown in Figure 3 .

[0047] The configuration control FPGA chip first receives the configuration file data block and verifies its correctness. If it is incorrect, it performs the problem data block repair process or even enters the bad block data migration process or the backup configuration workflow. Otherwise, it configures the ultra-large-scale FPGA chip in SlaveSlecetMAP mode, and decides whether to reconfigure based on the configuration results fed back by the ultra-large-scale FPGA chip until the normal configuration workflow is completed.

[0048] In one embodiment, the problem data block repair process of the FPGA configuration FLASH chip anti-single-particle upset circuit is shown in Figure 4 .

[0049] The configuration control FPGA chip first controls the power supply chip to enter the working state; the main configuration FLASH chip problem data block is erased and verified to be successful; if successful, the correct data block is read from the address area corresponding to the secondary configuration FLASH chip, and after verification, it is written to the erased data area of ​​the configuration FLASH chip, and finally the written data is read back and verified. If it is correct, the repair process of the problem data block is completed. The repair process of the problem data block may need to be performed multiple times, but generally not more than three times, otherwise it is considered that the data block storage area has generated a bad block, the bad block address of the address table should be updated, the mapped spare storage area address should be specified, and the bad block data migration process should be entered.

[0050] In one embodiment, the bad block data migration process of the FPGA configuration FLASH chip anti-single-particle upset circuit is shown in Figure 5 .

[0051] The configuration control FPGA chip controls the secondary configuration FLASH chip to enter the working state, reads the spare storage area address mapped in the address table and erases it, reads the correct data from the secondary configuration FLASH chip and verifies it, writes the spare storage area address of the main configuration FLASH chip after the verification passes, and performs a read-back verification. After the verification passes, the bad block data migration process is completed. If bad blocks are found in the spare storage area during the bad block data migration process, the migration data area address needs to be adjusted until it passes. If the spare storage area resources have been used up, the cold backup FLASH configuration workflow is entered.

[0052] In one embodiment, the error correction code processing flow of the FPGA configuration FLASH chip anti-single event upset circuit is shown in Figure 6 .

[0053] The processing of adding CRC check bits, data scrambling, convolution coding, block data interleaving, etc. for the FLASH chip storage data has been completed on the ground measurement equipment, and the data error correction function of the FPGA configuration circuit is completed in the configuration control FPGA chip. When correcting data errors, deinterleaving is first performed in the configuration control FPGA chip to break up the sudden continuous bit errors that occur to improve the error correction performance of the link, and then hard decision Viterbi decoding is performed (since data transmission does not pass through the channel, soft decision Viterbi decoding is not required), the decoded block data is descrambled, and finally the descrambled frame data is CRC checked. This correction method can correct single-bit SEU (Single Event Upset) events and multi-bit MBU (Multiple Bit Upset) events.

[0054] In one embodiment, the cold backup FLASH configuration workflow of the FPGA configuration FLASH chip anti-single-particle upset circuit is shown in Figure 7 .

[0055] When the main configuration FLASH chip fails, the configuration control FPGA chip controls the secondary configuration FLASH chip to enter the working state, reads the configuration file data block from the secondary configuration FLASH chip and verifies its correctness. If it is incorrect, the problem data block repair process is performed. Otherwise, the ultra-large-scale FPGA chip is configured in Slave SlecetMAP mode, and whether it needs to be reconfigured is determined based on the configuration results fed back by the ultra-large-scale FPGA chip until the normal configuration workflow is completed. It should be pointed out that when the main configuration FLASH chip fails, there are many bad blocks inside it, so the repair of the problem data block of the secondary configuration FLASH chip may not be successful, and the function of the FPGA configuration circuit will fail. At this time, it should be pointed out that if conditions permit, the problem data block data can be sent to the FPGA configuration circuit through the satellite-to-ground measurement and control channel through the ground measurement equipment and rewritten into the problem data area of ​​the secondary configuration FLASH chip and verified. If the verification is correct, the function of the FPGA configuration circuit will be restored.

[0056] Embodiment 2

[0057] Please refer to Figures 1 to 7 , a method for FPGA configuration FLASH chip anti-single event upset, comprising the following steps:

[0058] S1, divide and frame the FPGA configuration program file by blocks on the configuration circuit of the ground measurement equipment, add CRC check bits, scramble, convolutional code, and interleave each frame of data in each data block in turn, and then upload the divided framed data blocks through the remote control interface, configure the control FPGA chip to store the FPGA configuration program file in the main configuration FLASH chip and the secondary configuration FLASH chip, and store the storage address table mapping information in the designated location of the spare storage area of ​​the two FLASH chips;

[0059] S2, when working normally, enters the normal configuration working mode by default, and the configuration control module reads the FPGA configuration program file data block from the main configuration FLASH chip according to the address table mapping relationship, and performs de-interleaving, Viterbi decoding, descrambling, and CRC check processing on each frame of data in turn. After the check passes, the ultra-large-scale FPGA chip is configured;

[0060] S3, when the check result of the data block of the FPGA configuration program file is wrong, the problem data block is re-read and processed according to step S2. If the check result is still wrong, the configuration process is terminated, and the problem data block repair mode is entered, the data of the data block is erased, the secondary configuration FLASH chip is powered on and the data block with the same address is read, and each frame of data is de-interleaved, Viterbi decoded, descrambled, and CRC checked in turn. After the check passes, the data in the data area is written to the problem data area of ​​the main configuration FLASH chip. After completion, the data in the data area is read again and each frame of data is interleaved, Viterbi decoded, descrambled, and CRC checked in turn. If the check passes, the problem data block repair mode is exited, and the normal configuration working mode is entered, and the configuration of the ultra-large-scale FPGA chip is restarted from step S2;

[0061] S4, if the verification result of the problem data block after re-erasing is still wrong, it is determined that there is a bad block in the data area, and the bad block data migration mode is entered. The address table in the main configuration FLASH chip is modified, the bad block address is marked and the data block address is remapped to the unused spare storage area address, and the data corresponding to the problem data area in the secondary configuration FLASH chip is read and written into the remapped spare storage area in the main configuration FLASH chip. After completion, the data in the data area is read again and each frame of data is deinterleaved, Viterbi decoded, descrambled, and CRC checked in turn. After the check passes, the problem data block repair mode is exited and the normal configuration working mode is entered. The ultra-large-scale FPGA chip is configured again from step S2. Otherwise, the next spare storage area address should be selected to rewrite the problem data area data until the spare storage area resources are exhausted;

[0062] S5, when the scale of bad blocks exceeds the capacity of the spare storage area, it is determined that the main configuration FLASH chip fails, and the backup FLASH configuration working mode is entered, and the secondary configuration FLASH chip is used to configure the ultra-large-scale FPGA chip.

[0063] The present invention adopts interleaving / deinterleaving cascade convolution coding / Viterbi decoding to correct 4 errors at any position within continuous 35 bits, and the error correction performance is better than that of block code; adopts hard decision Viterbi decoding, and the decoding delay is less than that of block code; can perform self-repair or instruction repair on the problem data block of the configuration FLASH chip; can calibrate the bad block address of the main configuration FLASH chip, and migrate the data on the bad block to the spare storage area; can use the secondary configuration FLASH to replace the main configuration FLASH chip with failed function to perform ultra-large-scale FPGA chip configuration.

[0064] The embodiments of the present invention are described in detail above with reference to the accompanying drawings, but the present invention is not limited to the described embodiments. For those skilled in the art, various changes, modifications, substitutions and variations of these embodiments are made without departing from the principles and spirit of the present invention, and still fall within the scope of protection of the present invention.

Claims

1. A FPGA configuration FLASH chip anti-single event upset circuit, Features: It includes a configuration control FPGA chip, an ultra-large-scale FPGA chip, a main configuration FLASH chip, a secondary configuration FLASH chip, a power supply chip, a first interface and a ground measurement equipment configuration circuit; the ultra-large-scale FPGA chip, the main configuration FLASH chip and the secondary configuration FLASH chip are respectively connected to the configuration control FPGA chip; the enable end of the configuration control FPGA chip is connected to the power supply chip, and the power supply chip is connected to the secondary configuration FLASH chip; the configuration control FPGA chip is connected to the ground measurement equipment configuration circuit through the first interface; The configuration control FPGA chip includes a configuration control module, a normal configuration working module, a bad block data migration module, a problem data block repair module, a backup FLASH configuration working module, a gating configuration module, an input gating module, a deinterleaving module, a Viterbi decoding module, a descrambling module, a first CRC check module and an output gating module; the normal configuration working module, the bad block data migration module, the problem data block repair module and the backup FLASH configuration working module are respectively connected to the configuration control module; the normal configuration working module and the backup FLASH configuration working module are respectively connected to the gating configuration module, and the gating configuration module writes the configuration data into the ultra-large-scale FPGA chip; the ultra-large-scale FPGA chip feeds back the configuration result to The normal configuration working module; the main configuration FLASH chip feeds back the chip status information to the configuration control module; the main configuration FLASH chip reads the block data to the input gating module, the input gating module is sequentially connected to the deinterleaving module, the Viterbi decoding module, the descrambling module, the first CRC check module and the output gating module, and the output gating module is respectively connected to the normal configuration working module and the bad block data migration module; the configuration control module, the bad block data migration module and the problem data block repair module write the block data to the main configuration FLASH chip and the secondary configuration FLASH chip; the secondary configuration FLASH chip reads the block data to the input gating module and the backup FLASH configuration working module; The enable terminal of the configuration control FPGA chip is embedded in the configuration control module, and the configuration control module provides an enable signal to the power supply chip according to the instruction, and the power supply chip provides the operating voltage to the secondary configuration FLASH chip according to the enable signal; The anti-SINGLE-EVENT-UPSET working principle is: In the configuration circuit of the ground measurement equipment, the FPGA configuration program file is processed by block division to form a plurality of data blocks, and each of the data blocks is uploaded to the configuration control FPGA chip through the first interface after adding CRC check bits, scrambling, convolution coding, and interleaving processing; The configuration control FPGA chip receives and processes the received data and stores them in the main configuration FLASH chip and the secondary configuration FLASH chip respectively; When working on-orbit, the configuration control FPGA chip sequentially reads the data blocks in the main configuration FLASH chip and the secondary configuration FLASH chip, performs de-interleaving, Viterbi decoding, descrambling, CRC check processing and configures them to the ultra-large-scale FPGA chip; When an uncorrectable single-particle upset event occurs, the problem data block is repaired by the problem data block repair module; when a bad block appears, the bad block data migration module uses a spare storage address to store the original data block; When the main configuration FLASH chip loses its function, the secondary configuration FLASH chip is used as a replacement.

2. The FPGA configuration FLASH chip anti-single event upset circuit according to claim 1, Features: The geodesic equipment configuration circuit includes a segmentation and framing module, a second CRC check module, a convolutional coding module, an interleaving module, an scrambling module and a second interface module; the segmentation and framing module is sequentially connected to the second CRC check module, the convolutional coding module, the interleaving module, the scrambling module and the second interface module; the first interface is connected to the second interface.

3. The FPGA configuration FLASH chip anti-single event upset circuit according to claim 2, Features: The first interface is a first telemetry interface, and the second interface is a second telemetry interface; or, the first interface is a first remote control interface, and the second interface is a second remote control interface.

4. The FPGA configuration FLASH chip anti-single event upset circuit according to claim 1, Features: The power supply chip is an LDO low-dropout voltage conversion chip, which provides a power supply voltage to the secondary configuration FLASH chip according to the configuration control FPGA chip instruction.

5. The FPGA configuration FLASH chip anti-single event upset circuit according to claim 1, Features: The configuration control FPGA chip is an anti-fuse FPGA chip, and the ultra-large-scale FPGA chip is an SRAM type FPGA chip.

6. A method for FPGA configuration FLASH chip to resist single-particle upset, It is characterized in that The following steps are involved: S1, divide and frame the FPGA configuration program file by blocks on the configuration circuit of the ground measurement equipment, add CRC check bits, scramble, convolutional code, and interleave each frame of data in each data block in turn, and then upload the divided framed data blocks through the remote control interface, configure the control FPGA chip to store the FPGA configuration program file in the main configuration FLASH chip and the secondary configuration FLASH chip, and store the storage address table mapping information in the designated location of the spare storage area of ​​the two FLASH chips; S2, when working normally, enters the normal configuration working mode by default, configures the control FPGA chip to read the FPGA configuration program file data block from the main configuration FLASH chip according to the address table mapping relationship, and performs de-interleaving, Viterbi decoding, descrambling, and CRC check processing on each frame of data in turn. After the check passes, it is configured to the ultra-large-scale FPGA chip; S3, when the verification result of the FPGA configuration program file data block is wrong, the FPGA configuration program file data block with the error is re-read and processed according to step S2. If the verification result is still wrong, the configuration process is terminated, and the problem data block repair mode is entered, the data of the data block is erased, the secondary configuration FLASH chip is powered on and the data block with the same address is read, and each frame of data is de-interleaved, Viterbi decoded, descrambled, and CRC checked in turn. After the verification is passed, the data in the data area is written to the problem data area of ​​the main configuration FLASH chip. After completion, the data in the data area is read again and each frame of data is interleaved, Viterbi decoded, descrambled, and CRC checked in turn. If the verification is passed, the problem data block repair mode is exited, and the normal configuration working mode is entered, and the configuration of the ultra-large-scale FPGA chip is restarted from step S2; S4, if the verification result of the problem data block after re-erasing is still wrong, it is determined that there is a bad block in the data area, and the bad block data migration mode is entered. The address table in the main configuration FLASH chip is modified, the bad block address is marked and the data block address is remapped to the unused spare storage area address, and the data corresponding to the problem data area in the secondary configuration FLASH chip is read and written into the remapped spare storage area in the main configuration FLASH chip. After completion, the data in the data area is read again and each frame of data is deinterleaved, Viterbi decoded, descrambled, and CRC checked in turn. After the check passes, the problem data block repair mode is exited and the normal configuration working mode is entered. The ultra-large-scale FPGA chip is configured again from step S2. Otherwise, the next spare storage area address should be selected to rewrite the problem data area data until the spare storage area resources are exhausted; S5, when the scale of bad blocks exceeds the capacity of the spare storage area, it is determined that the main configuration FLASH chip fails, and the backup FLASH configuration working mode is entered, and the secondary configuration FLASH chip is used to configure the ultra-large-scale FPGA chip.