Translation Validation of SystemVerilog-to-SystemC RTL Conversion by Reading the Generated C++
Mayur Kubavat
Key points
From the paper's conclusion- I built svcc, an open-source SystemVerilog-to-SystemC converter, and my first check of its output read the generated C++ with SystemVerilog's rules.
Abstract
SystemC models of register-transfer level (RTL) designs are used for virtual platforms, firmware bring-up and simulation without a commercial license, and more of them now come from translators and language models. A wrong model usually compiles, and it usually agrees with the RTL. SystemVerilog evaluates an 8-bit sum in 8 bits while C++ evaluates it in 64, so a translation that forgets one truncation keeps a carry the RTL drops, and only inputs near the top of the range show it. I built svcc, an open-source SystemVerilog-to-SystemC converter, and my first check of its output read the generated C++ with SystemVerilog's rules. That check passed two wrong models. The check that replaced it gives the generated header the meaning C++17 and SystemC give it and turns undefined behavior into proof obligations. It prints what it read as SystemVerilog with every width change explicit, then proves that equivalent to a netlist of the source by induction over registers matched by name. On 50 author-written designs it proves 45 and reports 5 as outside its model. In a mutation experiment it accepted none of the 17 mutants that compiled SystemC showed to be wrong. Of 2,184 modules from 16 open-source code bases, 1,185 conversions match Verilator in random co-simulation and the check proves 600 of them. The same runs found defects in the front end, in svcc and in Verilator.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- AutoC2V: Synthesis-Guided LLM Training for QoR-Optimized C++-to-Verilog GenerationarXiv · 2026
- CorrectRTL: Boost RTL Generation Quality Through Automated Self-Correction with Instruction DecompositionarXiv · 2026
- Automated Multi-Line Bug Repair Using Model Checker Aided LLMs: A Case Study on RISC-V ProcessorsarXiv · 2026
- BugGen 2.0: Rethinking the Roles of LLMs for Scalable RTL Bug SynthesisarXiv · 2026
- MicroAssert: Microarchitecture-Aware Structured Assertion Generation for CPU VerificationarXiv · 2026
- Robustness of LLM-Generated SystemVerilog Assertions to Semantics-Preserving RTL TransformationsarXiv · 2026