ChatChisel: Enabling Agile Hardware Design with Large Language Models

Tianyang Liu,Qi Tian,Jianmin Ye,LikTung Fu,Shengchu Su,Junyan Li,Gwok-Waa Wan,Layton Zhang,Sam-Zaak Wong,Xi Wang,Jun Yang
DOI: https://doi.org/10.1109/ISEDA62518.2024.10618053
2024-05-10
Abstract:With the increasing complexity of integrated circuits, agile hardware design methodologies are crucial. Modern HDLs like Chisel enhance design quality, but manual implementations remain error-prone and time-consuming. Large language models (LLMs) offer potential for design automation through natural language but face challenges in generating large circuits using Verilog. We evaluate LLM capabilities for Chisel and Verilog generation, demonstrating superior Chisel generation ability. We introduce ChatChisel, the first language-based agile hardware design workflow that generates Chisel from language specifications. ChatChisel utilizes four LLM-based modules for decomposing, generating, error-correcting, and composing hardware designs. Techniques like LLM collaboration and RAG enhance ChatChisel's performance. Using GPT-3.5-turbo, we implemented an RV32I RISC-V CPU with 5-stage pipeline and dynamic branch prediction. We also validate our approach with extensive evaluations. Our experimental results reveal that ChatChisel can outperform LLM-based hardware design with Verilog by an average of 31.86%, implying a significant design capability enhancement and design process acceleration with ChatChisel.
What problem does this paper attempt to address?