PrefixLLM: LLM-aided Prefix Circuit Design
Weihua Xiao, Venkata Sai Charan Putrevu, Raghu Vamshi Hemadri, Siddharth Garg, Ramesh Karri
TL;DR
The paper addresses the carry-generation bottleneck in wide-adders by proposing PrefixLLM, a framework that repurposes large language models to synthesize optimized prefix circuits. It introduces Structured Prefix Circuit Representation (SPCR), a text-based encoding of circuit nodes, connectivity, and bit ranges, and uses an iterative SPCR generation loop to ensure validity. Building on SPCR, PrefixLLM employs a design space exploration (DSE) loop with a sorted pool of prior designs and a Delay-SPCR variant to guide the search toward lower area and maintained or reduced delay. Empirical results show that PrefixLLM achieves up to 3.70% area reduction under the same delay for 16-bit circuits and demonstrates practical hardware viability via Tiny Tapeout, indicating that LLM-based synthesis can effectively contribute to arithmetic circuit design and optimization.
Abstract
Prefix circuits are fundamental components in digital adders, widely used in digital systems due to their efficiency in calculating carry signals. Synthesizing prefix circuits with minimized area and delay is crucial for enhancing the performance of modern computing systems. Recently, large language models (LLMs) have demonstrated a surprising ability to perform text generation tasks. We propose PrefixLLM, that leverages LLMs for prefix circuit synthesis. PrefixLLM transforms the prefix circuit synthesis task into a structured text generation problem, termed the Structured Prefix Circuit Representation (SPCR), and introduces an iterative framework to automatically and accurately generate valid SPCRs. We further present a design space exploration (DSE) framework that uses LLMs to iteratively search for area and delay optimized prefix circuits. Compared to state-of-the-art, PrefixLLM can reduce the area by 3.70% under the same delay constraint. This work highlights the use of LLMs in the synthesis of arithmetic circuits, which can be transformed into the structured text generation.
