Abstract
Customized processors are attractive solutions for vast domain-specific applications due to their high energy efficiency. However, designing a processor in traditional flows is time-consuming and expensive. To address this, researchers have explored methods including the use of agile development tools like Chisel or SpinalHDL, high-level synthesis (HLS) from programming languages like C or SystemC, and more recently, leveraging large language models (LLMs) to generate hardware description language (HDL) code from natural language descriptions. However, each method has limitations in terms of expressiveness, correctness, and performance, leading to a persistent contradiction between the level of automation and the effectiveness of the design. Overall, how to automatically design highly efficient and practical processors with minimal human effort remains a challenge. In this paper, we propose AGON, a novel framework designed to leverage LLMs for the efficient design of out-of-order (OoO) customized processors with minimal human effort. Central to AGON is the nano-operator function (nOP function) based Intermediate Representation (IR), which bridges high-level descriptions and hardware implementations while decoupling functionality from performance optimization, thereby providing an automatic design framework that is expressive and efficient, has correctness guarantees, and enables PPA (Power, Performance, and Area) optimization. Experimental results show that superior to previous LLM-assisted automatic design flows, AGON facilitates designing a series of customized OoO processors that achieve on average 2.35 $\times$ speedup compared with BOOM, a general-purpose CPU designed by experts, with minimal design effort.
Introduction
Designing customized processors is a "high-effort, high-reward" endeavor. While custom hardware is incredibly energy-efficient, the traditional design flow is slow, expensive, and requires deep expertise in Hardware Description Languages (HDLs) like Verilog or Chisel. AGON is an automated framework that transforms natural language Instruction Set Architecture (ISA) documents into high-performance, customized out-of-order (OoO) processors. By introducing a "nano-operator" (nOP) intermediate representation, it bridges the gap between LLM-generated logic and hardware-level optimization.
The Challenge of Custom Silicon
Recent attempts to use Large Language Models (LLMs) to automate hardware design have encountered three major obstacles:
- The "Plumbing" Gap: LLMs struggle with the tedious low-level details of hardware—managing bit widths, port connections, and sequential timing.
- The Verification Gap: LLMs are probabilistic and can "hallucinate" logic that fails silently in silicon.
- The PPA Gap: LLMs do not naturally optimize for Power, Performance, and Area (PPA).
As shown in Figure 1, traditional and even agile-based design flows require significant expert effort as complexity increases. AGON aims to break this trend by enabling high-complexity designs with minimal human intervention.
The AGON Framework
The core innovation of AGON is the decoupling of processor functionality from its performance optimization.
nOP Function IR
Instead of asking an LLM to write Verilog directly, AGON asks it to write "nOP functions"—a Pythonic Intermediate Representation (IR). These functions describe what an instruction does (e.g., "add these two registers and update the program counter") without worrying about the underlying wires. This abstraction removes the "plumbing" burden from the LLM, allowing it to achieve a 95.9% pass rate on standard instructions.
LLM Generation and Verification
The framework uses a few-shot learning approach combined with a self-debugging loop. If the generated nOP function fails a syntax check, the error is fed back to the LLM for correction. To ensure correctness, AGON generates multiple versions of a function, executes them with random inputs, and selects the "consensus" output.
Automated Optimization
AGON includes automated primitives to optimize the final hardware:
auto_fuse: A greedy algorithm that searches the ISA for common operation patterns and fuses them into single-cycle hardware units to reduce latency.auto_config: Uses Bayesian optimization to explore a design space of over 179 million points (cache sizes, buffer depths, etc.) to find the best microarchitecture for a specific area budget.
Evaluation and Results
The researchers evaluated AGON using the RV64I base ISA along with cryptography (Zknh) and packed SIMD (P) extensions. They compared AGON-generated designs against BOOM (Berkeley Out-of-Order Machine), an expert-designed CPU, and previous LLM-based tools like Chip-Chat.
Key results include:
- Performance: AGON-designed processors achieved an average 2.35× speedup over BOOM across various benchmarks.
- Efficiency: AGON-generated cores used only 79.5% of the area of a comparable BOOM configuration.
- Minimal Effort: While previous methods required nearly 1,900 lines of manual prompting, AGON-based designs required as few as 2 to 9 lines of manual code to fix errors.
- Optimization: In area-constrained scenarios, AGON's auto-tuning achieved up to a 17.4× improvement in performance for specific matrix tasks.
Conclusion and Future Work
By abstracting hardware logic into a functional IR and decoupling it from physical implementation, AGON enables the automated creation of high-performance custom silicon. Future work will focus on expanding the scope of automated fusion to memory access and branch logic, as well as supporting more diverse base microarchitectures and parallel systems like multi-core and advanced SIMD processors.
Summary updated