Statistical static timing analysis via modern optimization lens: I. Histogram-based approach

Adam Bosák, Dmytro Mishagli, Jakub Mareček

Abstract

Statistical Static Timing Analysis (SSTA) is studied from the point of view of mathematical optimization. We present two formulations of the problem of finding the critical path delay distribution that were not known before: (i) a formulation of the SSTA problem using Binary–Integer Programming and (ii) a practical formulation using Geometric Programming. For simplicity, we use histogram approximation of the distributions. Scalability of the approaches is studied and possible generalizations are discussed.

Introduction

As integrated circuit (IC) manufacturing pushes into the 5nm node and beyond, "process variations"—tiny physical inconsistencies—significantly impact performance. Traditional Static Timing Analysis (STA) handles this by looking at "corner cases" (worst-case scenarios), which often leads to over-engineered, power-hungry chips. Statistical SSTA treats delays as random variables to provide a more realistic probability distribution of total delay.

However, the "atomic operations" of SSTA—calculating the maximum of two arrival times and the convolution (sum) of gate delays—are mathematically difficult to handle, especially for non-Gaussian distributions. Most existing tools rely on expensive Monte Carlo simulations or simplified linear models. This paper reimagines SSTA through the lens of mathematical optimization, representing delay distributions as histograms.

Methodology

The core challenge in SSTA is the iterative propagation of delay distributions through the logic gates of a circuit. The standard procedure for this is outlined in Algorithm 1.

Algorithm 1: Standard Statistical Static Timing Analysis (SSTA) procedure for calculating the maximum delay distribution of a circuit.

To solve this efficiently, the authors propose two novel optimization frameworks:

1. Binary–Integer Programming (BIP)

The authors use "unary encoding" (similar to tally marks) to represent histogram counts in binary variables. This allows the max and convolution operations to be formulated as sets of linear constraints. While mathematically rigorous, this approach suffers from the "curse of dimensionality," making it unsuitable for large-scale circuits.

2. Geometric Programming (GP)

In this more practical approach, probabilities are treated as continuous variables. SSTA operations are formulated as posynomials (sums of products with positive coefficients). To prevent an exponential explosion of terms, the authors introduce a reformulation using auxiliary variables at each gate to "reset" the complexity. This brings the computational growth down to linear with respect to the number of gates and quadratic with respect to the number of bins.

Key Insights and Results

The study highlights several critical findings regarding the feasibility of optimization-based SSTA:

  • Scalability: While the BIP model reached $\sim10^6$ variables for a tiny 5-gate circuit, the reformulated GP approach successfully analyzed a 400-gate circuit in 440 seconds on a high-end server.
  • Accuracy: The GP model's relative error in predicting the mean and standard deviation of the delay decreased consistently as the number of histogram bins increased, proving the controllability of the approximation.
  • Linear Scaling: The computational cost of the GP approach grows linearly with the depth of the circuit, making it a viable candidate for modern CAD tools.
  • Optimization as a Lens: Viewing SSTA as an optimization problem allows designers to minimize "risk" (e.g., Conditional Value at Risk) and shift probability mass toward safer ranges.

Limitations and Future Work

The current model assumes delays are independent, whereas real chips often exhibit spatial correlations. Future work will focus on incorporating these correlations and moving toward "Gaussian combs" (mixtures of Gaussian functions) to achieve higher accuracy with fewer variables. Additionally, the authors aim to link this SSTA lens back to "gate sizing"—automatically adjusting transistor sizes to optimize the resulting delay distribution.

Summary updated

BibTeX
@inproceedings{bosak2023statistical,
  author = {Adam Bosák and Dmytro Mishagli and Jakub Mareček},
  title = {{Statistical static timing analysis via modern optimization lens: I. Histogram-based approach}},
  booktitle = {Optimization},
  year = {2023},
  doi = {10.1007/s11081-023-09847-3},
}
Figure