Masala-CHAI: A Large-Scale SPICE Netlist Dataset for Analog Circuits by Harnessing AI

Jitendra Bhandari,Vineet Bhat,Yuheng He,Siddharth Garg,Hamed Rahmani,Ramesh Karri
2024-11-26
Abstract:Masala-CHAI is the first fully automated framework leveraging large language models (LLMs) to generate Simulation Programs with Integrated Circuit Emphasis (SPICE) netlists. It addresses a long-standing challenge in automating netlist generation for analog circuits within circuit design automation. Automating this workflow could accelerate the creation of finetuned LLMs for analog circuit design and verification. We identify key challenges in this automation and evaluate the multi-modal capabilities of state-of-the-art LLMs, particularly GPT-4, to address these issues. We propose a three-step workflow to overcome current limitations: labeling analog circuits, prompt tuning, and netlist verification. This approach aims to create an end-to-end SPICE netlist generator from circuit schematic images, tackling the long-standing hurdle of accurate netlist generation. Our framework demonstrates significant performance improvements, tested on approximately 2,100 schematics of varying complexity. We open-source this solution for community-driven development.
Hardware Architecture
What problem does this paper attempt to address?
The problem that this paper attempts to solve is the long - standing challenge of automatically generating SPICE netlists in analog circuit design automation. Specifically, the paper proposes a fully - automatic framework named Masala - CHAI, which utilizes large - language models (LLMs) to generate SPICE netlists. This framework aims to overcome the key challenges encountered by existing methods when automatically generating accurate SPICE netlists from circuit diagrams, such as inaccurate component detection and network connection errors. Through a three - step workflow of labeling analog circuits, prompt tuning, and netlist verification, Masala - CHAI can automatically generate end - to - end SPICE netlists from circuit schematic images, thereby significantly improving performance and testing approximately 2,100 schematics of different complexities. The main contributions of the paper include: 1. Conducting an empirical study on the limitations of existing multi - modal LLMs (such as GPT - 4) when extracting SPICE netlists from schematics. 2. Constructing Masala - CHAI, which is the first fully - automated framework to use LLMs and custom - trained deep - network models to extract SPICE netlists on a large scale from circuit schematics in textbooks and papers. 3. Using Masala - CHAI to collect a dataset containing approximately 2,100 SPICE netlists (as well as metadata such as figure annotations) from sample textbooks and open - sourcing this process to promote further research in this field. 4. Using the Masala - CHAI dataset to fine - tune the GPT model, demonstrating the potential use of this dataset in automatically generating SPICE netlists from English prompts. Through these contributions, the paper not only solves the key problems in analog circuit design but also provides valuable resources and tools for future research and applications.