Circuit safety assessment method and device after fault simulation, equipment and medium
By performing hierarchical transformation and mapping on the fault simulation results of the circuit system, and combining the target calculation model to calculate the diagnostic coverage, the problem that the existing technology cannot comprehensively and accurately assess the security of the circuit system after the insertion of security mechanisms is solved, and a more reliable security assessment is achieved.
Patent Information
- Application Number
- CN202410839142.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-11-05
AI Technical Summary
Existing technologies cannot provide a comprehensive and accurate security assessment of circuit systems after the insertion of security mechanisms, resulting in inaccurate and incomplete assessment results.
By acquiring the fault simulation results of the circuit system and performing hierarchical transformation, the fault identifiers are mapped to the target identifiers using preset mapping rules, generating a second structure report with a hierarchical structure, and using the target calculation mode to calculate the diagnostic coverage of each component in the circuit system, and finally obtaining the safety assessment results.
It enables a comprehensive and accurate security assessment of circuit systems after the insertion of security mechanisms, ensuring the authenticity and comprehensiveness of the assessment results and providing a more reliable security analysis.
Smart Images

Figure CN118897791A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of system safety analysis, and in particular to a circuit safety assessment method, device, equipment and medium after fault simulation. Background Art
[0002] Safety analysis is a systematic approach that aims to identify and evaluate potential safety issues to help ensure the safety of the system. In order to ensure the stable operation, data security and reliability of the circuit system, a safety mechanism is usually inserted. The circuit after the safety mechanism is inserted is different from the original circuit before, so the circuit with the safety mechanism added needs to be re-evaluated for safety. However, it is currently impossible to conduct a comprehensive and accurate safety assessment of the circuit system after the safety mechanism is inserted during the safety assessment.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] The present application provides a circuit safety assessment method, device, equipment and medium after fault simulation to solve the above-mentioned technical problem of "it is impossible to conduct a comprehensive and accurate safety assessment of the circuit system after the safety mechanism is inserted".
[0005] According to one aspect of an embodiment of the present application, the present application provides a circuit safety assessment method after fault simulation, including: obtaining a first structure report of the circuit system, wherein the first structure report is obtained by hierarchically converting the fault simulation results of the circuit system after inserting a safety mechanism; mapping the fault identifier in the first structure report to the target identifier according to a preset mapping rule, so as to merge the identifiers of the first structure report to obtain a second structure report with a hierarchical structure; calculating the diagnostic coverage of each component in the circuit system using a target calculation mode and the second structure report; obtaining the target coverage, and performing a safety assessment using the target coverage and the diagnostic coverage to obtain a safety assessment result of the circuit system.
[0006] Optionally, obtaining a first structural report of the circuit system includes: performing fault simulation on the circuit system after inserting the safety mechanism to obtain fault simulation results, wherein the fault simulation results include fault information of the fault event; hierarchically dividing the fault simulation results according to the circuit architecture of the circuit system to obtain hierarchical data, wherein the hierarchical data includes component parameters on nodes of each hierarchy, and fault information of the fault event is marked on the node to which the fault event belongs; and generating a first structural report based on the hierarchical data.
[0007] Optionally, the fault identifier in the first structure report is mapped to the target identifier according to a preset mapping rule to merge the identifiers of the first structure report to obtain a second structure report with a hierarchical structure, including: obtaining the correspondence between the target identifier and the fault identifier from the preset mapping rule, wherein a target identifier has a correspondence with at least one fault identifier; determining the fault identifier in the first structure report, and mapping the fault identifier to the target identifier according to the correspondence; replacing the fault identifier that has a correspondence with the target identifier with the target identifier to obtain a second structure report.
[0008] Optionally, after obtaining a second structure report having a hierarchical structure, the method further includes: extracting location information, identification information and alarm information triggered by each fault event from the second structure report; using the location name, identification name and alarm name as column names, respectively, wherein each column name corresponds to multiple rows of blank areas; filling the location information, identification information and alarm information of each fault event into the blank areas of the corresponding column names according to the hierarchical structure to convert the format of the second structure report to obtain a converted second structure report.
[0009] Optionally, the diagnostic coverage of each component in the circuit system is calculated using the target computing mode and the second structure report, including: when the target computing mode is the first mode, obtaining initial analysis data, wherein the initial analysis data is the safety analysis data before the safety mechanism is inserted; dividing each component into gate-level units, and extracting the failure mode of each gate-level unit and the first contribution of each failure mode from the initial analysis data; determining the number of transistors in each gate-level unit, and assigning a weight value to each gate-level unit according to the number of transistors; weighting the first contribution using the weight value to obtain a second contribution; determining the first number of faults of each gate-level unit according to the failure mode and the second contribution, wherein the first number of faults is the sum of the number of faults on the gate-level unit; detecting the second number of faults on each gate-level unit, wherein the second number of faults is the number of faults detected; calculating the quotient of the second number of faults of the gate-level unit divided by the first number of faults, and adding the quotient values corresponding to each gate-level unit to obtain the diagnostic coverage.
[0010] Optionally, the diagnostic coverage of each component in the circuit system is calculated using the target computing mode and the second structure report, including: when the target computing mode is the second mode, obtaining initial analysis data; extracting each failure mode of the component from the initial analysis data, and obtaining a fault generation list of the component, wherein the fault generation list includes uncompressed faults generated on each port; replacing each failure mode of the component with each fault in the fault generation list, and obtaining a first total failure rate detected on the component; dividing the first total failure rate by the second fault number to obtain the failure rate of each fault, wherein the second fault number is the sum of the faults in the fault generation list; and obtaining the diagnostic coverage of the component using the failure rate of each fault on the component.
[0011] Optionally, the diagnostic coverage of each component in the circuit system is calculated using the target computing mode and the second structure report, including: when the target computing mode is the third mode, obtaining initial analysis data; determining each gate-level unit of the component from the initial analysis data, and obtaining a failure mode on the component, wherein each gate-level unit has a pre-generated fault; replacing each failure mode of the component with each gate-level unit, and obtaining a second total failure rate detected on the component; obtaining the number of transistors on the gate-level unit, and distributing the second total failure rate to each gate-level unit according to the number of transistors, to obtain the failure rate of each gate-level unit; and obtaining the diagnostic coverage of the component using the failure rate of each gate-level unit.
[0012] According to another aspect of an embodiment of the present application, the present application provides a circuit safety assessment device after fault simulation, including: an acquisition module, used to obtain a first structure report of the circuit system, wherein the first structure report is obtained by hierarchically converting the fault simulation results of the circuit system after inserting a safety mechanism; a mapping module, used to map the fault identifier in the first structure report to the target identifier according to a preset mapping rule, so as to merge the identifiers of the first structure report to obtain a second structure report with a hierarchical structure; a calculation module, used to calculate the diagnostic coverage of each component in the circuit system using a target calculation mode and the second structure report; an evaluation module, used to obtain the target coverage, and perform a safety assessment using the target coverage and the diagnostic coverage to obtain a safety assessment result of the circuit system.
[0013] According to another aspect of an embodiment of the present application, the present application provides an electronic device, including a memory, a processor, a communication interface and a communication bus, wherein the memory stores a computer program that can be run on the processor, the memory and the processor communicate through the communication bus and the communication interface, and the steps of the above method are implemented when the processor executes the computer program.
[0014] According to another aspect of an embodiment of the present application, the present application also provides a computer-readable medium having a non-volatile program code executable by a processor, and the program code enables the processor to execute the above method.
[0015] The above technical solution provided by the embodiment of the present application has the following advantages compared with the related art:
[0016] The present application adopts a circuit safety assessment method after fault simulation, including: obtaining a first structure report of the circuit system, wherein the first structure report is obtained by hierarchical conversion of the fault simulation results of the circuit system after the safety mechanism is inserted; mapping the fault identifier in the first structure report to the target identifier according to the preset mapping rule, so as to merge the identifiers of the first structure report to obtain a second structure report with a hierarchical structure; using the target calculation mode and the second structure report to calculate the diagnostic coverage of each component in the circuit system; obtaining the target coverage, and using the target coverage and the diagnostic coverage to perform a safety assessment to obtain the safety assessment result of the circuit system. By converting the fault simulation results of the circuit system after the safety mechanism is inserted into a first structure report of a hierarchical structure, and then using the target calculation mode to calculate the diagnostic coverage, preferably performing a safety assessment based on the diagnostic coverage, the problem of being unable to perform a comprehensive and accurate safety assessment on the circuit system after the safety mechanism is inserted is solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0019] Figure 1 A flowchart of an optional circuit safety assessment method after fault simulation provided according to an embodiment of the present application;
[0020] Figure 2 A flowchart of an optional method for calculating diagnostic coverage using a first mode according to an embodiment of the present application;
[0021] Figure 3 A block diagram of an optional circuit safety assessment device after fault simulation provided according to an embodiment of the present application;
[0022] Figure 4 A schematic diagram of an optional electronic device structure provided in an embodiment of the present application. DETAILED DESCRIPTION
[0023] 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.
[0024] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present application and have no specific meaning. Therefore, "module" and "component" can be used interchangeably.
[0025] Safety analysis is a systematic approach that aims to identify and evaluate potential safety issues to help ensure the safety of the system. In order to ensure the stable operation, data security and reliability of the circuit system, a safety mechanism is usually inserted. The circuit after the safety mechanism is inserted is different from the original circuit before, so the circuit with the safety mechanism added needs to be re-evaluated for safety. However, it is currently impossible to conduct a comprehensive and accurate safety assessment of the circuit system after the safety mechanism is inserted during the safety assessment.
[0026] The deficiencies of the existing technology include: first, the existing technology fails to effectively deal with the safety analysis problem after safety verification (fault simulation), resulting in inaccuracy and incompleteness in the system safety assessment. Since the circuit used in the safety verification (fault simulation) process is significantly different from the original circuit before the safety mechanism was added, the traditional method fails to adapt to this change well. Therefore, parameters such as failure rate need to be recalculated, and the existing technology does not provide an effective mechanism to deal with this situation, which affects the assessment of the actual safety of the circuit; secondly, insufficient consideration of the impact of the safety mechanism on the failure mode / fault is another important reason for the deviation in the assessment. When performing failure mode and effect analysis, the existing technology is difficult to fully consider the impact of the introduction of the safety mechanism on the failure mode / fault, and it is difficult to effectively integrate the results of safety verification (fault simulation). This makes the evaluation results often unable to truly reflect the safety level of the circuit in actual applications, and there is a certain degree of subjectivity and one-sidedness.
[0027] In order to solve the problems mentioned in the background technology, according to one aspect of the embodiments of the present application, a circuit safety assessment method after fault simulation is provided, such as Figure 1 As shown, including:
[0028] Step 101, obtaining a first structure report of a circuit system, wherein the first structure report is obtained by performing a hierarchical conversion on a fault simulation result of the circuit system after inserting a safety mechanism;
[0029] Step 103, mapping the fault identifier in the first structure report to the target identifier according to a preset mapping rule, so as to merge the identifiers of the first structure report to obtain a second structure report having a hierarchical structure;
[0030] Step 105, calculating the diagnostic coverage of each component in the circuit system using the target calculation mode and the second structure report;
[0031] Step 107 , obtaining a target coverage, and performing a safety assessment using the target coverage and the diagnostic coverage to obtain a safety assessment result of the circuit system.
[0032] The present application can be used to perform safety assessment on a circuit system after a safety mechanism is inserted.
[0033] It should be noted that the solution of the present application calculates the diagnostic coverage and then performs a safety assessment based on the diagnostic coverage. However, in actual application, the solution can also be used to calculate other parameters (such as failure rate).
[0034] As an optional embodiment, obtaining a first structural report of a circuit system includes: performing fault simulation on the circuit system after inserting a safety mechanism to obtain a fault simulation result, wherein the fault simulation result includes fault information of the fault event; hierarchically dividing the fault simulation result according to the circuit architecture of the circuit system to obtain hierarchical data, wherein the hierarchical data includes component parameters on nodes of each hierarchy, and fault information of the fault event is marked on the node to which the fault event belongs; and generating a first structural report based on the hierarchical data.
[0035] First, a first structure report is obtained, including: performing fault simulation on the circuit system after inserting the safety mechanism to obtain a fault simulation result, and then performing hierarchical conversion on the fault simulation result according to the circuit structure to obtain the first structure report.
[0036] The fault simulation results are hierarchically divided according to the circuit architecture of the circuit system to obtain hierarchical data, including: determining the circuit architecture of the circuit system, generating a tree diagram, each node identifying a component or a gate-level unit; determining the fault location of each fault event in the fault simulation results; obtaining the fault information of the fault event, and adding the fault event to the node of the tree diagram according to the fault location.
[0037] As an optional embodiment, the fault identifier in the first structure report is mapped to the target identifier according to a preset mapping rule to merge the identifiers of the first structure report to obtain a second structure report with a hierarchical structure, including: obtaining the correspondence between the target identifier and the fault identifier from the preset mapping rule, wherein a target identifier has a correspondence with at least one fault identifier; determining the fault identifier in the first structure report, and mapping the fault identifier to the target identifier according to the correspondence; replacing the fault identifier that has a correspondence with the target identifier with the target identifier to obtain a second structure report.
[0038] Mapping the fault identifier in the first structure report to the target identifier according to the preset mapping rule means mapping the identifiers with corresponding relationships and merging different fault identifiers into the target identifier.
[0039] The preset mapping rule is a mapping relationship between a fault identifier and a target identifier, and the rule is pre-stored in a first text, and the first text includes a target identifier and a calculation parameter corresponding to a fault event under the target identifier, and the calculation parameter is used to calculate the detection status of the fault. For example, in the first structure report, there are fault identifiers ATD-JX-SA0, ATD-JX-SA1, and ATD-JX-SA1-SA0, and target identifiers ATD-EPAR-JX1 and ATD-EPAR-JX2, then ATD-JX-SA0 and ATD-JX-SA1 can be mapped to ATD-EPAR-JX1, and ATD-JX-SA1-SA0 can be mapped to ATD-EPAR-JX, wherein ATD-EPAR-JX1 and ATD-EPAR-JX2 can have a coverage rate of 50% and 100% respectively.
[0040] For example, each line in the first text will have 9 calculation parameters. If the content of one line of the first text is: ATD-EPAR-JX1, 50 0 0 0 50 0 0 0 1, the first bit represents the diagnostic coverage of the permanent output point endpoint (i.e. 50%), the second bit represents the diagnostic coverage of the permanent input point startpoint (i.e. 0), the third bit represents the diagnostic coverage of the permanent intermediate structure cone (i.e. 0), the fourth bit represents whether the value indicates whether the safety mechanism has the error correction function for permanent faults (0 is no), the fifth bit represents the diagnostic coverage of the transient output point endpoint (i.e. 50%), the sixth bit represents the diagnostic coverage of the transient input point startpoint (i.e. 0%), the seventh bit represents the diagnostic coverage of the transient intermediate structure cone (i.e. 0%), the eighth bit indicates whether the value indicates whether the safety mechanism has the error correction function for transient faults (0 is no), the ninth bit indicates whether this safety mechanism is limited to the module (1 is yes), and the value is 0 or 1, which is used to define whether the coverage type exceeds the module boundary.
[0041] Different users have different requirements for fault types. If a unified identifier is not used, there will be confusion in calculation and recording and it will be difficult to find. Mapping is used to ensure consistency between different fault types and provide clearer data identification for subsequent processing, ensuring that the data identification used in different steps is consistent.
[0042] For example, suppose that in the fault simulation result file, SA0 represents fault type A, and in subsequent processing, you want to use a more descriptive identifier, such as ATD-EPAR-JX1, then you need to establish a mapping relationship to map SA0 to ATD-EPAR-JX1. In other fault simulation results, fault type A may not be represented by SA0, so at this time, the identifier of fault type A is also mapped to ATD-EPAR-JX1.
[0043] Of course, multiple different fault types can also be mapped to the same identifier, which can be set according to actual needs. The mapping process can actually play a role of classification or merging.
[0044] The fault identifier in the first structure report that has a mapping relationship is replaced with the target identifier to obtain a second structure report that only includes the target identifier.
[0045] Merging the fault identification and target identification mappings can simplify the content of the structure report and facilitate subsequent calculations.
[0046] As an optional embodiment, after obtaining a second structure report with a hierarchical structure, the method also includes: extracting the location information, identification information and alarm information triggered by each fault event from the second structure report; using the location name, identification name and alarm name as column names, respectively, wherein each column name corresponds to multiple rows of blank areas; filling the location information, identification information and alarm information of each fault event into the blank areas of the corresponding column names according to the hierarchical structure to convert the format of the second structure report to obtain the converted second structure report.
[0047] The second structure report is converted so that the converted report is consistent with the declaration format of the security mechanism, which can make the second structure report more compatible with various security analysis tools.
[0048] As an optional embodiment, the diagnostic coverage of each component in the circuit system is calculated using the target calculation mode and the second structure report, including: when the target calculation mode is the first mode, obtaining initial analysis data, wherein the initial analysis data is the safety analysis data before the safety mechanism is inserted; dividing each component into gate-level units, and extracting the failure mode of each gate-level unit and the first contribution of each failure mode from the initial analysis data; determining the number of transistors in each gate-level unit, and assigning a weight value to each gate-level unit according to the number of transistors; weighting the first contribution using the weight value to obtain a second contribution; determining the first number of faults of each gate-level unit according to the failure mode and the second contribution, wherein the first number of faults is the sum of the number of faults on the gate-level unit; detecting the second number of faults on each gate-level unit, wherein the second number of faults is the number of faults detected; calculating the quotient of the second number of faults of the gate-level unit divided by the first number of faults, and adding the quotient values corresponding to each gate-level unit to obtain the diagnostic coverage.
[0049] The target calculation modes provided in the present application include a first mode, a second mode and a third mode, wherein the second mode and the third mode are unilateral calculations, and the first mode maps the failure mode and the gate-level unit to comprehensively consider these two aspects for calculation.
[0050] The initial analysis data in the present application is the analysis data obtained during FMEDA (failure mode effect and diagnostic analysis). The initial analysis data can be an FMEDA summary table, and the data in the table includes but is not limited to the circuit level during safety analysis and the safety analysis data of each level.
[0051] Figure 2 A flow chart of a method for calculating diagnostic coverage using the first mode provided in this application. As shown in the figure, the steps include: collecting failure mode and contribution data; identifying the gate-level units of the system; mapping the failure mode (failure mode contribution level) to the gate-level unit; determining the number of transistors in the gate-level unit; comprehensively considering the failure mode, contribution, gate-level transistor mapping and the characteristics of the gate-level unit; and comprehensively evaluating the safety of the system.
[0052] In the first mode, the failure mode and contribution data collected in the FMEA (Failure Modes Effects and Diagnostic Analysis) or FTA (Fault Tree Analysis) input before the safety mechanism is inserted need to be retained, that is, the initial analysis data. Save this data in a new FMEDA summary table to ensure accurate recording of failure modes, contributions, and other information related to failure modes, such as whether the safety goal is violated, whether it is a single point failure / multiple point failure, etc.
[0053] Specifically, for the circuit system to be evaluated, its components need to be determined and divided into gate-level units. Then, the comprehensive model maps the failure modes to the gate-level units to consider the impact of different gate-level units on system performance. This step requires mapping the failure modes from the component level to the gate-level unit level to ensure that each gate-level unit in the system is fully considered. This requires a detailed analysis of the failure modes to determine which gate-level units are affected by which failure modes.
[0054] When mapping the failure mode to the gate-level unit, the present application retains the previous failure mode and the first contribution, and then weights the contribution of the gate-level unit according to the number of transistors to obtain the second contribution, so as to more accurately evaluate the contribution of each gate-level unit.
[0055] For example, if the safety analysis is performed at the third level of the circuit, the analysis after the current fault simulation, which is still performed at this level, will still use this level and weight the number of transistors at the level with known contribution.
[0056] When considering the impact of gate-level units, it is necessary to comprehensively consider the characteristics of each gate-level unit and its contribution to system safety (i.e. the contribution data entered at the beginning). Then, the contribution and failure rate are distributed according to the gate-level weighted results. It is necessary to determine the number of transistors in each gate-level unit and use this data to distribute the impact of failure modes.
[0057] The first mode comprehensively considers the retained failure modes and their contributions, as well as the information on gate-level transistor mapping. A comprehensive evaluation is performed on each gate-level unit, combining the contribution of the failure mode and the characteristics of the gate-level unit to determine the impact of each gate-level unit on system safety. This can make full use of previous experience data while taking into account the differences between failure modes, ensuring that the evaluation results are more comprehensive and accurate.
[0058] Through the comprehensive model, the security of the system can be better evaluated and more accurate evaluation results can be provided, thereby guiding subsequent safety measures and improvement plans and conducting a comprehensive analysis and evaluation of the security of the system.
[0059] As an optional embodiment, the diagnostic coverage of each component in the circuit system is calculated using the target calculation mode and the second structure report, including: when the target calculation mode is the second mode, obtaining initial analysis data; extracting each failure mode of the component from the initial analysis data, and obtaining a fault generation list of the component, wherein the fault generation list includes uncompressed faults generated on each port; replacing each failure mode of the component with each fault in the fault generation list, and obtaining a first total failure rate detected on the component; dividing the first total failure rate by the second fault number to obtain the failure rate of each fault, wherein the second fault number is the sum of the faults in the fault generation list; and obtaining the diagnostic coverage of the component using the failure rate of each fault on the component.
[0060] The second mode maps the fault results to the fault level of the component and calculates the diagnostic coverage of the entire component.
[0061] Exemplarily, the execution steps of the second mode include: retaining the selected analysis level; replacing the failure mode with all faults; generating faults on all ports; dividing the fault failure rate equally; making fault classification judgments through a third structure report, wherein the third structure report is generated by combining the fault simulation results with the safety fault type; and calculating the FMEDA value, including the diagnostic coverage.
[0062] The calculation method through fault level mapping retains the analysis level selected in the previous FMEDA summary table. For example, if the analysis was performed at the second level before, then in this analysis, the analysis will still be performed at the second level, but the failure mode previously specified by the user will be replaced with all the faults occurring in this component. In this mode, it is necessary to ensure that the generation mode of the previously specified fault list is that faults are generated on all ports and no compression is performed. At this time, it is considered that the status of each fault is the same, that is, they will share the failure rate of this component equally. Each fault is regarded as a failure mode of this component. Assuming that the total number of faults of this component is N, each fault will occupy 1 / N of its total failure rate. After that, each fault, or each failure mode, whether it violates the safety goal, whether it is a single point fault, or whether it is a multi-point fault, will be determined and specified by the classification of fault types in the third structural report.
[0063] As an optional embodiment, the diagnostic coverage of each component in the circuit system is calculated using the target computing mode and the second structure report, including: when the target computing mode is the third mode, obtaining initial analysis data; determining each gate-level unit of the component from the initial analysis data, and obtaining the failure mode on the component, wherein each gate-level unit has a pre-generated fault; replacing each failure mode of the component with each gate-level unit, and obtaining a second total failure rate detected on the component; obtaining the number of transistors on the gate-level unit, and distributing the second total failure rate to each gate-level unit according to the number of transistors, to obtain the failure rate of each gate-level unit; and obtaining the diagnostic coverage of the component using the failure rate of each gate-level unit.
[0064] The third mode maps the faults to gate-level cells and calculates the diagnostic coverage value for each gate-level cell.
[0065] The corresponding weight value is assigned to each gate-level unit according to the number of transistors in the gate-level unit, and then the detectable failure rate of the component is allocated to each gate-level unit according to the weight value, where the number of transistors is proportional to the weight value. After the failure rate of each gate-level unit on the component is clarified, the diagnostic coverage of the component can be calculated based on the overall failure rate of the component.
[0066] The third mode takes into account the number of transistors in each gate-level cell and whether a fault on the output port of the gate-level cell can be detected.
[0067] By way of example, the execution steps of the third mode include: retaining the analysis level previously selected in the FMEDA summary table; changing the failure mode previously specified by the user to the gate-level unit thereunder; requiring the mode generated by the previously specified fault list to generate faults on all gate-level unit output ports without compression processing; allocating failure rates according to the number of transistors in the gate-level unit; the faults on the gate-level unit output ports can be mapped to the gate-level unit; classifying the fault types through the third structure report to determine whether each fault violates the safety goal and whether it is a single-point or multi-point fault, wherein the third structure report is generated by combining the fault simulation results with the safety fault type; and calculating the value of FMEDA, including diagnostic coverage.
[0068] After calculating the diagnostic coverage, you can also calculate the single point fault metric (SPFM), latent fault metric (LFM), and probabilistic metric for random hardware failures (PMHF). Ultimately, these metric values will be compared with different safety standard levels to determine whether the circuit meets specific safety standards. This comprehensive evaluation provides a strong basis for deciding whether to re-join or change the safety mechanism.
[0069] If the metric indicates that the system's fault coverage is low but the safety standards are high, it may be necessary to further optimize the safety mechanism or add additional safety measures to improve the safety of the system.
[0070] The present application also provides another method for calculation by gate-level transistor mapping, which does not use the input of the previous FMEA or FTA. However, the analysis level selected in the previous FMEDA table is retained. For example, if the analysis was performed at the second level before, then in this analysis, the calculation will still be performed at the second level, but the failure mode previously specified by the user will be changed to each gate-level unit below it. In this mode, it is necessary to ensure that the generation mode of the previously specified fault list is that faults are generated on all gate-level unit output ports and no compression processing is performed. At this time, the failure rate will be allocated according to the number of transistors in the gate-level unit. Each fault on the output port of the gate-level unit is considered to be mapped to the gate-level unit. For example, a fault on the output port of an AND gate is considered to be mapped using the failure rate of this AND gate. Whether this fault violates the safety goal, whether it is a single-point fault, and whether it is a multi-point fault, etc., will be determined and specified by the classification of the fault type in the third structure report, wherein the third structure report is generated by combining the fault simulation results with the safety fault type.
[0071] The present application adopts a circuit safety assessment method after fault simulation, including: obtaining a first structure report of the circuit system, wherein the first structure report is obtained by hierarchical conversion of the fault simulation results of the circuit system after the safety mechanism is inserted; mapping the fault identifier in the first structure report to the target identifier according to the preset mapping rule, so as to merge the identifiers of the first structure report to obtain a second structure report with a hierarchical structure; using the target calculation mode and the second structure report to calculate the diagnostic coverage of each component in the circuit system; obtaining the target coverage, and using the target coverage and the diagnostic coverage to perform a safety assessment to obtain the safety assessment result of the circuit system. By converting the fault simulation results of the circuit system after the safety mechanism is inserted into a first structure report of a hierarchical structure, and then using the target calculation mode to calculate the diagnostic coverage, preferably performing a safety assessment based on the diagnostic coverage, the problem of being unable to perform a comprehensive and accurate safety assessment on the circuit system after the safety mechanism is inserted is solved.
[0072] According to another aspect of the embodiment of the present application, the present application provides a circuit safety assessment device after fault simulation, such as Figure 3 As shown, including:
[0073] An acquisition module 302 is used to acquire a first structure report of the circuit system, wherein the first structure report is obtained by performing a hierarchical conversion on a fault simulation result of the circuit system after the safety mechanism is inserted;
[0074] A mapping module 304 is used to map the fault identifier in the first structure report to the target identifier according to a preset mapping rule, so as to merge the identifiers of the first structure report to obtain a second structure report with a hierarchical structure;
[0075] A calculation module 306, configured to calculate the diagnostic coverage of each component in the circuit system by using the target calculation mode and the second structure report;
[0076] The evaluation module 308 is used to obtain the target coverage, and use the target coverage and the diagnostic coverage to perform a safety evaluation to obtain a safety evaluation result of the circuit system.
[0077] It should be noted that the acquisition module 302 in this embodiment can be used to execute step 101 in the embodiment of the present application, the mapping module 304 in this embodiment can be used to execute step 103 in the embodiment of the present application, the calculation module 306 in this embodiment can be used to execute step 105 in the embodiment of the present application, and the evaluation module 308 in this embodiment can be used to execute step 107 in the embodiment of the present application.
[0078] Optionally, the acquisition module 302 is also used to perform fault simulation on the circuit system after the safety mechanism is inserted to obtain fault simulation results, wherein the fault simulation results include fault information of the fault event; hierarchically divide the fault simulation results according to the circuit architecture of the circuit system to obtain hierarchical data, wherein the hierarchical data includes component parameters on nodes of each hierarchy, and fault information of the fault event is marked on the node to which the fault event belongs; and generate a first structure report based on the hierarchical data.
[0079] Optionally, the mapping module 304 is also used to obtain the correspondence between the target identifier and the fault identifier from a preset mapping rule, wherein a target identifier has a correspondence with at least one fault identifier; determine the fault identifier in the first structure report, and map the fault identifier to the target identifier according to the correspondence; replace the fault identifier that has a correspondence with the target identifier with the target identifier to obtain a second structure report.
[0080] Optionally, the device also includes a conversion module, which is used to extract the location information, identification information and alarm information triggered by each fault event from the second structure report after obtaining a second structure report with a hierarchical structure; use the location name, identification name and alarm name as column names, respectively, wherein each column name corresponds to multiple rows of blank areas; fill the location information, identification information and alarm information of each fault event into the blank areas of the corresponding column names according to the hierarchical structure to convert the format of the second structure report to obtain a converted second structure report.
[0081] Optionally, the calculation module 306 is also used to obtain initial analysis data when the target calculation mode is the first mode, wherein the initial analysis data is the safety analysis data before the safety mechanism is inserted; divide each component into gate-level units, and extract the failure mode of each gate-level unit and the first contribution of each failure mode from the initial analysis data; determine the number of transistors of each gate-level unit, and assign a weight value to each gate-level unit according to the number of transistors; weight the first contribution using the weight value to obtain a second contribution; determine the first number of faults of each gate-level unit according to the failure mode and the second contribution, wherein the first number of faults is the sum of the number of faults on the gate-level unit; detect the second number of faults on each gate-level unit, wherein the second number of faults is the number of faults detected; calculate the quotient of the second number of faults of the gate-level unit divided by the first number of faults, and add the quotient values corresponding to each gate-level unit to obtain the diagnostic coverage.
[0082] Optionally, the calculation module 306 is also used to obtain initial analysis data when the target calculation mode is the second mode; extract each failure mode of the component from the initial analysis data, and obtain a fault generation list of the component, wherein the fault generation list includes uncompressed faults generated on each port; replace each failure mode of the component with each fault in the fault generation list, and obtain a first total failure rate detected on the component; divide the first total failure rate by the second number of faults to obtain the failure rate of each fault, wherein the second number of faults is the sum of the faults in the fault generation list; and use the failure rate of each fault on the component to obtain the diagnostic coverage of the component.
[0083] Optionally, the calculation module 306 is also used to obtain initial analysis data when the target calculation mode is the third mode; determine each gate-level unit of the component from the initial analysis data, and obtain the failure mode on the component, wherein there is a pre-generated fault on each gate-level unit; replace each failure mode of the component with each gate-level unit, and obtain a second total failure rate detected on the component; obtain the number of transistors on the gate-level unit, and distribute the second total failure rate to each gate-level unit according to the number of transistors to obtain the failure rate of each gate-level unit; and use the failure rate of each gate-level unit to obtain the diagnostic coverage of the component.
[0084] It should be noted here that the examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the contents disclosed in the above embodiments.
[0085] According to another aspect of the embodiments of the present application, the present application provides an electronic device, such as Figure 4 As shown, it includes a memory 401, a processor 403, a communication interface 405 and a communication bus 407. The memory 401 stores a computer program that can be run on the processor 403. The memory 401 and the processor 403 communicate through the communication interface 405 and the communication bus 407. When the processor 403 executes the computer program, the steps of the above method are implemented.
[0086] The memory and processor in the above electronic device communicate via a communication bus and a communication interface. The communication bus may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus may be divided into an address bus, a data bus, a control bus, etc.
[0087] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0088] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0089] According to another aspect of the embodiments of the present application, a computer-readable medium having a non-volatile program code executable by a processor is provided.
[0090] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment will not be described in detail here.
[0091] When the embodiments of the present application are specifically implemented, reference may be made to the above-mentioned embodiments, which have corresponding technical effects.
[0092] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application, or a combination thereof.
[0093] For software implementation, the technology described herein can be implemented by a unit that performs the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0094] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0095] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0096] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0097] 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 units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0098] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0099] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disk. It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the term "include", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such a process, method, article or device. Without more constraints, an element defined by the phrase "comprising a..." does not exclude the existence of other identical elements in the process, method, article or apparatus comprising the element.
[0100] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.
Claims
1. A circuit safety assessment method after fault simulation, characterized in that: include: Obtaining a first structure report of the circuit system, wherein the first structure report is obtained by performing hierarchical conversion on a fault simulation result of the circuit system after inserting a safety mechanism; Mapping the fault identifier in the first structure report to the target identifier according to a preset mapping rule, so as to merge the identifiers of the first structure report to obtain a second structure report having a hierarchical structure; Calculating the diagnostic coverage of each component in the circuit system using the target calculation mode and the second structure report; A target coverage is obtained, and a safety assessment is performed using the target coverage and the diagnostic coverage to obtain a safety assessment result of the circuit system.
2. The method according to claim 1, characterized in that The obtaining of a first structure report of the circuit system comprises: Performing fault simulation on the circuit system after inserting the safety mechanism to obtain the fault simulation result, wherein the fault simulation result includes fault information of the fault event; hierarchically dividing the fault simulation result according to the circuit architecture of the circuit system to obtain hierarchical data, wherein the hierarchical data includes component parameters on nodes of each hierarchy, and the node to which the fault event belongs is marked with the fault information of the fault event; The first structure report is generated based on the hierarchical data.
3. The method according to claim 1, characterized in that The mapping of the fault identifier in the first structure report to the target identifier according to the preset mapping rule to merge the identifiers of the first structure report to obtain a second structure report with a hierarchical structure includes: Acquire a correspondence between the target identifier and the fault identifier from the preset mapping rule, wherein one target identifier and at least one fault identifier have the correspondence relationship; Determine the fault identifier in the first structure report, and map the fault identifier to the target identifier according to the corresponding relationship; The fault identifier that has the corresponding relationship with the target identifier is replaced by the target identifier to obtain the second structure report.
4. The method according to claim 1, characterized in that: After obtaining the second structure report having a hierarchical structure, the method further includes: Extracting location information and identification information of each fault event and alarm information triggered by the fault event from the second structure report; The location name, the identification name and the alarm name are respectively used as column names, wherein each of the column names corresponds to a plurality of blank lines; The location information, the identification information and the alarm information of each fault event are filled into the blank area of the corresponding column name according to the hierarchical structure to perform format conversion on the second structure report to obtain the converted second structure report.
5. The method according to claim 1, characterized in that: The step of calculating the diagnostic coverage of each component in the circuit system by using the target calculation mode and the second structure report includes: When the target computing mode is the first mode, obtaining initial analysis data, wherein the initial analysis data is security analysis data before the security mechanism is inserted; Divide each component into gate-level units, and extract the failure mode of each gate-level unit and the first contribution of each failure mode from the initial analysis data; Determining the number of transistors of each of the gate-level units, and assigning a weight value to each of the gate-level units according to the number of transistors; weighting the first contribution by using the weight value to obtain a second contribution; Determine a first fault number of each of the gate-level units according to the failure mode and the second contribution, wherein the first fault number is the sum of the fault numbers on the gate-level units; Detecting a second fault number on each of the gate-level units, wherein the second fault number is the number of detected faults; The quotient of the second fault number of the gate-level unit divided by the first fault number is calculated, and the quotient values corresponding to each of the gate-level units are added to obtain the diagnostic coverage.
6. The method according to claim 1, characterized in that The step of calculating the diagnostic coverage of each component in the circuit system by using the target calculation mode and the second structure report includes: When the target calculation mode is the second mode, obtaining initial analysis data; Extracting each failure mode of the component from the initial analysis data, and obtaining a fault generation list of the component, wherein the fault generation list includes uncompressed faults generated on each port; replacing each of the failure modes of the component with each of the faults in the fault generation list, and obtaining a first total failure rate detected on the component; Dividing the first total failure rate by a second number of faults to obtain a failure rate of each fault, wherein the second number of faults is the sum of the faults in the fault generation list; The diagnostic coverage of the component is obtained by using the failure rate of each fault on the component.
7. The method according to claim 1, characterized in that The step of calculating the diagnostic coverage of each component in the circuit system by using the target calculation mode and the second structure report includes: When the target calculation mode is the third mode, obtaining initial analysis data; Determine each gate-level unit of the component from the initial analysis data, and obtain a failure mode on the component, wherein each gate-level unit has a pre-generated fault; Replacing each of the failure modes of the component with each of the gate-level units, and obtaining a second total failure rate detected on the component; Acquire the number of transistors on the gate-level unit, and distribute the second total failure rate to each of the gate-level units according to the number of transistors to obtain the failure rate of each of the gate-level units; The diagnostic coverage of the component is obtained by using the failure rate of each of the gate-level units.
8. A circuit safety assessment device for fault simulation, characterized in that: include: An acquisition module, configured to acquire a first structure report of the circuit system, wherein the first structure report is obtained by performing a hierarchical conversion on a fault simulation result of the circuit system after inserting a safety mechanism; A mapping module, used for mapping the fault identifier in the first structure report to a target identifier according to a preset mapping rule, so as to merge the identifiers of the first structure report to obtain a second structure report with a hierarchical structure; A calculation module, configured to calculate the diagnostic coverage of each component in the circuit system by using a target calculation mode and the second structure report; The evaluation module is used to obtain a target coverage rate, and use the target coverage rate and the diagnostic coverage rate to perform a safety evaluation to obtain a safety evaluation result of the circuit system.
9. An electronic device, comprising a memory, a processor, a communication interface and a communication bus, wherein the memory stores a computer program that can be run on the processor, and the memory and the processor communicate through the communication bus and the communication interface, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer readable medium having a non-volatile program code executable by a processor, characterized in that: The program code enables the processor to execute the method according to any one of claims 1 to 7.
