Rome was Not Built in a Single Step: Hierarchical Prompting for LLM-based Chip Design

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Nakkab, Andre, Zhang, Sai Qian, Karri, Ramesh, Garg, Siddharth
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909309703553024
author Nakkab, Andre
Zhang, Sai Qian
Karri, Ramesh
Garg, Siddharth
author_facet Nakkab, Andre
Zhang, Sai Qian
Karri, Ramesh
Garg, Siddharth
contents Large Language Models (LLMs) are effective in computer hardware synthesis via hardware description language (HDL) generation. However, LLM-assisted approaches for HDL generation struggle when handling complex tasks. We introduce a suite of hierarchical prompting techniques which facilitate efficient stepwise design methods, and develop a generalizable automation pipeline for the process. To evaluate these techniques, we present a benchmark set of hardware designs which have solutions with or without architectural hierarchy. Using these benchmarks, we compare various open-source and proprietary LLMs, including our own fine-tuned Code Llama-Verilog model. Our hierarchical methods automatically produce successful designs for complex hardware modules that standard flat prompting methods cannot achieve, allowing smaller open-source LLMs to compete with large proprietary models. Hierarchical prompting reduces HDL generation time and yields savings on LLM costs. Our experiments detail which LLMs are capable of which applications, and how to apply hierarchical methods in various modes. We explore case studies of generating complex cores using automatic scripted hierarchical prompts, including the first-ever LLM-designed processor with no human feedback. Tools for the Recurrent Optimization via Machine Editing (ROME) method can be found at https://github.com/ajn313/ROME-LLM
format Preprint
id arxiv_https___arxiv_org_abs_2407_18276
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Rome was Not Built in a Single Step: Hierarchical Prompting for LLM-based Chip Design
Nakkab, Andre
Zhang, Sai Qian
Karri, Ramesh
Garg, Siddharth
Hardware Architecture
Artificial Intelligence
Large Language Models (LLMs) are effective in computer hardware synthesis via hardware description language (HDL) generation. However, LLM-assisted approaches for HDL generation struggle when handling complex tasks. We introduce a suite of hierarchical prompting techniques which facilitate efficient stepwise design methods, and develop a generalizable automation pipeline for the process. To evaluate these techniques, we present a benchmark set of hardware designs which have solutions with or without architectural hierarchy. Using these benchmarks, we compare various open-source and proprietary LLMs, including our own fine-tuned Code Llama-Verilog model. Our hierarchical methods automatically produce successful designs for complex hardware modules that standard flat prompting methods cannot achieve, allowing smaller open-source LLMs to compete with large proprietary models. Hierarchical prompting reduces HDL generation time and yields savings on LLM costs. Our experiments detail which LLMs are capable of which applications, and how to apply hierarchical methods in various modes. We explore case studies of generating complex cores using automatic scripted hierarchical prompts, including the first-ever LLM-designed processor with no human feedback. Tools for the Recurrent Optimization via Machine Editing (ROME) method can be found at https://github.com/ajn313/ROME-LLM
title Rome was Not Built in a Single Step: Hierarchical Prompting for LLM-based Chip Design
topic Hardware Architecture
Artificial Intelligence
url https://arxiv.org/abs/2407.18276