Abstract
Modern hardware design relies heavily on Register Transfer Level (RTL) simulation for verification, yet increasing design complexity has made software-based simulation a significant bottleneck. This paper presents GSIM, a high-performance simulator that optimizes signal tracking and evaluation at three granularities: supernode, node, and bit levels. By minimizing computational overhead and reducing the frequency of "active bit" checks, GSIM achieves up to a 19.94x speedup over Verilator and successfully simulates state-of-the-art processors like the XiangShan RISC-V core.
Introduction
In the chip design lifecycle, RTL simulation is the primary tool for verification and debugging. However, as designs evolve toward multi-issue, out-of-order architectures, the simulation speed often drops to a few kilohertz, creating a massive bottleneck. While "essential signal simulators" like ESSENT attempt to mitigate this by only evaluating nodes when inputs change, they still suffer from significant overhead related to active bit management and redundant logic evaluation.
GSIM addresses these challenges through a multi-layered optimization strategy that prunes the design graph and streamlines the evaluation loop.
Multi-Level Optimization Strategy
Supernode Level
In large-scale designs, checking whether a node needs re-evaluation (the "active bit" check) can account for up to 82% of branch instructions in a simulator. GSIM introduces supernodes, which group highly correlated nodes to share a single active bit. This reduces the total number of checks performed per cycle.
By using an enhanced version of Kernighan’s Algorithm, GSIM ensures that nodes likely to change together are grouped, balancing the efficiency of reduced checks against the potential cost of unnecessary evaluations within a supernode.
Node Level
GSIM employs data flow analysis to eliminate redundant nodes, such as aliases or dead logic, from the circuit graph. It also utilizes a cost model to decide whether to "inline" a node’s logic directly into its successor or "extract" it as a standalone node to prevent redundant math across multiple paths.
Bit Level and Reset Optimization
Beyond node-level tracking, GSIM performs bit-level data flow analysis. This prevents a change in a single bit of a wide signal (e.g., bit 63 of a 64-bit bus) from triggering re-evaluations of downstream logic that only depends on unrelated bits (e.g., bit 0). Additionally, GSIM speculatively assumes that "reset" signals are inactive, moving reset logic to a "slow path" to keep the primary simulation loop as lean as possible.
Performance Evaluation
The researchers evaluated GSIM against industry-standard Verilator and the state-of-the-art ESSENT simulator using several RISC-V processor designs:
- stuCore: Simple in-order, single-issue.
- Rocket: Industry-grade in-order.
- BOOM: Complex out-of-order, triple-issue.
- XiangShan: High-performance, six-issue out-of-order processor.
Key Results
- Peak Performance: On the Rocket processor running CoreMark, GSIM achieved a 19.94x speedup over Verilator and outperformed ESSENT by 2.52x.
- Large-Scale Robustness: GSIM successfully simulated the complex XiangShan processor, achieving a 7.34x speedup over Verilator during Linux booting—a task where many other research simulators fail due to memory or compiler constraints.
- Efficiency: Across SPEC CPU2006 benchmarks, GSIM was on average 3.72x faster than single-threaded Verilator while producing the smallest binary code sizes, validating its aggressive graph pruning.
Conclusion
GSIM demonstrates that significant performance gains in RTL simulation are possible by optimizing the granularity of signal tracking. By addressing the "active bit tax" and refining logic evaluation at the bit and node levels, GSIM provides a robust solution for the verification of next-generation, large-scale hardware designs. Future work will focus on integrating multi-threading techniques to further scale performance.
Summary updated