The Graph's Apprentice: Teaching an LLM Low Level Knowledge for Circuit Quality Estimation
Reza Moravej, Saurabh Bodhe, Zhanguang Zhang, Didier Chetelat, Dimitrios Tsaras, Yingxue Zhang, Hui-Ling Zhen, Jianye Hao, Mingxuan Yuan
TL;DR
This work addresses the challenge of rapidly predicting post-synthesis circuit quality (area and delay) directly from HDL code to accelerate RTL-level design iterations. It introduces VeriDistill, a decoder trained on frozen Verilog-focused LLM representations and regularized by a LUT-GNN teacher trained on LUT graphs, with a loss that blends supervised QoR prediction and cross-modal knowledge distillation. The approach outperforms state-of-the-art RTL-level baselines, including AST-based models, and demonstrates stronger generalization to out-of-distribution circuits such as those in the OpenABCD benchmark. By leveraging high-level language representations together with low-level circuit insights, VeriDistill provides instant HDL feedback and highlights the value of cross-representation alignment in hardware-aware learning.
Abstract
Logic synthesis is a crucial phase in the circuit design process, responsible for transforming hardware description language (HDL) designs into optimized netlists. However, traditional logic synthesis methods are computationally intensive, restricting their iterative use in refining chip designs. Recent advancements in large language models (LLMs), particularly those fine-tuned on programming languages, present a promising alternative. This work proposes augmenting LLMs with predictor networks trained to estimate circuit quality directly from HDL code. To enhance performance, the model is regularized using embeddings from graph neural networks (GNNs) trained on Look-Up Table (LUT) graphs, thereby incorporating lower-level circuit insights. The proposed method demonstrates superior performance compared to existing graph-based RTL-level estimation techniques on the established benchmark OpenABCD, while providing instant feedback on HDL code quality.
