Skip to content

svlang-sdk: A Zero-Dependency Multi-Domain Compiler SDK for Modular VLSI Frontend Verification and EDA

Mayur Kubavat, Milan Kubavat, Yash Kubavat

cs.AR

Abstract

VLSI frontend flows parse the same chip five times across SystemVerilog, UPF, SDC, SystemRDL/IP-XACT, and SystemC. Disconnected tools maintain separate elaboration graphs, cache stale state, and expose unstable C++ ABIs or text dumps, forcing brittle glue scripts while IDEs and AI agents stall on full-chip re-elaboration and megabyte JSON payloads. We present svlang-sdk, a 73,892-line zero-dependency C++23 (-fno-exceptions -fno-rtti) hardware compiler spine and frozen C11 SDK (libsvlangsdkc). Five acyclic layers separate: (0) a Salsa-style incremental query host (AnalysisHost/AnalysisSnapshot) with durability tiers, early cutoff, cooperative cancellation, and epoch-scoped arenas; (1) five pluggable frontends (SV, UPF 3.1, SystemC 3.0, SDC, RDL/IP-XACT) bound onto one dense EntityId graph with OpenUSD-style overlays and ExplainValueSource provenance; (2) a word-level SSA RTL netlist, immutable .svdb snapshots, Hydra-style merging views, and macro-aware AtomicChange refactoring; (3) a dual-plane ABI pairing 39 C11 symbols (zero leaked C++ Z* symbols) with the header-only Apache Arrow C Data Interface and C++23, Python, Rust, and TypeScript bindings; and (4) LSP 3.17, MCP 2026-07-28, DAP v1.71, and Surfer WCP servers. Linking svlang-sdk deleted 16,351 duplicated frontend lines from our 88,254-line sv++ simulator, drives 436 lint rules in svlang-lint, and isolates a 42,472-line consolidation seam in our 159,225-line Rust formal verifier InFormal. On arm64 macOS, all 14 C++23 test suites pass under Debug, ASan+UBSan, TSan, and Release; comment edits hit early cutoff in 10 us with flat RSS across 1,000 epochs; Arrow exports 53,005 entities in 0.9 ms (37.3x faster than JSON); and four polyglot small-tool proofs each fit under 150 lines.

Create a lesson

Metadata

Categories
cs.AR, cs.PL, cs.SE
Comments
10 pages, 7 figures, 5 tables; v2: added co-authors Milan Kubavat and Yash Kubavat