arXiv Science⌕ Search

arXiv subjects

Mayur Kubavat

Publications and source records attributed to Mayur Kubavat.

2 recordsLinked to original sources

Power-Aware Simulation and Formal Equivalence for Unmodified SystemC and SystemVerilog RTL

Modern systems-on-chip specify power gating, domain isolation, and state retention in external IEEE Std 1801 Unified Power Format (.upf) Tcl scripts so that RTL modules stay portable across simulation, synthesis, and formal sign-off. C++17 verification environments built on SystemC, Verilator, and UVM-SystemC have no runtime for those scripts: prior SystemC power libraries either estimate transaction-level energy without corrupting hardware state or embed custom C++ macros inside RTL modules, breaking synthesis and formal equivalence. Forcing signals from external observers also violates IEEE 1666-2023 scheduler and single-writer invariants, while synthesizable SystemC integers and Verilator models use two-state types that drop Verilog 'X values and mask missing isolation cells. We present systemc-lp, a C++17 IEEE 1801 engine built on a UPF-agnostic, +256-line policy interface in the SystemC 3.0.3 kernel. Keeping power intent out of RTL lets one unmodified design and .upf specification drive bypassed functional runs when UPF is disabled; cycle-accurate simulation with process gating, four-state 'X/'Z and two-state CORRUPT_JITTER corruption, and header-only UVM/TLM/FC4SC adapters when active; and word-level Btor2 and SystemVerilog formal proofs in svcc and InFormal. Across the open Accellera C++17 verification stack (969/969 SystemC kernel tests, ASan+UBSan clean) and an APB PMU-timer subsystem, disabling UPF stays within 5% of unhooked SystemC, formal proofs finish within 70 ms, and cross-checking all three tools uncovered three bugs in systemc-lp alongside six RTL, UPF, and firmware-sequencing defects missed by directed simulation.

cs.AR↗

Translation Validation of SystemVerilog-to-SystemC RTL Conversion by Reading the Generated C++

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.

cs.AR↗