AutoFSM: A Multi-agent Framework for FSM Code Generation with IR and SystemC-Based Testing
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
With the rapid advancement of large language models (LLMs) in code generation, their applications in hardware design are receiving growing attention. However, existing LLMs face several challenges when generating Verilog code for finite state machine (FSM) control logic, including frequent syntax errors, low debugging efficiency, and heavy reliance on test benchmarks. To address these challenges, this paper proposes AutoFSM, a multi-agent collaborative framework designed for FSM code generation tasks. AutoFSM introduces a structurally clear intermediate representation (IR) to reduce syntax error rate during code generation and provides a supporting toolchain to enable automatic translation from IR to Verilog. Furthermore, AutoFSM is the first to integrate SystemC-based modeling with automatic testbench generation, thereby improving debugging efficiency and feedback quality. To systematically evaluate the framework's performance, we construct SKT-FSM, the first hierarchical FSM benchmark in the field, comprising 67 FSM samples across different complexity levels. Experimental results show that, under the same base LLM, AutoFSM consistently outperforms the open-source framework MAGE on the SKT-FSM benchmark, achieving up to an 11.94% improvement in pass rate and up to a 17.62% reduction in syntax error rate. These results demonstrate the potential of combining LLMs with structured IR and automated testing to improve the reliability and scalability of register-transfer level (RTL) code generation.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 12 of its 19 references that are in the map. First posted on arXiv 12 Dec 2025.
Builds on
12 of 19 references.
Closest ancestors · 1
Same direction, newest first
Other references · 11
- 2023GPT-4 Technical Reportcited by 18,132
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Frameworkcited by 1,761
- 2023VeriGen: A Large Language Model for Verilog Code Generationcited by 197
- 2023RTLLM: An Open-Source Benchmark for Design RTL Generation with Large Language Modelcited by 143
- 2023Chip-Chat: Challenges and Opportunities in Conversational Hardware Designcited by 136
- 2023ChipGPT: How far are we from natural language hardware designcited by 101
- 2024BetterV: Controlled Verilog Generation with Discriminative Guidancecited by 99
- 2023RTLCoder: Outperforming GPT-3.5 in Design RTL Generation with Our Open-Source Dataset and Lightweight Solutioncited by 69
- 2025A Survey of Research in Large Language Models for Electronic Design Automationcited by 38
- 2024LLM-Aided Testbench Generation and Bug Detection for Finite-State Machinescited by 15
Built on by
Citing papers per year: 2026: 1.
1 paper.
- 2026Agentic Electronic Design Automation: A Handoff Perspective18 Jun 2026
Similar, not cited
Close in wording, no citation either way
- 2026SiliconMind-V1: Multi-Agent Distillation and Debug-Reasoning Workflows for Verilog Code Generation
- 2024AutoSafeCoder: A Multi-Agent Framework for Securing LLM Code Generation through Static Analysis and Fuzz Testing
- 2025VFlow: Discovering Optimal Agentic Workflows for Verilog Generation
- 2025VeriMind: Agentic LLM for Automated Verilog Generation with a Novel Evaluation Metric
- 2026LLM-FSM: Scaling Large Language Models for Finite-State Reasoning in RTL Code Generation
- 2025Enhancing LLM Code Generation: A Systematic Evaluation of Multi-Agent Collaboration and Runtime Debugging for Improved Accuracy, Reliability, and Latency
- 2025A Survey on Code Generation with LLM-based Agents
- 2024AutoVCoder: A Systematic Framework for Automated Verilog Code Generation using LLMs