Algorithm Search⌘K

Modeladvanced

Compact thermal model

Also called thermal RC network model, HotSpot model.

An equivalent RC network of the die, spreader and heat sink whose nodes are block temperatures, solved to give chip temperature maps from power maps quickly.

A compact thermal model represents the heat flow in a chip package by a network of thermal resistances and capacitances. Each node stands for a block of the die, a cell of a grid, or a part of the package such as the heat spreader or the heat sink, and its unknown is that part's temperature. Given the power that each block dissipates, the model gives the temperatures by solving a small linear system in the steady state, or a linear system of ordinary differential equations in the transient. It is the thermal counterpart of an electrical RC network: temperature plays the part of voltage and heat flow the part of current. Architects and physical designers use it to get a temperature map from a power map in milliseconds, where a finite element solve takes much longer.

The network is a coarse discretization of the heat equation, so its structure is physics. Several of its parameters, though, are fitted: the convection resistance from the heat sink to the air, the conductivity and thickness of the thermal interface material, and correction factors for the spreading of heat and for the lumped capacitances, which make the coarse model match a fine solver or a measurement. The temperatures it gives are as good as these fits.

The machine

Nodes. One node per die block (or grid cell), plus nodes for the interface material, the spreader and the sink, often several per layer. Let θi=Ti−Tamb\theta_i = T_i - T_{\text{amb}} be the temperature of node ii above the ambient air.

Conductances. Between two nodes ii and jj that share a face, heat flows at the rate gij(θi−θj)g_{ij}(\theta_i - \theta_j), Fourier's law in discrete form. For a slab of conductivity κ\kappa, area AA and thickness tt crossed by the heat, g=κA/tg = \kappa A / t. Lateral conductances between neighbor blocks use the shared edge and the distance between the block centers. Nodes on the outside, usually the sink, lose heat to the air at the rate gi0 θig_{i0}\, \theta_i, with gi0g_{i0} the inverse of a fitted convection resistance. All gij=gji≥0g_{ij} = g_{ji} \ge 0.

Capacitances. Node ii stores heat with capacitance Ci=c Vi>0C_i = c\, V_i > 0, the volumetric heat capacity times the volume, often scaled by a fitted factor.

Sources. Pi(t)≥0P_i(t) \ge 0 is the power dissipated in node ii: switching (dynamic power) plus leakage power for die blocks, and 0 for package nodes.

Equations. Energy balance at each node gives

Cidθidt=Pi−gi0θi−∑jgij(θi−θj),C_i \frac{d\theta_i}{dt} = P_i - g_{i0}\theta_i - \sum_j g_{ij} (\theta_i - \theta_j),

that is, Cθ˙=−Gθ+PC \dot\theta = -G\theta + P, with CC diagonal and GG the conductance matrix: Gii=gi0+∑jgijG_{ii} = g_{i0} + \sum_j g_{ij} and Gij=−gijG_{ij} = -g_{ij}. In the steady state, Gθ=PG\theta = P.

The duality.

thermal electrical
temperature rise θ\theta (K) voltage (V)
heat flow (W) current (A)
thermal resistance (K/W) resistance (Ω)
heat capacity (J/K) capacitance (F)
power of a block current source
ambient air ground

Under this map, Gθ=PG\theta = P is the nodal equation of a resistor network fed by current sources, the same equation as in power grid analysis. GG is a weighted Laplacian matrix of the network plus the diagonal of the ambient conductances.

What it counts

The model counts temperatures: the steady temperature of each node for a constant power map, and the temperature trajectory for a power trace. It does not resolve features smaller than a node, so the peak temperature inside a block is higher than the node value, and a finer grid is used for hot spots. It assumes constant conductivities (silicon conductivity in fact falls as temperature rises), linear convection at the sink, and a known ambient temperature.

Relation to other models

  • Heat equation. The network is a finite volume discretization of the heat equation on a few coarse cells, the same kind of matrix the finite difference method gives on a fine grid. A fine grid of the same layers turns the compact model into a full solver.
  • Power grid. The electrical twin of the steady state is the IR drop problem. The same solvers apply: Cholesky decomposition for small and medium networks, and the conjugate gradient method with a preconditioner for large grids.
  • Transient. Cθ˙=−Gθ+PC\dot\theta = -G\theta + P is a stiff linear system: the die responds in milliseconds and the sink in seconds or minutes. Implicit steps such as the backward Euler method are the usual choice.
  • Leakage. Leakage power grows roughly exponentially with temperature, so PP depends on θ\theta and the steady state is a fixed point (see below).
  • Reliability. Temperature enters Black's equation and the NBTI reaction-diffusion model through Arrhenius factors, so their lifetimes need this model's temperature map.

Known results in the model

Assume every connected part of the network has at least one node with gi0>0g_{i0} > 0, a path for heat to reach the air. Without it, no steady state exists for positive power.

Theorem 1 (symmetric positive definite). GG is symmetric and positive definite.

Proof. Symmetry holds since gij=gjig_{ij} = g_{ji}. For any vector xx, grouping the terms of xTGxx^T G x by edge gives

xTGx=∑{i,j}gij(xi−xj)2+∑igi0 xi2 ≥ 0.x^T G x = \sum_{\{i,j\}} g_{ij} (x_i - x_j)^2 + \sum_i g_{i0}\, x_i^2 \ \ge\ 0 .

If it is 0, then xi=xjx_i = x_j across every edge with gij>0g_{ij} > 0, so xx is constant on each connected part, and xi=0x_i = 0 at each node with gi0>0g_{i0} > 0. Each part has such a node, so x=0x = 0. □\square

Corollary (the steady state). For each power vector PP, the steady state is the unique solution of Gθ=PG\theta = P. It can be computed by Cholesky, and every eigenvalue of C−1GC^{-1}G is real and positive, since C−1GC^{-1}G is similar to the symmetric positive definite C−1/2GC−1/2C^{-1/2} G C^{-1/2}. So every transient mode decays, with time constants 1/λ1/\lambda, and θ(t)\theta(t) tends to G−1PG^{-1}P for constant PP.

Theorem 2 (more power never cools). If P≥0P \ge 0 then θ≥0\theta \ge 0. If the network is connected and P≥0P \ge 0, P≠0P \ne 0, then θ>0\theta > 0 at every node. So all entries of G−1G^{-1} are positive, and raising any block's power raises every temperature.

Proof. Let ii be a node of smallest θi\theta_i and suppose θi<0\theta_i < 0. Row ii of Gθ=PG\theta = P reads gi0θi+∑jgij(θi−θj)=Pi≥0g_{i0}\theta_i + \sum_j g_{ij}(\theta_i - \theta_j) = P_i \ge 0. Each term on the left is ≤0\le 0, so each is 0: θj=θi\theta_j = \theta_i for every neighbor, and gi0=0g_{i0} = 0. Repeating at the neighbors spreads the minimum over the connected part, which contains a node with gi0>0g_{i0} > 0, a contradiction. So θ≥0\theta \ge 0. For strictness, if θi=0\theta_i = 0 at some node, the same row gives −∑jgijθj=Pi≥0-\sum_j g_{ij}\theta_j = P_i \ge 0 with all θj≥0\theta_j \ge 0, so the neighbors are 0 and Pi=0P_i = 0, and by connectivity θ=0\theta = 0 and P=0P = 0. Taking PP equal to a unit vector shows that each column of G−1G^{-1} is positive. □\square

Example. Three die blocks in a row (nodes 1 to 3), one spreader (node 4) and one sink (node 5). Conductances in W/K: lateral g12=g23=1/2g_{12} = g_{23} = 1/2, each block to the spreader 2, spreader to sink 10, sink to air 2. Powers P=(10,2,5,0,0)P = (10, 2, 5, 0, 0) W.

G=(5/2−1/20−20−1/23−1/2−200−1/25/2−20−2−2−216−10000−1012)G = \begin{pmatrix} 5/2 & -1/2 & 0 & -2 & 0 \\ -1/2 & 3 & -1/2 & -2 & 0 \\ 0 & -1/2 & 5/2 & -2 & 0 \\ -2 & -2 & -2 & 16 & -10 \\ 0 & 0 & 0 & -10 & 12 \end{pmatrix}

Its leading principal minors are 5/25/2, 29/429/4, 35/235/2, 175175 and 350350, all positive, as Theorem 1 says. The exact solution, in rational arithmetic, is

θ=(101970,83970,87970,515,172)≈(14.56, 11.99, 12.56, 10.20, 8.50) K.\theta = \Big(\tfrac{1019}{70}, \tfrac{839}{70}, \tfrac{879}{70}, \tfrac{51}{5}, \tfrac{17}{2}\Big) \approx (14.56,\ 11.99,\ 12.56,\ 10.20,\ 8.50)\ \text{K}.

The sink is at 17/217/2 K because all 17 W leave through its 2 W/K, and the spreader is 17/1017/10 K above it because all 17 W cross the 10 W/K link. The smallest entry of G−1G^{-1} is 1/21/2 K/W, positive, as Theorem 2 says. Putting all 17 W in block 1 gives block temperatures (17.24,11.41,10.44)(17.24, 11.41, 10.44) K, and putting it in block 2 gives (11.41,16.27,11.41)(11.41, 16.27, 11.41) K. The package nodes do not change, but the hottest block is 1.0 K cooler when the power sits in the middle, where it spreads both ways.

Leakage and thermal runaway. Take one node with thermal resistance RR to the air, dynamic power PdP_d and a leakage model Pℓ(θ)=Pℓ0eβθP_\ell(\theta) = P_{\ell 0} e^{\beta\theta}, itself a fitted law. The steady state solves θ=R(Pd+Pℓ0eβθ)\theta = R(P_d + P_{\ell 0} e^{\beta\theta}). A solution stops existing when the right side becomes tangent to the line, that is when RβPℓ0eβθ=1R\beta P_{\ell 0} e^{\beta\theta} = 1 at a solution, which gives the critical RR by 1+βRPd=ln⁡(1/(RβPℓ0))1 + \beta R P_d = \ln(1/(R\beta P_{\ell 0})). For Pd=40P_d = 40 W, Pℓ0=10P_{\ell 0} = 10 W and β=0.02\beta = 0.02 per K, the iteration θ←R(Pd+Pℓ0eβθ)\theta \leftarrow R(P_d + P_{\ell 0}e^{\beta\theta}) from θ=0\theta = 0 converges in 18 steps to θ=28.92\theta = 28.92 K for R=0.5R = 0.5 K/W. The critical value is R≈0.897R \approx 0.897 K/W, and above it the iteration diverges: in this model the chip has no steady state and heats without bound, which is thermal runaway. Real packages limit power before this point, and the exponential leakage law stops holding at high temperature.

References

  1. Wei Huang, Shougata Ghosh, Sivakumar Velusamy, Karthik Sankaranarayanan, Kevin Skadron and Mircea R. Stan, HotSpot, a compact thermal modeling methodology for early-stage VLSI design, IEEE Transactions on Very Large Scale Integration (VLSI) Systems 14(5), 501 to 513, 2006, the duality between heat flow and electrical current, the construction of the RC network for the die, the interface material, the spreader and the sink at block and grid granularity, the fitted factors, and the comparison with a finite element solver
  2. Kevin Skadron, Mircea R. Stan, Wei Huang, Sivakumar Velusamy, Karthik Sankaranarayanan and David Tarjan, Temperature-aware microarchitecture, Proceedings of the 30th International Symposium on Computer Architecture, 2003, the first form of the block-level thermal RC model and its use with architectural power models (general locator, page numbers not checked)

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/KNKRTS/text.yaml