Abstract
Traditional CPU design is a labor-intensive process requiring years of expert manual programming in hardware description languages like Verilog. This paper presents a novel approach to automated hardware synthesis that generates a full-scale, industrial-strength CPU using only input-output (IO) examples. By representing circuit logic as a Binary Speculative Diagram (BSD) and employing iterative expansion guided by Boolean Distance metrics, we successfully generated a 32-bit RISC-V processor in under five hours. This represents a 1000x reduction in the design cycle compared to traditional methods. The resulting processor, Enlightenment-1, was fabricated on a 65nm process and successfully booted the Linux operating system, demonstrating the viability of AI-driven hardware design for complex, large-scale systems.
Introduction
Designing a Central Processing Unit (CPU) remains one of the most formidable challenges in modern engineering. While Electronic Design Automation (EDA) tools have streamlined many aspects of the process, the initial creation of Register Transfer Level (RTL) code still relies heavily on human expertise. A typical design cycle involves hundreds of engineers and can span several years, with verification alone consuming a significant portion of that time.
Previous attempts to automate this process using machine learning have struggled with two primary hurdles: scale and accuracy. Modern circuits often exceed millions of gates, a complexity level where standard neural networks and Large Language Models (LLMs) typically fail. Furthermore, hardware logic requires absolute functional correctness; even a single bit-flip can render a chip non-functional. Probabilistic models are prone to hallucinations, making them unsuitable for direct logic synthesis without a formal framework.
The BSD Framework and Iterative Design
To overcome these hurdles, we propose a framework that treats CPU design as a search for a massive Boolean function. Central to this approach is the Binary Speculative Diagram (BSD). Unlike traditional Binary Decision Diagrams (BDDs), which can suffer from exponential state explosion when representing complex logic, BSDs introduce "speculated nodes" that represent approximations of logic.
As illustrated in the figure above, the automated flow replaces manual programming and debugging with an iterative expansion process. The system starts with a simple "black box" and gradually expands it using Boole’s Expansion Theorem. By observing IO examples generated from the RISC-V Instruction Set Architecture (ISA) and legacy programs, the system iteratively adds nodes to increase functional accuracy until 100% correctness is achieved.
Scaling Logic via Boolean Distance
A critical challenge in automated synthesis is preventing the graph from growing to an unmanageable size. We address this by introducing Boolean Distance, a metric that measures the structural similarity between different logic functions. This allows the AI to identify and reuse logic components, effectively clustering nodes and transforming an exponentially difficult search into a polynomial one. This reuse of logic is analogous to how a human programmer utilizes subroutines or modules to manage complexity.
Because calculating exact Boolean similarity is computationally prohibitive for large circuits, we utilize Monte Carlo sampling to estimate these values efficiently. This enables the system to scale to designs with over 4 million gates, far exceeding the capabilities of previous AI-based hardware synthesis methods. The resulting BSD can be formally verified and debugged using standard SAT solvers, providing a level of transparency and reliability that neural networks lack.
Key Insights and Results
One of the most significant findings of this research was the emergence of classical computer architecture. Without prior knowledge of CPU structure or human-defined architectural templates, the AI autonomously "discovered" the von Neumann architecture. It naturally separated the design into distinct control and arithmetic units to satisfy the IO examples most efficiently, suggesting that these architectural patterns are fundamental solutions to the problem of general-purpose computation.
Our prototype, Enlightenment-1, is the world’s first physical chip designed entirely by AI. Fabricated on a 65nm process, the design process took less than five hours—a stark contrast to the thousands of man-hours typically required for verification alone. The CPU has 1,789 input bits and 1,826 output bits, and while the total possible IO space is astronomical ($2^{1798}$), the AI successfully learned the logic using fewer than $2^{40}$ random samples. The AI-designed CPU performs comparably to an Intel 80486SX and successfully passed validation using the Dhrystone benchmark and SPEC CINT2000, ultimately booting the Linux kernel (v5.15).
Conclusion and Future Work
This work demonstrates that industrial-scale CPU design can be automated through IO learning, bypassing the need for manual RTL coding. While current designs focus on functional correctness and achieve performance levels comparable to 1990s-era processors, they do not yet incorporate advanced features like out-of-order execution. Future work will focus on integrating optimization for Power, Performance, and Area (PPA) and providing the AI with libraries of common hardware modules to further enhance efficiency and performance.
Summary updated