arXiv:2610.27356cs.AROct 2026

Manuscript Offprint

arXiv:2610.27356

Stop Paying by the Letter: Accelerating Full-Chip RTL Simulation with Host-Side Tokenized Logging

Daniel Keller, Rohit Kumar

Daniel Keller and Rohit Kumar

Google

{kellerdaniel, rohitpipania}@google.com

Abstract—Firmware diagnostic logging (printf) is an essential debug instrument in full-chip system-on-chip (SoC) design verification, yet it imposes a heavy tax on cycle-accurate RTL simulation: formatting a 30-character, 1-argument message on a simulated CPU and serializing it through a memory-mapped aperture costs 3.04 to 15.23 μ\mus per call (up to 19.60 μ\mus for a 34-character, 4-argument call; 15.27 μ\mus unweighted / 15.08 μ\mus print-weighted critical-path mean across Subsystem Suite A). Unlike embedded tokenizers that target flash footprint and serial wire bytes with offline decoding, RTL simulation is governed by a two-regime cost function—cross-fabric SoC paths are dominated by MMIO bus stalls (84.7% of call latency) whereas local subsystem paths are dominated by on-core vsprintf formatting (61.7%)—and requires live, zero-simulation-time string reconstruction to drive UVM scoreboards.

We present a host-side in-simulation tokenized logging architecture for heterogeneous multi-core SoCs that eliminates both bottlenecks with zero firmware call-site edits. Using link-time ELF format-string virtual addresses as tokens over a fixed 32-bit word-aligned slot protocol (identical across Arm, RISC-V, and DSP cores), on-core logging collapses to a single-pass specifier scan and (1+S)(1 + S) MMIO word writes. This removes all on-core radix conversion (Cfmt→0)(C_{\text{fmt}} \to 0), 85.0%-94.5% of deployed bus transactions (6.7×−18.3×)(6.7 \times -18.3 \times), 84.6%-93.3% of MMIO bus-stall cycles, and 63.5%-90.9% of total on-core logging cycles (2.74×−11.03×)(2.74 \times -11.03 \times); 69.6%-70.4% of retired instructions), while a SystemVerilog monitor reconstructs bit-exact strings in zero simulated cycles (Δtsim=0)(\Delta t_{\text{sim}} = 0). Across 858 matched full-chip test pairs (1,716 paired runs across 1,972 total runs) spanning two production suites (Subsystem Suite A, N=169N = 169; Subsystem Suite B, N=689N = 689), we achieve 100% output parity with zero simulator memory overhead, saving 1,314.85 simulator CPU hours (-26.18%) per regression pass, reducing median single-test CPU time by 41.51% on Subsystem Suite A and 21.33% on Subsystem Suite B, boosting mean effective simulator throughput by +24.02% on Subsystem Suite A and +19.60% on Subsystem Suite B per CPU second (+8.51% and +23.25% per wall-clock second), and shrinking Subsystem Suite A instruction traces by 42.84% and waveform dumps by 28.82% (medians).

Index Terms—RTL simulation, design verification, firmware logging, tokenized logging, simulation acceleration, SystemVerilog, UVM

I. INTRODUCTION

Consider a single line of firmware diagnostic output emitted thousands of times during full-chip system-on-chip (SoC) bring-up and verification:

[SYS_IINIT] Subsys channel ready(status=0x00, retry=03)\begin{aligned}&[SYS\_{I}INIT]\ Subsys\ channel\ ready\\&\quad(status=0x00,\ retry=03)\end{aligned}

On physical silicon, emitting this message takes microseconds and is negligible. Inside a cycle-accurate RTL simulation of that same silicon, however, it is computationally expensive. Under a standard bare-metal C library, the simulated processor executes hundreds of instructions of integer-to-ASCII conversion (vsprintf) through its fetched, decoded, and retired pipeline stages, followed by dozens of memory-mapped I/O (MMIO) bus transactions across the interconnect fabric—and, on one of the three subsystems we study, a full data-synchronization barrier after every character. Across the production SoC topologies evaluated in Section III and Section VII, a single 30-character, 1-argument print call consumes 3.04 μ\mus on a local subsystem tube to 15.23 μ\mus on a cross-fabric SoC tube (Table I; up to 19.60 μ\mus for a 34-character, 4-argument call), and saves a critical-path mean of ΔCsim=15.27μ\Delta C_{sim} = 15.27 \mus unweighted (15.08 μ\mus print-weighted) of simulated time per print across full-chip multi-core tests on Subsystem Suite A ( ≈15,080−15,270\approx 15,080-15,270 cycles at 1 GHz, vs. 3.64–5.41 μ\mus on peripheral-dominated Subsystem Suite B workloads). Because full-chip event-driven RTL simulation executes millions of times slower than silicon, simulating those logging cycles burns 37.8 to 441.5 host server CPU seconds (7.36 CPU minutes in power-aware UPF simulation) per printf call.