SecFSM: Knowledge Graph-Guided Verilog Code Generation for Secure Finite State Machines in Systems-on-Chip
Not on the map. Why?
Abstract (arXiv)
Finite State Machines (FSMs) play a critical role in implementing control logic for Systems-on-Chip (SoC). Traditionally, FSMs are implemented by hardware engineers through Verilog coding, which is often tedious and time-consuming. Recently, with the remarkable progress of Large Language Models (LLMs) in code generation, LLMs have been increasingly explored for automating Verilog code generation. However, LLM-generated Verilog code often suffers from security vulnerabilities, which is particularly concerning for security-sensitive FSM implementations. To address this issue, we propose SecFSM, a novel method that leverages a security-oriented knowledge graph to guide LLMs in generating more secure Verilog code. Specifically, we first construct a FSM Security Knowledge Graph (FSKG) as an external aid to LLMs. Subsequently, we analyze users' requirements to identify vulnerabilities and get a list of vulnerabilities in the requirements. Then, we retrieve knowledge from FSKG based on the vulnerabilities list. Finally, we construct security prompts based on the security knowledge for Verilog code generation. To evaluate SecFSM, we build a dedicated dataset collected from academic datasets, artificial datasets, papers, and industrial cases. Extensive experiments demonstrate that SecFSM outperforms state-of-the-art baselines. In particular, on a benchmark of 25 security test cases evaluated by DeepSeek-R1, SecFSM achieves an outstanding pass rate of 21/25.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 11 of its 27 references that are in the map. First posted on arXiv 18 Aug 2025.
Builds on
11 of 27 references.
References · 11
- 2023AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversationcited by 1,988
- 2024Graph Retrieval-Augmented Generation: A Surveycited by 324
- 2023VeriGen: A Large Language Model for Verilog Code Generationcited by 200
- 2023ChipNeMo: Domain-Adapted LLMs for Chip Designcited by 174
- 2024BetterV: Controlled Verilog Generation with Discriminative Guidancecited by 100
- 2024VerilogCoder: Autonomous Verilog Coding Agents with Graph-based Planning and Abstract Syntax Tree (AST)-based Waveform Tracing Toolcited by 85
- 2023RTLCoder: Outperforming GPT-3.5 in Design RTL Generation with Our Open-Source Dataset and Lightweight Solutioncited by 71
- 2018Spectre Attacks: Exploiting Speculative Executioncited by 47
- 2023LLM4EDA: Emerging Progress in Large Language Models for Electronic Design Automationcited by 40
- 2024RTLRewriter: Methodologies for Large Models aided RTL Code Optimizationcited by 31
- 2023New Interaction Paradigm for Complex EDA Software Leveraging GPTcited by 4
Built on by
Citing papers per year: 2025: 1; 2026: 1.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2025Fortifying LLM-Based Code Generation with Graph-Based Reasoning on Secure Coding Practices
- 2026LLMs for Secure Hardware Design and Related Problems: Opportunities and Challenges
- 2025SALAD: Systematic Assessment of Machine Unlearning on LLM-Aided Hardware Design
- 2026SecureRAG-RTL: A Retrieval-Augmented, Multi-Agent, Zero-Shot LLM-Driven Framework for Hardware Vulnerability Detection
- 2026Semantic Consensus Decoding: Backdoor Defense for Verilog Code Generation
- 2026HarmChip: Evaluating Hardware Security Centric LLM Safety via Jailbreak Benchmarking
- 2025AutoFSM: A Multi-agent Framework for FSM Code Generation with IR and SystemC-Based Testing
- 2026LLM-FSM: Scaling Large Language Models for Finite-State Reasoning in RTL Code Generation