Deep-Learning-Based Pre-Layout Parasitic Capacitance Prediction on SRAM Designs

Shan Shen, Dingcheng Yang, Yuyang Xie, Chunyan Pei, Bei Yu, Wenjian Yu

TL;DR

This paper introduces a novel two-stage deep learning framework that accurately predicts pre-layout parasitic capacitance in custom SRAM designs directly from circuit schematics. By combining a Graph Neural Network (GNN) classifier with specialized Multi-Layer Perceptron (MLP) regressors and leveraging Focal Loss, the model overcomes extreme data imbalance to deliver up to a 19X reduction in prediction error and a 586X simulation speedup compared to traditional post-layout workflows.

What Problem Does This Paper Address?

In modern System-on-Chip (SoC) design, static random-access memory (SRAM) is frequently customized to maximize energy efficiency. Traditionally, designers optimize circuits using fast "pre-layout" simulations, draw the physical layout, and then run slow "post-layout" simulations that account for parasitic effects—unintended capacitance and resistance introduced by physical wires and components.

As transistors shrink, these parasitic effects increasingly dominate circuit behavior, creating a massive discrepancy between pre- and post-layout simulations. Fixing these discrepancies requires tedious, iterative layout modifications.

Machine learning offers a way to predict these parasitics early from the schematic. However, SRAM circuits suffer from an extreme class imbalance problem. As shown in the capacitance distributions below, millions of internal connections within memory cells have tiny parasitic values ("easy negatives"), while only a handful of critical routing or clock nets possess large capacitance values. Standard machine learning models get overwhelmed by the sea of low-value nets, rendering them highly inaccurate for the few critical nets that actually dictate circuit timing and power.

Distributions of the parasitic net capacitance across different SRAM architectures.

Methods

The authors tackle this challenge with a tailored two-stage deep learning architecture:

  1. Hierarchical Graph Conversion: Instead of treating the circuit as a flat list of components, the schematic netlist is transformed into a heterogeneous graph. Crucially, the authors introduce subcircuit instance nodes alongside standard net and device nodes. This preserves the natural hierarchical modularity of the circuit design.
Example of converting a hierarchical circuit schematic into a heterogeneous graph.
  1. Stage 1: Net Classification: The graph features are processed through a GNN (testing GCN, GAT, and GraphSAGE variants) coupled with an MLP to classify each net into one of five bins based on the magnitude of its capacitance (ranging from $<0.1\text{ fF}$ to $>100\text{ fF}$). To prevent the massive number of small-capacitance nets from dominating training, the authors implement Focal Loss, which dynamically down-weights easy-to-classify examples.
  2. Stage 2: Capacitance Regression: Once classified, the net embeddings are passed to five separate, parallel MLP regressors—one dedicated to each capacitance bin—to predict the exact effective capacitance ($C_{eff}$).
Structure of the proposed 2-stage model including net classification and capacitance regression.

Datasets

The model was evaluated on four real-world SRAM designs implemented in a 28nm CMOS technology:

  • SSRAM: A small, high-efficiency design utilizing timing-speculation.
  • Ultra8T SRAM: A multi-voltage design containing analog peripheral circuits.
  • Sandwich-RAM: An in-memory computing architecture split evenly between digital logic and memory arrays.
  • SP8192W SRAM: A high-density, compiler-generated single-port 6T cell structure containing over 9.3 million total graph nodes.

The datasets were split into a 0.6 / 0.2 / 0.2 ratio for training, validation, and testing using full neighbor sampling.

Key Insights and Ideas

  • Divide and Conquer for Scale: Flat regression models fail on large-scale circuits because the loss function optimizes for the average case, which is dominated by insignificant internal memory cell nets. Separating the task into magnitude classification followed by localized regression ensures high-value nets receive the model capacity they require.
  • Subcircuits Matter: Injecting subcircuit hierarchy into the graph structure acts as a powerful inductive bias. It allows the GNN to aggregate localized design intent, leading to faster training convergence and better overall accuracy.
  • Focal Loss is a Game Changer: Replacing standard cross-entropy loss with Focal Loss dramatically improved the F1 macro scores across all GNN architectures, proving essential for extracting meaningful learning signals from highly skewed hardware datasets.

Key Results

  • Accuracy Breakthrough: The proposed two-stage model achieved a 2.5X to 19X reduction in Mean Absolute Percentage Error (MAPE) compared to ParaGraph, the previous state-of-the-art parasitic prediction model.
  • Massive Simulation Speedup: By back-annotating the predicted capacitances into the pre-layout schematic, designers achieved a 19.6X to 586X speedup in simulation time compared to running full post-layout simulations.
  • Closing the Power Gap: The framework reduced the average pre-layout power estimation error from a massive 57.24% down to just 17.77%.
  • Efficiency: Among the tested GNNs, the GraphSAGE_mean variant emerged as the most efficient, significantly reducing training and inference times while maintaining top-tier accuracy.

Limitations and Future Work

While the model excels at predicting parasitic capacitance ($C$), a complete circuit simulation also requires parasitic resistance ($R$). The authors acknowledge that this work currently only addresses capacitance. Their stated future direction is to extend this deep learning framework to complete RC network prediction and integrate it directly into automated circuit optimization and transistor-sizing loops.

Summary updated

BibTeX
@inproceedings{shen2024deep,
  author = {Shan Shen and Dingcheng Yang and Yuyang Xie and Chunyan Pei and Bei Yu and Wenjian Yu},
  title = {{Deep-Learning-Based Pre-Layout Parasitic Capacitance Prediction on SRAM Designs}},
  booktitle = {ACM Great Lakes Symposium on VLSI},
  year = {2024},
  doi = {10.1145/3649476.3658754},
}
Figure