Chip-Chat: Challenges and Opportunities in Conversational Hardware Design

Jason Blocklove,Siddharth Garg,Ramesh Karri,Hammond Pearce
DOI: https://doi.org/10.1109/MLCAD58807.2023.10299874
2023-11-14
Abstract:Modern hardware design starts with specifications provided in natural language. These are then translated by hardware engineers into appropriate Hardware Description Languages (HDLs) such as Verilog before synthesizing circuit elements. Automating this translation could reduce sources of human error from the engineering process. But, it is only recently that artificial intelligence (AI) has demonstrated capabilities for machine-based end-to-end design translations. Commercially-available instruction-tuned Large Language Models (LLMs) such as OpenAI's ChatGPT and Google's Bard claim to be able to produce code in a variety of programming languages; but studies examining them for hardware are still lacking. In this work, we thus explore the challenges faced and opportunities presented when leveraging these recent advances in LLMs for hardware design. Given that these `conversational' LLMs perform best when used interactively, we perform a case study where a hardware engineer co-architects a novel 8-bit accumulator-based microprocessor architecture with the LLM according to real-world hardware constraints. We then sent the processor to tapeout in a Skywater 130nm shuttle, meaning that this `Chip-Chat' resulted in what we believe to be the world's first wholly-AI-written HDL for tapeout.
Machine Learning,Hardware Architecture,Programming Languages
What problem does this paper attempt to address?
The paper aims to explore the challenges and opportunities of applying large language models (LLMs) in hardware design, particularly in designing hardware description language (HDL) using conversational large language models. Specifically, the study presents a case analysis demonstrating how a hardware engineer collaborates with an LLM to design a brand-new 8-bit accumulator-based microprocessor architecture and ultimately sends the design to the Skywater 130nm foundry for tape-out. This is the first attempt where HDL code entirely written by AI has been successfully taped out. The main contributions of the paper include: 1. The first exploration of the application of conversational LLMs in hardware design. 2. An observational study demonstrating how to use ChatGPT-4 for end-to-end collaborative design of complex hardware applications. 3. Achieving a significant milestone—the first HDL code entirely written by AI for tape-out. 4. Providing practical advice on how to effectively utilize the latest conversational LLMs for hardware-related tasks. Researchers, through interaction with ChatGPT-4, gradually completed a series of tasks from instruction set architecture (ISA) definition, register design, shift register and memory module design, multi-cycle timing planning, control unit logic design, and more. Throughout the design process, ChatGPT-4 was responsible for generating most of the Verilog code, while human engineers were responsible for verification and debugging. Ultimately, the design not only ran well in a simulation environment but was also verified on an FPGA and successfully taped out. This process demonstrates the potential of LLMs in the field of hardware design and the challenges they face.