Method and device for periodic instantaneous fault injection of control chip
By determining the injection parameters and target signals of the control chip, and performing periodic instantaneous fault injection in a preset state, the problem of difficulty in accurate insertion and simulation in the existing technology is solved, the detection accuracy and fault injection success rate are improved, and the fault injection success rate is reduced. This reduces the number of invalid simulations and improves fault simulation efficiency.
Patent Information
- Application Number
- CN202310457212.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-25
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2043-04-25
AI Technical Summary
The existing technology is difficult to accurately and efficiently insert and simulate periodic transient faults in automobile control chips, resulting in low detection accuracy and fault injection success rate, and increasing the number of invalid fault simulations.
By determining the injection parameters and target signals of the control chip to be tested, the control chip runs in a preset state, and periodic instantaneous fault injection is performed based on these parameters, and a fault analysis report is generated to improve detection accuracy and fault injection success rate.
It achieves accurate detection of instantaneous faults, improves the success rate of fault injection and the probability of detection, reduces the number of invalid fault simulations, and improves fault simulation efficiency.
Smart Images

Figure CN117539216B_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 periodic instantaneous fault injection of 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 Transient (SET), also known as periodic transient fault. This fault is described as a situation where the circuit jumps and then remains for a period of time before disappearing. 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 that the circuit must 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 method and device for periodic instantaneous fault injection of 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 method and device for periodic instantaneous fault injection of a control chip, which can accurately detect instantaneous 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 periodic 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; and performing periodic instantaneous fault injection on the target signal of the control chip based on the injection parameters.
[0009] In an exemplary embodiment of the present application, it also includes: determining the monitoring parameters of the control chip to be tested; when periodic transient faults are injected, obtaining an output signal based on the monitoring parameters; and generating a periodic transient 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; determining the injection cycle of the control chip to be tested; and determining the start time and end time 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 flip rate of the target signal, including: acquiring sampling parameters of the control chip; performing statistics on the signal flip rate of the target signal of the control chip 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 of the control chip is counted based on the sampling parameters, including: injecting instantaneous faults into the target signal based on the periodic flipping of 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, periodic instantaneous fault injection is performed on the target signal of the control chip based on the injection parameters, including: starting the periodic instantaneous fault injection at the start time in the injection parameters; during the periodic instantaneous fault injection process, after the control chip recovers to a preset state, performing the next round of instantaneous fault injection; and ending the periodic instantaneous fault injection at the end time in the injection parameters.
[0016] In an exemplary embodiment of the present application, periodic instantaneous fault injection is started at the start time in the injection parameters, including: determining a flip 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 by an instantaneous fault injection signal at the flip time point.
[0017] According to one aspect of the present application, a device for periodic instantaneous fault injection of a control chip is proposed, the device comprising: 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; and an injection module, used to perform periodic instantaneous fault injection on the target signal of the control chip based on the injection parameters.
[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 method and device for periodic instantaneous fault injection of a 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; and performing periodic instantaneous fault injection on the target signal of the control chip based on the injection parameters, instantaneous faults can be accurately detected, detection accuracy can be improved, and the success rate of fault injection and the probability of being detected can be improved, thereby reducing the number of invalid fault simulations and improving fault simulation efficiency.
[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 method for periodic instantaneous fault injection of a control chip according to an exemplary embodiment.
[0027] Figure 5 The figure is a flow chart showing a method for periodic instantaneous fault injection of a control chip according to an exemplary embodiment.
[0028] Figure 6 is a flow chart showing a method for periodic instantaneous fault injection of a control chip according to another exemplary embodiment.
[0029] Figure 7 is a flow chart showing a method for periodic instantaneous fault injection of a control chip according to another exemplary embodiment.
[0030] Figure 8 is a schematic diagram showing a method for periodic instantaneous fault injection of a control chip according to another exemplary embodiment.
[0031] Fig. 9 is a schematic diagram showing a method for periodic instantaneous fault injection of a control chip according to another exemplary embodiment.
[0032] Fig.10 is a schematic diagram showing a method for periodic instantaneous fault injection of a control chip according to another exemplary embodiment.
[0033] Fig.11 The invention is a block diagram of a device for periodic instantaneous fault injection of a control chip according to an exemplary embodiment.
[0034] Fig.12 It is a block diagram of an electronic device according to an exemplary embodiment.
[0035] Fig.13 It is a block diagram of a computer-readable medium according to an exemplary embodiment. DETAILED DESCRIPTION
[0036] 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.
[0037] 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.
[0038] 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.
[0039] 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.
[0040] 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.
[0041] 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.
[0042] In the prior art, common transient fault injection methods include the following:
[0043] 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.
[0044] 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.
[0045] 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.
[0046] 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.
[0047] In view of the difficulties in the prior art, this paper proposes a method for periodic instantaneous fault injection of control chips. It is a new fault injection method that simulates the fault injection of instantaneous faults in advance to determine the best fault injection time. In the subsequent fault injection, periodic instantaneous faults are 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.
[0048] 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.
[0049] 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.
[0050] 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.
[0051] 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.
[0052] 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.
[0053] The content of this application is described in detail below with the help of specific embodiments.
[0054] Figure 5 The flowchart of a method for periodic instantaneous fault injection of a control chip according to an exemplary embodiment is shown. The method 50 for periodic instantaneous fault injection of a control chip at least includes steps S502 to S508.
[0055] like Figure 5 As shown, in S502, the injection parameters of the control chip to be tested are determined. The injection time of the control chip to be tested can be determined; the injection cycle of the control chip to be tested can be determined; and the start time and end time of the control chip to be tested can be determined.
[0056] More specifically, the injection time of the control chip may be determined based on a signal flip rate of the target signal.
[0057] 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.
[0058] 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.
[0059] In S504, a target signal of the control chip to be tested is determined.
[0060] 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.
[0061] 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.
[0062] 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.
[0063] 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.
[0064] 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.
[0065] In S508, periodic instantaneous fault injection is performed on the target signal of the control chip based on the injection parameters. The periodic instantaneous fault injection may be started at the start time in the injection parameters; during the periodic instantaneous fault injection process, after the control chip is restored to a preset state, the next round of instantaneous fault injection is performed; and the periodic instantaneous fault injection is terminated at the end time in the injection parameters.
[0066] In one embodiment, the inversion fault injection time point is determined based on the injection time and the injection period in the injection parameters; and the instantaneous fault injection signal is periodically inverted on the target signal of the control chip at the inversion time point.
[0067] 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 periodic transient faults are injected; and generating a periodic transient fault analysis report of the control chip through the output signal.
[0068] More specifically, the monitoring parameter of the control chip to be tested may be determined as a function check signal; the monitoring parameter of the control chip to be tested may also be determined as a safety check signal.
[0069] According to the periodic 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; and performing periodic instantaneous fault injection on the target signal of the control chip based on the injection parameters, instantaneous faults can be accurately detected, the detection accuracy can be improved, and the success rate of fault injection and the probability of being detected can be improved, thereby reducing the number of invalid fault simulations and improving fault simulation efficiency.
[0070] 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.
[0071] Figure 6 is a flow chart showing a method for periodic instantaneous fault injection of 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 based on the signal toggle rate of the target signal” in the process S502 shown.
[0072] like Figure 6 As shown, in S602, the sampling parameters of the control chip are obtained.
[0073] 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.
[0074] 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.
[0075] 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.
[0076] In other specific embodiments, the sampling period may be generated according to user-specified or system default parameters.
[0077] In S604, the signal flip rate of the target signal of the control chip is counted based on the sampling parameter. A transient fault is injected into the target signal based on the periodic flipping of the sampling parameter; and the signal flip rate of the target signal is counted.
[0078] 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.
[0079] In S606, the injection time is determined according to the statistical result. The injection success rate of the target signal in multiple time ranges is determined according to the statistical result; and the injection time is determined from the multiple time ranges according to the injection success rate.
[0080] 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.
[0081] 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.
[0082] 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.
[0083] Figure 7 is a flow chart showing a method for periodic instantaneous fault injection of 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.
[0084] like Figure 7 As shown, in S702, the fault type is set to a periodic instantaneous fault.
[0085] In S704, the start time and the end time are set.
[0086] In S706 , a fault injection period is set.
[0087] In S708, instantaneous fault injection is performed.
[0088] In S710 , it is determined whether the value of the target signal at the fault injection point is equal to X / Z.
[0089] In S712, the current moment is within the fault injection cycle.
[0090] In S714, the target signal is inverted.
[0091] In S716, the flip is successful.
[0092] In S718, the output of the monitoring signal is obtained.
[0093] In S720, the current moment is within the fault injection cycle.
[0094] In S722, it is determined whether the target signal is restored to the state before the inversion.
[0095] In one embodiment, the fault injection point is set to tb.u_dut.r_data, the fault start T_start = 20ns, and the injection period T_period = 10ns. As an example, the injection fails at 20ns, 30ns, and 70ns because the signal is not X-valued. In addition, since multiple fault injections to the same signal require the restoration of the original value after the previous fault injection before the next fault injection, the r_data signal also fails to be injected at 50ns, 60ns, 90ns, and 100ns. Only the two fault injections at 40ns and 80ns are successful. Figure 8 shown.
[0096] Through this simulation method, the transient fault is simulated to occur periodically and repeatedly, and the impact of the fault on the circuit after propagation. Similarly, the function check signal is selected as tb.u_dut.u_func.func_out, and the safety check signal is selected as tb.u_dut.u_sm.checker_out. Under normal circumstances, the waveforms of the two check signals are as follows Fig. 9 As shown in Figure 2, the simulation results after fault injection are as follows: Fig.10 By comparison Fig. 9 , Fig.10 It can be seen that both the function port (FO) func_out and the safety check port (CO) checker_out have changed, which means that when the function is abnormal, the safety mechanism also detects that a danger may occur.
[0097] In order to reduce the number of invalid fault simulations, increase the accuracy of instantaneous fault injection, and shorten the simulation time, the periodic instantaneous fault injection method of the control chip of the present application proposes a new instantaneous fault periodic injection method. The original method of setting the fault injection time only once or setting multiple fault injection times by the general fault injection simulator is combined with the method of setting the fault injection cycle to automatically inject the instantaneous fault periodically, avoiding the problem in the previous method that the instantaneous fault cannot be successfully injected by injecting only once or a specified number of times.
[0098] The periodic instantaneous fault injection method of the control chip of the present application uses a new fault injection method to periodically inject instantaneous faults until the fault injection is successful and is successfully detected by the functional output port and the safety mechanism output port, so as to improve the success rate of the fault injection and the probability of detection, thereby achieving the ultimate goal of reducing the number of invalid fault simulations and improving the efficiency of fault simulation.
[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.11 FIG. 1 is a block diagram of a periodic instantaneous fault injection device for a control chip according to an exemplary embodiment. Fig.11 As shown, the periodic instantaneous fault injection device 110 for the control chip includes: a parameter module 1102 , a signal module 1104 , a state module 1106 , and an injection module 1108 . The periodic instantaneous fault injection device 110 for the control chip may also include: a test module 1110 .
[0103] The parameter module 1102 is used to determine the injection parameters of the control chip to be tested; the parameter module 1102 is also used to determine the injection time of the control chip to be tested; determine the injection cycle of the control chip to be tested; determine the start time and end time of the control chip to be tested.
[0104] The signal module 1104 is used to determine the target signal of the control chip to be tested;
[0105] The state module 1106 is used to control the control chip to operate in a preset state;
[0106] The injection module 1108 is used to perform periodic instantaneous fault injection on the target signal of the control chip based on the injection parameters. The injection module 1108 is also used to start the periodic instantaneous fault injection at the start time in the injection parameters; during the periodic instantaneous fault injection process, after the control chip returns to a preset state, perform the next round of instantaneous fault injection; and end the periodic instantaneous fault injection at the end time in the injection parameters.
[0107] The testing module 1110 is used to determine the monitoring parameters of the control chip to be tested;
[0108] When periodic instantaneous faults are injected, an output signal is obtained based on the monitoring parameter input; and a periodic instantaneous fault analysis report of the control chip is generated through the output signal.
[0109] According to the periodic 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; and performing periodic instantaneous fault injection on the target signal of the control chip based on the injection parameters, instantaneous faults can be accurately detected, the detection accuracy can be improved, and the success rate of fault injection and the probability of being detected can be improved, thereby reducing the number of invalid fault simulations and improving fault simulation efficiency.
[0110] Fig.12 It is a block diagram of an electronic device according to an exemplary embodiment.
[0111] Refer to the following Fig.12 1200 according to this embodiment of the present application is described. Fig.12 The electronic device 1200 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.12 As shown, the electronic device 1200 is in the form of a general computing device. The components of the electronic device 1200 may include, but are not limited to: at least one processing unit 1210, at least one storage unit 1220, a bus 1230 connecting different system components (including the storage unit 1220 and the processing unit 1210), a display unit 1240, etc.
[0113] The storage unit stores a program code, which can be executed by the processing unit 1210, so that the processing unit 1210 performs the steps described in this specification according to various exemplary embodiments of the present application. For example, the processing unit 1210 can perform the following steps: Figure 5 , Figure 6 , Figure 7 Follow the steps shown in .
[0114] The storage unit 1220 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 12201 and / or a cache memory unit 12202 , and may further include a read-only memory unit (ROM) 12203 .
[0115] The storage unit 1220 may also include a program / utility 12204 having a set (at least one) of program modules 12205, such program modules 12205 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 1230 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 1200 may also communicate with one or more external devices 1200' (e.g., keyboards, pointing devices, Bluetooth devices, etc.) to enable a user to interact with the electronic device 1200, and / or any device (e.g., routers, modems, etc.) that the electronic device 1200 can communicate with one or more other computing devices. Such communication may be performed via an input / output (I / O) interface 1250. In addition, the electronic device 1200 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 1260. The network adapter 1260 may communicate with other modules of the electronic device 1200 via the bus 1230. 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 1200, 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.13 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; and performing periodic instantaneous fault injection on the target signal of the control chip based on the injection parameters.
[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 method for periodic transient fault injection of a control chip, 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; Based on the injection parameters, periodic instantaneous fault injection is performed on the target signal of the control chip, including: determining a flip fault injection time point based on the injection time and injection period in the injection parameters, periodically flipping the instantaneous fault injection signal of the target signal of the control chip at the flip fault injection time point, during the periodic instantaneous fault injection process, after the control chip recovers to a preset state, performing the next round of instantaneous fault injection, and ending the periodic instantaneous fault injection at the end time in the injection parameters, wherein determining the injection parameters of the control chip to be tested includes: acquiring sampling parameters of the control chip, injecting instantaneous faults into the target signal based on periodic flipping of the sampling parameters, counting the signal flip rate of the target signal, determining the injection time according to the statistical results, determining the injection period of the control chip to be tested, and determining the start time and end time of the control chip to be tested.
2. The method according to claim 1, characterized in that Also includes: Determine monitoring parameters of the control chip to be tested; When periodic instantaneous faults are injected, an output signal is obtained based on the monitoring parameter input; A periodic instantaneous fault analysis report of the control chip is generated through the output signal.
3. The method according to claim 2, 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, 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. A periodic instantaneous fault injection device for a control chip, 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 is used to perform periodic instantaneous fault injection on the target signal of the control chip based on the injection parameters, including: determining a flip fault injection time point based on the injection time and injection period in the injection parameters, periodically flipping the instantaneous fault injection signal on the target signal of the control chip at the flip fault injection time point, during the periodic instantaneous fault injection process, after the control chip recovers to a preset state, performing the next round of instantaneous fault injection, and ending the periodic instantaneous fault injection at the end time in the injection parameters, wherein determining the injection parameters of the control chip to be tested includes: acquiring sampling parameters of the control chip, injecting instantaneous faults into the target signal based on periodic flipping of the sampling parameters, counting the signal flip rate of the target signal, determining the injection time according to the statistical results, determining the injection period of the control chip to be tested, and determining the start time and end time of the control chip to be tested.
