SDCoder: LLM-Based Timing Constraint Generation via RL and Type-Routed Reference Injection
Qingyun Zou, Bin Gao, Chunlin Tian, Wenju Zhao, Mingjia Fan, Zhou Wang, Weng-Fai Wong, Bingsheng He, Tulika Mitra
Abstract
Synopsys Design Constraints (SDC) scripts define the timing requirements used in synthesis and static timing analysis. Generating correct SDC scripts from specifications and RTL is challenging because a script may execute successfully while still missing required constraints or targeting incorrect design objects. We present SDCoder, a locally deployable 14B model for automatic SDC generation. We first build 61,826 verified training examples and train the model using supervised fine-tuning followed by reinforcement learning (GRPO) with OpenSTA-based rewards. However, we find that GRPO struggles with constraint types that rarely appear correctly in sampled outputs, particularly multicycle paths. To address this limitation, we measure recall for each constraint type and identify those that remain poorly learned. We then fine-tune the model on complete reference scripts containing these types, together with replay data to preserve previously learned capabilities. We also introduce SDCBench-X, a 140-task benchmark that evaluates generated scripts by comparing their resulting constraint states with references. SDCoder passes 87 of 100 general tasks and 39 of 40 rare-type tasks, compared with 84 and 4 for GRPO alone and 72 and 22 for GPT-6.1-sol. On the existing SDCBench, SDCoder matches GPT-6.1-sol at pass@1, passing 19 of 22 tasks.
Create a lesson
Related papers
RTLuminate: Illuminating RTL Code Generation with Assertion Feedback
Shared title terminologycs.ARArash Ardakani, Yujing Wang, Ryan Eun et al.
Large Language Models for RTL Design: A Review of Generation, Verification, Evaluation, and Implementation
Shared title terminologycs.ARHepziba Susan, Shivaranjani G. R., Malik Imran et al.
EvoPath: An LLM-Agent Flow for False-Path Identification in Transistor-Level SRAM Timing Sign-Off
Shared title terminologycs.ARXuanyi Tan, Sanmitra Banerjee, Huiping Huang et al.
Tetris: Accelerating Composable Test-Time Scaling on GPU-PIM Systems via Adaptive Mapping, Control, and Memory Management
Shared title terminologycs.ARShengxuan Qiu, Haochen Huang, Tenghao Zhao et al.
A 0.9 V Bandgap Reference with 7.09 ppm/^{\circ}C over a 400 ^{\circ}C Temperature Range
Shared title terminologycs.ARRaj Khushal Mali, Pooja Pramod Nagvekar, Akhil Masurkar
ChipArc: Auditable Multi-Agent RTL Generation, Repair and Optimization with Verifier-Gated Memory
Shared title terminologycs.ARKaili Wang, Ben Stoffelen, Alejandra Lopez de Aberasturi Gomez et al.