Chip diagnosis coverage rate calculation method and device

By using EDA tools to inject different types of faults and adopting multiple calculation formulas during the automotive chip design stage, the problem of inaccurate coverage calculation of automotive chip diagnostics in the existing technology is solved, and a more reasonable and accurate coverage evaluation is achieved. , improves the integrity and correctness of functional safety design.

CN119026565AActive Publication Date: 2024-11-26BEIJING NEW ENERGY VEHICLE TECH INNOVATION CENT CO LTD

Patent Information

Application Number
CN202410989408.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2024-11-26
Estimated Expiration
2044-07-23

AI Technical Summary

Technical Problem

The prior art cannot effectively calculate the diagnostic coverage of automotive chips, especially in multiple safety mechanisms and multiple simulation environments, and the results of conventional computing models are not reasonable and accurate enough.

Method used

Through the EDA tool, different types of faults are injected into the chip module in the RTL code stage, and diagnostic coverage test is carried out, and multiple calculation formulas are used, such as formula (1), formula (2) and formula (3) to calculate multiple calculations Diagnostic coverage under the safety mechanism, combined with the average value and conservative results in multiple simulation environments, provides a more accurate coverage assessment.

Benefits of technology

It improves the integrity and correctness of functional safety design in the chip design stage, provides a more reasonable and accurate basis for subsequent quantitative analysis of functional safety, and meets the diagnostic coverage calculation needs in complex testing situations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119026565A_ABST
    Figure CN119026565A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of chip diagnosis coverage rate, and discloses a chip diagnosis coverage rate calculation method and device, and the method comprises the following steps: injecting different types of faults into a specified chip module through an EDA tool according to the safety mechanism design of an RTL code stage, and carrying out the test of the diagnosis coverage rate of the chip module; obtaining and classifying test results of the diagnosis coverage rate of the chip module according to the injected different types of faults; and calculating the ratio of each classified test result in the overall test result, and judging the diagnosis coverage rate of the security mechanism in the working state based on the ISO26262 standard. A plurality of test conditions are designed according to the characteristics that the simulation evaluation diagnosis coverage rate is not reasonable and accurate enough, a plurality of calculation formulas of the diagnosis coverage rate are set according to the test conditions, fault injection simulation is used as simulation data, a more reasonable calculation model is used for substituting the simulation data, and the more accurate and more reasonable simulation coverage rate is calculated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of chip diagnosis coverage, and in particular to a chip diagnosis coverage calculation method and device. Background Art

[0002] The content on functional safety of automotive semiconductors was proposed in Part 11 of ISO 26262:2018 in 2018, highlighting the importance of functional safety of automotive semiconductors. The diagnostic coverage of safety mechanisms in the functional safety design of automotive chips can provide methods and guidance for verifying the integrity and correctness of the functional safety development of automotive chips, and provide a basis and reference for chip users at the chip application layer.

[0003] The effectiveness of the safety mechanism mainly refers to the diagnostic coverage of the safety mechanism. The coverage describes the probability that the safety mechanism can detect the real physical risk in time and make the system respond effectively when the fault is injected in the chip design simulation test. Diagnostic coverage (DC) is the core test indicator of functional safety mechanism design. The diagnostic coverage calculation method for automotive chips usually adopts simulation testing. In simulation testing, only a single test stimulus or a single safety mechanism can be simulated to evaluate the diagnostic coverage. Under normal circumstances, the module under test has only one fault injection simulation test case, and the diagnostic coverage can be directly calculated by simulation, that is:

[0004] However, in actual applications, it is common for the modules under test to have multiple safety mechanisms and multiple simulation environments, so multiple fault injection simulation test stimuli are required. The above conventional DC calculation model can no longer meet the DC calculation requirements, and the results calculated only by the above conventional DC calculation model are not reasonable and accurate enough. Summary of the invention

[0005] In order to solve the problem that the diagnostic coverage results of automotive chips in the prior art are not reasonable and accurate enough, the present invention provides a chip diagnostic coverage calculation method and device.

[0006] The technical contents of the present invention are as follows:

[0007] The present invention provides a chip diagnosis coverage calculation method, comprising the following steps:

[0008] According to the safety mechanism design at the RTL code stage, different types of faults are injected into the specified chip modules through EDA tools to test the diagnostic coverage of the chip modules;

[0009] Acquire and classify test results of diagnostic coverage of the chip module according to different types of faults injected;

[0010] The proportion of each classified test result in the overall test result is calculated, and the diagnostic coverage of the safety mechanism in the working state is judged based on the ISO26262 standard.

[0011] Furthermore, when different types of faults are injected into a designated chip module through an EDA tool, a diagnostic coverage test is performed on the chip module, including:

[0012] The fault injection simulation is simulation data, and the simulation data is introduced into different fault models to implement the test of diagnostic coverage.

[0013] Furthermore, injecting the different types of faults includes:

[0014] Different test stimuli are designed for different chip modules and fault models under test, and different test stimuli output different test results.

[0015] Further, obtaining and classifying the test results of the diagnostic coverage of the chip module according to the different types of faults injected, including:

[0016] The test results are classified as safe or risky based on whether the results of the fault injection change the standard functional output results.

[0017] Further, obtaining and classifying the test results of the diagnostic coverage of the chip module according to the different types of faults injected, including:

[0018] Based on whether the result of fault injection can be captured by the safety mechanism, it is divided into monitorable and unmonitorable.

[0019] Furthermore, the fault model is established based on the same or multiple simulation environments.

[0020] Furthermore, the diagnostic coverage of the fault model when established based on the same simulation environment includes:

[0021] Under multiple safety mechanisms, the calculation of diagnostic coverage is performed by combining insufficient calculations, and the calculation is implemented through formula (1):

[0022] DC eff =DC1°+DC2°*(1-DC1)+DC3°*(1-DC1°-DC2°*(1-DC1))°...(3);

[0023] Under multiple safety mechanisms, the diagnostic coverage rate takes the average value and is calculated using formula (2):

[0024]

[0025] Under multiple safety mechanisms, the diagnostic coverage adopts conservative results and is calculated by formula (3):

[0026] DC eff =DC lowest (3);

[0027] Among them, DC1, DC2, and DC3 refer to the diagnostic coverage of different safety mechanisms for the module under test. eff is the diagnostic coverage, DC lowest Provides minimum diagnostic coverage for safety mechanisms.

[0028] Furthermore, the fault model is based on the diagnostic coverage when multiple simulation environments are established, including:

[0029] In the case of multiple different diagnostic coverages, the overall average is calculated by formula (4):

[0030]

[0031] When different diagnostic coverage rates occur under a single safety mechanism, the following is calculated using formula (5):

[0032]

[0033] The present invention also provides a chip diagnostic coverage calculation device, which at least includes: a compiler, a simulator, a fault injection script module and a comparator. The simulator is connected to the compiler, the fault injection script module and the comparator respectively. The chip diagnostic coverage calculation method injects faults into the simulator through the fault injection script module, and compares the injected fault simulation with the normal simulation through the comparator to obtain simulation data.

[0034] The beneficial effects of the present invention include at least: designing a variety of test conditions for the characteristics that the simulation evaluation diagnostic coverage is not reasonable and accurate enough, and setting a plurality of diagnostic coverage calculation formulas accordingly, using fault injection simulation as simulation data, and using a more reasonable calculation model to bring in the simulation data, to calculate a more accurate and reasonable simulation coverage, thereby improving the integrity and correctness of the calculation and evaluation of functional safety design in the chip design stage, and providing a rate basis for subsequent quantitative analysis of chip functional safety. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 A schematic diagram of fault injection result classification for a chip diagnosis coverage calculation method provided by the present invention.

[0036] Figure 2 A fault injection architecture of a chip diagnosis coverage calculation device provided by the present invention.

[0037] Figure 3The present invention provides an operating architecture of a chip diagnosis coverage calculation device. DETAILED DESCRIPTION

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

[0039] The present invention provides a chip diagnosis coverage calculation method, comprising the following steps:

[0040] In the chip design stage, fault injection simulation is required to verify the correctness and effectiveness of the safety mechanism. That is, according to the safety mechanism design in the RTL code stage, different types of faults are injected into the specified chip module through the EDA tool to test the diagnostic coverage of the chip module.

[0041] Acquire and classify test results of diagnostic coverage of the chip module according to different types of faults injected;

[0042] The proportion of each classified test result in the overall test result is calculated, and the diagnostic coverage of the safety mechanism in the working state is judged based on the ISO26262 standard.

[0043] Furthermore, when different types of faults are injected into a designated chip module through an EDA tool, a diagnostic coverage test is performed on the chip module, including:

[0044] The fault injection simulation is simulation data, and the simulation data is introduced into different fault models to implement the test of diagnostic coverage.

[0045] Furthermore, injecting the different types of faults includes:

[0046] Different test stimuli are designed for different chip modules and fault models under test. Different test stimuli output different test results and fault models (constant 0 / 1 stuck and flipped).

[0047] like Figure 1 As shown, the fault injection results are divided into 4 categories, which are classified as follows:

[0048] Obtaining and classifying the test results of the diagnostic coverage of the chip module according to different types of faults injected, including:

[0049] The test results are classified as safe or risky based on whether the results of the fault injection change the standard functional output results.

[0050] Obtaining and classifying the test results of the diagnostic coverage of the chip module according to different types of faults injected, including:

[0051] Based on whether the result of fault injection can be captured by the safety mechanism, it is divided into monitorable and unmonitorable.

[0052] In practical applications, it is common for the modules under test to have multiple safety mechanisms and multiple simulation environments. Therefore, the present invention provides multiple fault injection simulation test stimuli to address this problem. The DC calculation requirements cannot be further met by conventional DC calculation models. In this case, the present invention proposes 5 DC calculation models that are applicable to the case where the modules under test have multiple fault injection simulation test stimuli and have multiple fault injection simulation results.

[0053] Furthermore, the fault model is established based on the same or multiple simulation environments.

[0054] Furthermore, the diagnostic coverage of the fault model when established based on the same simulation environment includes:

[0055] Under multiple safety mechanisms, the calculation of diagnostic coverage is performed by combining insufficient calculations, and the calculation is implemented through formula (1):

[0056] DC eff =DC1°+DC2°*(1-DC1)+DC3°*(1-DC1°-DC2°*(1-DC1))°...(3);

[0057] Under multiple safety mechanisms, the diagnostic coverage rate takes the average value and is calculated using formula (2):

[0058]

[0059] Under multiple safety mechanisms, the diagnostic coverage adopts conservative results and is calculated by formula (3):

[0060] DC eff =DC lowest (3);

[0061] Among them, DC1, DC2, and DC3 refer to the diagnostic coverage of different safety mechanisms for the module under test. eff is the diagnostic coverage, DC lowest Provides minimum diagnostic coverage for safety mechanisms.

[0062] Furthermore, the fault model is based on the diagnostic coverage when multiple simulation environments are established, including:

[0063] In the case of multiple different diagnostic coverages, the overall average is calculated by formula (4):

[0064]

[0065] When different diagnostic coverage rates occur under a single safety mechanism, the following is calculated using formula (5):

[0066]

[0067] according to Figure 2 As shown, the present invention also provides a chip diagnostic coverage calculation device, which at least includes: a compiler, a simulator, a fault injection script module and a comparator. The simulator is connected to the compiler, the fault injection script module and the comparator respectively. The chip diagnostic coverage calculation method injects the fault into the simulator through the fault injection script module, and compares the injected fault simulation with the normal simulation through the comparator to obtain simulation data.

[0068] Linux system: As the basic operating system of the test environment, it provides the platform and tools required to run the test system. The compiler is responsible for converting source code into executable code. The simulator simulates the software running environment, allowing developers to test the code without actually running the software. Fault injection scripts are used to inject specific faults into the simulator to simulate the behavior of the software under abnormal conditions. The test limited injection compiler adds specific restrictions during the compilation process to test the performance of the software under resource-constrained conditions. The comparator can compare the actual running results with the expected results to verify the stability and reliability of the software. This process not only helps to discover potential problems, but also optimizes software performance to ensure that it can run normally under various conditions.

[0069] in, Figure 2 The structure shown also includes: Test vector: refers to the input data set used to test the software, which can be data required for normal operation or special data used to trigger potential defects in the software;

[0070] Simulation results: The output results obtained after the simulator runs the simulation based on the test vector.

[0071] Starting from the compiler, through the simulator and fault injection simulation, the comparator finally outputs the test results. The entire process reflects the complete cycle of software testing from code compilation to result verification, ensuring that the software can run normally under various conditions and that potential problems are discovered and fixed in a timely manner.

[0072] according to Figure 3As shown, the present invention utilizes a PC end to be connected to a target board under test through a CAN communication device, a chip under test is arranged on the target board under test, the PC end also controls a power supply and an oscilloscope on the target board under test, and the PC end exchanges signals with the target board under test through the oscilloscope.

[0073] The present invention proposes a board-level automotive-grade control chip functional safety test, and designs more calculation models based on the diagnostic coverage calculation method of fault injection simulation results. Compared with traditional calculation methods, more safety mechanisms and complex situations of multiple test stimuli are considered, which provides a new solution for evaluating the integrity and correctness of chip functional safety development, and provides a more accurate and reasonable method for chip users to evaluate whether chip functional safety development meets application requirements.

[0074] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A chip diagnostic coverage calculation method, characterized in that: The following steps are involved: According to the safety mechanism design at the RTL code stage, different types of faults are injected into the specified chip modules through EDA tools to test the diagnostic coverage of the chip modules; Acquire and classify test results of diagnostic coverage of the chip module according to different types of faults injected; The proportion of each classified test result in the overall test result is calculated, and the diagnostic coverage of the safety mechanism in the working state is judged based on the ISO26262 standard.

2. The chip diagnosis coverage calculation method according to claim 1, characterized in that: When different types of faults are injected into a specified chip module through the EDA tool, the diagnostic coverage test of the chip module is performed, including: The fault injection simulation is simulation data, and the simulation data is introduced into different fault models to implement the test of diagnostic coverage.

3. The chip diagnosis coverage calculation method according to claim 2, characterized in that: The different types of faults injected include: Different test stimuli are designed for different chip modules and fault models under test, and different test stimuli output different test results.

4. The chip diagnosis coverage calculation method according to claim 1, characterized in that: Obtaining and classifying the test results of the diagnostic coverage of the chip module according to different types of faults injected, including: The test results are classified as safe or risky based on whether the results of the fault injection change the standard functional output results.

5. The chip diagnosis coverage calculation method according to claim 1, characterized in that: Obtaining and classifying the test results of the diagnostic coverage of the chip module according to different types of faults injected, including: Based on whether the result of fault injection can be captured by the safety mechanism, it is divided into monitorable and unmonitorable.

6. The chip diagnosis coverage calculation method according to claim 3, characterized in that: The fault model is established based on the same or multiple simulation environments.

7. The chip diagnosis coverage calculation method according to claim 6, characterized in that: The fault model is based on the diagnostic coverage when established in the same simulation environment, including: Under multiple safety mechanisms, the calculation of diagnostic coverage is performed by combining insufficient calculations, and the calculation is implemented through formula (1): DC eff =DC1°+DC2°*(1-DC1)+DC3°*(1-DC1°-DC2°*(1-DC1))°…(3); Under multiple safety mechanisms, the diagnostic coverage rate takes the average value and is calculated using formula (2): Under multiple safety mechanisms, the diagnostic coverage adopts conservative results and is calculated by formula (3): DC eff =DC lowest (3); Among them, DC1, DC2, and DC3 refer to the diagnostic coverage of different safety mechanisms for the module under test. eff is the diagnostic coverage, DC lowest Provides minimum diagnostic coverage for safety mechanisms.

8. The chip diagnosis coverage calculation method according to claim 6, characterized in that: The fault model is based on the diagnostic coverage when established in multiple simulation environments, including: In the case of multiple different diagnostic coverages, the overall average is calculated by formula (4): When different diagnostic coverage rates occur under a single safety mechanism, the following is calculated using formula (5):

9. A chip diagnostic coverage calculation device, according to the chip diagnostic coverage calculation method according to any one of claims 1 to 8, characterized in that: At least: A compiler, a simulator, a fault injection script module and a comparator, wherein the simulator is connected to the compiler, the fault injection script module and the comparator respectively, and the chip diagnostic coverage calculation method injects faults into the simulator through the fault injection script module, and obtains simulation data by comparing the injected fault simulation with the normal simulation through the comparator.

Citation Information

Patent Citations

  • Vehicle gauge chip fault injection simulation system and method

    CN116127883A

  • Vehicle gauge level control chip function safety board level test method and system, and application of vehicle gauge level control chip function safety board level test method and system

    CN116974841A

  • Vehicle gauge chip function security verification platform, method, device and medium

    CN117130348A

  • Fault injection simulation method for vehicle gauge chip

    CN117634372A

  • Estimating diagnostic coverage in IC design based on static COI analysis of gate-level netlist and RTL fault simulation

    US11416662B1

Cited By

  • Chip function security data calculation method and device, electronic equipment and storage medium

    CN120144424A

  • Chip functional safety data calculation method and device, electronic equipment and storage medium

    CN120144424B