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.
翻译:暂无翻译