A single-particle upset fault simulation system, method and storage medium
Through the single-event flip fault simulation system in the aerospace field, the collaborative work of the host computer and the lower computer is used to simulate the fault flip circuit, which solves the problem of single-event flip faults on the waste of processing system resources and reduced reliability, and achieves efficient Data processing and transmission reliability.
Patent Information
- Application Number
- CN202111171013.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-08
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2041-10-08
AI Technical Summary
When existing technologies mitigate the impact of single-event flipping faults on processing systems, they suffer from resource waste and reduced reliability, especially in the aerospace field, where the reliability of data processing and transmission is affected.
Design a single-event flipping fault simulation system. Through the collaborative work of the upper computer and the lower computer, the flag information is used to encode and analyze the original data and flipping configuration information, build a simulated fault flipping circuit, simulate the single-event flipping fault, and calculate the error. bit rate to improve the reliability of data processing and transmission.
This method can save on-board resources of the processing system, improve the reliability of data processing and transmission, is highly practical for test circuits that occupy a large proportion of on-board resources, and provides an effective test method for simulating single-particle flipping.
Smart Images

Figure CN114090362B
Abstract
Description
Technical Field
[0001] The present invention mainly relates to the field of aerospace technology, and in particular to a single particle upset fault simulation system, method and storage medium. Background Art
[0002] When the lower-level processing system realizes data information processing and transmission, the impact of single particles or heavy ions in space on semiconductor materials can easily cause the internal register data to flip, thereby affecting the internal operating logic of the processing system or even the overall failure of the processing system. The impact of single event upset (SEU) on the processing system is particularly obvious. SEU refers to the logic state flip caused by high-energy particles in space bombarding the configuration storage area circuit or functional circuit on the chip. The SEU failure of the configuration storage area will cause the change of the functional circuit structure, which is permanent without circuit refresh; the SEU failure of the functional circuit will cause errors in the calculation results, and the calculation error is diffusive and persistent. SEU failure will cause abnormalities in the internal circuit of the device, resulting in the circuit not being able to work normally, seriously affecting the reliability and security of data processing and transmission in the space application system.
[0003] The existing technology generally reduces the impact of SEU on devices by increasing the single-particle resistance of devices, such as using triple-module redundancy (TMR) technology to increase the single-particle resistance of devices, thereby obtaining a more accurate data code stream. However, since the overall resources of the entire processing system are limited, performing TMR on all modules not only reduces the reliability of data processing and transmission, but also increases unnecessary waste of on-board resources. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a single-particle upset fault simulation system, method and storage medium in view of the deficiencies in the prior art.
[0005] The technical solution of the present invention to solve the above technical problem is as follows: a single-particle upset fault simulation system, comprising a host computer and a slave computer;
[0006] The upper computer is used to import the original data, the flip configuration information and the flag information, and perform coding analysis on the original data and the flip configuration information according to the flag information to obtain coding information, and send the coding information to the lower computer;
[0007] The lower computer is used to receive the encoded information, decode and analyze the encoded information to obtain decoded data; construct a simulated fault flip circuit, and perform a single particle flip fault simulation on the decoded data through the simulated fault flip circuit to obtain simulated data; calculate the bit error rate between the decoded data and the simulated data, and use the simulated data and the bit error rate as simulation results.
[0008] Another technical solution of the present invention to solve the above technical problem is as follows: a single-particle upset fault simulation method, comprising:
[0009] Importing original data, flip configuration information and flag information, and performing encoding analysis on the original data and the flip configuration information according to the flag information to obtain encoding information;
[0010] Decoding and analyzing the encoded information to obtain decoded data;
[0011] Constructing a simulated fault flip circuit, and performing a single-particle flip fault simulation on the decoded data through the simulated fault flip circuit to obtain simulated data;
[0012] The bit error rate between the decoded data and the simulated data is calculated, and the simulated data and the bit error rate are used as simulation results.
[0013] Another technical solution of the present invention to solve the above technical problem is as follows: a single-particle flip fault simulation system includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the single-particle flip fault simulation method as described above is implemented.
[0014] Another technical solution of the present invention to solve the above technical problem is as follows: a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the single-particle upset fault simulation method as described above is implemented.
[0015] The beneficial effects of the present invention are as follows: encoding and analyzing the original data and the flip configuration information through the flag information to obtain the encoded information, decoding and analyzing the encoded information to obtain the decoded data, simulating the single-particle flip fault of the decoded data through the simulated fault flip circuit to obtain the simulated data, calculating the bit error rate between the decoded data and the simulated data, and using the simulated data and the bit error rate as the simulation results, which can save the on-board resources of the processing system and increase the reliability of data processing and transmission. It has high practicality for the test circuit that occupies a large proportion of the on-board resources and provides guidance for the test method of realizing the simulated single-particle flip. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A structural block diagram of a single event upset fault simulation system provided by an embodiment of the present invention;
[0017] Figure 2 A structural block diagram of first coded information of a single event upset fault simulation system provided by an embodiment of the present invention;
[0018] Figure 3 A structural block diagram of second coded information of a single event upset fault simulation system provided by an embodiment of the present invention;
[0019] Figure 4 A circuit diagram of a simulated fault flip circuit of a single event flip fault simulation system provided by an embodiment of the present invention;
[0020] Figure 5 A structural block diagram of a conventional method for simulating a single event upset fault based on first coding information in a single event upset fault simulation system provided by an embodiment of the present invention;
[0021] Figure 6 A structural block diagram of a new method for simulating a single event upset fault based on second coding information in a single event upset fault simulation system provided by an embodiment of the present invention;
[0022] Figure 7 A flowchart of interface transmission under register simulation fault injection of a single event upset fault simulation system provided by an embodiment of the present invention;
[0023] Figure 8 A structural diagram of the hardware processing of a lower computer of a single event upset fault simulation system provided by an embodiment of the present invention;
[0024] Fig. 9 A schematic diagram of a flow chart of a single event upset fault simulation method provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0025] The principles and features of the present invention are described below in conjunction with the accompanying drawings. The examples given are only used to explain the present invention and are not used to limit the scope of the present invention.
[0026] Figure 1 A module block diagram of a single event upset fault simulation system provided by an embodiment of the present invention.
[0027] like Figure 1 As shown, a single-particle upset fault simulation system includes an upper computer and a lower computer;
[0028] The upper computer is used to import the original data, the flip configuration information and the flag information, and perform coding analysis on the original data and the flip configuration information according to the flag information to obtain coding information, and send the coding information to the lower computer;
[0029] The lower computer is used to receive the encoded information, decode and analyze the encoded information to obtain decoded data; construct a simulated fault flip circuit, and perform a single particle flip fault simulation on the decoded data through the simulated fault flip circuit to obtain simulated data; calculate the bit error rate between the decoded data and the simulated data, and use the simulated data and the bit error rate as simulation results.
[0030] It should be understood that the system involved in the present invention is composed of a control end on the PC end (i.e., the host computer) and a processing end on the processing board of the lower computer. The PC end (i.e., the host computer) mainly completes human-computer interaction and simulation data flow generation and data recovery processing and analysis, and forms a flip state injection data set by setting the register state and flip time to be flipped, and then forms a data code stream combined with image information to send to the lower computer processing end (i.e., the lower computer), and the processing end (i.e., the lower computer) is mainly a test circuit.
[0031] Preferably, the lower computer processing system may adopt FPGA, but is also applicable to DSP.
[0032] It should be understood that the original data in the present invention can be either image data or other data stream information.
[0033] Specifically, the present invention relates to the design of two parts: the upper computer control end (i.e., the upper computer) and the lower computer processing end (i.e., the lower computer). The control end part (i.e., the upper computer) mainly completes the human-computer interaction and simulation data flow generation and the recovery data processing and analysis; the processing end part (i.e., the upper computer) mainly completes the reception, decoding, and processing of the protocol data transmitted from the sending end.
[0034] In the above embodiment, the encoding analysis of the original data and the flip configuration information is performed through the flag information to obtain the encoded information, the decoding analysis of the encoded information is performed to obtain the decoded data, the single-particle flip fault simulation of the decoded data is performed through the simulated fault flip circuit to obtain the simulated data, the bit error rate between the decoded data and the simulated data is calculated, and the simulated data and the bit error rate are used as the simulation results. This can save on-board resources of the processing system and increase the reliability of data processing and transmission. It has high practicality for test circuits that occupy a large proportion of on-board resources and provides guidance for implementing a test method for simulating a single-particle flip.
[0035] Optionally, as an embodiment of the present invention, Figures 2 to 3As shown, the flag information includes a first flag and a second flag, and the specific process of the host computer encoding and analyzing the original data and the flip configuration information according to the flag information is as follows:
[0036] S11: Determine whether the first flag bit is a preset flag bit; if so, execute S12; if not, execute S13;
[0037] S12: performing partial dynamic reconfiguration on the simulated fault flipping circuit to obtain a reconfigured simulated fault flipping circuit, and executing S13;
[0038] S13: Determine whether the second flag is a preset flag; if not, execute S14; if yes, execute S15;
[0039] S14: Encode the flip configuration information and the original data according to the first flag bit and the second flag bit to obtain first encoding information;
[0040] S15: performing software simulation on the original data according to the flip configuration information to obtain simulation data, and encoding the flip configuration information, the simulation data and the original data according to the first flag bit and the second flag bit to obtain second encoding information;
[0041] The first coding information or the second coding information is the coding information.
[0042] Preferably, the preset flag bit may be 1.
[0043] It should be understood that the simulated fault flip circuit is partially dynamically reconfigured using the VIVADO tool to obtain a reconfigured simulated fault flip circuit.
[0044] It should be understood that the first flag bit is used to select register fault simulation (ie, the first flag bit is a preset flag bit) or register bit stream simulation (ie, the first flag bit is not a preset flag bit).
[0045] It should be understood that the human-computer interaction of the sending end (i.e., the host computer) is mainly through selecting the fault injection mode, and configuring the corresponding flip area, flip position, flip start time, duration and other control parameters according to the selected mode, and then combining the normal image data to be processed and the data stream of the normal output of the prediction processing end, and finally encoding it into a set of data code streams through a custom communication protocol. Then the encoded data code stream is sent to the processing end (i.e., the lower computer) through the sending module. The sending end (i.e., the host computer) is mainly divided into two modules: the configuration module and the sending module: the configuration module is mainly to configure the control information and the custom communication protocol encoding; the sending module can use the network port or the serial port and USB as long as it sends the protocol data to the processing end. Since the amount of data for the entire flip fault simulation is huge, the present invention uses UDP with a faster transmission speed as the sending module.
[0046] Specifically, Figure 2 As shown, the first coding information is mainly composed of 6 parts, namely, frame header, auxiliary information, flip configuration information, normal input data (i.e., the original data), bit error rate, and frame tail. The main function of the frame header and frame tail is to enable the lower computer to determine the start and end of each frame; the auxiliary information is mainly the pairing information required by the upper computer sending end and the receiving end, and also includes the setting of some parameters necessary for the test circuit (i.e., the simulated fault flip circuit); the function of the flip configuration information is mainly to configure the flip state of the corresponding register, and the flip configuration information includes the flip start position, the flip duration, and the flip bit control. The flip start position is used to set the processing end to receive the specified number of data bytes to start the fault simulation flip, and the flip duration is used to set the duration of the processing end to simulate the fault flip. After the set time is reached, it returns to normal and no longer simulates the fault flip. The flip bit control is used to set the enable control matrix in the simulated fault flip circuit, so as to achieve the function of artificially simulating the fault flip; the normal input data is the image data (i.e., the original data), which is determined according to the selected picture size; the bit error rate is used to store the value of the data comparison output of the processing end.
[0047] Specifically, Figure 3 As shown, the second coded information is compared with Figure 2 For the processor, there is only one more normal output data (i.e. the simulation data). This part is directly obtained through the software simulation of the PC end (i.e. the host computer), and then it and the normal input data (i.e. the original data) are encoded into a custom protocol data stream and transmitted to the processing end (i.e. the slave computer) through the interface.
[0048] It should be understood that the specific communication protocol selected is determined by the value of a certain byte in the auxiliary information (ie, the second flag bit). Figure 2The first coding information, at this time the host computer does not perform software simulation; when the byte is 1, use Figure 3 The second coded information, at this time, the host computer obtains normal output data (ie, the original data) through software simulation.
[0049] In the above embodiment, the reliability of data processing and transmission is increased by encoding and analyzing the original data of the flag information and the flip configuration information. This has high practicality for test circuits that occupy a large proportion of on-board resources and provides a solution for processing chips or devices in the aerospace field when SEU effects occur.
[0050] Optionally, as an embodiment of the present invention, Figures 2 to 3 As shown, the specific process of the lower computer decoding and analyzing the coded information is as follows:
[0051] Decoding the first coded information to obtain first decoded data, where the first decoded data includes a first flag bit, a second flag bit, flip configuration information, and original data;
[0052] or,
[0053] Decoding the second coded information to obtain initial decoded data, a first flag bit, a second flag bit, and flip configuration information;
[0054] Separating the initial decoded data to obtain simulation data and original data, and using the simulation data, the original data, the first flag bit, the second flag bit, and the flip configuration information as second decoded data;
[0055] The first decoded data or the second decoded data is the decoded data.
[0056] It should be understood that the lower computer knows which communication protocol is used by reading the value of the byte (i.e., the second flag bit), and then performs corresponding processing on the separated data according to different communication protocols (i.e., performs corresponding processing on the first encoded information or the second encoded information).
[0057] It should be understood that, for the second coded information, the lower computer processing end (ie, the lower computer) decodes and performs data separation.
[0058] In the above embodiment, the encoded information is decoded and analyzed, which increases the reliability of data processing and transmission. It is highly practical for test circuits that occupy a large proportion of on-board resources and provides a solution for processing chips or devices in the aerospace field when SEU effects occur.
[0059] Optionally, as an embodiment of the present invention, Figure 4As shown, the analog fault flip circuit includes a plurality of first two-input selectors, a plurality of second two-input selectors and an enable control matrix. The specific process of the lower computer constructing the analog fault flip circuit is as follows:
[0060] The number of the first two-input selectors and the second two-input selectors both matches the number of bits of the register to be simulated;
[0061] The register to be simulated specifically exists in the FPGA in the form of a multi-input multi-output trigger structure, and each bit of the register includes an input trigger and an output trigger;
[0062] Each of the first two input selectors is connected between the corresponding input trigger and the output trigger, each of the second two input selectors is connected after the corresponding output trigger, and the enable control matrix is connected to each of the second two input selectors and each of the first two input selectors.
[0063] Specifically, Figure 4As shown in the figure, this is a circuit structure with 8 inputs and 8 outputs, which correspond to input registers and output registers respectively. These registers are all in the form of trigger structures and exist in FPGA. Assuming that these input and output registers are specified as registers that need to simulate fault flipping, a set of circuits need to be constructed to simulate the above registers to realize bit flipping. This added circuit is a two-input selector. By controlling the input selection enable end of the two-input selector through the enable control matrix, it can be determined whether the output is the Q end or the / Q end of the original trigger output. For example: when the value of the two-input selector is 1, the output value of the two-input selector is the inverse of the input value of the two-input selector; when the value of the two-input selector is 0, the output value of the two-input selector is equal to the input value of the two-input selector (of course, it can also be defined that when the value of the two-input selector is 1, the output value is equal to the input value, and when its value is 0, the output value is equal to the inverse of the input value). Assume that the first image pixel value is 1 (00000001 in binary), that is, Signal_in[0] is 1, and the other Signal_in[1] to Signal_in[7] values are all 0. Assume that the values of the two input selectors between Signal_in[0] and Signal_out[0] are both 0, that is, the register does not perform analog flipping. At this time, the value of Signal_in[0] passes through two NOT gates, and the value of Signal_out[0] is also 1. However, suppose that the first of the two input selectors is 0 and the second is 1, then Signal_ The value of in[0] 1 is 0 after passing through the first NOT gate, that is, the input value of the first two-input selector is 0, but at this time the value of the first two-input selector is 0 (not the input value, but the value assigned by the control matrix), so the output value of the two-input selector is equal to the input value of the two-input selector is equal to 0. At this time, the value after passing through the second NOT gate is 1, that is, the input value of the second two-input selector is 1, but at this time the value of the second two-input selector is 1, so the output value of the two-input selector is equal to the inverse value of the input value of the two-input selector, which is equal to 0, that is, the obtained value of Signal_out[0] is 0.
[0064] The configuration register flip setting on the control end is to configure the values of these two-input selectors, so that the flipping of each bit of the input 8-bit register and the flipping of each bit of the output 8-bit register can be controlled, thereby realizing the register simulation fault bit flipping. In this way, the impact of the bit flip in the specified register on the system circuit function can be studied, thereby realizing the flip simulation.
[0065] In the above embodiment, a simulated fault flip circuit is constructed to increase the single-event resistance of the device, thereby obtaining a more accurate data code stream.
[0066] Optionally, as an embodiment of the present invention, the specific process of the lower computer performing single-particle upset fault simulation on the decoded data through the simulated fault upset circuit is:
[0067] Determining whether the first flag bit is the preset flag bit;
[0068] If yes, inputting the flip configuration information and the original data into the reconfigured simulated fault flip circuit to perform a first single-particle flip fault simulation to obtain first simulated data;
[0069] If not, inputting the flip configuration information and the original data into the simulated fault flip circuit to perform a second single-particle flip fault simulation to obtain second simulated data;
[0070] The first post-simulation data or the second post-simulation data is the post-simulation data.
[0071] In the above embodiment, the single particle upset fault simulation of the decoded data by simulating the fault flip circuit can save on-board resources of the processing system and increase the reliability of data processing and transmission. It is very practical for the test circuit that occupies a large proportion of on-board resources.
[0072] Optionally, as an embodiment of the present invention, the lower computer calculates the bit error rate between the decoded data and the simulated data, and uses the simulated data and the bit error rate as the simulation result. The specific process is:
[0073] Determining whether the first flag bit is the preset flag bit;
[0074] If yes, taking the first post-simulation data as the simulation result;
[0075] If not, determining whether the second flag bit is the preset flag bit;
[0076] If yes, then calculating the bit error rates of the simulation data and the second simulated data to obtain a first bit error rate, and using the second simulated data and the first bit error rate as the simulation result;
[0077] If not, the bit error rates of the original data and the second simulated data are calculated to obtain a second bit error rate, and the second simulated data and the second bit error rate are used as the simulation result.
[0078] In the above embodiment, the bit error rate between the decoded data and the simulated data is calculated, and the simulated data and the bit error rate are used as simulation results. This can save on-board resources of the processing system and increase the reliability of data processing and transmission. It is very practical for test circuits that occupy a large proportion of on-board resources.
[0079] Optionally, as an embodiment of the present invention, the lower computer is further used for:
[0080] The simulation result is encoded to obtain feedback encoding information, and the feedback encoding information is sent to the host computer.
[0081] In the above embodiment, the simulation result is encoded to obtain the return encoding information, and the return encoding information is sent to the host computer to facilitate the processing of the simulation result.
[0082] Optionally, as an embodiment of the present invention, the host computer is further used for:
[0083] The returned coded information is decoded to obtain a simulation result, and the simulation result is stored in a preset database.
[0084] It should be understood that the receiving end (i.e., the host computer) mainly receives the processed data transmitted by the processing end and stores it in the database in categories. The receiving end is mainly divided into two modules. One is the receiving module: this module also adopts the UDP communication protocol; the other is the database module: after receiving the data, the receiving end micro-processes the received data and transmits it to the database module. The database module then stores the corresponding information obtained after micro-processing in the database in categories for subsequent processing.
[0085] In the above embodiment, the returned coded information is decoded to obtain a simulation result, and the simulation result is stored in a preset database to facilitate reading and modifying the data.
[0086] Optionally, as an embodiment of the present invention, the system involved in the present invention is composed of a control end on a PC end (i.e., the host computer) and a processing end on a processing board of a lower computer. The PC end (i.e., the host computer) mainly completes human-computer interaction and simulation data flow generation and data recovery processing and analysis. By setting the register state and flip time to be flipped, a flip state injection data set is formed, which is then combined with image information to form a data code stream and sent to the lower computer processing end. The processing end is mainly a test circuit. In addition to using two groups of circuits under test for comparison, i.e., one group performs fault simulation flipping and the other group does not perform fault simulation flipping, the present invention makes the normal data code stream (i.e., the original data) flow to the fault simulation flip test circuit (i.e., the simulated fault flip circuit) and the normal test circuit without simulated fault flipping, and then compares the output data streams of the two groups of test circuits by controlling the timing and other control conditions. It also proposes that the normal input data (i.e., the original data) is input by the PC end host computer. After software simulation processing, normal output data (i.e., the simulation data) is obtained, and normal input data (i.e., the original data) and normal output data (i.e., the simulation data) are encoded into a custom protocol data stream and transmitted to the processing end through an interface. Then, the lower computer processing end decodes and separates the data, and sends the normal input data (i.e., the original data) to a fault simulation flip test circuit (i.e., the simulated fault flip circuit) to obtain simulated flip output data (i.e., the second simulated data), and then compares the normal output data (i.e., the simulation data) obtained by data separation, thereby achieving the traditional data comparison function. This simulation method does not require two sets of test circuits, which can save on-board resources of the processing system, and has high practicality for test circuits that occupy a large proportion of on-board resources. In principle, the larger the test circuit, the stronger the practicality of the simulation method, but the larger the test circuit, the greater the difficulty of realizing software simulation, so it is necessary to reasonably select the correct fault simulation method. At the same time, the PC end of the invention also provides a method for directly modifying the bits file downloaded to the processing system, and the simulation of single-particle flip situations is realized by directly modifying the circuit structure.
[0087] It should be understood that the processing end mainly receives and decodes the communication protocol data transmitted by the sending end, and controls the corresponding flip area, flip bit, flip start time, duration and other parameters according to the control flip parameters obtained after decoding, thereby completing the processing of the protocol data, and then returns the processed data to the receiving end. The processing end is mainly divided into three modules: the transceiver module, the decoding module and the processing module: the transceiver module also adopts the UDP communication protocol, corresponding to the transceiver module of the control end, through which the coded data string of the sending end is transmitted to the decoding module and the data string processed by the processing module is sent to the receiving end; the decoding module obtains the flip control parameters by decoding the communication protocol data, and transmits these parameters and the target data to the processing module; the processing module controls the corresponding register to achieve flipping by obtaining the flip control parameters transmitted by the decoding module, and then transmits the target data to the register that has achieved flipping to obtain the flip fault code stream, and finally transmits it to the transceiver module.
[0088] Optionally, as another embodiment of the present invention, the present invention generates a simulated particle flip test sequence code stream by artificially simulating the particle flip range or flip register setting, and injects it into the FPGA processing system. Through the configuration information transmitted from the control end, the control simulated particle flip module in the FPGA processing system controls the corresponding code stream flip to achieve the purpose of artificial particle flipping, and then returns the flipped fault code stream to the receiving end for data storage.
[0089] Optionally, as an embodiment of the present invention, Figure 5 As shown, it is mainly through register fault simulation injection that single-particle upset fault simulation injection is achieved by controlling the output state of the specified register to obtain enough simulated fault results, and then classify and store them in the database.
[0090] The particle flip range or the simulated particle flip register setting is simulated through the human-computer interaction interface of the control end (sending end), and then these settings are converted into the corresponding simulated particle flip test sequence code stream in the configuration module, which is framed with the target code stream (the code stream data to be tested, the cloud map code stream (i.e., the original data) is used in the present invention), and is sent to the transceiver module of the processing end by the sending module; the transceiver module of the processing end receives the code stream data and decodes it to obtain a normal data code stream, and these normal data code streams (i.e., the original data) flow to two groups of test circuits respectively, one of which will be simulated after being controlled by the control unit of the simulated particle flip (the corresponding flip control is performed according to the flip information configuration obtained by decoding). The data code stream of particle flipping (i.e., the second simulated data) and the normal data code stream (i.e., the original data) obtained without simulating flipping are compared with the data code stream simulating particle flipping (i.e., the second simulated data) in the comparison unit to obtain the bit error rate under the flipping configuration. The bit error rate and the data code stream simulating particle flipping (i.e., the second simulated data) are framed and then transmitted to the receiving module of the receiving end through the transceiver module; the receiving end classifies the received fault code stream and bit error rate according to the different simulated particle flipping results and stores them in the code stream database, and then analyzes these fault code streams through the database to provide corresponding TMR suggestions for the entire processing system.
[0091] Optionally, as an embodiment of the present invention, Figure 5 and 6 As shown, Figure 5 Compared with the conventional method, there is one less set of test circuits, and in the decoding module, the normal output data (i.e., the simulation data) in the custom communication protocol is directly separated through data separation, and then the normal input data (i.e., the original data) is sent to the fault simulation flip test circuit (i.e., the simulated fault flip circuit) to obtain the simulated flipped output data (i.e., the second simulated data), which is then compared with the normal output data (i.e., the simulation data) obtained by data separation. This method does not require two sets of test circuits, can save on-board resources of the processing system, and is very practical for test circuits that occupy a large proportion of on-board resources.
[0092] Optionally, as an embodiment of the present invention, Figure 7As shown, the fault injection mode is collected through the human-machine interface, and classified and processed according to the selected mode. If the register simulation fault type is selected, it is necessary to count the number of target registers, and then expand them to the bit unit for permutation and combination to form a control sequence for simulating faults. This sequence is used to enable the binary selector added after the control register. Finally, a complete set of sequences is transmitted to the FPGA end through the interface for bottom-level processing. During the transmission process, the interface can be used for feedback to control the continuity of the transmission and avoid data blocking. If the bit stream simulation of the configuration register is selected, it is necessary to start the program to call the vivado software to analyze the configuration bit stream, and then modify the configuration memory according to the selected device, and finally generate the configuration bit stream and download it to the target board for testing.
[0093] Optionally, as an embodiment of the present invention, the present invention will automatically initialize the parameters of each module when it runs successfully. When the present invention runs successfully, first select the code stream data to be tested (the present invention adopts the cloud code stream, that is, the original data). After selection, the custom frame header, frame tail, configuration information and target data (cloud code stream) can be encoded by the custom protocol. If the fault injection mode selected at this time is the register simulation fault (that is, the first flag bit is not the preset flag bit), the single-particle flip configuration setting needs to be performed in this mode, and then it is framed into the custom protocol, and then the protocol data is sent to the processing end through the network port for processing. In this mode, the processing end needs a decoding module to decode the flip configuration to simulate the single-particle flip of the register, which is also the main method used by the present invention; if the register bit stream simulation is selected (that is, the first flag bit is the preset flag bit), the configuration bit stream is modified by calling the vivado software. This method directly modifies the circuit structure of the FPGA processing system (that is, the simulated fault flip circuit), and directly makes the register corresponding to the circuit structure (that is, the simulated fault flip circuit) realize bit flip, which belongs to the circuit-level register flip fault simulation. The receiving end classifies the error information and stores it in the database for subsequent analysis and research.
[0094] Optionally, as an embodiment of the present invention, Figure 8 As shown, by decoding the received normal data code stream (i.e., the first coded information or the second coded information), it is determined whether it is a register simulation fault or a bit stream fault: if it is a register simulation fault, the register is controlled to be flipped according to the relevant information obtained by decoding; if it is a bit stream fault, since the circuit structure of the register has changed at this time, it does not need to be flipped. In this way, a data code stream simulating particle flipping (i.e., the second simulated data) will be obtained, and it can be compared with the normal data code stream (i.e., the original data) to obtain the bit error rate generated after the simulated particle flipping, and then it is framed and sent to the receiving end of the control end through the transceiver module.
[0095] Fig. 9 A schematic diagram of a flow chart of a single event upset fault simulation method provided in an embodiment of the present invention.
[0096] Optionally, as another embodiment of the present invention, Fig. 9 As shown, a single event upset fault simulation method includes:
[0097] Importing original data, flip configuration information and flag information, and performing encoding analysis on the original data and the flip configuration information according to the flag information to obtain encoding information;
[0098] Decoding and analyzing the encoded information to obtain decoded data;
[0099] Constructing a simulated fault flip circuit, and performing a single-particle flip fault simulation on the decoded data through the simulated fault flip circuit to obtain simulated data;
[0100] The bit error rate between the decoded data and the simulated data is calculated, and the simulated data and the bit error rate are used as simulation results.
[0101] Optionally, another embodiment of the present invention provides a single-particle upset fault simulation system, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the single-particle upset fault simulation method described above is implemented. The device may be a computer or other device.
[0102] Optionally, another embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the single-particle upset fault simulation method as described above is implemented.
[0103] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0104] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0105] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.
[0106] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0107] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. For such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0108] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A single event upset fault simulation system, characterized in that: Including upper computer and lower computer; The upper computer is used to import the original data, the flip configuration information and the flag information, and perform coding analysis on the original data and the flip configuration information according to the flag information to obtain coding information, and send the coding information to the lower computer; The lower computer is used to receive the coded information, and decode and analyze the coded information to obtain decoded data; construct a simulated fault flip circuit, and perform a single particle flip fault simulation on the decoded data through the simulated fault flip circuit to obtain simulated data; Calculating a bit error rate between the decoded data and the simulated data, and using the simulated data and the bit error rate as simulation results; The flag information includes a first flag and a second flag. The specific process of the host computer encoding and analyzing the original data and the flip configuration information according to the flag information is as follows: S11: Determine whether the first flag bit is a preset flag bit; if so, execute S12; if not, execute S13; S12: performing partial dynamic reconfiguration on the simulated fault flipping circuit to obtain a reconfigured simulated fault flipping circuit, and executing S13; S13: Determine whether the second flag is a preset flag; if not, execute S14; if yes, execute S15; S14: Encode the flip configuration information and the original data according to the first flag bit and the second flag bit to obtain first encoding information; S15: performing software simulation on the original data according to the flip configuration information to obtain simulation data, and encoding the flip configuration information, the simulation data and the original data according to the first flag bit and the second flag bit to obtain second encoding information; The first coding information or the second coding information is the coding information.
2. The single event upset fault simulation system according to claim 1, characterized in that: The specific process of the lower computer decoding and analyzing the coded information is as follows: Decoding the first coded information to obtain first decoded data, where the first decoded data includes a first flag bit, a second flag bit, flip configuration information, and original data; or, Decoding the second coded information to obtain initial decoded data, a first flag bit, a second flag bit, and flip configuration information; Separating the initial decoded data to obtain simulation data and original data, and using the simulation data, the original data, the first flag bit, the second flag bit, and the flip configuration information as second decoded data; The first decoded data or the second decoded data is the decoded data.
3. The single event upset fault simulation system according to claim 1, characterized in that: The analog fault flip circuit includes a plurality of first two-input selectors, a plurality of second two-input selectors and an enable control matrix. The specific process of the lower computer constructing the analog fault flip circuit is as follows: The number of the first two-input selectors and the second two-input selectors both matches the number of bits of the register to be simulated; The register to be simulated specifically exists in the FPGA in the form of a multi-input multi-output trigger structure, and each bit of the register includes an input trigger and an output trigger; Each of the first two input selectors is connected between the corresponding input trigger and the output trigger, each of the second two input selectors is connected after the corresponding output trigger, and the enable control matrix is connected to each of the second two input selectors and each of the first two input selectors.
4. The single event upset fault simulation system according to claim 2, characterized in that: The specific process of the lower computer performing single-particle upset fault simulation on the decoded data through the simulated fault upset circuit is as follows: Determining whether the first flag bit is the preset flag bit; If yes, inputting the flip configuration information and the original data into the reconfigured simulated fault flip circuit to perform a first single-particle flip fault simulation to obtain first simulated data; If not, inputting the flip configuration information and the original data into the simulated fault flip circuit to perform a second single-particle flip fault simulation to obtain second simulated data; The first post-simulation data or the second post-simulation data is the post-simulation data.
5. The single event upset fault simulation system according to claim 4, characterized in that: The specific process of the lower computer calculating the bit error rate between the decoded data and the simulated data and taking the simulated data and the bit error rate as the simulation result is as follows: Determining whether the first flag bit is the preset flag bit; If yes, taking the first post-simulation data as the simulation result; If not, determining whether the second flag bit is the preset flag bit; If yes, then calculating the bit error rates of the simulation data and the second simulated data to obtain a first bit error rate, and using the second simulated data and the first bit error rate as the simulation result; If not, the bit error rates of the original data and the second simulated data are calculated to obtain a second bit error rate, and the second simulated data and the second bit error rate are used as the simulation result.
6. The single event upset fault simulation system according to claim 1, characterized in that: The lower computer is also used for: The simulation result is encoded to obtain feedback encoding information, and the feedback encoding information is sent to the host computer.
7. The single event upset fault simulation system according to claim 6, characterized in that: The host computer is also used for: The returned coded information is decoded to obtain a simulation result, and the simulation result is stored in a preset database.
8. A single event upset fault simulation method, characterized in that: include: Importing original data, flip configuration information and flag information, and performing encoding analysis on the original data and the flip configuration information according to the flag information to obtain encoding information; Decoding and analyzing the encoded information to obtain decoded data; Constructing a simulated fault flip circuit, and performing a single-particle flip fault simulation on the decoded data through the simulated fault flip circuit to obtain simulated data; Calculating a bit error rate between the decoded data and the simulated data, and using the simulated data and the bit error rate as simulation results; The flag information includes a first flag and a second flag, and the specific process of encoding and analyzing the original data and the flip configuration information according to the flag information is as follows: S11: Determine whether the first flag bit is a preset flag bit; if so, execute S12; if not, execute S13; S12: performing partial dynamic reconfiguration on the simulated fault flipping circuit to obtain a reconfigured simulated fault flipping circuit, and executing S13; S13: Determine whether the second flag is a preset flag; if not, execute S14; if yes, execute S15; S14: Encode the flip configuration information and the original data according to the first flag bit and the second flag bit to obtain first encoding information; S15: performing software simulation on the original data according to the flip configuration information to obtain simulation data, and encoding the flip configuration information, the simulation data and the original data according to the first flag bit and the second flag bit to obtain second encoding information; The first coding information or the second coding information is the coding information.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the single event upset fault simulation method according to claim 8 is implemented.
