FPGA single-particle fault simulation method and system

By designing an automated FPGA single-particle fault simulation method and using particle accelerators and test units for automated testing, the problem of low FPGA fault simulation efficiency in the existing technology is solved, and an efficient and intelligent fault simulation process is achieved.

CN118332888BActive Publication Date: 2024-08-30SHAANXI QUARK AUTOMATIC CONTROL TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410756414.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-08-30
Estimated Expiration
2044-06-13

AI Technical Summary

Technical Problem

The existing FPGA single-particle fault simulation method has low efficiency and needs to be improved in intelligence. It mainly relies on manual measurement and has low fault simulation efficiency.

Method used

An FPGA single-particle fault simulation method is designed, including a particle emission unit, an FPGA protection unit, a particle impact unit and an FPGA test unit. Through an automated testing process, a particle accelerator is used to accelerate particles, conduct collision testing, and detect the faults through the FPGA test unit. Collide with the working status of the FPGA, re-adjust the protection strength and launch speed, and realize automated fault simulation.

Benefits of technology

It improves the testing efficiency of FPGA fault simulation, reduces manual intervention, improves the consistency and repeatability of testing, and achieves rapid acquisition of test results and a rapid feedback mechanism.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118332888B
    Figure CN118332888B
Patent Text Reader

Abstract

The present invention relates to the technical field of FPGA fault simulation, and a method and system for simulating single-particle faults of FPGA, comprising: starting a fault simulation device, wherein the fault simulation device comprises a particle emission unit, an FPGA protection unit, a particle impact unit and an FPGA test unit, placing an FPGA to be tested into the FPGA protection unit, starting the particle emission unit to obtain emittable particles, in the particle impact unit, with the FPGA to be tested as a target, emitting the emittable particles to the FPGA to be tested of the FPGA protection unit, performing a collision test, obtaining a collided FPGA, determining the protection strength of the FPGA protection unit to the collided FPGA at this time, and obtaining a fault simulation result of the FPGA to be tested. The present invention can improve the test efficiency of FPGA fault simulation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of FPGA fault simulation technology, and in particular to an FPGA single-particle fault simulation method, system, electronic equipment and computer-readable storage medium. Background Art

[0002] FPGA is the abbreviation of Field-Programmable Gate Array. It is an integrated circuit chip with a programmable logic gate array, programmable I / O interface and other programmable resources, which can realize various digital logic functions through programming. The single particle effect of FPGA refers to an adverse effect caused by high-energy particle impact or energy injection of FPGA devices. The single particle effect of FPGA may cause temporary or permanent failure of FPGA devices, thereby affecting the reliability and stability of the device. In particular, neutrons, protons, alpha particles, etc. will pass through the silicon crystal of FPGA devices and produce ionization effects, resulting in unpredictable electron or hole movement inside the device. These ionization effects may cause bit flipping of storage cells, temporary or permanent failure of logic gates, or irreversible damage to devices.

[0003] Therefore, it is necessary to simulate FPGA single-particle faults in a timely and effective manner to test the strength of FPGA. However, the existing methods mainly rely on manual measurement, that is, manually accelerating the particles to be emitted through a particle accelerator, and then impacting the particles to be emitted that meet the speed requirements on the FPGA to achieve FPGA fault simulation. Although this method is effective, the fault simulation efficiency is low and the intelligence needs to be improved. Summary of the invention

[0004] The present invention provides an FPGA single particle fault simulation method and a computer readable storage medium, the main purpose of which is to improve the test efficiency of FPGA fault simulation.

[0005] To achieve the above object, the present invention provides a FPGA single-particle fault simulation method, comprising:

[0006] Step A: starting a fault simulation device, wherein the fault simulation device includes a particle emission unit, an FPGA protection unit, a particle impact unit and an FPGA test unit;

[0007] Step B: setting the protection strength of the FPGA protection unit for the FPGA to be tested, and setting the emission speed of the particle emission unit;

[0008] Step C: placing the FPGA to be tested into the FPGA protection unit, wherein the protection strength of the FPGA protection unit for the FPGA to be tested is the same as the set protection strength;

[0009] Step D: starting a particle emission unit, wherein the particle emission unit includes a particle accelerator, and utilizing the particle accelerator to accelerate the particles to be emitted until the speed of the particles to be emitted reaches the emission speed, thereby obtaining emittable particles;

[0010] Step E: In the particle impact unit, with the FPGA to be tested as the target, emittable particles to the FPGA to be tested in the FPGA protection unit, perform a collision test, and obtain a collided FPGA;

[0011] Step F: Use the FPGA test unit to test whether the crashed FPGA can work normally;

[0012] Step G: If the FPGA that has been collided can work normally, reset the protection strength of the FPGA protection unit for the FPGA to be tested and the emission speed of the particle emission unit, and return to step C;

[0013] Step H: until the crashed FPGA fails to work normally, determine the protection strength of the FPGA protection unit for the crashed FPGA at this time, and obtain the fault simulation result of the FPGA to be tested.

[0014] Optionally, setting the protection strength of the FPGA protection unit for the FPGA to be tested, and setting the emission speed of the particle emission unit, include:

[0015] Send the protection structure that can be set by the FPGA protection unit to the tester, where the protection structure includes three types of shield layers: plate-shaped, membrane-shaped, and mesh-shaped, and the protection strength is composed of high, medium, and low. The high protection strength is the shield layer of the plate structure, the medium protection strength is the shield layer of the membrane structure, and the low protection strength is the shield layer of the mesh structure;

[0016] After receiving the protective structure selected by the tester, a speed range of emission speeds that can be generated by the particle emission unit is sent to the tester;

[0017] The emission speed of the particle emission unit selected by the tester.

[0018] Optionally, placing the FPGA to be tested into an FPGA protection unit includes:

[0019] The FPGA to be tested is placed into a fixed groove of the FPGA protection unit, wherein the FPGA protection unit further includes a shield layer generation unit, the shield layer generation unit is located around the fixed groove, a circuit is installed in the fixed groove, and the installed circuit is communicated with the test circuit of the FPGA test unit;

[0020] Determine the corresponding protection structure according to the set protection strength;

[0021] The determined protective structure is generated by a shield layer generation unit, and the protective structure is located around the fixed groove.

[0022] Optionally, the step of accelerating the to-be-emitted particles by a particle accelerator until the speed of the to-be-emitted particles reaches the emission speed to obtain the emittable particles comprises:

[0023] Using an electron gun in a particle emission unit to generate particles to be emitted, and injecting the particles to be emitted into a particle accelerator, wherein the particle accelerator includes a magnetic field system, an accelerator pipeline, and an accelerator control system, wherein the magnetic field system can generate a magnetic force on the particles to be emitted, thereby gradually generating a velocity in the accelerator pipeline;

[0024] Set the initial magnetic force of the magnetic field system;

[0025] guiding the particles to be emitted into the accelerator pipeline and generating an initial magnetic force on the particles to be emitted in the accelerator pipeline under the action of the initial magnetic force;

[0026] gradually increasing the initial magnetic force of the magnetic field system and using the accelerator control system to monitor the real-time speed of the particles to be emitted;

[0027] When the real-time speed is equal to the emission speed, the acceleration operation of the particles to be emitted is completed to obtain the emittable particles.

[0028] Optionally, in the particle impact unit, taking the FPGA to be tested as a target, emitting particles to the FPGA to be tested of the FPGA protection unit to perform a collision test to obtain a collided FPGA, including:

[0029] Starting the particle impact unit, wherein the particle impact unit is composed of an impact unit and a blower, and one side of the impact unit is provided with an exhaust hole, the aperture of the exhaust hole is dynamically adjustable, and the blower is installed opposite to the exhaust hole;

[0030] The FPGA protection unit is placed into the impact unit of the particle impact unit, and the internal volume of the impact unit is calculated according to the volume of the FPGA to be tested to obtain the impact volume;

[0031] adjusting a maximum volume of the internal environment of the impact unit, wherein the maximum volume is equal to the impact volume;

[0032] After setting the working frequency of the blower and the aperture of the exhaust hole, the FPGA to be tested is taken as the target, and the emitting particles are emitted to the FPGA to be tested of the FPGA protection unit to perform a collision test to obtain the collided FPGA.

[0033] Optionally, the calculating the internal volume of the impact unit according to the volume of the FPGA to be tested to obtain the impact volume includes:

[0034] The impact volume is calculated according to the following formula:

[0035] ;

[0036] in, represents the impact volume, Indicates the size of the FPGA to be tested, Preset weight value for the calculation formula of the internal volume of the impact unit.

[0037] Optionally, the setting of the operating frequency of the blower and the aperture of the exhaust hole includes:

[0038] Get the average power consumption of the FPGA protection unit during the collision test;

[0039] Based on the average power consumption, estimate the heat generated by the emittable particles emitted to the FPGA under test;

[0040] The operating frequency of the blower and the diameter of the exhaust hole are set based on the estimated heat value.

[0041] Optionally, estimating the estimated value of heat generated by emitting the emittable particles to the FPGA to be tested according to the average power consumption includes:

[0042] The estimated calorie value is calculated using the following formula:

[0043] ;

[0044] in, Indicates the estimated calorie value, is the average power consumption of the FPGA protection unit during the collision test, Indicates the test time for performing the collision test, Indicates the thermal capacity of the FPGA to be tested, in joules per degree Celsius. Indicates that the working time of the FPGA to be tested is equal to the test time Temperature changes when.

[0045] Optionally, setting the operating frequency of the blower and the aperture of the exhaust hole based on the heat estimation value includes:

[0046] The operating frequency of the blower and the diameter of the exhaust hole are calculated according to the following formula:

[0047] ;

[0048] ;

[0049] in, represents the operating frequency of the blower, represents the weight factor for calculating the blower's operating frequency, Indicates the diameter of the exhaust hole. represents the weight factor for calculating the aperture of the exhaust hole, and e represents a natural constant.

[0050] To achieve the above object, the present invention further provides an FPGA single-particle fault simulation system, comprising:

[0051] An emission speed setting module is used to start the fault simulation device, wherein the fault simulation device includes a particle emission unit, an FPGA protection unit, a particle impact unit and an FPGA test unit, set the protection strength of the FPGA protection unit to the FPGA to be tested, and set the emission speed of the particle emission unit;

[0052] A particle acceleration module is used to place the FPGA to be tested into the FPGA protection unit, wherein the protection strength of the FPGA protection unit for the FPGA to be tested is the same as the set protection strength, and start the particle emission unit, wherein the particle emission unit includes a particle accelerator, and the particle accelerator is used to accelerate the particles to be emitted until the speed of the particles to be emitted reaches the emission speed, thereby obtaining emittable particles;

[0053] The collision test module is used to, in the particle impact unit, target the FPGA to be tested, emit particles to the FPGA to be tested of the FPGA protection unit, perform a collision test, obtain the collided FPGA, and use the FPGA test unit to test whether the collided FPGA can work normally;

[0054] The fault simulation result output module is used to reset the protection strength of the FPGA protection unit for the FPGA to be tested and the emission speed of the particle emission unit if the collided FPGA can work normally, and return to the collision test module until the collided FPGA cannot work normally, determine the protection strength of the FPGA protection unit for the collided FPGA at this time, and obtain the fault simulation result of the FPGA to be tested.

[0055] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:

[0056] a memory storing at least one instruction; and

[0057] The processor executes the instructions stored in the memory to implement the above-mentioned FPGA single-particle fault simulation method.

[0058] In order to solve the above problem, the present invention also provides a computer-readable storage medium, in which at least one instruction is stored. The at least one instruction is executed by a processor in an electronic device to implement the above-mentioned FPGA single-particle fault simulation method.

[0059] In order to solve the problems described in the background technology, the present invention sets the entire fault simulation device into multiple units, such as a particle emission unit, an FPGA protection unit, a particle impact unit and an FPGA test unit, so that the test process is clearer, each module can be independently operated and tested, and the maintainability and flexibility of the system are improved; in addition, the entire test process can be automated, and everything from starting the fault simulation device to outputting the test results can be completed by computer control. Since the automated test reduces manual intervention, the consistency and repeatability of the test are improved; at the same time, the FPGA test unit is used to test the collided FPGA, and the test results can be quickly obtained. If the collided FPGA can work normally, the protection strength of the FPGA protection unit and the emission speed of the particle emission unit can be readjusted according to the test results, and the step C is immediately returned to continue the next round of testing. It can be seen that the mechanism of rapid feedback and adjustment can effectively improve the test efficiency. Therefore, the present invention can improve the test efficiency of FPGA fault simulation. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] Figure 1 A schematic diagram of a flow chart of a method for simulating a single-particle fault in an FPGA provided by an embodiment of the present invention;

[0061] Figure 2 A functional module diagram of an FPGA single-particle fault simulation system provided by an embodiment of the present invention;

[0062] Figure 3 A schematic diagram of the structure of an electronic device for implementing the FPGA single-particle fault simulation method provided by an embodiment of the present invention.

[0063] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0064] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0065] The embodiment of the present application provides a method for simulating a single particle fault in an FPGA. The execution subject of the method for simulating a single particle fault in an FPGA includes but is not limited to at least one of the electronic devices such as a server and a terminal that can be configured to execute the method provided in the embodiment of the present application. In other words, the method for simulating a single particle fault in an FPGA can be executed by software or hardware installed in a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc.

[0066] Reference Figure 1 FIG. 1 is a flow chart of a method for simulating a single particle fault in an FPGA according to an embodiment of the present invention. In this embodiment, the method for simulating a single particle fault in an FPGA includes:

[0067] S1. Start a fault simulation device, wherein the fault simulation device includes a particle emission unit, an FPGA protection unit, a particle impact unit and an FPGA test unit.

[0068] It should be explained that the fault simulation device described in the embodiment of the present invention includes a particle emission unit, an FPGA protection unit, a particle impact unit and an FPGA test unit. Among them, the particle emission unit can emit single particles such as neutrons, protons, alpha particles, etc., and then use these single particles to impact the FPGA to be tested, thereby completing the fault simulation of the FPGA.

[0069] S2. Setting the protection strength of the FPGA protection unit for the FPGA to be tested, and setting the emission speed of the particle emission unit.

[0070] It should be understood that when the FPGA is actually working, in order to prevent the FPGA from being affected by electromagnetic interference generated by other components, communication units, etc., a protective layer will be set outside the FPGA. In addition, when high-speed particles generated by other components and communication units accidentally collide with the FPGA, the protective layer can also play a certain protective role.

[0071] In detail, the setting of the protection strength of the FPGA protection unit for the FPGA to be tested, and the setting of the emission speed of the particle emission unit include:

[0072] Send the protection structure that can be set by the FPGA protection unit to the tester, where the protection structure includes three types of shield layers: plate-shaped, membrane-shaped, and mesh-shaped, and the protection strength is composed of high, medium, and low. The high protection strength is the shield layer of the plate structure, the medium protection strength is the shield layer of the membrane structure, and the low protection strength is the shield layer of the mesh structure;

[0073] After receiving the protective structure selected by the tester, a speed range of emission speeds that can be generated by the particle emission unit is sent to the tester;

[0074] The emission speed of the particle emission unit selected by the tester.

[0075] It needs to be explained that the shield layer is a shielding layer located outside the FPGA to resist external electromagnetic interference (EMI). Its main function is to block the interference of external electromagnetic fields to protect the electronic circuits inside the device from interference and damage. It is usually made of conductive materials such as copper, aluminum and other metals.

[0076] In addition, the speed range of the emission speed that the particle emission unit can generate is not a fixed range, and needs to be dynamically adjusted according to the hardware conditions, usage scenarios, etc. of the particle emission unit. The hardware conditions include the structure and materials of each device that constitutes the particle emission unit, and the usage scenarios include the type of particles to be emitted, the emission angle, etc.

[0077] S3. Place the FPGA to be tested into an FPGA protection unit, wherein the protection strength of the FPGA protection unit for the FPGA to be tested is the same as the set protection strength.

[0078] In detail, placing the FPGA to be tested into the FPGA protection unit includes:

[0079] The FPGA to be tested is placed into a fixed groove of the FPGA protection unit, wherein the FPGA protection unit further includes a shield layer generation unit, the shield layer generation unit is located around the fixed groove, a circuit is installed in the fixed groove, and the installed circuit is communicated with the test circuit of the FPGA test unit;

[0080] Determine the corresponding protection structure according to the set protection strength;

[0081] The determined protective structure is generated by a shield layer generation unit, and the protective structure is located around the fixed groove.

[0082] Exemplarily, a variety of protective structures (including the three types of shield layers of plate, membrane, and mesh structures mentioned above) are pre-set in the shield layer generation unit. If a shield layer of plate structure is selected, the shield layer of plate structure is raised from around the fixed groove, thereby forming a protective effect on the FPGA to be tested.

[0083] S4. Start the particle emission unit, wherein the particle emission unit includes a particle accelerator, and use the particle accelerator to accelerate the particles to be emitted until the speed of the particles to be emitted reaches the emission speed, thereby obtaining emittable particles.

[0084] In detail, the method of accelerating the particles to be emitted by a particle accelerator until the speed of the particles to be emitted reaches the emission speed to obtain the emittable particles includes:

[0085] Using an electron gun in a particle emission unit to generate particles to be emitted, and injecting the particles to be emitted into a particle accelerator, wherein the particle accelerator includes a magnetic field system, an accelerator pipeline, and an accelerator control system, wherein the magnetic field system can generate a magnetic force on the particles to be emitted, thereby gradually generating a velocity in the accelerator pipeline;

[0086] Set the initial magnetic force of the magnetic field system;

[0087] guiding the particles to be emitted into the accelerator pipeline and generating an initial magnetic force on the particles to be emitted in the accelerator pipeline under the action of the initial magnetic force;

[0088] gradually increasing the initial magnetic force of the magnetic field system and using the accelerator control system to monitor the real-time speed of the particles to be emitted;

[0089] When the real-time speed is equal to the emission speed, the acceleration operation of the particles to be emitted is completed to obtain the emittable particles.

[0090] It needs to be explained that the electron gun is a device used to generate an electron beam. The magnetic field system plays a key role in the particle accelerator. By setting the initial magnetic force, the initial velocity of the particles to be emitted in the accelerator pipe can be controlled. Under the action of the initial magnetic force, the particles to be emitted are guided into the accelerator pipe and begin to be affected by the magnetic force. The whole process ensures that the particles to be emitted enter the accelerator pipe according to the designed path and begin to be accelerated. Then, by gradually increasing the magnetic force of the magnetic field system, the magnetic force on the particles to be emitted in the accelerator pipe can be gradually increased, thereby gradually increasing their velocity.

[0091] S5. In the particle impact unit, with the FPGA to be tested as the target, the particles that can be emitted are emitted to the FPGA to be tested of the FPGA protection unit to perform a collision test, and a collided FPGA is obtained.

[0092] In detail, in the particle impact unit, taking the FPGA to be tested as the target, emitting particles to the FPGA to be tested of the FPGA protection unit to perform a collision test to obtain the collided FPGA, including:

[0093] Starting the particle impact unit, wherein the particle impact unit is composed of an impact unit and a blower, and one side of the impact unit is provided with an exhaust hole, the aperture of the exhaust hole is dynamically adjustable, and the blower is installed opposite to the exhaust hole;

[0094] The FPGA protection unit is placed into the impact unit of the particle impact unit, and the internal volume of the impact unit is calculated according to the volume of the FPGA to be tested to obtain the impact volume;

[0095] adjusting a maximum volume of the internal environment of the impact unit, wherein the maximum volume is equal to the impact volume;

[0096] After setting the working frequency of the blower and the aperture of the exhaust hole, the FPGA to be tested is taken as the target, and the emitting particles are emitted to the FPGA to be tested of the FPGA protection unit to perform a collision test to obtain the collided FPGA.

[0097] It should be explained that, under the condition that other conditions are the same, the risk levels generated by the collision test of FPGAs to be tested with different operating voltages, currents and powers are different, and the operating voltage of the FPGA to be tested is generally directly proportional to the risk level. That is, the greater the operating voltage of the FPGA to be tested, the higher the risk generated by the collision test of the FPGA to be tested, and therefore the higher the heat released. Therefore, in order to ensure the safety of the entire collision test, the internal volume of the impact unit needs to be larger.

[0098] In detail, the step of calculating the internal volume of the impact unit according to the volume of the FPGA to be tested to obtain the impact volume includes:

[0099] The impact volume is calculated according to the following formula:

[0100] ;

[0101] in, represents the impact volume, Indicates the size of the FPGA to be tested, Preset weight value for the calculation formula of the internal volume of the impact unit.

[0102] It is understandable that since the collision test using emittable particles to launch to the FPGA to be tested will generate heat, it is necessary to use relatively low temperature cold air to remove the heat, thereby ensuring the safety of the entire fault simulation experiment. Further, the setting of the operating frequency of the blower and the aperture of the exhaust hole includes:

[0103] Get the average power consumption of the FPGA protection unit during the collision test;

[0104] Based on the average power consumption, estimate the heat generated by the emittable particles emitted to the FPGA under test;

[0105] The operating frequency of the blower and the diameter of the exhaust hole are set based on the estimated heat value.

[0106] Furthermore, the estimating the heat value generated by the emittable particles emitted to the FPGA to be tested according to the average power consumption includes:

[0107] The estimated calorie value is calculated using the following formula:

[0108] ;

[0109] in, Indicates the estimated calorie value, is the average power consumption of the FPGA protection unit during the collision test, Indicates the test time for performing the collision test, Indicates the thermal capacity of the FPGA to be tested, in joules per degree Celsius. Indicates that the working time of the FPGA to be tested is equal to the test time Temperature changes when.

[0110] It is understandable that when the heat estimation value is larger, the operating frequency of the blower and the aperture of the exhaust hole need to be larger, that is, the heat estimation value is directly proportional to the operating frequency of the blower and the aperture of the exhaust hole.

[0111] In detail, the step of setting the operating frequency of the blower and the aperture of the exhaust hole based on the heat estimation value includes:

[0112] The operating frequency of the blower and the diameter of the exhaust hole are calculated according to the following formula:

[0113] ;

[0114] ;

[0115] in, represents the operating frequency of the blower, represents the weight factor for calculating the blower's operating frequency, Indicates the diameter of the exhaust hole. represents the weight factor for calculating the aperture of the exhaust hole, and e represents a natural constant.

[0116] According to the above description, after the working frequency of the blower and the aperture of the exhaust hole are calculated respectively, the FPGA to be tested can be directly used as the target, and the particles that can be emitted can be emitted to the FPGA to be tested of the FPGA protection unit to perform a collision test to obtain the collided FPGA.

[0117] S6. Use the FPGA test unit to test whether the crashed FPGA can work normally.

[0118] According to the above description, a circuit is installed in the fixed slot, and the installed circuit is connected to the test circuit of the FPGA test unit. Therefore, by opening the test circuit of the FPGA test unit, the crashed FPGA can be driven to work, thereby observing whether the crashed FPGA can work normally.

[0119] If the FPGA that has been collided can work normally, execute S7, reset the protection strength of the FPGA protection unit for the FPGA to be tested and the emission speed of the particle emission unit, and return to S3.

[0120] It should be explained that when the collided FPGA can work normally, it means that the particles to be emitted do not cause harm to the FPGA to be tested under the emission speed and protection structure at this time. In order to further test the strength of the FPGA, the protection strength of the FPGA protection unit to the FPGA to be tested and the emission speed of the particle emission unit can be reset, and return to S3 to continue the above test.

[0121] Until the crashed FPGA cannot work normally, S8 is executed to determine the protection strength of the FPGA protection unit for the crashed FPGA at this time, and the fault simulation result of the FPGA to be tested is obtained.

[0122] In order to solve the problems described in the background technology, the present invention sets the entire fault simulation device into multiple units, such as a particle emission unit, an FPGA protection unit, a particle impact unit and an FPGA test unit, so that the test process is clearer, each module can be independently operated and tested, and the maintainability and flexibility of the system are improved; in addition, the entire test process can be automated, and everything from starting the fault simulation device to outputting the test results can be completed by computer control. Since the automated test reduces manual intervention, the consistency and repeatability of the test are improved; at the same time, the FPGA test unit is used to test the collided FPGA, and the test results can be quickly obtained. If the collided FPGA can work normally, the protection strength of the FPGA protection unit and the emission speed of the particle emission unit can be readjusted according to the test results, and the step C is immediately returned to continue the next round of testing. It can be seen that the mechanism of rapid feedback and adjustment can effectively improve the test efficiency. Therefore, the present invention can improve the test efficiency of FPGA fault simulation.

[0123] like Figure 2 , which is a functional module diagram of an FPGA single-particle fault simulation system provided by an embodiment of the present invention.

[0124] The FPGA single particle fault simulation system 100 of the present invention can be installed in an electronic device. According to the functions to be implemented, the FPGA single particle fault simulation system 100 can include a launch speed setting module 101, a particle acceleration module 102, a collision test module 103 and a fault simulation result output module 104. The module of the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.

[0125] The emission speed setting module 101 is used to start the fault simulation device, wherein the fault simulation device includes a particle emission unit, an FPGA protection unit, a particle impact unit and an FPGA test unit, set the protection strength of the FPGA protection unit for the FPGA to be tested, and set the emission speed of the particle emission unit;

[0126] The particle acceleration module 102 is used to place the FPGA to be tested into the FPGA protection unit, wherein the protection strength of the FPGA protection unit for the FPGA to be tested is the same as the set protection strength, and start the particle emission unit, wherein the particle emission unit includes a particle accelerator, and the particle accelerator is used to accelerate the particles to be emitted until the speed of the particles to be emitted reaches the emission speed, thereby obtaining emittable particles;

[0127] The collision test module 103 is used to, in the particle impact unit, target the FPGA to be tested, emit particles to the FPGA to be tested in the FPGA protection unit, perform a collision test, obtain the collided FPGA, and use the FPGA test unit to test whether the collided FPGA can work normally;

[0128] The fault simulation result output module 104 is used to reset the protection strength of the FPGA protection unit for the FPGA to be tested and the emission speed of the particle emission unit if the collided FPGA can work normally, and return to the collision test module until the collided FPGA cannot work normally, determine the protection strength of the FPGA protection unit for the collided FPGA at this time, and obtain the fault simulation result of the FPGA to be tested.

[0129] In detail, each module in the FPGA single-particle fault simulation system 100 in the embodiment of the present invention is used in the same manner as described above. Figure 1 The FPGA single-particle fault simulation method described in the present invention has the same technical means and can produce the same technical effect, so it will not be repeated here.

[0130] like Figure 3 FIG. 1 is a schematic diagram of the structure of an electronic device for implementing a method for simulating a single particle fault on an FPGA according to an embodiment of the present invention.

[0131] The electronic device 1 may include a processor 10 , a memory 11 and a bus 12 , and may also include a computer program stored in the memory 11 and executable on the processor 10 , such as an FPGA single-particle fault simulation method program.

[0132] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. In some embodiments, the memory 11 may be an internal storage unit of the electronic device 1, such as a mobile hard disk of the electronic device 1. In other embodiments, the memory 11 may also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 1. Further, the memory 11 also includes an internal storage unit of the electronic device 1 and an external storage device. The memory 11 can not only be used to store application software and various types of data installed in the electronic device 1, such as the code of the FPGA single-particle fault simulation method program, etc., but also can be used to temporarily store data that has been output or is to be output.

[0133] The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and a combination of various control chips, etc. The processor 10 is the control core (Control Unit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes various functions and processes data of the electronic device 1 by running or executing programs or modules (such as FPGA single particle fault simulation method programs, etc.) stored in the memory 11, and calling data stored in the memory 11.

[0134] The bus 12 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus 12 may be divided into an address bus, a data bus, a control bus, etc. The bus 12 is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.

[0135] Figure 3 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 3The structure shown does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.

[0136] For example, although not shown, the electronic device 1 may also include a power source (such as a battery) for supplying power to various components. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device 1 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.

[0137] Furthermore, the electronic device 1 may also include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device 1 and other electronic devices.

[0138] Optionally, the electronic device 1 may further include a user interface, which may be a display, an input unit (such as a keyboard), or a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device 1 and to display a visual user interface.

[0139] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.

[0140] The FPGA single-particle fault simulation method program stored in the memory 11 in the electronic device 1 is a combination of multiple instructions. When running in the processor 10, it can achieve:

[0141] Step A: starting a fault simulation device, wherein the fault simulation device includes a particle emission unit, an FPGA protection unit, a particle impact unit and an FPGA test unit;

[0142] Step B: setting the protection strength of the FPGA protection unit for the FPGA to be tested, and setting the emission speed of the particle emission unit;

[0143] Step C: placing the FPGA to be tested into the FPGA protection unit, wherein the protection strength of the FPGA protection unit for the FPGA to be tested is the same as the set protection strength;

[0144] Step D: starting a particle emission unit, wherein the particle emission unit includes a particle accelerator, and utilizing the particle accelerator to accelerate the particles to be emitted until the speed of the particles to be emitted reaches the emission speed, thereby obtaining emittable particles;

[0145] Step E: In the particle impact unit, with the FPGA to be tested as the target, emittable particles to the FPGA to be tested in the FPGA protection unit, perform a collision test, and obtain a collided FPGA;

[0146] Step F: Use the FPGA test unit to test whether the crashed FPGA can work normally;

[0147] Step G: If the FPGA that has been collided can work normally, reset the protection strength of the FPGA protection unit for the FPGA to be tested and the emission speed of the particle emission unit, and return to step C;

[0148] Step H: until the crashed FPGA fails to work normally, determine the protection strength of the FPGA protection unit for the crashed FPGA at this time, and obtain the fault simulation result of the FPGA to be tested.

[0149] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to Figures 1 to 3 The description of the relevant steps in the corresponding embodiments will not be repeated here.

[0150] Furthermore, if the module / unit integrated in the electronic device 1 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. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).

[0151] The present invention further 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 of an electronic device, the computer program can implement:

[0152] Step A: starting a fault simulation device, wherein the fault simulation device includes a particle emission unit, an FPGA protection unit, a particle impact unit and an FPGA test unit;

[0153] Step B: setting the protection strength of the FPGA protection unit for the FPGA to be tested, and setting the emission speed of the particle emission unit;

[0154] Step C: placing the FPGA to be tested into the FPGA protection unit, wherein the protection strength of the FPGA protection unit for the FPGA to be tested is the same as the set protection strength;

[0155] Step D: starting a particle emission unit, wherein the particle emission unit includes a particle accelerator, and utilizing the particle accelerator to accelerate the particles to be emitted until the speed of the particles to be emitted reaches the emission speed, thereby obtaining emittable particles;

[0156] Step E: In the particle impact unit, with the FPGA to be tested as the target, emittable particles to the FPGA to be tested in the FPGA protection unit, perform a collision test, and obtain a collided FPGA;

[0157] Step F: Use the FPGA test unit to test whether the crashed FPGA can work normally;

[0158] Step G: If the FPGA that has been collided can work normally, reset the protection strength of the FPGA protection unit for the FPGA to be tested and the emission speed of the particle emission unit, and return to step C;

[0159] Step H: until the crashed FPGA fails to work normally, determine the protection strength of the FPGA protection unit for the crashed FPGA at this time, and obtain the fault simulation result of the FPGA to be tested.

[0160] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, systems and methods can be implemented in other ways. For example, the system embodiments described above are only illustrative, and actual implementation may have other division methods.

[0161] The modules described as separate components may or may not be physically separated, and the components shown as modules 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 modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0162] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, 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 hardware plus software functional modules.

[0163] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.

[0164] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system claim can also be implemented by one unit or device through software or hardware. The second and other words are used to indicate names, but not to indicate any particular order.

[0165] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.

Claims

1. A method for simulating single-particle faults in FPGA, characterized in that: The method comprises: Step A: starting a fault simulation device, wherein the fault simulation device includes a particle emission unit, an FPGA protection unit, a particle impact unit and an FPGA test unit; Step B: setting the protection strength of the FPGA protection unit for the FPGA to be tested, and setting the emission speed of the particle emission unit; The step of setting the protection strength of the FPGA protection unit for the FPGA to be tested and setting the emission speed of the particle emission unit includes: Send the protection structure that can be set by the FPGA protection unit to the tester, where the protection structure includes three types of shield layers: plate-shaped, membrane-shaped, and mesh-shaped, and the protection strength is composed of high, medium, and low. The high protection strength is the shield layer of the plate structure, the medium protection strength is the shield layer of the membrane structure, and the low protection strength is the shield layer of the mesh structure; After receiving the protective structure selected by the tester, a speed range of emission speeds that can be generated by the particle emission unit is sent to the tester; The emission speed of the particle emission unit selected by the tester; Step C: placing the FPGA to be tested into the FPGA protection unit, wherein the protection strength of the FPGA protection unit for the FPGA to be tested is the same as the set protection strength; Placing the FPGA to be tested into the FPGA protection unit includes: The FPGA to be tested is placed into a fixed groove of the FPGA protection unit, wherein the FPGA protection unit further includes a shield layer generation unit, the shield layer generation unit is located around the fixed groove, a circuit is installed in the fixed groove, and the installed circuit is communicated with the test circuit of the FPGA test unit; Determine the corresponding protection structure according to the set protection strength; The determined protective structure is generated by using a shield generation unit, and the protective structure is located around the fixed groove; Step D: starting a particle emission unit, wherein the particle emission unit includes a particle accelerator, and utilizing the particle accelerator to accelerate the particles to be emitted until the speed of the particles to be emitted reaches the emission speed, thereby obtaining emittable particles; Step E: In the particle impact unit, with the FPGA to be tested as the target, emittable particles are emitted to the FPGA to be tested in the FPGA protection unit, and a collision test is performed to obtain a collided FPGA; Step F: Use the FPGA test unit to test whether the crashed FPGA can work normally; Step G: If the FPGA that has been collided can work normally, reset the protection strength of the FPGA protection unit for the FPGA to be tested and the emission speed of the particle emission unit, and return to step C; Step H: until the crashed FPGA fails to work normally, determine the protection strength of the FPGA protection unit for the crashed FPGA at this time, and obtain the fault simulation result of the FPGA to be tested.

2. The FPGA single-particle fault simulation method according to claim 1, characterized in that: The method of accelerating the particles to be emitted by a particle accelerator until the speed of the particles to be emitted reaches the emission speed, thereby obtaining the emittable particles, comprises: Using an electron gun in a particle emission unit to generate particles to be emitted, and injecting the particles to be emitted into a particle accelerator, wherein the particle accelerator includes a magnetic field system, an accelerator pipeline, and an accelerator control system, wherein the magnetic field system can generate a magnetic force on the particles to be emitted, thereby gradually generating a velocity in the accelerator pipeline; Set the initial magnetic force of the magnetic field system; guiding the particles to be emitted into the accelerator pipeline and generating an initial magnetic force on the particles to be emitted in the accelerator pipeline under the action of the initial magnetic force; gradually increasing the initial magnetic force of the magnetic field system and using the accelerator control system to monitor the real-time speed of the particles to be emitted; When the real-time speed is equal to the emission speed, the acceleration operation of the particles to be emitted is completed to obtain the emittable particles.

3. The FPGA single-particle fault simulation method according to claim 2, characterized in that: The method of performing a collision test on the FPGA to be tested in the particle impact unit by emitting particles that can be emitted to the FPGA to be tested in the FPGA protection unit to obtain the collided FPGA includes: Starting the particle impact unit, wherein the particle impact unit is composed of an impact unit and a blower, and one side of the impact unit is provided with an exhaust hole, the aperture of the exhaust hole is dynamically adjustable, and the blower is installed opposite to the exhaust hole; The FPGA protection unit is placed into the impact unit of the particle impact unit, and the internal volume of the impact unit is calculated according to the volume of the FPGA to be tested to obtain the impact volume; adjusting a maximum volume of the internal environment of the impact unit, wherein the maximum volume is equal to the impact volume; After setting the working frequency of the blower and the aperture of the exhaust hole, the FPGA to be tested is taken as the target, and the emitting particles are emitted to the FPGA to be tested of the FPGA protection unit to perform a collision test to obtain the collided FPGA.

4. The FPGA single-particle fault simulation method according to claim 3, characterized in that: The step of calculating the internal volume of the impact unit according to the volume of the FPGA to be tested to obtain the impact volume includes: The impact volume is calculated according to the following formula: ; in, represents the impact volume, Indicates the size of the FPGA to be tested, Preset weight value for the calculation formula of the internal volume of the impact unit.

5. The FPGA single-particle fault simulation method according to claim 4, characterized in that: The setting of the operating frequency of the blower and the diameter of the exhaust hole includes: Obtain the average power consumption of the FPGA protection unit during the collision test; Based on the average power consumption, estimate the heat generated by the emittable particles emitted to the FPGA under test; The operating frequency of the blower and the diameter of the exhaust hole are set based on the estimated heat value.

6. The FPGA single-particle fault simulation method according to claim 5, characterized in that: The step of estimating the heat value generated by the emittable particles being emitted to the FPGA to be tested according to the average power consumption includes: The estimated calorie value is calculated using the following formula: ; in, Indicates the estimated calorie value, is the average power consumption of the FPGA protection unit during the collision test, Indicates the test time for performing the collision test, Indicates the thermal capacity of the FPGA to be tested, in joules per degree Celsius. Indicates that the working time of the FPGA to be tested is equal to the test time Temperature changes when.

7. The FPGA single-particle fault simulation method according to claim 6, characterized in that: The step of setting the operating frequency of the blower and the diameter of the exhaust hole based on the estimated heat value comprises: The operating frequency of the blower and the diameter of the exhaust hole are calculated according to the following formula: ; ; in, represents the operating frequency of the blower, represents the weight factor for calculating the blower's operating frequency, Indicates the diameter of the exhaust hole. represents the weight factor for calculating the aperture of the exhaust hole, and e represents a natural constant.

8. An FPGA single-particle fault simulation system, characterized in that: The system comprises: An emission speed setting module is used to start the fault simulation device, wherein the fault simulation device includes a particle emission unit, an FPGA protection unit, a particle impact unit and an FPGA test unit, set the protection strength of the FPGA protection unit to the FPGA to be tested, and set the emission speed of the particle emission unit; The step of setting the protection strength of the FPGA protection unit for the FPGA to be tested and setting the emission speed of the particle emission unit includes: Send the protection structure that can be set by the FPGA protection unit to the tester, where the protection structure includes three types of shield layers: plate-shaped, membrane-shaped, and mesh-shaped, and the protection strength is composed of high, medium, and low. The high protection strength is the shield layer of the plate structure, the medium protection strength is the shield layer of the membrane structure, and the low protection strength is the shield layer of the mesh structure; After receiving the protective structure selected by the tester, a speed range of emission speeds that can be generated by the particle emission unit is sent to the tester; The emission speed of the particle emission unit selected by the tester; A particle acceleration module is used to place the FPGA to be tested into the FPGA protection unit, wherein the protection strength of the FPGA protection unit for the FPGA to be tested is the same as the set protection strength, and start the particle emission unit, wherein the particle emission unit includes a particle accelerator, and the particle accelerator is used to accelerate the particles to be emitted until the speed of the particles to be emitted reaches the emission speed, thereby obtaining emittable particles; Placing the FPGA to be tested into the FPGA protection unit includes: The FPGA to be tested is placed into a fixed groove of the FPGA protection unit, wherein the FPGA protection unit further includes a shield layer generation unit, the shield layer generation unit is located around the fixed groove, a circuit is installed in the fixed groove, and the installed circuit is communicated with the test circuit of the FPGA test unit; Determine the corresponding protection structure according to the set protection strength; The determined protective structure is generated by using a shield generation unit, and the protective structure is located around the fixed groove; The collision test module is used to, in the particle impact unit, target the FPGA to be tested, emit particles to the FPGA to be tested of the FPGA protection unit, perform a collision test, obtain the collided FPGA, and use the FPGA test unit to test whether the collided FPGA can work normally; The fault simulation result output module is used to reset the protection strength of the FPGA protection unit for the FPGA to be tested and the emission speed of the particle emission unit if the collided FPGA can work normally, and return to the collision test module until the collided FPGA cannot work normally, determine the protection strength of the FPGA protection unit for the collided FPGA at this time, and obtain the fault simulation result of the FPGA to be tested.

Citation Information

Patent Citations

  • Removable / replaceable high intensity target and multiple accelerator systems and methods

    CN117795623A

  • Protective apparatus

    WO1990010378A1