Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

QiMeng-CRUX: Narrowing the Gap Between Natural Language and Verilog via Core Refined Understanding eXpression for Circuit Design

About

Large language models (LLMs) have shown promising capabilities in hardware description language (HDL) generation. However, existing approaches often rely on free-form natural language descriptions that are often ambiguous, redundant, and unstructured, which poses significant challenges for downstream Verilog code generation. We treat hardware code generation as a complex transformation from an open-ended natural language space to a domain-specific, highly constrained target space. To bridge this gap, we introduce Core Refined Understanding eXpression (CRUX), a structured intermediate space that captures the essential semantics of user intent while organizing the expression for precise Verilog code generation. We further design a two-stage training framework, comprising Joint Expression Modeling and Dual-Space Optimization, to enhance the quality of both CRUX and Verilog code. Experiments across multiple Verilog generation benchmarks demonstrate that our model, CRUX-V, achieves state-of-the-art performance among general models, particularly under challenging design tasks. Furthermore, the CRUX space proves transferable and beneficial when used as input prompts for other code models, highlighting its effectiveness in narrowing the gap between free-form natural language descriptions and precise Verilog generation.

Lei Huang, Rui Zhang, Jiaming Guo, Yang Zhang, Di Huang, Shuyao Cheng, Pengwei Jin, Chongxiao Li, Zidong Du, Xing Hu, Yunji Chen, Qi Guo• 2025

Related benchmarks

TaskDatasetResultRank
Verilog Code GenerationVerilogEval v1 (Human)
Pass@165.2
54
Verilog Code GenerationVerilogEval SR v2
Pass@164.7
34
Verilog Code GenerationVerilogEval CC v2
Pass@168
33
Verilog Code GenerationVerilogEval Machine v1
Pass@182.9
17
Verilog Code GenerationRTLLM v1
Pass@162.8
16
Verilog Code GenerationRTLLM v2
Pass@163.8
13
Showing 6 of 6 rows

Other info

Follow for update