HDLCopilot: Natural Language Exploration of Hardware Designs and Libraries

Manar Abdelatty,Jacob Rosenstein,Sherief Reda
2024-11-02
Abstract:Hardware design workflows often involve working with Process Design Kits (PDKs) from various fabrication labs, each containing its own set of standard cell libraries optimized for metrics such as speed, power, or density. These libraries include multiple views for information on timing and electrical properties of cells, cell layout details, and process design rules. Engineers typically navigate between the design and the target technology to make informed decisions on different design scenarios, such as selecting specific gates for area optimization or enhancing critical path speed. Navigating this complex landscape to retrieve specific information about gates or design rules is often time-consuming and error-prone. To address this, we present HDLCopilot, a multi-agent collaborative framework powered by large language models that enables engineers to streamline interactions with hardware design and PDKs through natural language queries. HDLCopilot enables engineers to quickly access relevant information on gates and design rules, evaluate tradeoffs related to area, speed, and power in order to make informed decisions efficiently and accurately. The framework achieves an execution accuracy of 96.33\% on a diverse set of complex natural language queries. HDLCopilot positions itself as a powerful assistant in hardware design workflows, enhancing productivity and reducing potential human errors.
Computation and Language
What problem does this paper attempt to address?
This paper attempts to solve the complexity and inefficiency problems in interacting with Process Design Kits (PDKs) during the hardware design process. Specifically, when engineers are doing hardware design, they need to frequently search for specific information from PDKs, such as the gate circuit properties in the standard cell library, design rules, etc. This information is usually distributed in a large number of files, and manual searching is not only time - consuming but also error - prone. To solve this problem, the paper proposes HDLCopilot, which is a multi - agent collaborative framework based on large - language models (LLMs), aiming to simplify the interaction process between engineers and hardware design and PDKs through natural - language queries. The main contributions of HDLCopilot include: 1. **Introduction of the HDLCopilot framework**: This framework can interact efficiently with hardware design and PDKs in a natural - language format, improving the work efficiency of engineers. 2. **Proposing a database schema for PDK information**: By storing PDK information in a relational database and using SQL query dynamic generation technology, accurate data retrieval is achieved. 3. **Proposing a graph - database schema for hardware - design information**: By storing hardware - design information in a graph database and using Cypher query dynamic generation technology, efficient retrieval of design data is achieved. 4. **Experimental results**: The experimental results show that HDLCopilot can answer diverse and complex user questions with high precision, with an execution accuracy rate of 96.33% and an efficiency score of 100.83%. Through these contributions, HDLCopilot not only improves the speed and accuracy of data access in the hardware - design process, but also reduces potential human errors, providing a powerful auxiliary tool for hardware - design engineers.