Fault detection method, device, computing equipment and computer storage medium
By performing fault simulation processing on the chip simulation model of automotive MCU, identifying the signal flip at the fault point and determining the cause, providing an optimization solution, solving the problem of insufficient diagnostic coverage, and improving work efficiency and design quality.
Patent Information
- Application Number
- CN202410222540.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-28
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-02-28
AI Technical Summary
The existing technology is difficult to effectively solve the reasons why automotive MCU failure cannot be detected, resulting in the diagnostic coverage rate not meeting the standards and the lack of efficient solutions.
By injecting the fault test vector into the chip simulation model for fault simulation processing, mark whether the signal flips occurred in the fault point, and determine the cause of the fault simulation result based on the marking results, providing an optimization solution to improve diagnostic coverage.
Reduces tool usage cost and functional safety design complexity, improves work efficiency, helps reduce design time and improves diagnostic coverage.
Smart Images

Figure CN117952047B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic design automation, and in particular to a fault detection method, device, computing equipment and computer storage medium. Background Art
[0002] With the global energy shortage, the vigorous development of new energy vehicles in various countries and the continuous 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 collaboratively processed and precisely controlled by the vehicle control chip (MCU).
[0003] Electronic design automation (EDA) refers to the use of computer-aided design software to complete the functional design, synthesis, verification, physical design and other processes of very large-scale integrated circuit (VLSI) chips. MCU is also a type of very large-scale integrated circuit, composed of large-scale transistors, and naturally faces the risk of failure due to circuit aging, interference, damage, etc. Simulating failures, detecting failures, timely alarms, preventing risks from occurring, and diagnosing failure coverage are the significance of automotive functional safety.
[0004] In automotive functional safety, the level of functional safety that an MCU can achieve is often calculated by calculating diagnostic coverage. Specifically, the diagnostic coverage is calculated by looking at whether the functional output port and the safety mechanism detect the fault in the fault simulation. The two special detection results that appear in the fault simulation will not be taken into account in the calculation of diagnostic coverage, but will affect the calculation result of the diagnostic coverage. If the proportion is too high, the diagnostic coverage will not meet the standard. These two special detection results specifically refer to: the functional output port does not detect the fault but the safety mechanism detects the fault, and the functional output port and the safety mechanism do not detect the fault. In order to improve the diagnostic coverage, it is necessary to reduce the number of occurrences of the above two special detection results. The reasons for the failure to detect the fault must be clearly identified in order to carry out targeted optimization, but there is no efficient solution in the existing technology. Summary of the invention
[0005] In view of the above problems, the present invention is proposed to provide a fault detection method, apparatus, computing device and computer storage medium that overcome the above problems or at least partially solve the above problems.
[0006] According to one aspect of the present invention, a fault detection method is provided, the method comprising:
[0007] Injecting fault test vectors into the chip simulation model to perform fault simulation processing;
[0008] According to the signal state of the fault point in the chip simulation model, mark whether the fault point has signal flipping, and obtain a marking result;
[0009] According to the marking result of the fault point, the cause corresponding to the fault simulation result of the fault point is determined.
[0010] Optionally, determining, according to the marking result of the fault point, a cause corresponding to the fault simulation result of the fault point further includes:
[0011] For a fault point where the fault simulation result is that neither the functional output port nor the safety mechanism detects the fault, the cause corresponding to the fault simulation result is determined according to the marking result.
[0012] Optionally, marking whether a signal flip occurs at the fault point according to a signal state of the fault point in the chip simulation model further includes:
[0013] Detect whether the signal state of the fault point meets the specified signal flip condition;
[0014] If it is satisfied, the signal flip occurs at the fault point marked;
[0015] If not satisfied, it is marked that no signal inversion occurs at the fault point.
[0016] Optionally, before detecting whether the signal state of the fault point satisfies a specified signal flip condition, the method further includes:
[0017] Receive the conditional configuration operation of the consumer;
[0018] Determines the specified signal toggle condition based on the conditional configuration operation.
[0019] Optionally, receiving a conditional configuration operation from a user, and determining a specified signal flipping condition according to the conditional configuration operation further includes:
[0020] Receive the user's enable operation for the signal flip condition option;
[0021] The specified signal inversion condition is determined based on the Signal Inversion Condition option corresponding to the Enable operation.
[0022] Optionally, after determining the cause corresponding to the fault simulation result of the fault point, the method further includes:
[0023] Obtain the optimization plan corresponding to the cause and output it.
[0024] Optionally, after obtaining the marking result, the method further includes:
[0025] The marked results are added to the fault simulation report, and the fault simulation report with the marked results added is output.
[0026] According to another aspect of the present invention, there is provided a fault detection device, the device comprising:
[0027] A processing module, used for injecting fault test vectors into a chip simulation model to perform fault simulation processing;
[0028] A marking module is used to mark whether a signal flip occurs at the fault point according to the signal state of the fault point in the chip simulation model, and obtain a marking result;
[0029] The analysis module is used to determine the cause corresponding to the fault simulation result of the fault point according to the marking result of the fault point.
[0030] Optionally, the analysis module is further configured to:
[0031] For a fault point where the fault simulation result is that neither the functional output port nor the safety mechanism detects the fault, the cause corresponding to the fault simulation result is determined according to the marking result.
[0032] Optionally, the marking module is further configured to:
[0033] Detect whether the signal state of the fault point meets the specified signal flip condition;
[0034] If it is satisfied, the signal flip occurs at the fault point marked;
[0035] If not satisfied, it is marked that no signal inversion occurs at the fault point.
[0036] Optionally, the device further comprises:
[0037] The configuration module is used to receive the conditional configuration operation of the user and determine the specified signal flip condition according to the conditional configuration operation.
[0038] Optionally, the configuration module is further used to: receive an enabling operation of a signal flip condition option from a user, and determine a specified signal flip condition according to the signal flip condition option corresponding to the enabling operation.
[0039] Optionally, the device further includes: an output module, used to obtain and output an optimization solution corresponding to the cause.
[0040] Optionally, the output module is further used to: add the marking result to the fault simulation report, and output the fault simulation report to which the marking result has been added.
[0041] According to another aspect of the present invention, there is provided a computing device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;
[0042] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute operations corresponding to the above-mentioned fault detection method.
[0043] According to another aspect of the present invention, a computer storage medium is provided, wherein the storage medium stores at least one executable instruction, and the executable instruction enables a processor to execute operations corresponding to the above-mentioned fault detection method.
[0044] According to the fault detection method, device, computing equipment and computer storage medium of the present invention, a fault test vector is injected into a chip simulation model to perform fault simulation processing; based on the signal state of the fault point in the chip simulation model, whether a signal flip occurs at the fault point is marked to obtain a marking result; based on the marking result of the fault point, the cause corresponding to the fault simulation result of the fault point is determined. Through the above-mentioned method, whether a signal flip occurs at the fault point during the fault simulation process is automatically identified to determine whether the fault point is activated by the injected fault, and then based on the marking result of whether the fault point is activated, the clear cause of the fault simulation result of the fault point is automatically determined, which can reduce the cost of using tools, reduce the complexity of functional safety design, and help reduce design time and improve work efficiency.
[0045] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0047] Figure 1 A flow chart of a fault detection method provided by an embodiment of the present invention is shown;
[0048] Figure 2 A flowchart of a fault detection method provided by another embodiment of the present invention is shown;
[0049] Figure 3 A flowchart of a fault detection method provided by another embodiment of the present invention is shown;
[0050] Figure 4 A schematic diagram showing the structure of a fault detection device provided by an embodiment of the present invention is shown;
[0051] Figure 5 A schematic diagram of the structure of a computing device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0052] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.
[0053] Figure 1 FIG. 1 is a flow chart of a fault detection method provided by an embodiment of the present invention, and the method is applicable to any device with computing capability. Figure 1 As shown, the method comprises the following steps:
[0054] Step S110, injecting fault test vectors into the chip simulation model to perform fault simulation processing.
[0055] The fault test vectors contained in the fault test source file are injected into the chip simulation model to perform fault simulation processing on the chip simulation model.
[0056] Step S120, marking whether a signal flip occurs at the fault point according to the signal state of the fault point in the chip simulation model, and obtaining a marking result.
[0057] According to the signal state of the fault point during the fault simulation process, determine whether a signal flip has occurred at the fault point. For example, if the signal value is detected to change from 1 to 0 or from 0 to 1, it is determined that a signal flip has occurred at the fault point, and a marking result is generated to indicate whether a signal flip has occurred at the fault point.
[0058] The purpose of this step is to identify whether the fault point is activated by the injected fault test vector. If the fault point has a signal flip, it means that the fault point is activated; if the fault point does not have a signal flip, it means that the fault point is not activated.
[0059] It should be noted that there are two reasons why the functional output port or safety mechanism does not detect the fault. One reason is that the fault point is activated, but the occurrence of the fault will not affect the simulation results. In this case, simulation is required to determine whether the fault is safe through the simulation results. The other reason is that the fault point has never been flipped or activated, so injecting a fault will not have any effect on the fault simulation results, so the fault cannot be detected. This will waste simulation times and simulation resources and consume user time. Based on this, the reason why the fault is not detected can be clarified by combining whether the fault point is activated during the fault simulation operation.
[0060] Step S130: determining the cause corresponding to the fault simulation result of the fault point according to the marking result of the fault point.
[0061] Among them, the fault simulation results include the functional output port of the fault point and the fault detection status of the safety mechanism. According to the marking result of whether the fault point is activated by the fault, the cause of the corresponding fault simulation result is determined, for example, whether the fault point is not activated due to the defect of the fault test vector, or the fault is not detected due to the design defect, etc.
[0062] In one implementation, the RTL code coverage in the design is checked through a waveform tool to confirm whether the signal has been activated or reversed. However, this method requires the purchase and installation of a waveform tool to check the code coverage in the design to confirm whether certain signals have been flipped or activated, which invisibly increases the design cost and complexity, and places high demands on the level of designers and verifiers. At the same time, the waveform tool can only be used to view the code coverage during functional simulation, which has no direct correlation with the results of functional safety and fault simulation. If you want to connect with functional safety simulation, you need to use a third tool, which again increases the cost and complexity of the design.
[0063] According to the fault detection method of the embodiment of the present invention, a fault test vector is injected into the chip simulation model to perform fault simulation processing; based on the signal state of the fault point in the chip simulation model, whether the fault point has a signal flip is marked to obtain a marking result; based on the marking result of the fault point, the cause corresponding to the fault simulation result of the fault point is determined. Through the above method, whether the fault point has a signal flip during the fault simulation process is automatically identified to determine whether the fault point is activated by the injected fault, and then based on the marking result of whether the fault point is activated, the clear cause of the fault simulation result of the fault point is automatically determined, which can reduce the cost of using tools, reduce the complexity of functional safety design, and help reduce design time and improve work efficiency.
[0064] Figure 2FIG. 2 is a flow chart of a fault detection method provided by another embodiment of the present invention, which is applicable to any device with computing capability. Figure 2 As shown, the method comprises the following steps:
[0065] Step S210: injecting fault test vectors into the chip simulation model to perform fault simulation processing.
[0066] The fault test vectors contained in the fault test source file are injected into the chip simulation model to perform fault simulation processing on the chip simulation model.
[0067] Step S220, detecting whether the signal state of the fault point satisfies the specified signal reversal condition; if so, marking the fault point as having signal reversal; if not, marking the fault point as not having signal reversal.
[0068] Detect whether the signal change of the fault point matches the signal change specified by the specified signal flip condition. If it matches, it is determined that the specified signal flip condition is satisfied; if it does not match, it is determined that the specified signal flip condition is not satisfied. Mark whether the signal flip occurs at the fault point. Specifically, add a first mark to the fault point to indicate that the signal flip occurs at the fault point, and add a second mark to the fault point to indicate that the signal flip does not occur at the fault point. The first mark and the second mark are different marks.
[0069] In an optional manner, a conditional configuration operation of a user is received; and a specified signal reversal condition is determined according to the conditional configuration operation. Before the fault simulation is run, the judgment condition for each fault point to be activated is given, for example, a configuration entry is displayed in the user's operation interface, and the initial signal value and target signal value configured by the user are received through the configuration entry. The specified signal reversal condition determined thereby is specifically: the signal value changes from the initial signal value to the target signal value. In this way, the user can configure the conditions for determining whether the signal is reversed, which can meet the user's personalized needs.
[0070] In another optional manner, receiving a conditional configuration operation from a user, and determining the designated signal flip condition based on the conditional configuration operation further includes: receiving an enable operation from the user for a signal flip condition option; and determining the designated signal flip condition based on the signal flip condition option corresponding to the enable operation. A plurality of different signal flip condition options are provided to the user. For example, enable buttons corresponding to a plurality of different signal flip condition options are displayed in the operation interface. If a click operation of the user on any of the enable buttons is detected, the signal flip condition option targeted by the click operation is determined as the designated signal flip condition. In this way, it is convenient for the user to configure the signal flip condition.
[0071] For example, the following four signal inversion condition options may be provided to set the conditions for determining whether a signal inversion occurs at a fault point:
[0072] The -toggle_status up option is used to set the following signal flipping conditions: when the signal has a jump from 0 to 1, it is determined that the signal flipping has occurred; the -toggle_status down option is used to set the following signal flipping conditions: when the signal has a jump from 1 to 0, it is determined that the signal flipping has occurred; the -toggle_status or option is used to set the following signal flipping conditions: when the signal has a jump from 0 to 1 or from 1 to 0, it is determined that the signal flipping has occurred; the -toggle_status all option is used to set the following signal flipping conditions: when the signal has a jump from 0 to 1 and from 1 to 0, it is determined that the signal flipping has occurred.
[0073] In another optional manner, if the conditional configuration operation of the user is not received, the default signal flip condition is determined as the specified signal flip condition. In this manner, if the user does not configure the signal flip condition by itself, the default signal flip condition is determined as the specified signal flip condition, that is, the default signal flip condition is used to perform the determination of whether a signal flip occurs. Continuing with the above example, the default signal flip condition can be the signal flip condition corresponding to the above-toggle_status all option.
[0074] Step S230, for the fault simulation result that the functional output port and the fault point where the safety mechanism does not detect the fault, determine the cause corresponding to the fault simulation result according to the marking result.
[0075] Among them, the fault simulation result in which the functional output port and the safety mechanism do not detect the fault is also called the UU result. That is, for the fault point where the fault simulation result is UU, the reason why the fault cannot be detected is obtained and output.
[0076] Step S240, obtaining an optimization solution corresponding to the cause and outputting it.
[0077] For example, optimization plans corresponding to various causes are pre-set. After the cause corresponding to the fault simulation result of the fault point is determined, the corresponding optimization plan is read, and the determined cause and its corresponding optimization plan are output together to facilitate subsequent optimization for the user.
[0078] Specifically, if the marking result indicates that no signal flip occurs at the fault point, that is, the fault point is not activated, the reason why the fault simulation result of the fault point is determined to be UU is: a fault test vector defect (the corresponding code coverage does not meet the standard), and an optimization solution for optimizing the fault test vector to activate the fault point can be output; if the marking result indicates that a signal flip occurs at the fault point, that is, the fault point is activated, the reason why the fault simulation result of the fault point is determined to be UU is: a design defect (the corresponding safety mechanism is not sound enough), and an optimization solution for optimizing the design to enable the fault to be detected can be output.
[0079] In an optional manner, after obtaining the marking result, the marking result is added to the fault simulation report, and the fault simulation report with the marking result added is output so that the user can view the activation status of the fault point and the fault simulation result, for example, output to the user's operation interface. Optionally, a marking result list is added to the fault simulation report, and the marking result list is used to record the marking results of each fault point.
[0080] According to the fault detection method of the embodiment of the present invention, it is automatically detected whether the fault point meets the specified signal flipping condition, and whether the signal flipping occurs at the fault point is marked. In combination with the marking result of the fault point, it is clarified that the simulation fault result is the reason why the functional output port and the safety mechanism have not detected the fault. It can give a clear reason for the situation that the functional output port and the safety mechanism have not detected the fault, and then determine the reason why the diagnostic coverage rate does not meet the standard. It can also output the corresponding optimization plan to guide relevant personnel from which angle to optimize in order to improve the diagnostic coverage rate, which can facilitate the subsequent optimization processing of relevant personnel. After obtaining the results, measures to improve the coverage rate can be taken first to activate as many fault points as possible and reduce the number of fault simulation results as the functional output port. and safety mechanisms have not detected the fault, thereby improving the efficiency of fault simulation and reducing time waste; further, it can support the user to flexibly configure the conditions for determining the signal reversal at the fault point, providing convenience for the user to perform fault simulation; in practical applications, the fault detection scheme of this embodiment can be integrated as a first specific function option and added to an existing fault simulation tool. By enabling the specific function option to trigger the execution of the fault detection method, the reason why the fault cannot be detected is obtained and an optimization solution is given, which can reduce the tool usage cost and labor cost, reduce the complexity of functional safety design, reduce design time, and solve the problem that the traditional method cannot provide code coverage and fault simulation optimization measures by using only one EDA tool.
[0081] In another embodiment of the present invention, after the fault simulation process is completed, according to the fault simulation results of each fault point in the fault simulation report, the fault point where the functional output port and the safety mechanism have not detected the fault is determined, and for this type of fault point, whether the signal flip has occurred is marked. For example, if the signal value has changed during the simulation process, its marking result is determined to be the third identification, and if the signal value has never changed during the simulation process, its marking result is determined to be the fourth identification. Afterwards, the marking result is recorded in the marking result list, and the marking result list is added to the fault simulation report and output. By checking the status of the marking result list, the reason why the functional output port and the safety mechanism have not detected the fault can be investigated, whether it is caused by the fact that the fault point has never been activated, or caused by the insufficient detection strength of the functional output port and the safety mechanism, thereby guiding the design and verification personnel to improve the diagnostic coverage of the signal from which angle. Similarly, this implementation can also be integrated as a second specific function option and added to the existing fault simulation tool, and the automatic execution of this implementation is triggered by enabling the specific function option.
[0082] Figure 3 FIG. 4 is a flowchart of a fault detection method provided by another embodiment of the present invention. Figure 3 As shown, the method specifically comprises the following steps:
[0083] Step S310, functional simulation;
[0084] Step S320, fault injection;
[0085] Step S330: If the fault simulation result includes a specified result and the first specific function option has been enabled, the reason for the specified result is output. The specified result is that the function output port and the safety mechanism have not detected a fault. If the user has enabled the first specific function option, the corresponding reason is output according to the marking result of the signal flipping condition of the fault point.
[0086] Step S340, determining whether the fault point is not activated.
[0087] If yes, execute step S350; if no, execute step S360.
[0088] Step S350: If the fault point is not activated, output the first optimization solution: optimize the fault test vector to activate the fault point. After the optimization, jump to step S310 to perform the fault simulation again.
[0089] Step S360: If the fault point is activated, output a second optimization solution: find design defects so that the fault can be detected, thereby improving the diagnostic coverage.
[0090] Additionally, other auxiliary tools can be installed to view the causes of undetected faults in functional output ports and / or safety mechanisms.
[0091] Figure 4 FIG. 2 shows a schematic diagram of the structure of a fault detection device provided by an embodiment of the present invention. Figure 4 As shown, the device comprises:
[0092] A processing module 41 is used to inject a fault test vector into a chip simulation model to perform fault simulation processing;
[0093] A marking module 42, used to mark whether a signal flip occurs at the fault point according to the signal state of the fault point in the chip simulation model, and obtain a marking result;
[0094] The analysis module 43 is used to determine the cause corresponding to the fault simulation result of the fault point according to the marking result of the fault point.
[0095] In an optional manner, the analysis module 43 is further configured to:
[0096] For a fault point where the fault simulation result is that neither the functional output port nor the safety mechanism detects the fault, the cause corresponding to the fault simulation result is determined according to the marking result.
[0097] In an optional manner, the marking module 42 is further configured to:
[0098] Detect whether the signal state of the fault point meets the specified signal flip condition;
[0099] If it is satisfied, the signal flip occurs at the fault point marked;
[0100] If not satisfied, it is marked that no signal inversion occurs at the fault point.
[0101] In an optional manner, the device further comprises:
[0102] The configuration module is used to receive the conditional configuration operation of the user; and determine the specified signal flip condition according to the conditional configuration operation.
[0103] In an optional manner, the configuration module is further used to: receive an enabling operation of a signal flip condition option from a user; and determine a specified signal flip condition according to the signal flip condition option corresponding to the enabling operation.
[0104] In an optional manner, the device further includes: an output module, used to obtain and output an optimization solution corresponding to the cause.
[0105] In an optional manner, the output module is further used to: add the marking result to the fault simulation report, and output the fault simulation report to which the marking result has been added.
[0106] According to the fault detection device of the embodiment of the present invention, it automatically identifies whether a signal flip occurs at the fault point during the fault simulation process to determine whether the fault point is activated by the injected fault, and then automatically determines the specific cause of the fault simulation result causing the fault point based on the marking result of whether the fault point is activated. This can reduce the cost of using tools, reduce the complexity of functional safety design, help reduce design time and improve work efficiency.
[0107] An embodiment of the present invention provides a non-volatile computer storage medium, wherein the computer storage medium stores at least one executable instruction, and the computer executable instruction can execute the fault detection method in any of the above method embodiments.
[0108] The executable instructions may be specifically used to cause the processor to perform the following operations:
[0109] Injecting fault test vectors into the chip simulation model to perform fault simulation processing;
[0110] According to the signal state of the fault point in the chip simulation model, mark whether the fault point has signal flipping, and obtain a marking result;
[0111] According to the marking result of the fault point, the cause corresponding to the fault simulation result of the fault point is determined.
[0112] In an optional manner, the executable instruction causes the processor to perform the following operations:
[0113] For a fault point where the fault simulation result is that neither the functional output port nor the safety mechanism detects the fault, the cause corresponding to the fault simulation result is determined according to the marking result.
[0114] In an optional manner, the executable instruction causes the processor to perform the following operations:
[0115] Detect whether the signal state of the fault point meets the specified signal flip condition;
[0116] If it is satisfied, the signal flip occurs at the fault point marked;
[0117] If not satisfied, it is marked that no signal inversion occurs at the fault point.
[0118] In an optional manner, the executable instruction causes the processor to perform the following operations:
[0119] Before detecting whether the signal state of the fault point satisfies the specified signal flipping condition, a conditional configuration operation of the user is received; and the specified signal flipping condition is determined according to the conditional configuration operation.
[0120] In an optional manner, the executable instruction causes the processor to perform the following operations:
[0121] Receive the user's enable operation for the signal flip condition option;
[0122] The specified signal inversion condition is determined based on the Signal Inversion Condition option corresponding to the Enable operation.
[0123] In an optional manner, the executable instruction causes the processor to perform the following operations:
[0124] After determining the cause corresponding to the fault simulation result of the fault point, an optimization solution corresponding to the cause is obtained and output.
[0125] In an optional manner, the executable instruction causes the processor to perform the following operations:
[0126] After obtaining the marking result, the marking result is added to the fault simulation report, and the fault simulation report to which the marking result has been added is output.
[0127] Through the above method, it is automatically identified whether a signal flip occurs at the fault point during the fault simulation process to determine whether the fault point is activated by the injected fault, and then based on the marking result of whether the fault point is activated, the specific cause of the fault simulation result of the fault point is automatically determined, which can reduce the cost of using tools, reduce the complexity of functional safety design, help reduce design time and improve work efficiency.
[0128] Figure 5 A schematic diagram of the structure of a computing device provided by an embodiment of the present invention is shown, and the specific embodiment of the present invention does not limit the specific implementation of the computing device.
[0129] like Figure 5 As shown, the computing device may include: a processor (processor) 502 , a communication interface (Communications Interface) 504 , a memory (memory) 506 , and a communication bus 508 .
[0130] The processor 502, the communication interface 504, and the memory 506 communicate with each other via the communication bus 508. The communication interface 504 is used to communicate with other devices such as a client or other server network elements. The processor 502 is used to execute the program 510, which can specifically execute the relevant steps in the above-mentioned embodiment of the fault detection method for a computing device.
[0131] Specifically, the program 510 may include program codes, which include computer operation instructions.
[0132] The processor 502 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the computing device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0133] The memory 506 is used to store the program 510. The memory 506 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0134] The program 510 may be specifically configured to enable the processor 502 to perform the following operations:
[0135] Injecting fault test vectors into the chip simulation model to perform fault simulation processing;
[0136] According to the signal state of the fault point in the chip simulation model, mark whether the fault point has signal flipping, and obtain a marking result;
[0137] According to the marking result of the fault point, the cause corresponding to the fault simulation result of the fault point is determined.
[0138] In an optional manner, the program 510 enables the processor 502 to perform the following operations:
[0139] For a fault point where the fault simulation result is that neither the functional output port nor the safety mechanism detects the fault, the cause corresponding to the fault simulation result is determined according to the marking result.
[0140] In an optional manner, the program 510 enables the processor 502 to perform the following operations:
[0141] Detect whether the signal state of the fault point meets the specified signal flip condition;
[0142] If it is satisfied, the signal flip occurs at the fault point marked;
[0143] If not satisfied, it is marked that no signal inversion occurs at the fault point.
[0144] In an optional manner, the program 510 enables the processor 502 to perform the following operations:
[0145] Before detecting whether the signal state of the fault point satisfies the specified signal flipping condition, a conditional configuration operation of the user is received; and the specified signal flipping condition is determined according to the conditional configuration operation.
[0146] In an optional manner, the program 510 enables the processor 502 to perform the following operations:
[0147] Receive the user's enable operation for the signal flip condition option;
[0148] The specified signal inversion condition is determined based on the Signal Inversion Condition option corresponding to the Enable operation.
[0149] In an optional manner, the program 510 enables the processor 502 to perform the following operations:
[0150] After determining the cause corresponding to the fault simulation result of the fault point, an optimization solution corresponding to the cause is obtained and output.
[0151] In an optional manner, the program 510 enables the processor 502 to perform the following operations:
[0152] After obtaining the marking result, the marking result is added to the fault simulation report, and the fault simulation report to which the marking result has been added is output.
[0153] Through the above method, it is automatically identified whether a signal flip occurs at the fault point during the fault simulation process to determine whether the fault point is activated by the injected fault, and then based on the marking result of whether the fault point is activated, the specific cause of the fault simulation result of the fault point is automatically determined, which can reduce the cost of using tools, reduce the complexity of functional safety design, help reduce design time and improve work efficiency.
[0154] The algorithm or display provided herein is not inherently related to any particular computer, virtual system or other equipment. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious to construct the structure required for this type of system. In addition, the embodiment of the present invention is not directed to any specific programming language yet. It should be understood that various programming languages can be utilized to realize the content of the present invention described herein, and the description made to specific languages above is for disclosing the best mode of the present invention.
[0155] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0156] Similarly, it should be understood that in order to streamline the present invention and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the following intention: the claimed invention requires more features than those explicitly recited in each claim. Rather, as reflected in the claims, the inventive aspects lie in less than all the features of the individual embodiments previously disclosed. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present invention.
[0157] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0158] In addition, those skilled in the art will appreciate that, although some embodiments herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims, any one of the claimed embodiments may be used in any combination.
[0159] The various component embodiments of the present invention can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all functions of some or all components according to embodiments of the present invention. The present invention can also be implemented as a device or apparatus program (e.g., computer program and computer program product) for executing part or all of the methods described herein. Such a program implementing the present invention can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0160] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.
Claims
1. A fault detection method, It is characterized in that The method comprises: Injecting fault test vectors into the chip simulation model to perform fault simulation processing; Receiving a conditional configuration operation from a user; determining a specified signal flip condition according to the conditional configuration operation; Detect whether the signal state of the fault point in the chip simulation model meets the specified signal flip condition; if so, mark the fault point as having a signal flip; if not, mark the fault point as not having a signal flip; Determine, according to the marking result of the fault point, a cause corresponding to the fault simulation result of the fault point; Among them, for the fault simulation result that the functional output port and the safety mechanism have not detected the fault point, if the marking result indicates that no signal flip occurs, it is determined that the corresponding cause is a fault test vector defect.
2. The fault detection method according to claim 1, It is characterized in that The receiving user's conditional configuration operation, and determining the designated signal flip condition according to the conditional configuration operation further comprises: Receive the user's enable operation for the signal flip condition option; The designated signal flip condition is determined according to the signal flip condition option corresponding to the enabling operation.
3. The fault detection method according to claim 1 or 2, It is characterized in that After determining the cause corresponding to the fault simulation result of the fault point, the method further comprises: An optimization solution corresponding to the cause is obtained and outputted.
4. The fault detection method according to claim 1 or 2, It is characterized in that After obtaining the marking result, the method further comprises: The marking result is added to the fault simulation report, and the fault simulation report to which the marking result has been added is output.
5. A fault detection device, It is characterized in that The device comprises: A processing module, used for injecting fault test vectors into a chip simulation model to perform fault simulation processing; A configuration module, used to receive a conditional configuration operation from a user, and determine a specified signal flip condition according to the conditional configuration operation; A marking module is used to mark whether a signal flip occurs at the fault point according to the signal state of the fault point in the chip simulation model, and obtain a marking result; wherein, it is detected whether the signal state of the fault point meets the specified signal flip condition; if so, the fault point is marked as having a signal flip; if not, the fault point is marked as not having a signal flip; The analysis module is used to determine the cause corresponding to the fault simulation result of the fault point according to the marking result of the fault point; wherein, for the fault simulation result that neither the functional output port nor the safety mechanism detects the fault, if the marking result indicates that no signal flip occurs, the corresponding cause is determined to be a fault test vector defect.
6. A computing device, It is characterized in that include: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform an operation corresponding to the fault detection method according to any one of claims 1 to 4.
7. A computer storage medium, It is characterized in that The storage medium stores at least one executable instruction, and the executable instruction enables the processor to execute an operation corresponding to the fault detection method according to any one of claims 1 to 4.
