RTeAAL Sim: Using Tensor Algebra to Represent and Accelerate RTL Simulation (Extended Version)
Yan Zhu, Boru Chen, Christopher W. Fletcher, Nandeeka Nayak
TL;DR
RTeAAL Sim reinterprets RTL CPU simulation as sparse tensor algebra, using Extended Einsums (EDGE) and TeAAL’s separation of concerns to decouple computation from binary size. A proof-of-concept FIRRTL-based pipeline demonstrates tensor-cascade kernels with format compression and loop unrolling, achieving performance competitive with Verilator while reducing compilation overhead. The approach preserves RTL-specific optimizations and enables new optimizations through tensor-algebra techniques, offering a scalable path toward hardware-accelerated RTL simulation. This work foregrounds a generalizable framework for applying sparse tensor algebra to RTL workloads and related hardware-design verification tasks.
Abstract
RTL simulation on CPUs remains a persistent bottleneck in hardware design. State-of-the-art simulators embed the circuit directly into the simulation binary, resulting in long compilation times and execution that is fundamentally CPU frontend-bound, with severe instruction-cache pressure. This work proposes RTeAAL Sim, which reformulates RTL simulation as a sparse tensor algebra problem. By representing RTL circuits as tensors and simulation as a sparse tensor algebra kernel, RTeAAL Sim decouples simulation behavior from binary size and makes RTL simulation amenable to well-studied tensor algebra optimizations. We demonstrate that a prototype of our tensor-based simulator, even with a subset of these optimizations, already mitigates the compilation overhead and frontend pressure and achieves performance competitive with the highly optimized Verilator simulator across multiple CPUs and ISAs.
