A single event upset detection method for FPGA internal RAM
By using neutron radiation experiments and Ethernet transmission, single-event upset detection of FPGA internal RAM was achieved, solving the problems of fault location and fault rate calculation, improving detection efficiency and accuracy, and applicable to various FPGA chips.
Patent Information
- Application Number
- CN202211546628.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-05
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2042-12-05
AI Technical Summary
Existing technologies struggle to effectively locate single-event upset (SET) faults in the internal RAM of FPGAs, and lack suitable and efficient detection methods, resulting in limited fault rate data that cannot be directly used for program design protection.
A single-event upset detection method for FPGA internal RAM is adopted. Using a neutron source radiation experiment, single-event upsets are periodically detected by the BRAM, CRAM, and DRAM control modules, fault information is recorded, and the data is transmitted to a PC via an Ethernet interface for data parsing and calculation, thereby realizing automatic calculation of the fault rate.
It reduces hardware and software costs, improves the reliability and scalability of detection, simplifies the experimental environment, and enables accurate calculation of the single-event flip rate and cross-sectional area of FPGA chips.
Smart Images

Figure CN116153380B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of chip single-event effect testing technology, specifically a single-event upset detection method for FPGA internal RAM. Background Technology
[0002] Single Event Effect (SEE) is a general term for events that cause transient voltage or current pulses within electronic devices due to particle impacts. SEEs mainly fall into two categories: first, soft errors that only cause changes or lockouts in the state of stored elements without hardware damage and can be corrected; and second, hard errors that can lead to permanent damage, burnout, or destructive latch-up of one or more components in a device or circuit.
[0003] A single event upset (SEU) is a soft error caused by a high-energy particle impacting an internal storage device, resulting in a change in its state. When a SEU occurs, a stored "0" is flipped to a "1" or vice versa, causing a malfunction in the running program. SEUs are among the most common single-event effect faults, and high-speed neutrons from high-energy particles are the primary cause of SEU faults in electronic components.
[0004] In the field of power automation, FPGAs are increasingly widely used due to their high parallelism, fast processing speed, and strong programming flexibility. The power industry is crucial to economic development and people's well-being, placing stricter demands on the reliability and stability of electronic devices. Currently, there are three main FPGA architectures: SRAM-based FPGAs, antifuse FPGAs, and Flash FPGAs. SRAM-based FPGAs are the most common FPGA architecture on the market. They use SRAM (Static Random Access Memory) to store user configuration and program execution data, thus possessing the characteristics of large logic capacity, simple manufacturing process, and reprogrammability. However, the SRAM storage structure is very susceptible to single-event upsets (SEEs) caused by high-energy particles, which can lead to malfunctions in the entire device and even serious consequences. Research on SEEs in SRAM-based FPGAs is currently a hot topic.
[0005] RAM resources in an FPGA are mainly divided into three types: embedded block RAM (BRAM), configuration RAM (CRAM), and distributed RAM (DRAM). BRAM and DRAM are used to store various data used during program execution, while CRAM stores the FPGA program's configuration data. BRAM and CRAM are essentially special types of SRAM within the FPGA, while DRAM is constructed using general-purpose logic resources such as lookup tables and flip-flops within the FPGA chip. If a single-event upset (SEE) occurs in the data storage portion of BRAM or DRAM, it will cause anomalies in the data currently being sent out by the FPGA. If a SEE occurs in CRAM, the entire program will be affected, and its execution state will become unreliable.
[0006] Currently, few domestic and international manufacturers provide single-event upset (SET) failure rate data for SRAM-based FPGAs. Even when some manufacturers provide relevant failure rate data, they often fail to include detailed testing protocols, limiting the data's applicability to theoretical analysis. Existing domestic FPGA SET detection methods also have shortcomings: they struggle to directly pinpoint the location of faults and are difficult to use for calculating chip failure rates. This lack of suitable and efficient SET detection methods results in insufficient data support for subsequent FPGA program design and protection measures.
[0007] Therefore, in view of this, we study and improve the existing structure and its shortcomings, and propose a single-event upset detection method for the internal RAM of FPGA, in order to achieve a more practical value. Summary of the Invention
[0008] The purpose of this invention is to provide a single-event upset detection method for FPGA internal RAM, so as to solve the problems mentioned in the background art.
[0009] To achieve the above objectives, the present invention provides the following technical solution: a single-event upset detection method for FPGA internal RAM, comprising the FPGA chip under test, an Ethernet interface, a switch, a controllable power supply, and a PC. First, in the experimental environment, the neutron source continuously emits high-energy neutrons, and the FPGA chip under test is placed close to the neutron source to be exposed to the radiation of high-energy neutrons. Then, a test program is run on the FPGA chip under test to capture the single-event flip phenomenon caused by high-energy neutrons. The switch is then placed in the experimental environment away from the neutron source radiation and shielded. The internal test program of the FPGA chip under test includes: RAM control program, single-event upset detection program, and detection data transmission program; The internal functional modules of the FPGA chip under test include: BRAM, CRAM, DRAM, BRAM control module, CRAM control module, DRAM control module, single event fault detection module, and detection data transmission module. The BRAM control module, CRAM control module, and DRAM control module control the corresponding BRAM, CRAM, and DRAM respectively. The BRAM control module, CRAM control module, and DRAM control module periodically and automatically perform single event fault detection on RAM data, automatically record single event fault information that occurs in RAM data, and complete the correction of erroneous data. The single-event upset detection module periodically collects the single-event upset fault information output by the RAM control module. The single-event upset detection module records the data address and flip type of the single-event upset fault in the BRAM and DRAM. The single-event upset detection module records the time and severity of the single-event upset fault in the CRAM. The detection data sending module periodically sends out Ethernet packets containing single-particle flip fault information. The Ethernet interface connects the FPGA chip under test to an external switch, and the connection medium is an Ethernet twisted pair cable. The switch transmits the test data sent by the FPGA chip under test to a remote PC, thereby realizing the uploading of test data; The PC is operated by the experimenter in a safe area without radiation. It receives the test data from the switch, parses and stores the test data, and automatically calculates the real-time single-event upset failure rate of the chip under test based on the obtained experimental data and parameters. At the same time, the PC analyzes the running status of the test program in the current FPGA chip and controls the on / off of the controllable power supply.
[0010] Furthermore, the FPGA chip under test and the Ethernet interface are both fixed on the test board and placed in an experimental environment that radiates high-energy neutrons, while the controllable power supply and the PC are placed in a safe environment without neutron radiation.
[0011] Furthermore, the controllable power supply module controls the power supply to the FPGA chip on the test board. When the PC detects an uncorrectable serious fault in the program of the FPGA under test, the controllable power supply disconnects the chip's power supply and reconnects it to restore its normal working state. The controllable power supply module monitors the power output power in real time. When the power output power exceeds 100% of the normal level, a single-event latch-up fault occurs in the FPGA chip under test. At this time, the controllable power supply module automatically reduces the output power to the rated value of the test board within 200ms.
[0012] Furthermore, the BRAM is built using the hard-core IP resources inside the FPGA chip, and the BRAM control module controls the data reading and writing of the BRAM resources. The DRAM is a soft-core IP built using the lookup table, register, and general logic resources inside the FPGA chip, and the DRAM control module controls the data reading and writing of the DRAM resources. When data inconsistency occurs in the BRAM or DRAM due to single-event upsets, the BRAM control module and the DRAM control module record the error information and transmit the relevant data to the single-event upset detection module. The CRAM is the configuration data storage space inside the FPGA chip, and the CRAM control module reads back and verifies the data in it. The CRAM control module uses both ECC and CRC methods to verify the configuration data in the CRAM. The CRAM control module transmits its own operating status information to the single-event upset detection module.
[0013] Furthermore, during BRAM and DRAM data testing, the entire BRAM and DRAM storage space is first traversed in address order. The test program sequentially reads the data stored in BRAM and DRAM, compares it with standard test data, and records the single-particle flip type and flip address. After completing the reading and comparison of the original data, the test program writes new test data to overwrite the original data, completing the refresh of BRAM and DRAM data. The test program uses two sets of standard test data as the data written to BRAM and DRAM, and the two sets of data are written alternately. During CRAM data testing, the configuration data in CRAM is read back cyclically in address order for verification. After detecting a single-event upset (SWE) fault in the CRAM, the test program automatically records the fault type and occurrence time, and initiates ECC error correction. When the CRAM is in the verification state, the test program records it as an observation state in the message, and the observation state is "Observation". When it is in the error correction state, the test program records it as a correction state in the message, and the correction state is "Correction". The test program corrects single-bit flip or adjacent double-bit flip faults in the CRAM configuration data frame. If a serious SWE fault occurs in the configuration data in the CRAM, the test program enters an unreliable running state, and the test program records this serious fault in the data message to notify the PC.
[0014] Furthermore, after completing the detection of all data in RAM, the statistically obtained flip information is sent to an external PC, ending the current detection cycle. If no serious fault occurs inside the FPGA that affects the normal operation of the test program, the test program directly enters the next RAM data comparison process. If a serious fault occurs inside the FPGA that affects the normal operation of the test program, the FPGA will be powered off and restarted by an external controllable power supply. The FPGA will be powered on again and restored to its initial normal working state to repeat the single-event flip detection process.
[0015] Furthermore, the PC runs the host computer portion of the test program, which automatically completes the parsing, storage, and processing of the test data, enabling real-time monitoring of the experimental process.
[0016] Furthermore, after the PC runs the test program of the host computer part, it first inputs the experimental parameters related to the experiment. The experimental parameters include: neutron source irradiation dose, and the neutron source irradiation dose is neutron flux, with the unit being n / (cm²·s), where n is the number of neutrons; high-energy neutrons radiated by the neutron source, with the unit being MeV; distance between the test board and the neutron source, with the unit being cm; and the space size of the internal RAM of the FPGA chip to be tested, with the unit being bits. The PC receives the detection data from the switch in the experimental environment through an Ethernet twisted-pair cable. After receiving the detection data packet, the PC automatically runs the host computer program. First, it parses the Ethernet packet containing the detection data, and then stores the parsed detection data in the database. If the PC finds a serious fault in the FPGA in the parsed detection data, the PC immediately sends a power-off restart signal to the controllable power supply to control the FPGA to power on and reset. After the PC completes data parsing and storage, it automatically processes the experimental data. The host computer program compares the abnormal BRAM and DRAM data recorded in the message with the standard test data bit by bit. The data bits that are inconsistent between the two are the positions where single-event upsets occur. The host computer program analyzes the status signal of the CRAM module in the message. When the CRAM enters the correction state from the observation state, it indicates that a single-event upset phenomenon has occurred in the CRAM. When the CRAM returns from the correction state to the observation state, it indicates that the ECC error correction is completed and the CRAM has returned to normal. The host computer program statistically analyzes the flip information and provides information such as the test duration, the number of RAM flips, the flip position, and the flip occurrence time. The PC calculates and displays the high-energy neutron single-event upset cross-sectional area of the FPGA chip and the single-event upset FIT rate of the chip. The FIT rate is defined as the number of single-event upset faults that occur in every 109 hours of chip operation. The variables required for the PC calculation are all calculated from the experimental parameters preset when the host computer program starts and the experimental data parsed from the test message.
[0017] Furthermore, the formula for calculating the high-energy neutron single-event flip cross-section of the FPGA chip using the PC is as follows: , E n It is the energy of high-energy neutrons emitted by a neutron source. Φ neutron This is the amount of neutron injection received by the test chip, measured in n / cm². 2 ; N SEU It represents the number of single-event upset faults that occur in the test chip. N bit It tests the size of the internal RAM of the chip; σ SEU-bit ( E n() is the high-energy neutron single-event flip cross-section of the FPGA chip, and its unit is cm². 2 / bit.
[0018] Furthermore, the formula for calculating the single-event flip (FIT) rate of the FPGA chip using the PC is as follows: , Wherein, SER is the single-event flip FIT rate of the FPGA chip, in n / 10⁹h; S is the number of chips participating in the neutron irradiation experiment; T is the experimental time for the chip to be irradiated by the neutron source, in hours (h); φreal is the atmospheric neutron flux at the actual installation and operation location of the chip, in n / (cm²·s); and φacc is the neutron flux at the chip during the neutron irradiation experiment.
[0019] This invention provides a single-event upset detection method for FPGA internal RAM, which has the following advantages: This single-event upset detection method for FPGA internal RAM can directly use existing single boards with FPGA chips to conduct neutron radiation experiments, without the need to redesign and manufacture dedicated test boards, thus reducing the hardware cost of the experiment.
[0020] This invention is applicable to different FPGA chips from various manufacturers, and the testing method is highly versatile, saving time and cost in software development. The hardware circuit structure of this invention is simple, and it can test multiple experimental boards with FPGA chips in parallel, increasing the number of test samples. The test method has high reliability and strong scalability. In this invention, the FPGA is powered by bootstrapping to automatically perform periodic tests. The test setup process does not require the participation of a PC. The real-time performance of single-event upset detection is high. Since there is no need to set up other control devices such as JLINK and PC in the irradiation environment, this invention eliminates the shielding and protection requirements of other control devices, thereby greatly simplifying the experimental environment. The experimental data obtained in the irradiation experiment can be used to accurately and automatically calculate the high-energy neutron single-event flip cross-sectional area and the single-event flip FIT rate of the FPGA chip on an external PC according to the calculation formula given in the JESD89B standard. Attached Figure Description
[0021] Figure 1 This is a block diagram illustrating the principle of a single-event upset detection method for FPGA internal RAM according to the present invention. Figure 2 This is a block diagram of the internal functional module structure of the FPGA chip in the single-event upset detection method for the internal RAM of the FPGA according to the present invention. Figure 3This is a flowchart illustrating the process of detecting single-event faults in the internal RAM of an FPGA in the single-event fault detection method of the present invention. Figure 4 This is a flowchart illustrating the process of PC processing detection data in a single-event upset detection method for FPGA internal RAM according to the present invention. Detailed Implementation
[0022] Please see Figures 1-4 This invention provides a technical solution: a single-event upset detection method for FPGA internal RAM, comprising the FPGA chip under test, an Ethernet interface, a switch, a controllable power supply, and a PC. First, in the experimental environment, the neutron source continuously emits high-energy neutrons, and the FPGA chip under test is placed close to the neutron source to be exposed to the radiation of high-energy neutrons. Then, a test program is run on the FPGA chip under test to capture the single-event flip phenomenon caused by high-energy neutrons. The switch is then placed in the experimental environment away from the neutron source radiation and shielded. The internal test program of the FPGA chip under test includes: a RAM control module, a single-event upset detection module, and a detection data transmission module; The internal functional modules of the FPGA chip under test include: BRAM, CRAM, DRAM, BRAM control module, CRAM control module, DRAM control module, single event fault detection module, and detection data transmission module. The BRAM control module, CRAM control module, and DRAM control module control the corresponding BRAM, CRAM, and DRAM respectively. The BRAM control module, CRAM control module, and DRAM control module periodically and automatically perform single event fault detection on RAM data, automatically record single event fault information that occurs in RAM data, and complete the correction of erroneous data. The single-event upset detection module periodically collects the single-event upset fault information output by the RAM control module. The single-event upset detection module records the data address and flip type of the single-event upset fault in the BRAM and DRAM. The single-event upset detection module records the time and severity of the single-event upset fault in the CRAM. The detection data sending module periodically sends out Ethernet packets containing single-particle flip fault information. The Ethernet interface connects the FPGA chip under test to an external switch, and the connection medium is an Ethernet twisted pair cable. The switch transmits the test data sent by the FPGA chip under test to a remote PC, thereby realizing the uploading of test data; The PC is operated by the experimenter in a safe area without radiation. It receives the test data from the switch, parses and stores the test data, and automatically calculates the real-time single-event upset failure rate of the chip under test based on the obtained experimental data and parameters. At the same time, the PC analyzes the running status of the test program in the current FPGA chip and controls the on / off of the controllable power supply.
[0023] The FPGA chip and Ethernet interface under test are fixed on the test board and placed in an experimental environment that radiates high-energy neutrons, while the controllable power supply and PC are placed in a safe environment without neutron radiation.
[0024] The controllable power supply module controls the power supply to the FPGA chip on the test board. When the PC detects an uncorrectable serious fault in the program of the FPGA under test, the controllable power supply disconnects the chip power and reconnects it to restore its normal working state. The controllable power supply module monitors the output power of the power supply in real time. When the power supply output power exceeds 100% of the normal level, a single-event latch-up fault occurs in the FPGA chip under test. At this time, the controllable power supply module automatically reduces the output power to the rated value of the test board within 200ms.
[0025] BRAM is built using the hard-core IP resources inside the FPGA chip. The BRAM control module controls the data reading and writing of the BRAM resources. DRAM is a soft-core IP built using the lookup table, register, and general logic resources inside the FPGA chip. The DRAM control module controls the data reading and writing of the DRAM resources. When data inconsistency occurs in the BRAM or DRAM due to single-event upsets, the BRAM control module and DRAM control module record the error information and transmit the relevant data to the single-event upset detection module. CRAM is the configuration data storage space inside the FPGA chip. The CRAM control module reads back and verifies the data in it. The CRAM control module uses both ECC and CRC to verify the configuration data in the CRAM. The CRAM control module transmits its own operating status information to the single-event upset detection module.
[0026] When performing BRAM and DRAM data testing, the entire BRAM and DRAM memory space is first traversed in address order. The test program sequentially reads the data stored in BRAM and DRAM, compares it with standard test data, and records the single-event flip type and flip address. After completing the reading and comparison of the original data, the test program writes new test data to overwrite the original data, completing the refresh of BRAM and DRAM data. The test program uses two sets of standard test data as the data to be written to BRAM and DRAM, and the two sets of data are written alternately. When performing CRAM data testing, the configuration data in CRAM is read back cyclically in address order for verification. Upon detecting a single-event upset (SWE) fault in the CRAM, the fault type and occurrence time are automatically recorded, and the ECC error correction function is activated. When the CRAM is in the verification state, the test program records it as an observation state in the message, and the observation state is "Observation". When it is in the error correction state, the test program records it as a correction state in the message, and the correction state is "Correction". The test program corrects single-bit flip or adjacent double-bit flip faults in the CRAM configuration data frame. If a serious SWE fault occurs in the configuration data in the CRAM, the test program enters an unreliable running state and records this serious fault in the data message to notify the PC.
[0027] After completing the detection of all data in RAM, the statistically obtained flip information is sent to an external PC, ending the current detection cycle. If no serious fault occurs inside the FPGA that affects the normal operation of the test program, the test program directly enters the next RAM data comparison process. If a serious fault occurs inside the FPGA that affects the normal operation of the test program, the FPGA will be powered off and restarted by an external controllable power supply. The FPGA will be powered on again, restored to its initial normal working state, and the single-event flip detection process will be repeated.
[0028] The host computer portion of the test program runs on the PC, automatically completing the parsing, storage, and processing of the test data, and enabling real-time monitoring of the experimental process.
[0029] After the PC runs the host computer's test program, it first inputs the experimental parameters related to the experiment. These parameters include: neutron source irradiation dose (neutron flux, n / (cm²·s), where n is the number of neutrons); high-energy neutrons radiated by the neutron source, MeV; distance between the test board and the neutron source, cm; and the size of the RAM inside the FPGA chip under test, bits. The PC receives test data from a switch in the experimental environment via an Ethernet twisted-pair cable. After receiving the test data packet, the PC automatically runs the host computer program. It first parses the Ethernet packet containing the test data and then stores the parsed test data in the database. If the PC finds a serious fault in the FPGA in the parsed test data, it immediately sends a power-off restart signal to the controllable power supply to control the FPGA to power on and reset. After the PC completes data parsing and storage, it automatically processes the experimental data. The host computer program compares the abnormal BRAM and DRAM data recorded in the message with the standard test data bit by bit. The data bits that are inconsistent between the two are the positions where single-event upsets occur. The host computer program analyzes the status signal of the CRAM module in the message. When the CRAM enters the correction state from the observation state, it indicates that a single-event upset phenomenon has occurred in the CRAM. When the CRAM returns from the correction state to the observation state, it indicates that the ECC error correction is completed and the CRAM has returned to normal. The host computer program statistically analyzes the flip information and provides information such as the test duration, the number of RAM flips, the flip position, and the flip occurrence time. The PC calculates and displays the high-energy neutron single-event upset cross-sectional area of the FPGA chip and the single-event upset FIT rate of the chip. The FIT rate is defined as the number of single-event upset faults that occur in every 109 hours of chip operation. The variables required for the PC calculation are all calculated from the experimental parameters preset when the host computer program starts and the experimental data parsed from the test message.
[0030] The formula for calculating the high-energy neutron single-event flip cross-section of an FPGA chip on a PC is: , E n It is the energy of high-energy neutrons emitted by a neutron source. Φ neutron This is the amount of neutron injection received by the test chip, measured in n / cm². 2 ; N SEU It represents the number of single-event upset faults that occur in the test chip. N bit It tests the size of the internal RAM of the chip; σ SEU-bit ( E n() is the high-energy neutron single-event flip cross-section of the FPGA chip, and its unit is cm². 2 / bit.
[0031] Furthermore, the formula for calculating the single-event flip (FIT) rate of the FPGA chip using the PC is as follows: , in, SER This refers to the single-event flip (FIT) rate of the FPGA chip, expressed in n / 10. 9 h; S This refers to the number of chips participating in the neutron irradiation experiment. T It is the experimental time for the chip to be irradiated by a neutron source, and the unit is hours (h). φ real It is the atmospheric neutron flux at the actual installation and operation location of the chip, and the unit is n / (cm²·s); φ acc It is the neutron flux at the chip during the neutron irradiation experiment.
[0032] In summary, the single-event upset (SET) detection method for FPGA internal RAM involves the FPGA chip automatically running a test program after power-on to perform SET detection and correction on the three types of internal RAM resources. The FPGA chip sends the detection data to an external PC via Ethernet packets. The PC parses, stores, and processes the detection data and monitors the FPGA's operating status. A controllable power supply enables the FPGA to be reset upon power failure. Specifically: The controllable power supply module controls the power supply to the FPGA chip on the test board. When the PC detects an uncorrectable serious fault in the program of the FPGA under test, the controllable power supply disconnects the chip power and reconnects it to restore its normal working state. The controllable power supply module monitors the output power of the power supply in real time. When the power supply output power exceeds 100% of the normal level, a single-event latch-up fault occurs in the FPGA chip under test. At this time, the controllable power supply module automatically reduces the output power to the rated value of the test board within 200ms.
[0033] BRAM is built using the hard-core IP resources inside the FPGA chip. The BRAM control module controls the data reading and writing of the BRAM resources. DRAM is a soft-core IP built using the lookup table, register, and general logic resources inside the FPGA chip. The DRAM control module controls the data reading and writing of the DRAM resources. When data inconsistency occurs in the BRAM or DRAM due to single-event upsets, the BRAM control module and DRAM control module record the error information and transmit the relevant data to the single-event upset detection module. CRAM is the configuration data storage space inside the FPGA chip. The CRAM control module reads back and verifies the data in it. The CRAM control module uses both ECC and CRC to verify the configuration data in the CRAM. The CRAM control module transmits its own operating status information to the single-event upset detection module.
[0034] When performing BRAM and DRAM data testing, the entire BRAM and DRAM memory space is first traversed in address order. The test program sequentially reads the data stored in BRAM and DRAM, compares it with standard test data, and records the single-event flip type and flip address. After completing the reading and comparison of the original data, the test program writes new test data to overwrite the original data, completing the refresh of BRAM and DRAM data. The test program uses two sets of standard test data as the data to be written to BRAM and DRAM, and the two sets of data are written alternately. When performing CRAM data testing, the configuration data in CRAM is read back cyclically in address order for verification. Upon detecting a single-event upset (SWE) fault in the CRAM, the fault type and occurrence time are automatically recorded, and the ECC error correction function is activated. When the CRAM is in the verification state, the test program records it as an observation state in the message, and the observation state is "Observation". When it is in the error correction state, the test program records it as a correction state in the message, and the correction state is "Correction". The test program corrects single-bit flip or adjacent double-bit flip faults in the CRAM configuration data frame. If a serious SWE fault occurs in the configuration data in the CRAM, the test program enters an unreliable running state and records this serious fault in the data message to notify the PC.
[0035] After completing the detection of all data in RAM, the statistically obtained flip information is sent to an external PC, ending the current detection cycle. If no serious fault occurs inside the FPGA that affects the normal operation of the test program, the test program directly enters the next RAM data comparison process. If a serious fault occurs inside the FPGA that affects the normal operation of the test program, the FPGA will be powered off and restarted by an external controllable power supply. The FPGA will be powered on again, restored to its initial normal working state, and the single-event flip detection process will be repeated.
[0036] The host computer portion of the test program runs on the PC, automatically completing the parsing, storage, and processing of the test data, and enabling real-time monitoring of the experimental process.
[0037] After the PC runs the host computer's test program, it first inputs the experimental parameters related to the experiment. These parameters include: neutron source irradiation dose (neutron flux, n / (cm²·s), where n is the number of neutrons); high-energy neutrons radiated by the neutron source, MeV; distance between the test board and the neutron source, cm; and the size of the RAM inside the FPGA chip under test, bits. The PC receives test data from a switch in the experimental environment via an Ethernet twisted-pair cable. After receiving the test data packet, the PC automatically runs the host computer program. It first parses the Ethernet packet containing the test data and then stores the parsed test data in the database. If the PC finds a serious fault in the FPGA in the parsed test data, it immediately sends a power-off restart signal to the controllable power supply to control the FPGA to power on and reset. After the PC completes data parsing and storage, it automatically processes the experimental data. The host computer program compares the abnormal BRAM and DRAM data recorded in the message with the standard test data bit by bit. The data bits that are inconsistent between the two are the positions where single-event upsets occur. The host computer program analyzes the status signal of the CRAM module in the message. When the CRAM enters the correction state from the observation state, it indicates that a single-event upset phenomenon has occurred in the CRAM. When the CRAM returns from the correction state to the observation state, it indicates that the ECC error correction is completed and the CRAM has returned to normal. The host computer program statistically analyzes the flip information and provides information such as the test duration, the number of RAM flips, the flip position, and the flip occurrence time. The PC calculates and displays the high-energy neutron single-event upset cross-sectional area of the FPGA chip and the single-event upset FIT rate of the chip. The FIT rate is defined as the number of single-event upset faults that occur in every 109 hours of chip operation. The variables required for the PC calculation are all calculated from the experimental parameters preset when the host computer program starts and the experimental data parsed from the test message.
[0038] The embodiments of the present invention are given for illustrative and descriptive purposes only, and are not intended to be exhaustive or to limit the invention to the forms disclosed. Many modifications and variations will be apparent to those skilled in the art. The embodiments were chosen and described to better illustrate the principles and practical application of the invention, and to enable those skilled in the art to understand the invention and design various embodiments with various modifications suitable for a particular purpose.
Claims
1. A single-event upset detection method for FPGA internal RAM, characterized in that, The detection method is implemented using a device that includes the FPGA chip under test, an Ethernet interface, a switch, a controllable power supply, and a PC. First, in the experimental environment, the neutron source continuously emits high-energy neutrons, and the FPGA chip under test is placed close to the neutron source to be exposed to the radiation of high-energy neutrons. Then, a test program is run on the FPGA chip under test to capture the single-event flip phenomenon caused by high-energy neutrons. The switch is then placed in the experimental environment away from the neutron source radiation and shielded. The internal test program of the FPGA chip under test includes: RAM control program, single-event upset detection program, and detection data transmission program; The internal functional modules of the FPGA chip under test include: BRAM, CRAM, DRAM, BRAM control module, CRAM control module, DRAM control module, single event fault detection module, and detection data transmission module. The BRAM control module, CRAM control module, and DRAM control module control the corresponding BRAM, CRAM, and DRAM respectively. The BRAM control module, CRAM control module, and DRAM control module periodically and automatically perform single event fault detection on RAM data, automatically record single event fault information in RAM data, and correct erroneous data. The single-event upset detection module periodically collects the single-event upset fault information output by the RAM control module. The single-event upset detection module records the data address and flip type of the single-event upset fault in the BRAM and DRAM. The single-event upset detection module records the time and severity of the single-event upset fault in the CRAM. The detection data sending module periodically sends Ethernet packets containing single-particle flip fault information to the outside world; The Ethernet interface connects the FPGA chip under test to an external switch, and the connection medium is an Ethernet twisted pair cable. The switch transmits the test data sent by the FPGA chip under test to a remote PC, thereby realizing the uploading of test data; The PC is operated by the experimenter in a radiation-free safe area. It receives test data from the switch, parses and stores the data, and automatically calculates the real-time single-event upset (SET) failure rate of the chip under test based on the obtained experimental data and parameters. Simultaneously, the PC analyzes the running status of the test program in the FPGA chip and controls the on / off state of the controllable power supply. During BRAM and DRAM data testing, the entire BRAM and DRAM storage space is first traversed in address order. The test program sequentially reads the data stored in BRAM and DRAM, compares it with standard test data, and records the SET type and flip address. After reading and comparing the original data, the test program writes new test data to overwrite the original data, completing the BRAM and DRAM data refresh. The test program uses two sets of standard test data as the data to be written. Data in BRAM and DRAM is written alternately. During CRAM data detection, the configuration data in CRAM is read back cyclically in address order for verification. After the test program detects a single-event upset (SWEET) fault in CRAM, it automatically records the fault type and occurrence time and starts the ECC error correction function. When CRAM is in the verification state, the test program records it as an observation state in the message, and the observation state is "Observation". When it is in the error correction state, the test program records it as a correction state in the message, and the correction state is "Correction". The test program corrects single-bit flip or adjacent double-bit flip faults in the CRAM configuration data frame. If a serious SWEET fault occurs in the configuration data in CRAM, the test program enters an unreliable running state and records this serious fault in the data message to notify the PC.
2. The single-event upset detection method for FPGA internal RAM according to claim 1, characterized in that, The FPGA chip and Ethernet interface under test are fixed on the test board and placed in an experimental environment that radiates high-energy neutrons, while the controllable power supply and PC are placed in a safe environment without neutron radiation.
3. The single-event upset detection method for FPGA internal RAM according to claim 1, characterized in that, The controllable power supply module controls the power supply to the FPGA chip on the test board. When the PC detects an uncorrectable serious fault in the program of the FPGA under test, the controllable power supply disconnects the chip power and reconnects it to restore its normal working state. The controllable power supply module monitors the output power of the power supply in real time. When the power supply output power exceeds 100% of the rated value, a single-event latch-up fault occurs in the FPGA chip under test. At this time, the controllable power supply module automatically reduces the output power to the rated value of the test board within 200ms.
4. The single-event upset detection method for FPGA internal RAM according to claim 1, characterized in that, The BRAM is built using the hard-core IP resources inside the FPGA chip, and the BRAM control module controls the data reading and writing of the BRAM resources. The DRAM is a soft-core IP built using the lookup table, register, and general logic resources inside the FPGA chip, and the DRAM control module controls the data reading and writing of the DRAM resources. When data inconsistency occurs in the BRAM or DRAM due to single-event upsets, the BRAM control module and the DRAM control module record the error information and transmit the relevant data to the single-event upset detection module. The CRAM is the configuration data storage space inside the FPGA chip, and the CRAM control module reads back and verifies the data in it. The CRAM control module uses both ECC and CRC methods to verify the configuration data in the CRAM. The CRAM control module transmits its own operating status information to the single-event upset detection module.
5. The single-event upset detection method for FPGA internal RAM according to claim 1, characterized in that, After the detection of all data in RAM is completed, the statistically obtained flip information is sent to an external PC, ending the current detection cycle. If no serious fault occurs inside the FPGA that affects the normal operation of the test program, the test program directly enters the next RAM data comparison process. If a serious fault occurs inside the FPGA that affects the normal operation of the test program, the FPGA will be powered off and restarted by an external controllable power supply. The FPGA will be powered on again and restored to its initial normal working state to repeat the single-event flip detection process.
6. The single-event upset detection method for FPGA internal RAM according to claim 1, characterized in that, The PC runs the host computer portion of the test program, which automatically completes the parsing, storage, and processing of the test data, enabling real-time monitoring of the experimental process.
7. The single-event upset detection method for FPGA internal RAM according to claim 6, characterized in that, After the PC runs the host computer's test program, it first inputs the experimental parameters related to the experiment. These parameters include: neutron source irradiation dose (neutron flux, n / (cm²·s), where n is the number of neutrons); high-energy neutrons radiated by the neutron source, MeV; distance between the test board and the neutron source, cm; and the size of the RAM inside the FPGA chip under test, bits. The PC receives test data from the switch in the experimental environment via an Ethernet twisted-pair cable. After receiving the test data packet, the PC automatically runs the host computer program. It first parses the Ethernet packet containing the test data and then stores the parsed test data in the database. If the PC finds a serious fault in the FPGA in the parsed test data, it immediately sends a power-off restart signal to the controllable power supply to control the FPGA to power on and reset. After the PC completes data parsing and storage, it automatically processes the experimental data. The host computer program compares the abnormal BRAM and DRAM data recorded in the message with the standard test data bit by bit. The data bits that are inconsistent between the two are the positions where single-event upsets (SWEs) occur. The host computer program analyzes the status signal of the CRAM module in the message. When the CRAM enters the correction state from the observation state, it indicates that a SWE has occurred in the CRAM. When the CRAM returns from the correction state to the observation state, it indicates that the ECC error correction is complete and the CRAM has returned to normal. The host computer program statistically analyzes the flip information and provides information such as the test duration, the number of RAM flips, the flip position, and the flip occurrence time. The PC calculates and displays the high-energy neutron single-event upset cross-sectional area of the FPGA chip and the chip's single-event upset FIT rate, where the FIT rate is defined as the rate at which the chip operates for 10 seconds. 9 The number of single-event upset faults occurring within an hour is calculated by the PC based on the experimental parameters preset during the startup of the host computer program and the experimental data parsed from the test messages.
8. The single-event upset detection method for FPGA internal RAM according to claim 7, characterized in that, The formula for calculating the high-energy neutron single-event flip cross-section of the FPGA chip using a PC is as follows: , E n It is the energy of high-energy neutrons emitted by a neutron source. Φ neutron This is the amount of neutron injection received by the test chip, measured in n / cm². 2 ; N SEU It represents the number of single-event upset faults that occur in the test chip. N bit It tests the size of the internal RAM of the chip; σ SEU-bit ( E n () is the high-energy neutron single-event flip cross-section of the FPGA chip, and its unit is cm². 2 / bit.
9. A single-event upset detection method for FPGA internal RAM according to claim 7, characterized in that, The formula for calculating the single-event flip (FIT) rate of the FPGA chip using a PC is as follows: , in, SER This refers to the single-event flip (FIT) rate of the FPGA chip, expressed in n / 10. 9 h; S This refers to the number of chips participating in the neutron irradiation experiment. T It is the experimental time for the chip to be irradiated by a neutron source, and the unit is hours (h). φ real It is the atmospheric neutron flux at the actual installation and operation location of the chip, and the unit is n / (cm²·s); φ acc It is the neutron flux at the chip during the neutron irradiation experiment.
Citation Information
Patent Citations
Off-chip configuration and readback FPGA device
CN103631738A
SRAM type FPGA single particle irradiation test system and method
CN103744014A
Real-time classification marking method, system and equipment for single event upset data
CN112631544A
