General simulation method suitable for permanent fixed faults and instant fixed faults

By obtaining fault time attributes and preset simulation algorithms, the lack of transient fault simulation in the existing technology is solved, and a general simulation of permanent and transient faults is realized, which meets the needs of the functional safety field of automotive electronics and provides a more comprehensive fault diagnosis coverage.

CN118917040APending Publication Date: 2024-11-08中科鉴芯(北京)科技有限责任公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410839155.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

The existing fault simulation methods focus mainly on the simulation of permanent faults, lack support for transient fault simulation, especially in the field of functional safety of automotive electronics, it is difficult to consider both permanent faults and transient fault diagnostic coverage.

Method used

Provide a general simulation method to distinguish permanent fixed faults from transient fixed faults by obtaining fault time attributes (fix time and fault duration), and use preset simulation algorithms to simulate, including before the fault time The subsequent time frame cancellation of the failure and the failure disappearance moment is suitable for the simulation of permanent fixed faults and transient fixed faults.

Benefits of technology

It realizes simulation support for transient fixed faults, can schedule fault occurrence and disappearance moments, and is suitable for the simulation of permanent fixed faults and transient fixed faults, and has simulation versatility and meets the needs of automotive electronic functional safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118917040A_ABST
    Figure CN118917040A_ABST
Patent Text Reader

Abstract

The invention relates to a general simulation method suitable for a permanent fixed fault and an instant fixed fault, and the method comprises the steps: obtaining a specified fault time attribute which comprises a fault occurrence moment and a fault duration; a first moment corresponding to a latest time frame before the fault occurrence moment is determined, the time frame is a time point when the input port changes, and the first moment is used for fault injection; determining a fault disappearance moment according to the fault occurrence moment and the fault duration, and determining a second moment corresponding to the latest time frame after the fault disappearance moment, the second moment being used for fault elimination; and adopting a preset simulation algorithm to perform simulation of an instant fixed fault based on the first moment of fault injection and the second moment of fault elimination, or perform simulation of a permanent fixed fault based on the duration of the fault. The method is suitable for permanent fixed type fault simulation and transient fixed type fault simulation, and has simulation universality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of fault simulation, and in particular to a universal simulation method applicable to permanent fixed-type faults and instantaneous fixed-type faults. Background Art

[0002] The fault model of digital circuits can be divided into stuck-at faults, bridge faults, etc. from the perspective of fault behavior, and can be divided into permanent faults and transient faults from the perspective of time. Permanent faults are faults that cannot be recovered after they occur. They are generally caused by internal factors, that is, failures of the underlying hardware, such as short circuits or open circuits. Transient faults are also called soft errors in some fields. They are faults that can be recovered within a certain time range after they occur. They are generally caused by external factors, such as cosmic rays, alpha particles emitted by radioactive substances in packaging materials, etc. These high-energy particles may cause bit flips and faults after hitting the integrated circuit. These faults can recover by themselves after a certain period of time.

[0003] In the field of automotive electronic functional safety, although the fixed fault model is still used, permanent faults and transient faults (i.e. permanent fixed faults and transient fixed faults) are considered at the same time. For example, FMEDA (Failure Mode Effect, Diagnostic and Analysis, a verification method for hardware architecture measurement) in the field of automotive functional safety requires simulation to calculate the diagnostic coverage of fixed faults and transient fixed faults.

[0004] Existing fault simulation methods and fault simulation tools basically focus on the simulation of permanent faults, but lack support for transient fault simulation. Summary of the invention

[0005] The present application provides a general simulation method applicable to permanent stuck-at faults and transient stuck-at faults to solve the problem of lack of support for transient fault simulation.

[0006] In a first aspect, the present application provides a general simulation method applicable to permanent fixed-type faults and instantaneous fixed-type faults, the method comprising: obtaining specified fault time attributes, wherein the fault time attributes include the moment of fault occurrence and the duration of the fault; determining a first moment corresponding to the most recent time frame before the moment of fault occurrence, wherein the time frame is the time point when the input port changes, and the first moment is used for fault injection; determining a moment when the fault disappears according to the moment of fault occurrence and the duration of the fault, and determining a second moment corresponding to the most recent time frame after the moment of fault disappearance, and the second moment is used for fault elimination; using a preset simulation algorithm, simulating an instantaneous fixed-type fault based on the first moment of fault injection and the second moment of fault elimination, or simulating a permanent fixed-type fault based on the duration of the fault.

[0007] Optionally, determining the first moment corresponding to the most recent time frame before the moment when the fault occurs includes: if the moment when the fault occurs coincides with the time frame, using the moment when the fault occurs as the first moment when the fault is injected; if the moment when the fault occurs does not coincide with the time frame, using the fault scheduler to determine the most recent time frame before the moment when the fault occurs, and using the time frame as the first moment when the fault is injected.

[0008] Optionally, determining the second moment corresponding to the most recent time frame after the moment when the fault disappears includes: using a fault scheduler to determine the most recent time frame after the moment when the fault disappears, and using the time frame as the second moment when the fault is eliminated.

[0009] Optionally, using a preset simulation algorithm to perform fault simulation includes: if a concurrent simulation algorithm is used, performing fault injection at the first moment of the fault injection, wherein the fault injection is to add a local fault gate based on the initial fault occurrence gate; performing fault simulation based on the initial fault occurrence gate and the local fault gate; and performing fault elimination at the second moment, wherein the fault elimination is to delete the local fault gate.

[0010] Optionally, using a preset simulation algorithm to perform fault simulation includes: if a vector parallel simulation algorithm is used, starting from the first moment of the fault injection, the fault is injected in each subsequent time frame; fault simulation is performed based on the injected fault; starting from the second moment when the fault is eliminated, the fault injection is canceled in each subsequent time frame.

[0011] Optionally, obtaining the specified fault time attribute includes: obtaining the fault occurrence time and fault duration input by the user, wherein the fault duration corresponding to the permanent fixed fault is infinite, and the fault duration corresponding to the instantaneous fixed fault is finite.

[0012] Optionally, the fault scheduler is independent of the underlying simulation algorithm.

[0013] In a second aspect, the present application provides a universal simulation device applicable to permanent stuck faults and instantaneous stuck faults, the device comprising:

[0014] An acquisition module is used to obtain specified fault time attributes, wherein the fault time attributes include the moment of fault occurrence and the duration of the fault; a first determination module is used to determine a first moment corresponding to the most recent time frame before the moment of fault occurrence, wherein the time frame is the time point when the input port changes, and the first moment is used for fault injection; a second determination module is used to determine a moment when the fault disappears based on the moment of fault occurrence and the duration of the fault, and determine a second moment corresponding to the most recent time frame after the moment of fault disappearance, and the second moment is used for fault elimination; a simulation module is used to use a preset simulation algorithm to simulate an instantaneous fixed-type fault based on the first moment of fault injection and the second moment of fault elimination, or to simulate a permanent fixed-type fault based on the duration of the fault.

[0015] In a third aspect, the present application provides an electronic device comprising: at least one communication interface; at least one bus connected to the at least one communication interface; at least one processor connected to the at least one bus; and at least one memory connected to the at least one bus.

[0016] In a fourth aspect, the present application further provides a computer storage medium storing computer executable instructions, wherein the computer executable instructions are used to execute the general simulation method applicable to permanent fixed-type faults and instantaneous fixed-type faults as described in any one of the above items of the present application.

[0017] The above technical solution provided by the embodiment of the present application has the following advantages compared with the prior art: the present application schedules the time when the fault occurs and the time when the fault disappears, and respectively performs fault injection in the time frame before the time when the fault occurs and performs fault elimination in the time frame after the time when the fault disappears, thereby realizing the simulation of transient fixed-type faults. At the same time, the simulation of permanent fixed-type faults is realized according to the infinite fault duration. The present application is applicable to the simulation of permanent fixed-type faults and transient fixed-type faults, and has simulation versatility. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0019] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0020] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0021] Figure 1 A flowchart of a general simulation method applicable to permanent stuck-at faults and instantaneous stuck-at faults provided in an embodiment of the present application;

[0022] Figure 2 A schematic diagram of using a time frame for fault injection and fault elimination provided in an embodiment of the present application;

[0023] Figure 3 A general simulation flow chart applicable to permanent stuck faults and instantaneous stuck faults provided in an embodiment of the present application;

[0024] Figure 4 A schematic diagram of the structure of a universal simulation device applicable to permanent fixed type faults and instantaneous fixed type faults provided in an embodiment of the present application;

[0025] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0027] The disclosure below provides many different embodiments or examples to implement different structures of the present invention. In order to simplify the disclosure of the present invention, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present invention. In addition, the present invention can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.

[0028] The present application provides a general simulation method applicable to permanent stuck faults and transient stuck faults, which is applied to a simulation framework in a server and is used to perform permanent stuck fault simulation or transient stuck fault simulation, such as Figure 1 As shown, the method includes:

[0029] Step 101: Get the specified failure time attribute.

[0030] Among them, the fault time attribute includes the time when the fault occurs and the duration of the fault.

[0031] The fault types of digital circuits include permanent fixed faults and transient fixed faults. Fixed faults are from the perspective of fault behavior, while permanent faults and transient faults are from the perspective of fault time. The permanent faults and transient faults mentioned in the embodiments of the present application use the same fault model, i.e., fixed faults. Therefore, it can be considered that there is no insurmountable gap between permanent fault simulation and transient fault simulation.

[0032] The server abstracts two time attributes from the fault model, one is the time when the fault occurs, and the other is the duration of the fault. From the simulation point of view, the time when the fault occurs is the time when the simulation algorithm injects the fault, and the duration of the fault is the difference between the time when the fault disappears and the time when the fault occurs. After this abstraction, it can be found that permanent faults can actually be regarded as special transient faults with a fault occurrence time of 0 and a fault duration of infinity. Conversely, if the fault duration is a finite duration, that is, the time when the fault occurs and the time when the fault disappears of the finite duration are determined, the fault can be determined to be a transient fault. In addition, faults whose fault occurrence time is not 0 and whose fault duration is infinite can also be included in this abstract model.

[0033] Therefore, the permanent fixed fault in the embodiment of the present application has an infinite duration. The instantaneous fixed fault in the embodiment of the present application has a fault occurrence time and a fault disappearance time, and the fault duration between the fault disappearance time and the fault occurrence time is a finite time.

[0034] Step 102: Determine a first moment corresponding to the most recent time frame before the fault occurs, and the first moment is used for fault injection.

[0035] The time frame is the time point when the input port changes.

[0036] The server obtains the vector file, which saves the logical value of PI (Primary Input, the basic input of the circuit) for each frame. The "time frame" here refers to the time point when any input port changes. For example, at the 15ms when the circuit starts running, the first input port of the circuit changes from 0 to 1, so 15ms is a frame. At the 30ms, the first input port of the circuit changes from 1 to 0, so 30ms is also a frame. It does not mean that the input does not exist between frames, but that the input remains unchanged. According to this example, from 15ms to 30ms, the input of the first input port of the circuit remains unchanged at 1. In this way, only the time point when the circuit input port changes can be saved, and the state of the circuit at any time point can be described.

[0037] Time in the real world is continuous, while the model of the time frame is discrete. In the real world, a transient fixed-state fault can occur at any moment, and there may not be a corresponding time frame at this moment. For example, a transient fixed-state fault may occur at 20ms, but there are only time frames at 15ms and 30ms. Then the method of injecting the fault is: inject the fault in the most recent previous frame, that is, inject the fault in the 15ms frame. The correctness of this is that although there is no time frame at the moment of 20ms, it does not mean that the input of the circuit does not exist, but that the input of the circuit is consistent with the most recent previous frame, that is, the 15ms frame. Therefore, when the fault is injected in the 15ms frame, the behavior of the circuit is exactly the same as when the fault is injected in 20ms, and the fault detection result is also exactly the same. Figure 2 A schematic diagram of fault injection and fault elimination using a time frame, such as Figure 2 As shown, Figure 2 Describes that a fault occurs at 20ms but a fault is injected at 15ms.

[0038] The above example describes that when the fault occurrence time does not coincide with the time frame, the time frame closest to the fault occurrence time is taken as the first time, and the fault is injected at the first time, for example, the fault is injected at 15ms before the fault occurs (20ms). If the fault occurrence time coincides with the time frame, for example, a transient fixed-state fault occurs at 15ms, then the fault can be directly injected into the frame of 15ms, that is, the fault occurrence time is taken as the first time.

[0039] Step 103: Determine the time when the fault disappears according to the time when the fault occurs and the duration of the fault, and determine the second time corresponding to the most recent time frame after the time when the fault disappears. The second time is used for fault elimination.

[0040] Fault disappearance time = fault occurrence time + fault duration. Similarly, the fault disappearance time may not correspond to a time frame, so the fault is eliminated in the next time frame closest to the fault disappearance time. For example, if a fault disappears at 20ms, the fault exists in the 15ms frame but not in the 30ms frame, so the fault should be eliminated before the simulation of the 30ms frame.

[0041] The above example is applicable to two solutions: the fault disappearance moment does not coincide with the time frame, and the fault disappearance moment coincides with the time frame. The most recent time frame after the fault disappearance moment is used as the second moment corresponding to the fault disappearance.

[0042] In the process of scheduling the time when a fault occurs and the time when a fault disappears, since all time frames of the vector file are known and the time is monotonically increasing, for each time when a fault occurs and disappears, the fault scheduler can use the binary method to quickly find the previous frame closest to the time when the fault occurs and the next frame closest to the time when the fault disappears within O (logn, time complexity) time.

[0043] This application abstracts two attributes from the fault model, one is the time when the fault occurs, and the other is the duration of the fault. For these two attributes, the current fault model can describe transient fixed-type faults that occur at any time and last for any duration, including permanent fixed-type faults.

[0044] Step 104: using a preset simulation algorithm, simulating an instantaneous stuck-at fault based on a first moment of fault injection and a second moment of fault elimination, or simulating a permanent stuck-at fault based on the duration of the fault.

[0045] The embodiment of the present application regards the occurrence and disappearance of a fault as two events. By scheduling these two events to appropriate time frames, a preset simulation algorithm is used to realize the simulation of transient fixed-type faults. At the same time, the simulation of permanent fixed-type faults can also be realized by specifying the duration of the fault as permanent.

[0046] The simulation algorithm may be any simulation algorithm, such as Parallel Fault, Parallel Pattern, Proofs, Deductive, Concurrent, etc. These algorithms have their own advantages and disadvantages, and play a role in different scenarios and applications.

[0047] This application needs to obtain a netlist file describing the circuit data structure before fault simulation, and then simulate transient fixed-state faults or permanent fixed-state faults based on the netlist file.

[0048] The present application schedules the time when a fault occurs and the time when a fault disappears, respectively injects a fault in the time frame before the time when the fault occurs and eliminates the fault in the time frame after the time when the fault disappears, to achieve the simulation of a transient fixed-type fault. At the same time, the simulation of a permanent fixed-type fault is achieved according to an infinite fault duration. The present application is applicable to the simulation of permanent fixed-type faults and transient fixed-type faults, and has simulation versatility.

[0049] As an optional implementation, before entering the fault time attribute, the user needs to first determine the fault type, and then determine the fault duration based on the fault type. The fault duration corresponding to a permanent fixed fault is infinite, and the fault duration corresponding to an instantaneous fixed fault is finite.

[0050] Optionally, the server can obtain a fault list, which includes at least one fault. The user specifies a fault category identifier for each fault, and the fault category identifier indicates that the fault type is a permanent fixed fault or a momentary fixed fault. Exemplarily, the fault category identifier can be 1 or -1, 1 indicates that the duration of the fault is a positive value, and a positive value corresponds to a momentary fixed fault; -1 indicates that the duration of the fault is a negative value, and a negative value corresponds to a permanent fixed fault. Other identifiers may also be used, and this application does not make specific limitations.

[0051] If the fault type is a permanent fixed fault, the user inputs the fault occurrence time and fault duration, where the fault duration corresponding to the permanent fixed fault is infinite; if the fault type is an instantaneous fixed fault, the user inputs the fault occurrence time and fault duration, where the fault duration corresponding to the instantaneous fixed fault is finite. After the user specifies the fault time attribute, a fault list with the fault occurrence time and fault duration is obtained, and the subsequent fault scheduler can perform time frame scheduling for fault injection and fault elimination based on the fault list.

[0052] For different simulation algorithms, the methods for performing fault simulation are different. The embodiments of the present application provide the following two embodiments.

[0053] In the first embodiment, if a concurrent simulation algorithm is used, fault injection is performed at the first moment of fault injection, wherein the fault injection is to add a local fault gate based on the initial fault occurrence gate; fault simulation is performed based on the initial fault occurrence gate and the local fault gate; and fault elimination is performed at the second moment of fault elimination, wherein the fault elimination is to delete the local fault gate.

[0054] In the second embodiment, if a vector parallel simulation algorithm is used, starting from the first moment of fault injection, a fault is injected in each subsequent time frame; fault simulation is performed based on the injected fault; starting from the second moment of fault elimination, the fault injection is canceled in each subsequent time frame.

[0055] In this application, the fault scheduler is independent of the underlying simulation algorithm. No matter which simulation algorithm is used at the bottom layer, this general simulation framework can be applied. The only difference is the method of fault injection and elimination.

[0056] Based on the same technical concept, the present application provides a general simulation flow chart applicable to permanent fixed faults and instantaneous fixed faults, such as Figure 3 shown.

[0057] Step 301: The netlist file is input into the fault simulator to perform circuit data structure analysis.

[0058] Step 302: Based on the specified fault time attribute of the fault list, a fault list of fault occurrence time and fault duration is obtained.

[0059] Step 303: Obtain the time frame from the vector file, and use the fault scheduler to schedule the fault occurrence time and the fault disappearance time to the corresponding time frame.

[0060] Step 304: Use a fault simulator to perform fault simulation.

[0061] The present application uses a global fault scheduler that is independent of the underlying simulation algorithm to schedule the time when the fault occurs and the time when the fault disappears. The fault injection is scheduled to the time frame closest to the time when the fault occurs, and the fault elimination is scheduled to the time frame closest to the time when the fault disappears, so as to realize the simulation of instantaneous fixed faults.

[0062] The embodiment of the present application is based on the traditional permanent fixed fault simulation framework, and performs a higher level of abstraction on the basis of the original fault simulation to build a more general fault simulation framework, incorporating both permanent fixed faults and transient fixed faults into this framework. In this way, the framework supports both permanent fixed fault simulation and transient fixed fault simulation, thereby better adapting to the needs of the functional safety field.

[0063] The present application is verified on the ISCAS89 and ITC99 benchmark circuits, and the fault simulation results are compared and analyzed. The results show that the present application can simultaneously realize permanent fixed fault simulation and transient fixed fault simulation. At the same time, the simulation results of permanent fixed fault are exactly the same as those obtained by using the traditional permanent fixed fault simulation method.

[0064] The present application provides a universal simulation device applicable to permanent fixed type faults and instantaneous fixed type faults, such as Figure 4 As shown, the device comprises:

[0065] The acquisition module 401 is used to acquire a specified fault time attribute, wherein the fault time attribute includes the fault occurrence time and the fault duration;

[0066] A first determination module 402 is used to determine a first moment corresponding to a time frame most recently before a fault occurs, wherein the time frame is a time point at which an input port changes, and the first moment is used for fault injection;

[0067] The second determination module 403 is used to determine the time when the fault disappears according to the time when the fault occurs and the duration of the fault, and to determine the second time corresponding to the most recent time frame after the time when the fault disappears, and the second time is used for eliminating the fault;

[0068] The simulation module 404 is used to use a preset simulation algorithm to simulate an instantaneous stuck-at fault based on a first moment of fault injection and a second moment of fault elimination, or to simulate a permanent stuck-at fault based on a duration of the fault.

[0069] Optionally, the first determining module 402 is used to:

[0070] If the fault occurrence time coincides with the time frame, the fault occurrence time is taken as the first time of fault injection;

[0071] If the fault occurrence time does not coincide with the time frame, the fault scheduler is used to determine the most recent time frame before the fault occurrence time, and the time frame is used as the first time of fault injection.

[0072] Optionally, the second determining module 403 is used to:

[0073] The fault scheduler is used to determine the nearest time frame after the moment when the fault disappears, and the time frame is used as the second moment when the fault is eliminated.

[0074] Optionally, the simulation module 404 is used to:

[0075] If a concurrent simulation algorithm is used, fault injection is performed at the first moment of fault injection, wherein the fault injection is to add a local fault gate based on the initial fault occurrence gate;

[0076] Perform fault simulation based on the initial fault occurrence gate and the local fault gate;

[0077] At the second moment, the fault is eliminated, wherein the fault elimination is to delete the local fault gate.

[0078] Optionally, the simulation module 404 is used to:

[0079] If the vector parallel simulation algorithm is used, starting from the first moment of fault injection, faults are injected in each subsequent time frame;

[0080] Fault simulation based on injected faults;

[0081] Starting from the second moment when the fault is eliminated, the fault injection is cancelled in each subsequent time frame.

[0082] Optionally, the acquisition module 401 is used to:

[0083] The fault occurrence time and fault duration input by the user are obtained, wherein the fault duration corresponding to a permanent fixed fault is infinite, and the fault duration corresponding to an instantaneous fixed fault is finite.

[0084] Optionally, the fault scheduler is independent of the underlying simulation algorithm.

[0085] like Figure 5 As shown, an embodiment of the present application provides an electronic device, including a processor 501, a communication interface 502, a memory 503 and a communication bus 504, wherein the processor 501, the communication interface 502, and the memory 503 communicate with each other through the communication bus 504.

[0086] The memory 503 is used to store computer programs.

[0087] In one embodiment of the present application, the processor 501 is used to implement the general simulation method applicable to permanent stuck-at faults and instantaneous stuck-at faults provided by any one of the aforementioned method embodiments when executing the program stored in the memory 503 .

[0088] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of a general simulation method applicable to permanent fixed-type faults and instantaneous fixed-type faults provided in any of the aforementioned method embodiments are implemented.

[0089] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0090] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0091] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.

[0092] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A general simulation method for permanent stuck faults and transient stuck faults, It is characterized in that The method comprises: Obtaining a specified fault time attribute, wherein the fault time attribute includes the time when the fault occurs and the duration of the fault; Determine a first moment corresponding to a time frame most recently before the moment when the fault occurs, wherein the time frame is a time point when the input port changes, and the first moment is used for fault injection; Determine a fault disappearance time according to the fault occurrence time and the fault duration, and determine a second time corresponding to the most recent time frame after the fault disappearance time, the second time being used for fault elimination; A preset simulation algorithm is used to simulate an instantaneous fixed fault based on a first moment of fault injection and a second moment of fault elimination, or to simulate a permanent fixed fault based on the duration of the fault.

2. The method according to claim 1, It is characterized in that Determining the first moment corresponding to the most recent time frame before the moment when the fault occurs includes: If the fault occurrence time coincides with the time frame, the fault occurrence time is used as the first time of fault injection; If the fault occurrence time does not coincide with the time frame, the fault scheduler is used to determine the most recent time frame before the fault occurrence time, and the time frame is used as the first time of fault injection.

3. The method according to claim 1, It is characterized in that Determining a second moment corresponding to the most recent time frame after the moment when the fault disappears includes: A fault scheduler is used to determine the most recent time frame after the moment when the fault disappears, and the time frame is used as the second moment when the fault is eliminated.

4. The method according to claim 1, It is characterized in that Fault simulation using a preset simulation algorithm includes: If a concurrent simulation algorithm is used, a fault injection is performed at the first moment of the fault injection, wherein the fault injection is to add a local fault gate on the basis of the initial fault occurrence gate; Performing fault simulation based on the initial fault occurrence gate and the local fault gate; Perform fault elimination at the second moment, wherein the fault elimination is to delete the local fault gate.

5. The method according to claim 1, It is characterized in that Fault simulation using a preset simulation algorithm includes: If a vector parallel simulation algorithm is used, starting from the first moment of the fault injection, the fault is injected into each subsequent time frame; Fault simulation based on injected faults; Starting from the second moment when the fault is eliminated, the fault injection is cancelled in each subsequent time frame.

6. The method according to claim 1, It is characterized in that Get the specified failure time attributes including: The fault occurrence time and fault duration input by the user are obtained, wherein the fault duration corresponding to the permanent fixed fault is infinite, and the fault duration corresponding to the instantaneous fixed fault is finite.

7. The method according to claim 2 or 3, It is characterized in that The fault scheduler is independent of the underlying simulation algorithm.

8. A universal simulation device suitable for permanent fixed faults and transient fixed faults, It is characterized in that The device comprises: An acquisition module, used to acquire a specified fault time attribute, wherein the fault time attribute includes a fault occurrence time and a fault duration; A first determination module, used to determine a first moment corresponding to a time frame most recently before the moment when the fault occurs, wherein the time frame is a time point when the input port changes, and the first moment is used for fault injection; A second determination module is used to determine a fault disappearance time according to the fault occurrence time and the fault duration, and determine a second time corresponding to the most recent time frame after the fault disappearance time, and the second time is used for fault elimination; The simulation module is used to use a preset simulation algorithm to simulate an instantaneous fixed-type fault based on a first moment of fault injection and a second moment of fault elimination, or to simulate a permanent fixed-type fault based on the duration of the fault.

9. An electronic device, It is characterized in that It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing any of the methods described in claims 1-7 when executing a program stored in a memory.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.