ICCAD Contest Problem C ML For IR Drop v2
ICCAD Contest Problem C ML For IR Drop v2
0. Version History
1. Introduction
Power delivery network (PDN) analysis is crucial to successful IC design closure, particularly for designs
implemented in lower technology nodes that suffer from large wire parasitics and high power densities.
The on-chip PDN is responsible for transmitting voltages and currents to each cell in the design.
However, due to the parasitics in the PDN, a voltage drop is induced between the power pads and the cells
in the design. Large voltage drops in the PDN can hurt chip performance and, in the worst case, its
functionality. Consequently, it is essential to check that the worst-case IR drop values in the PDN are
within specified limits.
A structure of the on-chip PDN is shown in Fig. 1(a). The PDN can be modeled as a network of voltage
sources, current sources, and resistances, where the wires are a network of resistances, the power pad (C4
bumps) are voltages sources connected to the PDN wires, and the current sources are the cells/instances
that draw current as shown in Fig. 1(b).
The goal of IR drop simulation is to find the voltage at the nodes of the PDN that connect to the
instances (current sources). Traditionally, finding the voltage at every node amounts to solving a system
of linear equations of the form 𝐺𝑉 = 𝐽 where 𝐺 is a conductance matrix, 𝑉 is the unknown vector of
voltages, and 𝐽 is the vector of currents [1]. However, solving this system of equations is computationally
very expensive with millions of PDN nodes.
This contest aims to bypass the computational challenge of static IR drop using machine learning (ML)
techniques. ML algorithms have previously found some success in addressing this problem [2, 3, 4, 5, 6].
In this context, the contest aims to serve three goals:
1) Lower the barriers to entry for non-EDA experts by converting a traditional EDA problem to an
ML solvable problem and incentivizing the use of novel ML techniques to improve accuracy.
2) Explore the use of transfer learning to address the limited dataset problem in the EDA
community.
3) Establish a state-of-the-art ML model for IR drop prediction.
Contest Objective: The contestants need to train an ML model to predict static IR drop with the highest
possible accuracy (mean absolute error) and F1 score on the test data with the least inference runtime and
model size.
2. Background:
The static IR drop distribution across the chip depends on the following three factors:
1) The location/distributions of all voltage sources (power pads) in the design
2) The topology of the PDN and resistance values of each resistor (via/metal layer) in the network
3) The distribution of current sources (power) in the design
Prior ML techniques have modeled the above inputs as images [2, 3, 6] and used image-based ML models
to predict IR drop. For example, [2] represents the above three features as three distributions where the
current source distribution is modeled as a current map (Fig. 2(a)); the PDN topology is modeled as a
function of the density (spacing between power stripes per unit area) of the power grid (Fig. 2(b)) in
different regions ,and the voltage source distribution is modeled as an effective distance map which is the
distace from each PDN node to the PDN node with the voltage source (Fig. 2(c)). The output is a
distribution of IR drop at every node in the lowermost layer of the PDN, which can be represented as an
IR drop map (Fig. 2(d)). Using such image-based representations, prior techniques have used CNNs and
U-Nets, to perform IR drop prediction using a model trained on a diverse set of such data points (three
inputs and one output). The trained ML model can perform inference on unseen testcases.
Fig. 2: Current map, PDN density, voltage source, and IR drop distributions across the die.
While these techniques have found success, another underlying challenge exists – the unavailability of
sufficient training data to build these models. The work in [8] used generative adversarial models to
generate thousands of fake yet realistic current maps. With the availability of golden ground-truth
open-source 𝐺𝑉 = 𝐽 static IR drop solvers, [8] can create a large training dataset for the static IR drop
problem for different configurations of power grids and voltage sources.
For this contest, we are leveraging the fake dataset from [8] to create a large training dataset and
performing test (inference) on real-circuit designs. There will also be a few data points of real circuits in
the training dataset. One suggestion is for contestants is to use transfer learning, where the initial models
are trained using fake data and weights are fine-tuned using real circuit training data, and then the model
is tested on validation data (real circuit data only).
. . . . . .
. . . . . .
. . . . . .
The above matrix can be represented as an 80x80 image where every pixel represents the current in a 1um
x 1um region. A similar format is used for other input effective_distance.csv, pdn_density.csv, and output
voltage_map.csv The corresponding voltage_map.csv
2.91E-02 2.95E-02 2.99E-02 3.02E-02 . . . . 3.07E-02
. . . . . .
. . . . . .
. . . . . .
Example input features and output label (plotting the provided matrices in the .csvs) is shown in Fig. 2.
(b) SPICE-based data: In addition to the above data, for each datapoint we also provide the PDN model
as shown in Fig. 1(b) as a SPICE netlist. The SPICE netlist encodes the node locations, the value of
resistances between nodes, the current source nodes and their locations, and the voltage source nodes and
locations. The format is described below with the following SPICE netlist snippet:
The SPICE netlist has all the information needed for the three features, and the labels for IR drop are in
the form of the csv as described in the previous image-based data section.
For fair evaluation, all contestants must generate outputs as voltage drop matrices (.csv) of the same size
as the input matrices (even if the features are taken from SPICE netlist and not the image-based data).
4. Evaluation
The contestants will be provided with training (hundreds of fake data points and few real-circuit data
points) and validation (few real circuit datapoints). However, the contestants' ML models will be
evaluated on an unseen test dataset (real circuit data) and will be evaluated for the following metrics:
(a) Mean absolute error (MAE): The average of the absolute difference between a prediction and the
actual value, calculated for each example in a dataset. The goal is to have a low MAE.
(b) F1 score: A binary classification metric that uses 10% of the maximum IR drop of each
benchmark as the threshold to identify which have IR drop in the top 10%.
Where TP = True positive, FP = False positive, TN = True negative, and FN = False negative.
The positive class is nodes with the top 10% of IR drop. The goal is to have a high F1 score.
(c) Run time: Inference time of the ML model. The goal is to have low runtime.
(d) Size of the model: Number of trainable parameters in the ML model. The goal is to use few
parameters in the ML model.
The overall score is a function of MAE, F1 score, inference runtime, and model size, which will be
updated shortly.
[1] Y. Zhan, S. V. Kumar, and S. S. Sapatnekar, “Thermally-aware design,” Found. Trends Electron. Des.
Automat., vol. 2, no. 3, pp. 255–370, March 2008.
[2] V. A. Chhabria, V. Ahuja, A. Prabhu, N. Patil, P. Jain, and S. S. Sapatnekar, “Thermal and IR Drop
Analysis Using Convolutional Encoder-Decoder Networks,” Proceedings of Asia and South Pacific
Design Automation Conference (ASP-DAC), 2021.
[3] Chia-Tung Ho and Andrew B Kahng. “IncPIRD: Fast Learning Based Prediction of Incremental IR
Drop,” in the IEEE/ACM International Conference on Computer-Aided Design (ICCAD). 2019.
[4] Zhiyao Xie, Haoxing Ren, Brucek Khailany, Ye Sheng, Santosh Santosh, Jiang Hu, and Yiran Chen,
“PowerNet: Transferable Dynamic IR Drop Estimation via Maximum Convolutional Neural Network” in
Asia and South Pacific Design Automation Conference (ASP-DAC), 2020.
[5] Chi-Hsien Pao, An-Yu Su, and Yu-Min Lee, “XGBIR: An xgboost-based IR drop predictor for power
delivery network,” Design, Automation & Test in Europe Conference & Exhibition (DATE), 2020.
[6] V. A. Chhabria, Y. Zhang, H. Ren, B. Keller, B. Khailany, and S. S. Sapatnekar, “MAVIREC:
ML-Aided Vectored IR-Drop Estimation and Classification,” Proceedings of Design, Automation, and
Test in Europe (DATE), 2021.
[7] V. A. Chhabria, A. B Kahng, M. Kim, U. Mallappa, S. S. Sapatnekar, and B. Xu, “Template-based
PDN Synthesis in Floorplan and Placement Using Classifier and CNN Techniques,” Proceedings of Asia
and South Pacific Design Automation Conference (ASP-DAC), 2020.
[8] V. A. Chhabria, K.Kunal, M. Zabihi, and S. S. Sapatnekar, “BeGAN: Power Grid Benchmark
Generation Using a Process-portable GAN-based Methodology,” Proceedings of IEEE/ACM International
Conference On Computer Aided Design (ICCAD), 2021.
[9] V. A. Chhabria and S. S. Sapatnekar, “PDNSim,” 2021, https://github.com/The-OpenROAD-Project/
OpenROAD/tree/master/src/psm.