Acceleration for Timing-Aware Gate-Level Logic Simulation with One-Pass GPU Parallelism

Weijie Fang, Yanggeng Fu, Jiaquan Gao, Longkun Guo, Gregory Z. Gutin, Xiaoyan ZhangarXiv 2023 · DOI

Abstract

Timing-aware gate-level logic simulation is a critical but computationally expensive step in Integrated Circuit (IC) design. Traditional parallel simulation methods suffer from frequent CPU-GPU synchronization bottlenecks and workload imbalances. This paper presents a novel "one-pass" GPU parallelism strategy that moves task dependency management entirely onto the GPU. By utilizing a specialized paged data structure called Compressed Sparse Row in Pages (CSRP), the proposed method eliminates intermediate synchronization, achieving up to a 10.05x speedup and 99.5% GPU utilization on complex industrial benchmarks.

Introduction

As Integrated Circuit (IC) designs scale in complexity, gate-level simulation becomes a significant bottleneck. Unlike cycle-based simulation, timing-aware simulation must account for specific gate delays and 4-value logic (0, 1, Unknown, High-Impedance). Traditional parallel approaches typically partition circuits into layers, processing them sequentially. However, this "stop-and-go" model requires the GPU to wait for the CPU to reorganize data and unlock the next layer of gates after every step. This synchronization overhead, combined with workload imbalances where some gates take longer to simulate than others, severely limits GPU performance.

One-Pass GPU Parallelism Strategy

To overcome these limitations, the authors propose a waveform-based, one-pass parallelism approach. Instead of layer-by-layer management by the CPU, the entire netlist and input waveforms are transferred to the GPU in a single operation.

The overall workflow of the one-pass GPU parallel strategy, showing the transition from data structure design to the self-scheduling GPU kernel.

In this strategy, each GPU thread is assigned a set of gates. Rather than waiting for a global synchronization signal, threads independently monitor the readiness of their assigned gates. Once a gate's input waveforms are available, the thread performs the simulation and directly "unlocks" successor gates on the GPU. This self-scheduling mechanism allows faster threads to proceed to subsequent tasks without being stalled by slower gates in the same logical layer.

CSRP: A Paged Data Structure for Dynamic Waveforms

A major challenge in GPU-based logic simulation is that the length of output waveforms is not known a priori. Standard data structures like Compressed Sparse Row (CSR) are static and require pre-defined memory allocations, which is incompatible with the dynamic nature of logic transitions.

Comparison between conventional CSR and the proposed CSRP structure, which uses a paged memory system to handle dynamic waveform lengths.

The authors introduced Compressed Sparse Row in Pages (CSRP) to address this. CSRP functions similarly to a paged memory system. It uses atomic-add operations to dynamically allocate memory "pages" for new transitions as they are calculated. This allows the GPU to manage memory internally without needing to communicate back to the CPU, preserving the "one-pass" nature of the algorithm.

Evaluation and Results

The proposed system was evaluated using industrial-scale benchmarks, including RISC-V designs and partitions of NVIDIA’s Open Neural Network Deep Learning Accelerator (NV_NVDLA). These benchmarks range from approximately 11,000 to 130,000 logic cells.

Key findings include:

  • Performance Gains: On the most complex benchmark (NV_NVDLA_partition_o), the one-pass approach achieved a 10.05x normalized speedup, a 426.1% improvement over state-of-the-art baselines from the ICCAD 2020 contest.
  • High Utilization: While traditional methods often see GPU utilization drop as low as 12% due to synchronization stalls, the one-pass approach maintained up to 99.5% utilization.
  • Workload Resilience: The method is particularly effective for circuits with a high Workload Coefficient of Variation (WCV), where gate simulation times vary significantly.

Conclusion

By shifting scheduling and memory management from the CPU to the GPU, the one-pass strategy effectively eliminates the synchronization bottlenecks of traditional gate-level simulation. While the CSRP structure increases memory footprint, the high capacity of modern GPUs (e.g., NVIDIA A100) makes this a favorable trade-off for significant speedups. Future work will focus on scaling this approach to designs with millions of gates and optimizing the implementation in native C++/CUDA.

Summary updated

BibTeX
@misc{fang2023acceleration,
  author = {Weijie Fang and Yanggeng Fu and Jiaquan Gao and Longkun Guo and Gregory Z. Gutin and Xiaoyan Zhang},
  title = {{Acceleration for Timing-Aware Gate-Level Logic Simulation with One-Pass GPU Parallelism}},
  year = {2023},
  eprint = {2304.13398},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.13398},
}
Figure