Skip to main content
QUICK REVIEW

[Paper Review] SpecLLM: Exploring Generation and Review of VLSI Design Specification with Large Language Model

Mengming Li, Wenji Fang|arXiv (Cornell University)|Jan 24, 2024
Machine Learning in Materials ScienceMaterials Science5 citations
TL;DR

The paper investigates using LLMs (GPT-4) to generate and review architecture specifications for VLSI, builds a 46-document dataset, and demonstrates generation from scratch, RTL-to-spec conversion, and defect-aware review across HAS/MAS/LAS levels.

ABSTRACT

The development of architecture specifications is an initial and fundamental stage of the integrated circuit (IC) design process. Traditionally, architecture specifications are crafted by experienced chip architects, a process that is not only time-consuming but also error-prone. Mistakes in these specifications may significantly affect subsequent stages of chip design. Despite the presence of advanced electronic design automation (EDA) tools, effective solutions to these specification-related challenges remain scarce. Since writing architecture specifications is naturally a natural language processing (NLP) task, this paper pioneers the automation of architecture specification development with the advanced capabilities of large language models (LLMs). Leveraging our definition and dataset, we explore the application of LLMs in two key aspects of architecture specification development: (1) Generating architecture specifications, which includes both writing specifications from scratch and converting RTL code into detailed specifications. (2) Reviewing existing architecture specifications. We got promising results indicating that LLMs may revolutionize how these critical specification documents are developed in IC design nowadays. By reducing the effort required, LLMs open up new possibilities for efficiency and accuracy in this crucial aspect of chip design.

Motivation & Objective

  • Define a structured, three-level taxonomy for architecture specifications (HAS, MAS, LAS) to standardize LLM usage in IC design.
  • Create and release a dataset of architecture specifications (≈46 documents) to enable LLM research in this domain.
  • Explore LLM-assisted generation of architecture specifications, including writing from scratch and RTL-to-spec conversion.
  • Investigate LLM-based review of architecture specifications and identify defect types and prompting strategies.
  • Assess practical challenges and propose methodologies for effective LLM-driven specification development and review.

Proposed method

  • Propose and formalize a three-level architecture specification taxonomy (HAS, MAS, LAS).
  • Assemble a public dataset of architecture specifications and related manuals (≈46 documents) spanning CPUs, SoCs, accelerators, buses, arithmetic, and crypto.
  • Demonstrate LLM-driven generation: (a) assisting designers to write MAS/LAS, (b) converting RTL/Verilog code into corresponding specifications.
  • Define a defect taxonomy for specifications (typographical, inconsistency, incomplete/unclear, combinational loops, uninitialized registers, cross-level contradictions).
  • Develop prompts and workflows to guide LLMs in writing and converting specifications, and in reviewing documents for specified defects.
  • Compare two review approaches: (i) whole-file review, (ii) section-by-section review to improve boundary clarity and defect detection.

Experimental results

Research questions

  • RQ1Can LLMs generate MAS/LAS architecture specifications from high-level designer briefs or RTL code?
  • RQ2Can LLMs convert RTL code into detailed architecture specifications while preserving meaning?
  • RQ3How effectively can LLMs review architecture specifications for defects across HAS, MAS, and LAS?
  • RQ4What prompting strategies and workflows improve boundary clarity and defect detection in LLM-driven reviews?
  • RQ5What are the practical limitations and considerations when applying LLMs to architecture specification tasks?

Key findings

  • LLMs can generate architecture specifications for simple logic circuits and potentially scale to more complex designs with progress.
  • GPT-4 can convert RTL/Verilog code into architecture specifications, given RTL input constrains and guides the output.
  • LLMs can identify common defects such as typographical and inconsistency errors and provide constructive improvement suggestions.
  • Two review methodologies were explored: whole-file review and section-by-section review, with the latter yielding more section-specific and comprehensive feedback.
  • Reviewing sectioned inputs helps mitigate boundary-recognition issues and improves defect coverage, though some boundary challenges remain.
  • A dataset of about 46 publicly available architecture specifications was compiled to support future LLM-based research in architecture specification.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.