← all papers · overview

Autofsm: A Multi-agent Framework For FSM Code Generation With IR And Systemc-based Testing

·2025

Abstract

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 benchmar

Related papers

Ranked by semantic similarity — how closely each paper's abstract matches this one (100% = near-identical topic).

Autofsm: A Multi-agent Framework For FSM Code Generation With IR And Systemc-based Testing — ai-agents