arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.25296cs.AR
收藏

SafeGen: 面向功能安全的LLM驱动断言生成与故障关键性评估

SafeGen: LLM-Driven Assertion Generation and Fault Criticality Evaluation for Functional Safety

Arizona State University(亚利桑那州立大学);Texas Instruments India(德州仪器印度)

Xuanyi Tan, Arjun Chaudhuri, Rubin Parekhji, Krishnendu Chakrabarty

AI总结:

提出SafeGen框架,利用大语言模型和超知识图谱从设计文档提取规范并生成功能安全断言,结合门级到RTL故障映射与形式验证实现故障关键性语义分级,在FOC系统中验证了优于传统方法。

摘要:

随着自动驾驶和电动汽车技术的进步,功能安全已成为汽车芯片设计中的关键要求。传统的基于仿真的故障分析在模块级别往往过于保守,无法准确反映故障关键性。本文提出了SafeGen,一个由大语言模型驱动、形式验证辅助的功能安全导向故障关键性评估框架。SafeGen利用大语言模型和文档级超知识图谱,该图谱融合了故障模式、影响与诊断分析指南,从设计和安全文档中提取可验证的规范,并评估它们与整体系统安全的相关性。超知识图谱进一步丰富了寄存器传输级信息,以指导生成既语义基础又设计感知的功能安全断言。每个断言都与其对应的规范相关联,从而在整个评估过程中实现可追溯的推理。支持固定故障和桥接故障的门级到RTL故障映射机制,结合形式属性验证,实现了基于规范链接断言违规的语义级故障关键性分级。开发了面向磁场定向控制系统的数字-物理协同仿真平台来验证SafeGen。实验结果表明,与现有的基于LLM的断言生成框架相比,SafeGen生成了更高质量的断言,同时在故障关键性评估中提供了比传统基于仿真的方法更强的语义可解释性。

英文摘要:

With advances in autonomous driving and electric vehicle technologies, functional safety has become a critical requirement in automotive chip design. Traditional simulation-based fault analysis is often overly conservative at the module level and fails to accurately reflect fault criticality. This paper presents SafeGen, an LLM-driven, formal-verification-assisted framework for functional-safety-oriented fault criticality assessment. SafeGen leverages large language models (LLMs) and a document-level Hyper Knowledge Graph (HyperKG) that incorporates Failure Modes, Effects, and Diagnostic Analysis (FMEDA) guidelines to extract verifiable specifications from design and safety documents and evaluate their relevance to overall system safety. The HyperKG is further enriched with register-transfer-level (RTL) information to guide the generation of Functional Safety Assertions (FSAs) that are both semantically grounded and design-aware. Each assertion is linked to its corresponding specification, enabling traceable reasoning throughout the assessment process. A gate-to-RTL fault-mapping mechanism supporting both stuck-at and bridging faults, combined with formal property verification (FPV), enables semantic-level fault criticality grading based on specification-linked assertion violations. A digital-physical co-simulation platform for a field-oriented control (FOC) system is developed to validate SafeGen. Experimental results demonstrate that SafeGen generates higher-quality assertions than existing LLM-based assertion generation frameworks while providing greater semantic interpretability in fault criticality assessment compared with traditional simulation-based approaches.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑