Single instantaneous fault injection method and device for control chip
By determining the injection parameters and target signals of the control chip, and determining the optimal injection time based on signal flip rate statistics, the accurate injection and analysis of a single instantaneous fault in the automotive control chip is achieved, and the fault detection efficiency in the prior art is solved. The problem of insufficient injection success rate improves the efficiency of fault simulation.
Patent Information
- Application Number
- CN202310454791.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-25
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2043-04-25
AI Technical Summary
The prior art is difficult to accurately and efficiently insert and simulate single instantaneous failures in automotive control chips, especially due to the transient nature and complexity of instantaneous failures, resulting in low detection and simulation efficiency and insufficient failure injection success rate.
By determining the injection parameters and target signals of the control chip, the control chip runs in a preset state, and determines the optimal injection time based on signal flip rate statistics, accurately injecting and analysis of a single instantaneous fault, and improves the success rate of fault injection and Detection accuracy.
It improves the accuracy and simulation efficiency of fault detection, reduces the number of invalid fault simulations, and improves the success rate of fault injection and the probability of being detected.
Smart Images

Figure CN117539215B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of functional safety, and in particular to a method and device for injecting a single transient fault into a control chip. Background Art
[0002] With the global energy shortage, the vigorous development of new energy vehicles in various countries, and the innovation of technology, cars have a new definition. A series of new product definitions such as automatic driving, automatic parking, assisted lane change, and cruise control have followed. While these technologies that keep pace with the times have liberated the human brain and hands, they have also put forward more stringent requirements on the functional safety of the vehicle control system and the vehicle components themselves to ensure the personal safety and property safety of drivers and passengers. For these increasingly complex new functions, they all need to be coordinated and precisely controlled by the vehicle MCU (microcontroller unit). The so-called MCU is a control chip, which is also a type of very large scale integrated circuit (VLSI). It is composed of large-scale transistors and naturally faces the risk of failure such as circuit aging, interference, and damage. Simulating failures, detecting failures, timely alarms, preventing risks, and diagnosing failure coverage are the significance of automotive functional safety and ISO26262.
[0003] In the field of functional safety, there are permanent faults (Stuck-At Faults) and transient faults (Transient Faults). One type of transient fault is called Single Event Upset (SEU), also known as a single transient fault. This fault is described as a situation where the circuit disappears immediately after a transient jump. Unlike permanent faults, permanent faults can set the value of the fault point signal to 0 / 1 in any state of the circuit, while transient faults require the circuit to reverse the value at that moment when it is 0 / 1. Digital circuits have four states, 0, 1, x, and z. Only when the circuit is 0 / 1 can a transient fault be successfully inserted. Therefore, for fault injection testing (FIT) and simulators that simulate these faults, how to accurately and efficiently insert and simulate transient faults has become a major problem.
[0004] Therefore, a new single instantaneous fault injection method and device for a control chip is needed.
[0005] The above information disclosed in the Background section is only for enhancement of understanding of the background of the present application and therefore it may contain information that does not constitute the prior art that is already known to a person of ordinary skill in the art. Summary of the invention
[0006] In view of this, the present application provides a single instantaneous fault injection method and device for a control chip, which can accurately detect single-point faults, improve detection accuracy, and also increase the success rate of fault injection and the probability of detection, thereby reducing the number of invalid fault simulations and improving fault simulation efficiency.
[0007] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.
[0008] According to one aspect of the present application, a method for single instantaneous fault injection of a control chip is proposed, the method comprising: determining injection parameters of the control chip to be tested; determining a target signal of the control chip to be tested; controlling the control chip to operate in a preset state; performing a single instantaneous fault injection on the target signal of the control chip based on the injection parameters; and stopping the injection when the single instantaneous fault injection is successful.
[0009] In an exemplary embodiment of the present application, it also includes: determining the monitoring parameters of the control chip to be tested; when a single fault is injected, obtaining an output signal based on the monitoring parameters; and generating a single instantaneous fault analysis report of the control chip through the output signal.
[0010] In an exemplary embodiment of the present application, determining the monitoring parameters of the control chip to be tested includes: determining the monitoring parameters of the control chip to be tested as a functional check signal; and / or determining the monitoring parameters of the control chip to be tested as a safety check signal.
[0011] In an exemplary embodiment of the present application, determining the injection parameters of the control chip to be tested includes: determining the injection time of the control chip to be tested; and determining the injection period of the control chip to be tested.
[0012] In an exemplary embodiment of the present application, determining the injection time of the control chip to be tested includes: determining the injection time of the control chip based on a signal flip rate of the target signal.
[0013] In an exemplary embodiment of the present application, the injection time of the control chip is determined based on the signal toggle rate of the target signal, including: acquiring sampling parameters of the control chip; performing statistics on the signal toggle rate of the target signal based on the sampling parameters; and determining the injection time according to the statistical results.
[0014] In an exemplary embodiment of the present application, the signal flip rate of the target signal is counted based on the sampling parameters, including: periodically flipping the target signal based on the sampling parameters; counting the signal flip rate of the target signal; determining the injection success rate of the target signal in multiple time ranges according to the statistical results; and determining the injection time from the multiple time ranges according to the injection success rate.
[0015] In an exemplary embodiment of the present application, a single instantaneous fault injection is performed on the target signal of the control chip based on the injection parameters, including: determining the fault injection time point based on the injection time and injection period in the injection parameters; and periodically flipping the target signal of the control chip at the fault injection time point.
[0016] In an exemplary embodiment of the present application, when a single instantaneous fault injection is successful, the injection is stopped, including: when the signal value of the target signal changes and reaches a preset value, determining that the single instantaneous fault injection is successful; and stopping the single instantaneous fault injection.
[0017] According to one aspect of the present application, a single instantaneous fault injection device for a control chip is proposed, and the device includes: a parameter module, used to determine the injection parameters of the control chip to be tested; a signal module, used to determine the target signal of the control chip to be tested; a state module, used to control the control chip to operate in a preset state; an injection module, used to perform a single instantaneous fault injection on the target signal of the control chip based on the injection parameters; and a stop module, used to stop the injection when the single instantaneous fault injection is successful.
[0018] According to one aspect of the present application, an electronic device is proposed, which includes: one or more processors; a storage device for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the method as described above.
[0019] According to one aspect of the present application, a computer-readable medium is provided, on which a computer program is stored. When the program is executed by a processor, the method described above is implemented.
[0020] According to the single instantaneous fault injection method and device of the control chip of the present application, by determining the injection parameters of the control chip to be tested; determining the target signal of the control chip to be tested; controlling the control chip to operate in a preset state; performing a single instantaneous fault injection on the target signal of the control chip based on the injection parameters; and stopping the injection when the single instantaneous fault injection is successful, a single point fault can be accurately detected, the detection accuracy can be improved, and the success rate of fault injection and the probability of being detected can also be improved, thereby reducing the number of invalid fault simulations and improving the efficiency of fault simulation.
[0021] It should be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The above and other objects, features and advantages of the present application will become more apparent by describing in detail the exemplary embodiments thereof with reference to the accompanying drawings. The accompanying drawings described below are only some embodiments of the present application, and it is clear to a person skilled in the art that other accompanying drawings can be obtained from these accompanying drawings without creative effort.
[0023] Figure 1 It is a schematic diagram of a transient fault injection method for a control chip in the prior art.
[0024] Figure 2 It is a schematic diagram of a transient fault injection method for a control chip in the prior art.
[0025] Figure 3 It is a schematic diagram of a transient fault injection method for a control chip in the prior art.
[0026] Figure 4 It is a schematic diagram showing a single instantaneous fault injection method for a control chip according to an exemplary embodiment.
[0027] Figure 5 The present invention is a flow chart showing a method for injecting a single transient fault into a control chip according to an exemplary embodiment.
[0028] Figure 6 is a flow chart of a method for injecting a single transient fault into a control chip according to another exemplary embodiment.
[0029] Figure 7 is a flow chart of a method for injecting a single transient fault into a control chip according to another exemplary embodiment.
[0030] Figure 8 It is a schematic diagram showing a single instantaneous fault injection method for a control chip according to an exemplary embodiment.
[0031] Fig. 9 It is a schematic diagram showing a single instantaneous fault injection method for a control chip according to an exemplary embodiment.
[0032] Fig.10 It is a schematic diagram showing a single instantaneous fault injection method for a control chip according to an exemplary embodiment.
[0033] Fig.11 It is a schematic diagram showing a single instantaneous fault injection method for a control chip according to an exemplary embodiment.
[0034] Fig.12 The invention is a block diagram of a single instantaneous fault injection device for a control chip according to an exemplary embodiment.
[0035] Fig.13 It is a block diagram of an electronic device according to an exemplary embodiment.
[0036] Fig.14 It is a block diagram of a computer-readable medium according to an exemplary embodiment. DETAILED DESCRIPTION
[0037] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in many forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this application will be comprehensive and complete and will fully convey the concepts of the example embodiments to those skilled in the art. The same reference numerals in the figures represent the same or similar parts, and thus their repeated description will be omitted.
[0038] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.
[0039] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0040] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0041] It should be understood that although the terms first, second, third, etc. may be used herein to describe various components, these components should not be limited by these terms. These terms are used to distinguish one component from another component. Therefore, the first component discussed below can be referred to as the second component without departing from the teachings of the concepts of the present application. As used herein, the term "and / or" includes any one of the associated listed items and all combinations of one or more.
[0042] Those skilled in the art will appreciate that the drawings are merely schematic diagrams of example embodiments, and the modules or processes in the drawings are not necessarily necessary for implementing the present application, and therefore cannot be used to limit the scope of protection of the present application.
[0043] In the prior art, common transient fault injection methods include the following:
[0044] Instantaneous fault injection is performed at a specified time. This is a relatively simple method of instantaneous fault injection. It is to specify a certain time point and flip the value at that point, such as Figure 1 As shown in , when the value at this moment is not x / z, the fault can be successfully injected. Figure 2 As shown in the figure, when the specified time data is x, the fault injection fails and the simulation is invalid.
[0045] Specify several moments to perform instantaneous fault injection. This method increases the probability of successful fault injection by setting multiple instantaneous fault injection time points. Figure 3 As shown in the figure, in the case of multiple fault injections, the fault injection can be successful at some times, and the fault injection will still fail at some times.
[0046] From the above explanation, it can be clearly seen that with the first method, there is a high probability that a certain moment with a signal value of X will be selected. When the circuit scale is large, a large number of transient faults will fail to be injected due to inaccurate selected time, increasing the number of fault injection simulations and wasting simulation time. Although the second method increases the injection time point of transient faults, increases the number of injections, and improves the hit rate, the manual addition of fault injection time alone is labor-intensive and requires a balance between labor costs and improving the success rate of fault injection. It still cannot significantly increase the probability of successful fault injection.
[0047] Therefore, in the existing technology, it is still necessary to study more automated and intelligent transient fault injection solutions to significantly improve the success rate of transient fault injection.
[0048] In view of the difficulties in the prior art, this paper proposes a single instantaneous fault injection method for control chips. It is a new single fault injection method, which simulates the fault injection of instantaneous faults in advance to determine the best fault injection time. In the subsequent fault injection, the instantaneous fault is injected at the best fault time. This method can improve the success rate of fault injection and the probability of being detected, thereby achieving the ultimate goal of reducing the number of invalid fault simulations and improving the efficiency of fault simulation.
[0049] It is worth mentioning that the embodiments in the present application are all illustrated by taking the settings in the process of controlling chip function simulation as an example, but the method in the present application can also be used in a non-simulation environment.
[0050] It is understandable that the method in the present application can be applied in the detection environment of the hardware control chip or in the experimental scenarios of other chips, and the present application is not limited thereto.
[0051] For MCU, the general fault simulation scale is very large. For example, when the classic ARM CORTEX M3 core is connected to peripherals, such as Figure 4 As shown, the scale is also tens of thousands to hundreds of thousands of gates, and a whole chip has at least hundreds of thousands to millions of signals and memories.
[0052] In a functional simulation, it is very common and reasonable for the signal value to be X or Z, and there are often huge numbers of them. The requirement for instantaneous fault injection in fault simulation is to flip the value of the signal (0 or 1) at a certain moment and continue the fault simulation. However, the X / Z value will cause the fault injection to fail, affecting the simulation results.
[0053] In order to reduce the number of simulations, shorten the simulation time, and ensure the validity of simulation data, it is of great significance to scientifically and reasonably select fault injection points and set fault injection methods.
[0054] The content of this application is described in detail below with the help of specific embodiments.
[0055] Figure 5 The flowchart of a method for injecting a single transient fault into a control chip according to an exemplary embodiment is shown. The method 50 for injecting a single transient fault into a control chip at least includes steps S502 to S508.
[0056] like Figure 5As shown, in S502, the injection parameters of the control chip to be tested are determined. For example, the injection time of the control chip to be tested can be determined; and the injection cycle of the control chip to be tested can be determined.
[0057] More specifically, the injection time of the control chip may be determined based on a signal flip rate of the target signal.
[0058] More specifically, the injection period may be determined according to chip parameters of the control chip; and / or the injection period may be determined by obtaining user input; and / or the injection period may be generated by default parameters.
[0059] The details of "determining the injection time of the control chip based on the signal flip rate of the target signal" will be described in Figure 6 The corresponding embodiments are described in detail.
[0060] In S504, a target signal of the control chip to be tested is determined.
[0061] The target signal can be determined according to the needs of this detection, and can also be determined according to the signal importance. The target signal can be one or more. That is, in the fault simulation, a transient fault can be injected into one target signal at a time, or into multiple target signals at a time.
[0062] In one embodiment, Figure 4 As shown, the target signal may be, for example, an I-code bus signal and a D-code bus signal between the system bus and the bus matrix, or a trigger signal between the DWT and the ETM, and of course, all system bus signals and the like.
[0063] In S506, the control chip is controlled to operate in a preset state. The control chip can be controlled to operate in a preset state, such as a normal working state, a detection state, a safety mode, or other user-specified states. When the output value of the target signal is a preset value, the task control chip can operate in the preset state.
[0064] In one embodiment, before the fault simulation starts, the control chip can be made to work in a preset state, which also includes: making the target signal to be detected work in a stable state, and the stable state is that the target signal works at a preset value. The preset value can be, for example, 1 or 0, and of course, it can also be other fixed numerical states, and the present application is not limited thereto.
[0065] In one embodiment, before the fault simulation starts, the states of other output signals or other signals that are associated with and have an impact on the target signal may also be detected, so that these signals can also be kept in a stable working state.
[0066] In S508, a single instantaneous fault injection is performed on the target signal of the control chip based on the injection parameters. The fault injection time point can be determined based on the injection time and injection period in the injection parameters; and the target signal of the control chip is periodically flipped at the fault injection time point.
[0067] In S510, when the single instantaneous fault injection is successful, the injection is stopped. When the signal value of the target signal changes and reaches a preset value, it is determined that the single instantaneous fault injection is successful; and the single instantaneous fault injection is stopped.
[0068] In one embodiment, it also includes: determining monitoring parameters of the control chip to be tested; obtaining an output signal based on the monitoring parameters when a single fault is injected; and generating a single instantaneous fault analysis report of the control chip through the output signal.
[0069] For example, the monitoring parameter of the control chip to be tested may be determined as a function check signal; for example, the monitoring parameter of the control chip to be tested may be determined as a safety check signal.
[0070] According to the single instantaneous fault injection method of the control chip of the present application, by determining the injection parameters of the control chip to be tested; determining the target signal of the control chip to be tested; controlling the control chip to operate in a preset state; performing a single instantaneous fault injection on the target signal of the control chip based on the injection parameters; and stopping the injection when the single instantaneous fault injection is successful, a single point fault can be accurately detected, detection accuracy can be improved, and the success rate of fault injection and the probability of being detected can also be improved, thereby reducing the number of invalid fault simulations and improving fault simulation efficiency.
[0071] It should be clearly understood that the present application describes how to form and use specific examples, but the principles of the present application are not limited to any details of these examples. On the contrary, based on the teaching of the content disclosed in the present application, these principles can be applied to many other embodiments.
[0072] Figure 6 is a flow chart of a method for injecting a single transient fault into a control chip according to another exemplary embodiment. Figure 6 The process 60 shown is for Figure 5 A detailed description of “determining the injection time of the control chip to be tested” in the process S502 is shown.
[0073] like Figure 6 As shown, in S602, the sampling parameters of the control chip are obtained.
[0074] For example, the sampling period of the control chip to be detected can be obtained; for example, the sampling time unit of the control chip to be detected can be obtained; for example, the sampling time accuracy of the control chip to be detected can be obtained.
[0075] More specifically, the sampling period may be determined according to chip parameters of the control chip to be detected; and / or the sampling period may be determined by obtaining user input; and / or the sampling period may be generated by default parameters.
[0076] In a specific embodiment, the sampling period can be determined according to the crystal oscillator frequency of the control chip, and can also be determined according to the main frequency of the control signal of the control chip. Of course, the sampling period can also be determined according to the operating frequency of the target signal to be detected, but the present application is not limited to this.
[0077] In other specific embodiments, the sampling period may be generated according to user-specified or system default parameters.
[0078] In S604, the signal flip rate of the target signal is counted based on the sampling parameter. The target signal may be flipped periodically based on the sampling parameter; and the signal flip rate of the target signal is counted.
[0079] When the current signal value of the target signal is 1, the signal value of the signal is flipped to 0; or when the signal value of the target signal is 0, the signal value of the signal is flipped to 0. It is worth mentioning that, as mentioned above, the signal flipping may not be successful.
[0080] In S606, the injection time is determined according to the statistical result. The injection success rate of the target signal in multiple time ranges can be determined according to the statistical result; and the injection time is determined from the multiple time ranges according to the injection success rate.
[0081] More specifically, the injection time point may be determined from the multiple time points according to the injection success rate; the injection time interval may also be determined from the multiple time points according to the injection success rate.
[0082] In one embodiment, a flip rate statistical report can be given for signals within a specified range according to set requirements to determine the most suitable fault injection time for fault simulation. The most suitable time point for fault simulation injection can be the time point with the highest flip rate. It can be understood that if an instantaneous fault injection is performed at this time point, the target signal can be flipped successfully to the greatest extent possible (that is, the instantaneous fault injection is successful). This approach can reduce the number of invalid injections, increase the success rate of random fault injection, and reduce memory overhead during the simulation process, and shorten the test time in the actual detection environment.
[0083] In one embodiment, the time interval most suitable for fault simulation injection may be a time interval consisting of several time points with the highest flip rate, or a time interval centered on the time point with the highest flip rate, or a period with the highest flip rate in the flip detection period, but the present application is not limited to this.
[0084] Figure 7 is a flow chart of a method for injecting a single transient fault into a control chip according to another exemplary embodiment. Figure 7 The process 70 shown takes the calculation of a specific practical application scenario as an example. Figure 5 The process shown is described in detail.
[0085] like Figure 7 As shown, in S702, the fault type is set to a single instantaneous fault.
[0086] In S704, the start time and the end time are set.
[0087] In S706 , a fault injection period is set.
[0088] In S708, a single instantaneous fault injection is performed.
[0089] In S710 , it is determined whether the value of the target signal at the fault injection point is equal to X / Z.
[0090] In S712, the current moment is within the fault injection cycle.
[0091] In S714, the target signal is inverted.
[0092] In S716, the flip is successful.
[0093] In S718, the output of the monitoring signal is obtained.
[0094] In such Figure 7 In the specific application shown, the fault injection point can be set to tb.u_dut.r_data, the fault start time T_start = 20ns, and the injection period T_period = 10ns. For example, the injections at 20ns and 30ns failed, and the fault injection at 40ns succeeded. Figure 8 As shown, after the fault is injected, the signal waveform is as follows Fig. 9 shown.
[0095] For example, the function check signal can be set to tb.u_dut.u_func.func_out, and the safety check signal can be set to tb.u_dut.u_sm.checker_out. Under normal circumstances, the waveforms of the two check signals are as follows: Fig.10 As shown in Figure 2, the simulation results after fault injection are as follows: Fig.11shown.
[0096] By comparison Fig.10 and Fig.11 , we can see that the function port Functional Output, referred to as FO, that is, the signal func_out changes, which means that the function end has failed, and the safety check port Checker Output, referred to as CO, that is, the signal checker_out has not changed. From the above monitoring signal results, we can see that when the local transient fault is injected, the safety mechanism does not detect that the danger may occur.
[0097] In order to reduce the number of invalid fault simulations, increase the accuracy of transient fault injection, and shorten the simulation time, the single transient fault injection method of the control chip of the present application proposes a new transient fault periodic injection method. By using the original method of setting only one fault injection time or multiple fault injection times in a general fault injection simulator, combined with the method of setting the fault injection cycle, the transient fault is automatically injected periodically, avoiding the problem in the previous method that the transient fault cannot be successfully injected only by injecting once or a specified number of times.
[0098] The single fault injection in the prior art cannot guarantee that the safety mechanism will effectively detect the danger when it comes. The single instantaneous fault injection method of the control chip of the present application can expand the fault impact solution and increase the probability of the functional end and the safety detection end detecting the occurrence of the fault danger at the same time, and has a better detection effect on the situation where single point faults occur frequently.
[0099] Those skilled in the art will appreciate that all or part of the steps for implementing the above embodiments are implemented as a computer program executed by a CPU. When the computer program is executed by the CPU, the above functions defined by the above method provided in the present application are executed. The program may be stored in a computer-readable storage medium, which may be a read-only memory, a disk, or an optical disk, etc.
[0100] In addition, it should be noted that the above figures are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present application, and are not intended to be limiting. It is easy to understand that the processes shown in the above figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.
[0101] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0102] Fig.12FIG. 1 is a block diagram of a single instantaneous fault injection device for a control chip according to an exemplary embodiment. Fig.12 As shown, the single instantaneous fault injection device 120 for the control chip includes: a parameter module 1202 , a signal module 1204 , a state module 1206 , an injection module 1208 , and a stop module 1210 . The single instantaneous fault injection device 120 for the control chip may also include: an application module 1212 .
[0103] The parameter module 1202 is used to determine the injection parameters of the control chip to be tested; the parameter module 1202 is also used to determine the injection time of the control chip to be tested; and determine the injection cycle of the control chip to be tested.
[0104] The signal module 1204 is used to determine the target signal of the control chip to be tested;
[0105] The state module 1206 is used to control the control chip to operate in a preset state;
[0106] The injection module 1208 is used to perform a single instantaneous fault injection on the target signal of the control chip based on the injection parameters; the injection module 1208 is also used to determine the fault injection time point based on the injection time and injection period in the injection parameters; and periodically perform signal flipping on the target signal of the control chip at the fault injection time point.
[0107] The stop module 1210 is used to stop the injection when the single instantaneous fault injection is successful. The stop module 1210 is also used to determine that the single instantaneous fault injection is successful when the signal value of the target signal changes and reaches a preset value; and stop the single instantaneous fault injection.
[0108] The application module 1212 is used to determine the monitoring parameters of the control chip to be tested; when a single fault is injected, obtain an output signal based on the monitoring parameters; and generate a single instantaneous fault analysis report of the control chip through the output signal.
[0109] According to the single instantaneous fault injection device of the control chip of the present application, by determining the injection parameters of the control chip to be tested; determining the target signal of the control chip to be tested; controlling the control chip to operate in a preset state; performing a single instantaneous fault injection on the target signal of the control chip based on the injection parameters; and stopping the injection when the single instantaneous fault injection is successful, a single point fault can be accurately detected, the detection accuracy can be improved, and the success rate of the fault injection and the probability of being detected can also be improved, thereby reducing the number of invalid fault simulations and improving the fault simulation efficiency.
[0110] Fig.13It is a block diagram of an electronic device according to an exemplary embodiment.
[0111] Refer to the following Fig.13 1300 according to this embodiment of the present application is described. Fig.13 The electronic device 1300 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0112] like Fig.13 As shown, the electronic device 1300 is in the form of a general computing device. The components of the electronic device 1300 may include, but are not limited to: at least one processing unit 1310, at least one storage unit 1320, a bus 1330 connecting different system components (including the storage unit 1320 and the processing unit 1310), a display unit 1340, etc.
[0113] The storage unit stores a program code, which can be executed by the processing unit 1310, so that the processing unit 1310 performs the steps described in this specification according to various exemplary embodiments of the present application. For example, the processing unit 1310 can perform the following steps: Figure 5 , Figure 6 , Figure 7 Follow the steps shown in .
[0114] The storage unit 1320 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 13201 and / or a cache memory unit 13202 , and may further include a read-only memory unit (ROM) 13203 .
[0115] The storage unit 1320 may also include a program / utility 13204 having a set (at least one) of program modules 13205, such program modules 13205 including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include the implementation of a network environment.
[0116] Bus 1330 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0117] The electronic device 1300 may also communicate with one or more external devices 1300' (e.g., keyboards, pointing devices, Bluetooth devices, etc.) to enable a user to interact with the electronic device 1300, and / or any device (e.g., routers, modems, etc.) that the electronic device 1300 can communicate with one or more other computing devices. Such communication may be performed via an input / output (I / O) interface 1350. In addition, the electronic device 1300 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 1360. The network adapter 1360 may communicate with other modules of the electronic device 1300 via the bus 1330. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 1300, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0118] Through the above description of the implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by combining software with necessary hardware. Fig.14 As shown, the technical solution according to the implementation mode of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes a number of instructions to enable a computing device (which can be a personal computer, a server, or a network device, etc.) to execute the above method according to the implementation mode of the present application.
[0119] The software product may be any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, a system, device or component of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0120] The computer readable storage medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by an instruction execution system, an apparatus, or a device or used in combination with it. The program code contained on the readable storage medium may be transmitted with any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.
[0121] Program code for performing the operations of the present application may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).
[0122] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by a device, the computer-readable medium realizes the following functions: determining the injection parameters of the control chip to be tested; determining the target signal of the control chip to be tested; controlling the control chip to operate in a preset state; performing a single instantaneous fault injection on the target signal of the control chip based on the injection parameters; and stopping the injection when the single instantaneous fault injection is successful.
[0123] Those skilled in the art will appreciate that the above modules can be distributed in the device according to the description of the embodiment, or can be changed accordingly and only used in one or more devices different from the embodiment. The modules of the above embodiments can be combined into one module, or further divided into multiple sub-modules.
[0124] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the embodiment of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the embodiment of the present application.
[0125] The exemplary embodiments of the present application are specifically shown and described above. It should be understood that the present application is not limited to the detailed structures, configurations or implementations described herein; on the contrary, the present application is intended to cover various modifications and equivalent configurations included in the spirit and scope of the appended claims.
Claims
1. A single instantaneous fault injection method for a control chip, It is characterized in that include: Determining injection parameters of the control chip to be tested; Determine the target signal of the control chip to be tested; Controlling the control chip to operate in a preset state; Performing a single instantaneous fault injection on the target signal of the control chip based on the injection parameters, including: determining a fault injection time point based on an injection time and an injection period in the injection parameters, and periodically performing a signal flip on the target signal of the control chip at the fault injection time point; When a single transient fault injection succeeds, stop the injection. The method of determining the injection parameters of the control chip to be tested includes: obtaining sampling parameters of the control chip, periodically flipping the target signal based on the sampling parameters, statistically analyzing the signal flip rate of the target signal, determining the injection time according to the statistical results, and determining the injection period of the control chip to be tested.
2. The method according to claim 1, It is characterized in that Also includes: Determine monitoring parameters of the control chip to be tested; During a single fault injection, obtaining an output signal based on the monitoring parameter input; A single instantaneous fault analysis report of the control chip is generated through the output signal.
3. The method according to claim 2, It is characterized in that Determine the monitoring parameters of the control chip to be tested, including: Determining a monitoring parameter of the control chip to be tested as a function check signal; and / or A monitoring parameter of the control chip to be tested is determined to be a safety check signal.
4. The method according to claim 1, It is characterized in that Determining the injection time according to the statistical results includes: Determine the injection success rate of the target signal in multiple time ranges according to the statistical results; The injection time is determined from the multiple time ranges according to the injection success rate.
5. The method according to claim 1, It is characterized in that When a single transient fault injection succeeds, stop the injection, including: When the signal value of the target signal changes and reaches a preset value, determining that the single instantaneous fault injection is successful; Stop single instantaneous fault injection.
6. A single instantaneous fault injection device for a control chip, It is characterized in that include: A parameter module, used to determine the injection parameters of the control chip to be tested; A signal module, used to determine the target signal of the control chip to be tested; A state module, used to control the control chip to operate in a preset state; An injection module, used for performing a single instantaneous fault injection on the target signal of the control chip based on the injection parameters, including: determining a fault injection time point based on an injection time and an injection period in the injection parameters, and periodically performing a signal flip on the target signal of the control chip at the fault injection time point; The stop module is used to stop the injection when a single transient fault injection succeeds. The parameter module determines the injection parameters of the control chip to be tested, including: obtaining sampling parameters of the control chip, periodically flipping the target signal based on the sampling parameters, statistically analyzing the signal flip rate of the target signal, determining the injection time according to the statistical results, and determining the injection period of the control chip to be tested.
Citation Information
Patent Citations
Mean free error time assessment method and system based on irradiation test satellite-borne responder
CN104007427A
Simulated test system and method for single-particle overturn fault of aviation data bus
CN105974905A
Chip security test method and system based on fault injection
CN106326053A
Observation point and concurrence based fault injection simulation method and device
CN106383303A
Automatic fault injection system and method based on Zynq chip
CN114089161A
