AutoTrans:RISC-V安全断言自动翻译框架
AutoTrans: AI-Assisted Automatic Translation of Security Assertions for RISC-V Processors
AutoTrans能自动将RISC-V安全断言从一种架构翻译到另一种,比人工翻译快且准确,解决了LLM翻译的幻觉问题。
AutoTrans是一个自动化框架,解决RISC-V处理器安全断言翻译的高成本问题。该框架使用基于正则表达式的SystemVerilog信号提取器防止信号幻觉,通过模板确保提示参数字节级一致性,并集成JasperGold FPV形式验证过程。实验显示,在Deepseek V4上实现78%自动翻译接受率,经人工修正后达100%。
AutoTrans: AI-Assisted Automatic Translation of Security Assertions for RISC-V Processors
Reusing a set of verified security assertions across RISC-V processor targets remains one of the most expensive bottlenecks in hardware security verification. Manual translation takes hours per assertion. Raw LLM translation is fast but unreliable, introducing signal hallucination, where the model invents port names absent from the target RTL and produces outputs that may vary across model updates or even within the same model version. This paper presents AutoTrans, an automated framework that addresses the above shortcomings. First, a new lightweight Regular Expression-based System Verilog signal extractor is proposed to identify the signals for generating security assertions. This step is necessary to prevent signal hallucination. Second, a template is introduced to create prompt and pinned inference parameters that guarantee a byte-identical prompt assembly on every run, making the pipeline output resilient to model updates. Moreover, the introduced template for LLM prompting is capable of generating security assertions from English-only security descriptions of RISC-V processors, with no manual authoring. Third, a formal verification process (JasperGold FPV) is integrated, which guarantees that the generated security assertions verify the security of the RISC-V processor rather than silently entering the result set. The workflow is applied on Deepseek V4 to translate security assertions from one RISC-V to another (e.g., for IBEX from NS31A RISC-V). The experiment shows that AutoTrans achieves 78\% Auto Translation Acceptance Rate (TAR) automatically and without human intervention and 100\% Final TAR after refinement by humans.