IncreRTL: Traceability-Guided Incremental RTL Generation under Requirement Evolution
Organizations: National University of Defense Technology, Changsha, China · Defense Innovation Institute, Academy of Military Sciences, Beijing, China · Qiyuan Lab, Beijing, China
Abstract
Large language models (LLMs) have shown promise in generating RTL code from natural-language descriptions, but existing methods remain static and struggle to adapt to evolving design requirements, potentially causing structural drift and costly full regeneration. We propose IncreRTL, a LLM-driven framework for incremental RTL generation under requirement evolution. By constructing requirement-code traceability links to locate and regenerate affected code segments, IncreRTL achieves accurate and consistent updates. Evaluated on our newly constructed EvoRTL-Bench, IncreRTL demonstrates notable improvements in regeneration consistency and efficiency, advancing LLM-based RTL generation toward practical engineering deployment.
Figures & tables
| Magnitude | Category | Change Description | Count | Module |
| Minor | FunctionalBehaviorChange | Add an enable input and an output for detecting any edge | 34 | Edge Detector |
| ControlConfigChange | Add an enable signal to pause/resume the counter | 28 | Counter | |
| InterfaceProtocolChange | Add a second independent address and data port for dual-read | 8 | ROM | |
| MicroArchitectureRefactor | Replace serial iteration with parallel array multiplication | 20 | Multiplier | |
| Major | ModuleStructuralRefactor | Split arithmetic and logic units into separate submodules | 22 | ALU |
| SystemInterfaceRefactor | Replace external interface with standard AXI bus protocol | 8 | Memory Controller |
| Method | Consistency | Relative Token | Syntax | Function | ||
|---|---|---|---|---|---|---|
| Score | Usage | pass@5 | pass@10 | pass@5 | pass@10 | |
| Direct | 0.2684 | - | 78.15 | 80.03 | 56.30 | 60.00 |
| Full | 0.7337 | 1.8 | 89.17 | 90.01 | 67.67 | 70.33 |
| Ours | 0.8123 | 1.46 | 89.08 | 89.17 | 61.34 | 64.17 |
| Magnitude | Category | Consistency | Syntax | Function |
|---|---|---|---|---|
| Minor | FunctionalBehaviorChange | 0.7935 | 94.12 | 68.24 |
| ControlConfigChange | 0.6846 | 89.66 | 62.07 | |
| InterfaceProtocolChange | 0.8109 | 71.43 | 42.85 | |
| MicroArchitectureRefactor | 0.7192 | 89.00 | 60.00 | |
| Major | ModuleStructuralRefactor | 0.6142 | 78.26 | 44.35 |
| SystemInterfaceRefactor | 0.7070 | 91.43 | 42.86 |
RTL Code Generation
Register-transfer-level (RTL) code generation turns hardware specifications into synthesizable circuits, balancing functional correctness with area, timing, and power.
See all 31 papers