CSM-NN: Current Source Model Based Logic Circuit Simulation - A Neural Network Approach

Mohammad Saeed Abrishami, Massoud Pedram, Shahin NazarianICCD 2019

Abstract

Traditional circuit simulation relies on massive, memory-intensive look-up tables (LUTs) that create significant bottlenecks in modern nanometer-scale design. This paper introduces CSM-NN, a framework that replaces these LUTs with compact, optimized neural networks. By transforming a memory-bound problem into a compute-bound one, CSM-NN leverages parallel hardware to achieve up to a 15x speedup on GPUs while maintaining over 98% accuracy compared to industry-standard HSPICE simulations.

The Memory Bottleneck in Circuit Simulation

As semiconductor technology advances to 5nm and beyond, transistors exhibit increasingly complex behaviors due to short-channel effects and environmental variations in process, voltage, and temperature (PVT). To ensure reliability, engineers must perform large-scale simulations across thousands of "corners."

Currently, designers face a trilemma between accuracy and speed. SPICE simulators are accurate but slow. Voltage-based LUTs (V-LUT) are fast but lack precision for modern nodes. Current Source Models (CSM) offer high accuracy but rely on multi-dimensional LUTs. The critical bottleneck in CSM is memory latency: as circuit complexity increases, the required LUT sizes grow exponentially, exceeding the capacity of fast CPU caches (L1/L2) and forcing slow DRAM accesses.

Table 1: Exponential growth of Look-Up Table (LUT) sizes for various logic gates, highlighting the memory bottleneck.

Proposed Methodology: CSM-NN

The authors propose CSM-NN, which replaces the "memorization" strategy of LUTs with "computation" via Neural Networks (NNs).

  • Shallow & Wide Architecture: Utilizing the Universal Approximation Theorem, the framework employs a single hidden layer. This architecture is sufficient to model the continuous nonlinear functions of circuit behavior without the computational overhead of deep learning models.
  • L-BFGS Optimization: Instead of standard Stochastic Gradient Descent (SGD), the researchers use the L-BFGS algorithm. This second-order optimization method is better suited for the high-precision regression tasks required in circuit modeling.
  • Hardware-Aware Design: By representing gates as NNs, simulation tasks are converted into matrix multiplications. This shift allows the simulation to fully exploit the massive parallel processing power of modern GPUs.

Hardware-Aware Insights

The central innovation of CSM-NN is the strategic trade-off between computation and memory. In contemporary computing architectures, performing mathematical operations is significantly "cheaper" and faster than fetching data from main memory.

Figure 1: Historical trend of GFLOPs for CPUs vs. GPUs, demonstrating the widening gap in compute performance.

While a 2-input XOR gate might require a 6.4GB LUT—impossible to store in fast cache—an equivalent NN model requires only a few kilobytes of weights. This allows the model to reside entirely within the L1 cache or GPU registers, virtually eliminating memory stalls. Furthermore, because circuit physics is inherently continuous, shallow networks can approximate these functions with remarkable efficiency and few parameters.

Experimental Results

The CSM-NN framework was evaluated against standard logic cells (INV, NAND, XOR, etc.) using 16nm MOSFET and 20nm FinFET models from the Predictive Technology Model (PTM).

  • Performance: CSM-NN achieved a 6x speedup on standard CPUs and a 15x speedup on GPUs compared to traditional CSM-LUT models.
  • Accuracy: The models maintained an error rate of less than 2% ($E_{sim}$) relative to the gold-standard HSPICE simulations.
  • Efficiency: The compact nature of the NN models allows them to fit into the fastest levels of hardware memory, solving the memory-wall problem that plagues traditional table-based methods.

Conclusion and Future Work

CSM-NN successfully demonstrates that neural networks can serve as highly efficient, accurate surrogates for complex physical models in EDA tools. While successful on basic gates and small circuits like full adders, scaling to industrial-scale "system-on-chips" (SoCs) remains a future objective. The authors also plan to develop "Universal NNs" that incorporate PVT parameters as direct inputs, potentially replacing multiple corner-specific models with a single, versatile network.

Summary updated

BibTeX
@inproceedings{abrishami2019csm,
  author = {Mohammad Saeed Abrishami and Massoud Pedram and Shahin Nazarian},
  title = {{CSM-NN: Current Source Model Based Logic Circuit Simulation - A Neural Network Approach}},
  booktitle = {ICCD},
  year = {2019},
  doi = {10.1109/iccd46524.2019.00061},
}
Figure