GATSPI: GPU Accelerated Gate-Level Simulation for Power Improvement

Yanqing Zhang, Haoxing Ren, Akshay Sridharan, Brucek KhailanyarXiv 2022

TL;DR

GATSPI is a novel, GPU-accelerated gate-level logic re-simulator built using PyTorch and the Deep Graph Library (DGL) that delivers up to 7412X kernel speedup over traditional single-core CPU commercial simulators. By exploiting massive parallelism across both simulation cycles and circuit designs, it enables ultra-fast, delay-accurate power and glitch estimation for industry-scale ASICs with millions of gates without any loss in accuracy.

What Problem Does This Paper Address?

In modern System-on-Chip (SoC) design, power analysis and optimization are critical. Gate-level logic simulation is the gold standard for tracking down "glitches"—unnecessary, transient switching activities that waste power. However, running delay-accurate, glitch-enabled simulations on massive circuits with millions of gates is computationally grueling. Traditional commercial simulators running on CPUs can take hours or even days to process a single testbench, creating a massive bottleneck in the design flow.

While alternative probability-based switching estimators are fast, they lack the accuracy needed for precise power signoff. The authors address this bottleneck by introducing GATSPI (GPU Accelerated GaTe-level Simulation for Power Improvement), aiming to bring the massive parallel processing power of modern GPUs to gate-level logic simulation.

Methods

GATSPI focuses specifically on logic re-simulation. In many practical design phases (like power analysis or scan testing), the correct waveforms for sequential elements (registers and RAMs) are already known from prior Register-Transfer Level (RTL) simulations. GATSPI leverages this by bypassing the functional simulation of sequential elements entirely. Crucially, knowing these waveforms breaks the cycle-to-cycle dependencies, allowing GATSPI to simulate multiple clock cycles completely in parallel.

Figure 1: (Left) Depiction of re-simulation. Only logic gates need to be simulated. (Right) Parallelism opportunities in re-simulation, which can be mapped to GPUs.

Key architectural highlights of GATSPI include:

  • Graph-Based Representation: The digital circuit netlist is naturally modeled as a graph using the Deep Graph Library (DGL) and PyTorch. Nodes represent logic gates (annotated with truth tables), and edges represent interconnects (annotated with delays).
  • Uniform Array Lookups: Instead of complex control logic, GATSPI formulates both logic function evaluation and Standard Delay Format (SDF) arc delay determination as uniform array lookup operations. This allows it to easily support complex cell types and conditional delays.
  • Two-Pass Simulation Strategy: To avoid the overhead of dynamic memory allocation on the GPU, GATSPI simulates each logic level twice. The first pass counts the number of output toggles to calculate exact memory requirements, and the second pass executes the simulation and stores the final waveforms.
  • Inertial Delay Processing: Unlike simulators that use simpler transport delays (which overestimate glitches), GATSPI accurately models inertial delays, filtering out pulses that are too short to propagate through a gate.
Figure 2: Overview of tool flow for commercial tools and GATSPI.

Datasets

The authors evaluated GATSPI using a diverse suite of benchmarks, including:

  • Open-source designs: A 32-bit integer adder and various configurations of the NVIDIA Deep Learning Accelerator (NVDLA) netlist.
  • Industrial-scale designs: Four distinct, large-scale commercial ASIC designs (referred to as Industry Designs A, B, C, and D) featuring up to 2.3 million gates and testbenches spanning up to 743,000 cycles.

Key Insights and Ideas

  • Repurposing Deep Learning Frameworks for EDA: One of the biggest hurdles for GPU acceleration in Electronic Design Automation (EDA) is the high development and maintenance cost of writing raw CUDA code. GATSPI proves that deep learning frameworks like PyTorch and DGL can be creatively repurposed to handle netlists as graphs, requiring only two custom CUDA kernels for the core simulation logic.
  • The "Simulate Twice" Paradigm Shift: On modern hardware, compute is cheap but dynamic memory allocation is expensive. GATSPI shows that running the simulation kernel twice (once for sizing, once for storing) is significantly faster and more robust than implementing complex GPU memory management or calibration loops.
  • Memory Bandwidth is the Real Bottleneck: Profiling revealed that logic simulation workloads feature highly irregular, uncoalesced memory access patterns. Consequently, performance scales heavily with GPU memory bandwidth and L2 cache size (e.g., NVIDIA A100 vs. V100) rather than raw compute throughput.

Key Results

  • Massive Kernel Speedups: Compared to a commercial gate-level simulator running on a single CPU core, GATSPI achieved a simulation kernel speedup of up to 1668X on a single NVIDIA A100 GPU and up to 7412X when scaling across 8 NVIDIA V100 GPUs.
  • End-to-End Acceleration: Even when factoring in data loading and file I/O overhead, GATSPI delivered up to a 680X end-to-end application speedup. It also comfortably outperformed multi-threaded CPU baselines (OpenMP).
  • Real-World Power Savings: The authors integrated GATSPI into an automated glitch-optimization flow for a 1.3-million-gate design. GATSPI cut the re-simulation turnaround time from 1,459.6 minutes (nearly 24 hours) down to just 3.25 minutes—a 449X flow speedup—enabling a 1.4% power saving through rapid iterative design fixes.

Limitations and Future Work

  • Dependency on Re-Simulation: GATSPI requires known input/sequential waveforms upfront. It cannot currently perform full, standalone dynamic logic simulation where sequential states depend entirely on runtime evaluations.
  • Memory Capacity Constraints: For exceptionally long testbenches, the waveform data can exceed the physical memory capacity of the GPU, requiring the testbench to be manually split into sequential chunks.
  • Simple Multi-GPU Load Balancing: The current multi-GPU implementation relies solely on distributing clock cycles (cycle parallelism). The authors note that incorporating design-parallel netlist partitioning would further optimize performance for workloads with highly uneven switching activity.

Summary updated

BibTeX
@misc{zhang2022gatspi,
  author = {Yanqing Zhang and Haoxing Ren and Akshay Sridharan and Brucek Khailany},
  title = {{GATSPI: GPU Accelerated Gate-Level Simulation for Power Improvement}},
  year = {2022},
  eprint = {2203.06117},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.06117},
}
Figure