Daily Arxiv

This is a page that curates AI-related papers published worldwide.
All content here is summarized using Google Gemini and operated on a non-profit basis.
Copyright for each paper belongs to the authors and their institutions; please make sure to credit the source when sharing.

SecFSM: Knowledge Graph-Guided Verilog Code Generation for Secure Finite State Machines in Systems-on-Chip

Created by
  • Haebom

Author

Ziteng Hu, Yingjie Xia, Xiyuan Chen, Li Kuang

Outline

This paper proposes SecFSM, a novel method that leverages a large-scale language model (LLM) to automate the Verilog code generation of finite state machines (FSMs), which play a crucial role in implementing the control logic of systems-on-chips (SoCs). While existing LLM-based Verilog code generation suffers from security vulnerabilities, SecFSM leverages a Security-Oriented Knowledge Graph (FSKG) to guide the LLM to generate more secure Verilog code. Based on the FSKG, vulnerabilities are identified through user requirement analysis, and security knowledge is then leveraged to generate security prompts that are then provided to the LLM. SecFSM is evaluated on academic datasets, artificial datasets, and proprietary datasets collected from academic papers and industrial cases. The results show that SecFSM outperforms existing methods, achieving a high success rate of passing 21 out of 25 security test cases.

Takeaways, Limitations

Takeaways:
A novel approach to addressing security vulnerabilities in LLM-based code generation.
Improving LLM Security Using Security-Oriented Knowledge Graphs
Increased development efficiency through automated FSM Verilog code generation.
Experimental validation using a wide range of datasets including real-world industrial cases.
Limitations:
High reliance on the completeness and accuracy of the FSKG. Vulnerabilities not included in the FSKG may not be detected.
Further examination of the generalizability of the evaluation using DeepSeek-R1 is needed. Evaluation using various security vulnerability scanning tools is also needed.
High dependency on a specific tool (DeepSeek-R1) and performance may vary when using other tools.
Further research is needed on applicability and scalability to large-scale complex FSMs.
👍