LLM Agent-Based Design of RISC-V CPUs with FPGA-in-the-Loop Evaluation
Leo Itoh, Junichiro Kadomoto
Abstract
Long-run RTL simulation of CPU candidates can take hours, while short diagnostic runs may miss performance degradation that emerges later in execution. This evaluation cost can delay design decisions in LLM-agent-based CPU development. We present a development environment in which LLM agents implement CPU candidates on an FPGA and use on-board performance measurements to guide design decisions. We applied it to the human-supervised development of a single-cycle RV32I core into a three-wide out-of-order RV32IM core. The final design reaches 5.61 CoreMark/MHz at 130 MHz on a Artix-7 FPGA. For the same CPU candidate running 8,000 CoreMark iterations, FPGA evaluation, including implementation, was 9.6x faster than single-threaded RTL simulation. In one case, board measurements revealed long-run performance degradation in a candidate that improved in a short diagnostic run. The result guided candidate selection and led to RTL-based root-cause analysis and a fix.
Create a lesson
Related papers
Stratum: A Hardware-Software Co-Design Framework for SNN Inference on RISC-V
Shared title terminology · Wajahat Riaz, Muhammad Adeel Pasha, Shahid Masud et al.
Minimum RISC-V: Maximum FPGA Efficiency
Shared title terminology · Martin Langhammer, Bogdan Pasca, Gregg Baeckler
CRAFT: Analog Circuit Design by Reasoning LLM Agents from Pre-Computed Lookup Tables
Shared title terminology · Hyunjun Park, Seungyub Han, Jason Jaesung Lee et al.
OpenLayout: An Open and Agentic-Driven Platform for Holistic VLSI Physical Design and Benchmarking
Shared title terminology · Qiufeng Li, Sizhe Tang, Quan Cheng et al.
An Agentic Python Framework for LLM-Driven UVM Testbench Synthesis with Closed-Loop Compiler Feedback
Shared title terminology · Vikash Kumar
ICLayout-Bench: Benchmarking LLM Agents for Custom Circuit Layout Design
Shared title terminology · Zhangmai Li, Tianrui Ma, Zheng Weng et al.