When to Test, Repair, or Regenerate: Decision-Guided Efficient RTL Generation
Feiyang Pan, Shenghe Zheng, Pengfei Xiao, Chunyan Yin, Guangbin Dou
Abstract
Large language models (LLMs) can generate register-transfer-level (RTL) designs from natural-language specifications. To improve functional correctness, many RTL agents use simulation feedback to guide refinement. However, without a reference testbench, generating one for every initial implementation incurs inference cost even when the RTL is correct. We therefore introduce an adaptive harness that uses a specialized decision model to orchestrate testing, refinement, and candidate selection. It accepts high-scoring initial implementations and generates testbenches for the rest. When further search is needed, the initial score guides repair--regeneration allocation, while defect rankings and simulation feedback guide repair. For final selection, the harness prioritizes test-passing candidates and ranks them using decision-model scores. Across three benchmarks, the harness with DeepSeek improves mean Pass@1 by 5.4--7.1 percentage points over initial implementations and reduces aggregate estimated inference cost by 11.0--14.3% relative to a testbench-guided repair baseline with the same candidate cap.
Create a lesson
Related papers
SGLayout: Schema-Guided Closed-Loop Refinement for LLM-Driven Parameterized Layout Generation
Shared title terminology · Siyang Chen, Yuan Pu, Yuhan Qin et al.
AutoC2V: Synthesis-Guided LLM Training for QoR-Optimized C++-to-Verilog Generation
Shared title terminology · Guanqi Lyu, Fei Zhao, Zhaojun Lu et al.
LLM-Assisted Verilog Code Refinement for Efficient RTL Clock Gating
Shared title terminology · Geuna Chang, Seohyun Kim, Youngsoo Shin
Motivo: A Motif-Based Algorithm-Architecture Co-Design for Fast and Energy-Efficient Graph-Based Genome Analysis
Shared title terminology · Eirini Maria Tzermpou, Konstantina Koliogeorgi, Konstantinos Kanellopoulos et al.
FOREST: Coordinating Tree-based HBF, RRAM, and HBM for Efficient Speculative LLM Inference
Shared title terminology · Hao Ding, Zheng Shi, Dongxue Zhao et al.
Acceleration of Sparse and Irregular Workloads through Energy-Efficient Stream Extensions
Shared title terminology · Paul Scheffler