Algorithmadvanced
Devgan noise metric
Also called Devgan coupled noise estimate.
Devgan's upper bound on crosstalk noise peak in an RC tree, the Elmore-like sum of resistances times coupling currents, computable in linear time.
- Time
- O(n + m) worst
- Space
- O(n) extra
- Where
- m = the number of coupling capacitors; n = the number of nodes of the victim tree
- Model
- Word RAM
- Properties
- deterministicnot exactofflineiterative
- Evidence
- Proof sketchCode in 1 languages
- Origin
- Anirudh Devgan, 1997
The Devgan noise metric is a fast upper bound on the crosstalk noise that switching neighbor wires couple into a quiet victim net. The victim is an RC tree held at 0 by its driver, and each aggressor couples into it through coupling capacitors. The metric at node is , where is the coupling capacitance at node times the aggressor slew rate and is the resistance shared by the paths from the driver to and to . It has the shape of the Elmore delay with currents in place of capacitances, and the same two tree passes compute it in linear time. Under the stated linear model it is a proved upper bound on the peak noise for every aggressor waveform whose slope stays within the given rate.
In plain words
When a wire switches, it pushes a small current into its quiet neighbor through the capacitance between them. That current flows through the neighbor's wire back to its driver and raises the voltage on the way. The bump is crosstalk noise.
The bump is largest when the switching wire keeps changing at its fastest rate for a long time. Then each current is constant, and the bump settles at the current times the resistance it crosses. The metric takes this settled level as the answer.
A real switching wire stops after a short time, so the real bump is lower. The metric is always on the safe side, often by a lot for fast edges. It costs only two passes over the wire, so a tool can check millions of nets and keep the few dangerous ones for an exact analysis.
The problem
The input is a victim tree with nodes , where node 0 is the driver output and is the parent of node . The value is the holding resistance of the quiet driver to ground, and is the wire resistance from to . Node has a capacitance to ground and coupling capacitances to aggressors , and each aggressor voltage has slope at most in absolute value. For a ramp of swing and rise time , .
With ideal aggressor sources, Kirchhoff's current law gives the linear system
where is the conductance matrix of the tree, is the diagonal matrix of total node capacitance (ground plus coupling), and . The output is a vector with for all and , computed without solving the system in time.
The algorithm
DEVGAN-NOISE(p, r, Cc, s)- 1
for k ← 0 to n − 1 do I[k] ← Σ over couplings (C, a) of node k of C · s[a] - 2
for k ← n − 1 downto 1 do ▷ children before parents, since p(k) < k - 3
I[p(k)] ← I[p(k)] + I[k] - 4
V[0] ← r[0] · I[0] ▷ the whole coupling current crosses the driver - 5
for k ← 1 to n − 1 do ▷ parents before children - 6
V[k] ← V[p(k)] + r[k] · I[k] - 7
return V
After line L3, is the total coupling current injected in the subtree of , which is the current that crosses the resistance in the settled state. Line L6 adds the drop across that resistance to the voltage of the parent. This is exactly the downstream form of the Elmore delay, with injected currents in place of downstream capacitances.
Example
Units are kΩ, fF, ps and V, so a current in fF V/ps is in mA. The victim has a driver node 0 with and , a branch node 1 with and , and two sinks, node 2 under node 1 with and , and node 3 under node 1 with and . One aggressor couples 10 fF into node 1 and 10 fF into node 2. It rises by 1 V in ps, so V/ps.
| step | node 0 | node 1 | node 2 | node 3 |
|---|---|---|---|---|
| L1: | 0 | 0.2 | 0.2 | 0 |
| L2 to L3: subtree current | 0.4 | 0.4 | 0.2 | 0 |
| L4 to L6: |
The exact peak of comes from the exact solution of the linear system, piece by piece over the ramp and after it. The table compares it with the metric for four rise times. The metric scales as .
| (ps) | metric at node 2 (V) | exact peak at nodes 0, 1, 2, 3 (V) | peak / metric |
|---|---|---|---|
| 10 | 3.5 | 0.223, 0.364, 0.458, 0.233 | 0.08 to 0.13 |
| 50 | 0.7 | 0.170, 0.260, 0.318, 0.217 | 0.36 to 0.45 |
| 200 | 0.175 | 0.088, 0.133, 0.156, 0.130 | 0.87 to 0.89 |
| 1000 | 0.035 | 0.020, 0.030, 0.035, 0.030 | 1.00 |
The Elmore delay of node 2, with total node capacitances 5, 20, 20 and 15 fF, is 97.5 ps. For a rise time much longer than that, the metric is almost exact. For a rise time much shorter, it is pessimistic by a large factor: at 10 ps the metric at node 2 is 3.5 V, while the true peak is 0.46 V, and a step can never couple more than the charge sharing limit of the supply. Node 3 has no coupling of its own, yet its noise is nonzero, because the current of the other nodes crosses the shared resistance .
Correctness
The full proof has four parts.
The bound. The matrix has nonnegative entries off the diagonal, so has nonnegative entries for every . The solution is . Replacing by its bound and extending the integral to infinity can only increase each entry, and . So entry by entry. With one rising aggressor, also .
The tree form. is the matrix of shared path resistances , so , and the two passes compute this sum by the same exchange of sums that proves the downstream Elmore formula.
Tightness. For an aggressor whose slope stays at forever, tends to . So no bound that uses only the slopes can be smaller. For one node and a ramp of rise time , the peak is exactly with .
Discrete version. Backward Euler with any step keeps the bound exactly. The matrix is strictly diagonally dominant with nonpositive entries off the diagonal, so its inverse has nonnegative entries, and implies .
What is proved is the bound under the linear model. What is measured is the tightness. On 80 random trees of 1 to 5 nodes with two aggressors (seed 1997, toy inputs, not benchmark results), the ratio of exact peak to metric stayed below 0.2 for rise times of 1/50 of the time constant scale, and reached above 0.95 for rise times 50 times that scale.
Proof: Devgan's metric is an upper bound on the noise of an RC tree driven by aggressors of bounded slopefull
Model. The victim net is a tree with nodes and for . Node 0 is joined to ground by the holding resistance of the quiet driver, and node is joined to by a wire resistance . Node has a capacitance to ground and a coupling capacitance to aggressor , with . Each aggressor is an ideal voltage source , continuous and piecewise continuously differentiable, constant for , with . At all victim voltages are 0.
Kirchhoff's current law at node gives , that is
with , , and the conductance matrix of the tree: is the sum of the conductances at (with at node 0), and or when and are joined by a wire. Write and for the total resistance of the part that the paths from ground to and to share.
Lemma 1 (the resistance matrix). is symmetric positive definite and .
Proof. For any , . This is 0 only if and for all , so only if . For the inverse, inject a unit current at node with all other injections 0. By current conservation the whole unit flows from to ground along the path from , and no current flows elsewhere. The voltage at is the drop from to ground, which is the sum of over the edges of the path of that carry current, that is . So column of is . The RC tree page gives the same fact.
Lemma 2 (positivity of the propagator). Let . For every , all entries of are nonnegative, and as .
Proof. The off-diagonal entries of are . Let and , a matrix with nonnegative entries. Since commutes with , , a sum of nonnegative matrices. Next, with symmetric positive definite by Lemma 1. So has positive real eigenvalues and is diagonalizable, and .
Lemma 3. .
Proof. , so , which tends to by Lemma 2.
Theorem 1 (the bound). For all and every node ,
If there is one aggressor and , then .
Proof. By variation of constants, . Take absolute values entry by entry. Since and have nonnegative entries (Lemma 2),
The last step adds the integral over of a vector with nonnegative entries. By Lemma 3 the right side is , and Lemma 1 gives the form . With one aggressor and , the integrand of has nonnegative entries, so .
Theorem 2 (the bound is the best one that depends only on the slopes). For one aggressor with for all , . For a ramp of rise time , . For one node () the peak is with .
Proof. With constant , , since and commute. Lemma 2 gives the limit. For , rises as until , and after the input is constant and decays as . So the peak is at .
So no bound that uses only the slope can be smaller than at any node, since the bound must also hold for longer and longer ramps. For a given finite ramp, the ratio of the true peak to is below 1, and it tends to 0 as .
Lemma 4 (the two passes compute ). After lines L1 to L3, , where is the subtree of . After lines L4 to L6, , where is the set of nodes on the path from node 0 to , with for the driver.
Proof. L1 sets . Lines L2 and L3 visit . Every proper descendant of has a larger index, so when the loop reaches , every child of has already been visited, and by strong induction on decreasing index when it was added to . Nothing is added to after the loop visits it, because later indices are smaller and are not children of . So . Lines L4 to L6 visit nodes in increasing order, so is final when is set, and by induction . Finally, if and only if , so
Theorem 3 (the bound survives backward Euler). Let , , and . Then for every .
Proof. has positive diagonal entries , nonpositive off-diagonal entries, and row has . Write with the diagonal and . The row sums of are below 1, so and has nonnegative entries. Now . If , then
using . Induction on ends the proof.
Theorem 3 is why the tests can check the bound with no rounding at all: they run backward Euler in exact rational arithmetic and compare each state with .
Scope. Theorem 1 uses only that is symmetric positive definite with nonpositive off-diagonal entries and that is diagonal and positive. So also holds for an RC mesh with grounded capacitors and at least one resistive path to ground. Only the form and the two linear passes need a tree. The theorem needs ideal aggressor sources, a linear holding resistance for the victim driver and no inductance. It says nothing about a nonlinear driver, about aggressors whose waveform is changed by the victim, or about RLC lines, where the response can overshoot.
Complexity
Line L1 reads each coupling capacitor once, and lines L2 to L6 do constant work per node, so the time is for nodes and coupling capacitors. The extra space is the two arrays and , . For a chip, the cost is linear in the size of the extracted parasitic network, which is why the metric can screen every net. An exact transient solve of one net costs a sparse factorization and one solve per time step, and a moment-matching model such as AWE or PRIMA costs a few solves with the full network.
Properties
- Upper bound, not an estimate. Under the linear model with ideal aggressors, for all , with no condition on alignment of aggressors, their direction or the shape of their waveform, other than the slope bound.
- Linear in the aggressors. is a sum of one term per coupling capacitor, so the metric of several aggressors is the sum of their separate metrics, which is the worst case when they switch at the same time in the worst directions.
- Insensitive to grounded capacitance. does not enter . Adding ground capacitance slows the response and lowers the true peak, but not the bound.
- Monotone in resistance and coupling. grows with every and every , and grows as .
- Exact for slow aggressors. When is much longer than the time constants of the victim, the true peak is close to .
Variants and improvements
- RC meshes. The bound holds for any resistive network with grounded capacitors and a path to ground, for example a net with a loop. It then needs one linear solve with in place of the two passes.
- Finite rise time corrections. Many later metrics multiply by a factor such as with an Elmore time constant , or fit two poles to the first moments. These are closer to the true peak for fast edges. They are estimates, and they are no longer proved bounds in general.
- Pulse width. Noise checks also need the width of the bump, because a gate filters a short pulse. Moment-based metrics estimate the width; the Devgan metric gives only the height.
- Exact reduced models. PRIMA gives a passive reduced model of the coupled network, and its transient solve gives the waveform with an error that can be controlled, at a much higher cost.
- Timing windows. In a static timing analysis flow, aggressors that cannot switch together inside the victim's sensitive window are dropped from the sum, which removes much of the pessimism of the worst case alignment.
- Effect on delay. When the victim also switches, coupling changes its delay. That effect is usually modeled with the Miller coupling factor and is a different question.
When to use it
Use it as the first filter in a chip-level noise check: compute for every net from the extracted parasitics, accept the nets whose bound is below the noise margin of their receivers, and send only the others to a more accurate analysis. Use it also inside routing and buffering tools, where a cheap and safe measure guides spacing, shielding and repeater insertion. Do not use it to sign off a net that fails the bound: the failure may be only pessimism, especially for fast aggressors on long couplings.
Pitfalls
- Fast edges. The bound grows as without limit, while the real peak cannot exceed the charge sharing level. With sharp edges the metric can report several times the supply voltage, as in the example at 10 ps.
- The driver is not a resistor. The holding resistance is a linearization of a transistor. A weak driver or a driver in a state with high output resistance gives much larger noise, and the bound is only as good as .
- Ideal aggressors. The model treats aggressor voltages as given. In reality the victim loads the aggressor, which usually lowers the noise, so this is a safe simplification, but a model that drives the aggressor through its own resistance needs a different analysis.
- Inductance. For long wide wires the response can overshoot, and an RC bound does not apply.
- Noise on noise. The metric gives the noise at the victim wire. Whether the noise flips a latch depends on the receiver, the pulse width and the propagation through gates, which this metric does not model.
- Units. Coupling capacitance times slew rate is a current. Mixing fF with ns and kΩ gives values off by factors of 1000.
Implementations
Each implementation follows the pseudocode above. A comment @line links a line of code to a line of the pseudocode. Point at a line of the pseudocode to see the matching code. The build runs the native tests of each language.
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/devgan-noise-metric/. The authors are listed in prov/6FQBVC.jsonl.
"""Devgan's coupled noise metric on an RC tree (Devgan, ICCAD 1997).
The victim net is a tree of n nodes. Node 0 is the driver output and the
others satisfy parent[k] < k. r[0] is the holding resistance of the quiet
driver to ground, and r[k] for k > 0 is the wire resistance from parent[k]
to k. coupling[k] is a list of pairs (cc, a): a coupling capacitance cc from
node k to aggressor a. slope[a] is the largest absolute slew rate |du_a/dt|
of aggressor a.
devgan_noise(...) returns V with V[i] = sum over k of R_ik I_k, where R_ik is
the resistance of the common part of the paths from ground to i and to k,
and I_k = sum of cc * slope[a] over the couplings of node k. Under the model
on the page, |v_i(t)| <= V[i] for all t. Two passes, O(n + couplings) time.
"""
def devgan_noise(parent, r, coupling, slope):
n = len(parent)
current = [0] * n
for k in range(n): # @line L1
current[k] = sum((cc * slope[a] for cc, a in coupling[k]), 0)
for k in range(n - 1, 0, -1): # @line L2
current[parent[k]] += current[k] # @line L3
noise = [0] * n
noise[0] = r[0] * current[0] # @line L4
for k in range(1, n): # @line L5
noise[k] = noise[parent[k]] + r[k] * current[k] # @line L6
return noise # @line L7
def ramp_slopes(swing, rise_times):
"""Slew rates of ramp aggressors: swing / rise time for each aggressor."""
return [swing / t for t in rise_times]
rc_transient.py 164 lines
# SPDX-License-Identifier: MIT
# Shared helper of the pr3 eda pages of https://algorithm.tamnd.com/. The authors are listed in prov/.
"""Reference transient solvers for a victim RC tree with coupling capacitors.
The tree uses the layout of devgan_noise_metric.py: parent[k] < k, r[0] is
the driver resistance to ground, r[k] the wire resistance from parent[k] to
k, cground[k] the grounded capacitance and coupling[k] a list of (cc, a).
Kirchhoff's current law at each node gives the linear system
C v'(t) + G v(t) = B u'(t),
with G the conductance matrix of the tree, C the diagonal matrix of total
node capacitance (ground plus coupling) and B[k][a] the coupling from node
k to aggressor a. The aggressor voltages u_a(t) are ideal sources.
backward_euler: exact rational arithmetic, any aggressor waveform.
ramp_peaks: the exact solution for piecewise linear ramps, by a symmetric
eigendecomposition, with a sampled and refined peak search in floats.
"""
import math
def matrices(parent, r, cground, coupling, aggressors):
n = len(parent)
g = [[0] * n for _ in range(n)]
g[0][0] += 1 / r[0] # pass Fractions for exact arithmetic
for k in range(1, n):
y = 1 / r[k]
p = parent[k]
g[k][k] += y
g[p][p] += y
g[k][p] -= y
g[p][k] -= y
b = [[0] * aggressors for _ in range(n)]
cap = list(cground)
for k in range(n):
for cc, a in coupling[k]:
b[k][a] += cc
cap[k] = cap[k] + cc
return g, cap, b
def solve(a, y):
"""Gaussian elimination with partial pivoting; exact for Fractions."""
n = len(a)
m = [list(a[i]) + [y[i]] for i in range(n)]
for c in range(n):
p = max(range(c, n), key=lambda i: abs(m[i][c]))
m[c], m[p] = m[p], m[c]
for i in range(c + 1, n):
f = m[i][c] / m[c][c]
if f:
for j in range(c, n + 1):
m[i][j] -= f * m[c][j]
x = [0] * n
for i in range(n - 1, -1, -1):
s = m[i][n] - sum(m[i][j] * x[j] for j in range(i + 1, n))
x[i] = s / m[i][i]
return x
def backward_euler(g, cap, b, waves, h, steps):
"""Backward Euler states v_0 = 0, v_1, ..., v_steps at times j h.
waves[a](t) is the aggressor voltage at time t. Each step solves
(C + h G) v_{j+1} = C v_j + B (u(t_{j+1}) - u(t_j)).
"""
n = len(g)
m = [[h * g[i][j] + (cap[i] if i == j else 0) for j in range(n)] for i in range(n)]
v = [0] * n
out = [v]
u = [w(0) for w in waves]
for j in range(1, steps + 1):
un = [w(j * h) for w in waves]
rhs = [cap[i] * v[i] + sum(b[i][a] * (un[a] - u[a]) for a in range(len(waves))) for i in range(n)]
v = solve(m, rhs)
out.append(v)
u = un
return out
def _jacobi_eigen(s):
n = len(s)
a = [row[:] for row in s]
q = [[1.0 if i == j else 0.0 for j in range(n)] for i in range(n)]
for _ in range(100):
off = sum(a[i][j] ** 2 for i in range(n) for j in range(n) if i != j)
if off < 1e-30:
break
for p in range(n):
for k in range(p + 1, n):
if abs(a[p][k]) < 1e-300:
continue
theta = (a[k][k] - a[p][p]) / (2 * a[p][k])
t = math.copysign(1.0, theta) / (abs(theta) + math.sqrt(theta * theta + 1))
c = 1 / math.sqrt(t * t + 1)
sn = t * c
for i in range(n):
aip, aik = a[i][p], a[i][k]
a[i][p], a[i][k] = c * aip - sn * aik, sn * aip + c * aik
for i in range(n):
api, aki = a[p][i], a[k][i]
a[p][i], a[k][i] = c * api - sn * aki, sn * api + c * aki
for i in range(n):
qip, qik = q[i][p], q[i][k]
q[i][p], q[i][k] = c * qip - sn * qik, sn * qip + c * qik
return [a[i][i] for i in range(n)], q
def ramp_peaks(g, cap, b, ramps, samples=400):
"""Peak |v_i(t)| over t >= 0 for ramp aggressors, in floats.
ramps[a] = (start, rise, swing): u_a goes linearly from 0 to swing over
[start, start + rise] and is constant outside. The solution is exact on
each interval where all slopes are constant; the peak is found by
sampling and a golden-section refinement around the best sample.
"""
n = len(g)
g = [[float(x) for x in row] for row in g]
cap = [float(x) for x in cap]
b = [[float(x) for x in row] for row in b]
half = [1 / math.sqrt(c) for c in cap]
s = [[half[i] * g[i][j] * half[j] for j in range(n)] for i in range(n)]
lam, q = _jacobi_eigen(s)
events = sorted({0.0} | {float(t0) for t0, _, _ in ramps} | {float(t0 + tr) for t0, tr, _ in ramps})
tail = 12 / min(lam)
def to_z(v):
return [sum(q[i][m] * v[i] / half[i] for i in range(n)) for m in range(n)]
def to_v(z):
return [half[i] * sum(q[i][m] * z[m] for m in range(n)) for i in range(n)]
pieces = []
v = [0.0] * n
for idx, t0 in enumerate(events):
t1 = events[idx + 1] if idx + 1 < len(events) else t0 + tail
du = [sw / tr if st <= t0 < st + tr else 0.0 for st, tr, sw in ramps]
f = [sum(b[i][a] * du[a] for a in range(len(ramps))) for i in range(n)]
w = solve(g, f)
zw, zj = to_z(w), to_z(v)
pieces.append((t0, t1, zw, zj))
def at(t, t0=t0, zw=zw, zj=zj):
return to_v([zw[m] + math.exp(-lam[m] * (t - t0)) * (zj[m] - zw[m]) for m in range(n)])
v = at(t1)
pieces[-1] = (t0, t1, at)
peak = [0.0] * n
for i in range(n):
for t0, t1, at in pieces:
grid = [t0 + (t1 - t0) * j / samples for j in range(samples + 1)]
vals = [abs(at(t)[i]) for t in grid]
j = max(range(len(vals)), key=vals.__getitem__)
lo, hi = grid[max(j - 1, 0)], grid[min(j + 1, samples)]
for _ in range(60):
m1, m2 = lo + (hi - lo) * 0.382, lo + (hi - lo) * 0.618
if abs(at(m1)[i]) < abs(at(m2)[i]):
lo = m1
else:
hi = m2
peak[i] = max(peak[i], vals[j], abs(at((lo + hi) / 2)[i]))
return peak
test_devgan_noise_metric.py 123 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/devgan-noise-metric/. The authors are listed in prov/6FQBVC.jsonl.
import math
import random
from fractions import Fraction as F
from devgan_noise_metric import devgan_noise, ramp_slopes
from rc_transient import backward_euler, matrices, ramp_peaks, solve
# The tree of the page: units kOhm, fF, ps and V, so a current is in mA.
PARENT = [-1, 0, 1, 1]
R = [F(1), F(1, 2), F(1, 2), F(1)]
CG = [F(5), F(10), F(10), F(15)]
COUPLING = [[], [(F(10), 0)], [(F(10), 0)], []]
def random_tree(rng, n, aggressors, exact):
num = (lambda lo, hi: F(rng.randint(lo, hi), rng.randint(1, 4))) if exact else (lambda lo, hi: rng.uniform(lo, hi))
parent = [-1] + [rng.randrange(k) for k in range(1, n)]
r = [num(1, 8) for _ in range(n)]
cg = [num(1, 20) for _ in range(n)]
coupling = []
for _ in range(n):
coupling.append([(num(1, 20), rng.randrange(aggressors)) for _ in range(rng.randint(0, 2))])
return parent, r, cg, coupling
def test_worked_example():
v = devgan_noise(PARENT, R, COUPLING, ramp_slopes(F(1), [F(50)]))
assert v == [F(2, 5), F(3, 5), F(7, 10), F(3, 5)]
g, cap, b = matrices(PARENT, [float(x) for x in R], [float(x) for x in CG], [[(float(c), a) for c, a in cp] for cp in COUPLING], 1)
peak = ramp_peaks(g, cap, b, [(0.0, 50.0, 1.0)])
assert [round(p, 3) for p in peak] == [0.170, 0.260, 0.318, 0.217]
def test_equals_resistance_matrix_product():
# V = G^-1 B s, solved exactly, is the matrix form of the two passes.
rng = random.Random(1)
for _ in range(300):
n = rng.randint(1, 7)
parent, r, cg, coupling = random_tree(rng, n, 2, True)
slope = [F(rng.randint(1, 9), rng.randint(1, 9)) for _ in range(2)]
g, cap, b = matrices(parent, r, cg, coupling, 2)
want = solve(g, [sum(b[i][a] * slope[a] for a in range(2)) for i in range(n)])
assert devgan_noise(parent, r, coupling, slope) == want
def test_common_path_resistance_form():
# V_i = sum_k R_ik I_k with R_ik the resistance shared by the root paths of i and k.
rng = random.Random(2)
for _ in range(200):
n = rng.randint(1, 8)
parent, r, cg, coupling = random_tree(rng, n, 1, True)
path = []
for k in range(n):
p = {k} | (path[parent[k]] if k else set())
path.append(p)
cur = [sum(c for c, _ in coupling[k]) for k in range(n)]
want = [sum(sum(r[j] for j in path[i] & path[k]) * cur[k] for k in range(n)) for i in range(n)]
assert devgan_noise(parent, r, coupling, [F(1)]) == want
def test_backward_euler_never_exceeds_bound_exactly():
# In exact arithmetic, every backward Euler state satisfies |v_j| <= V.
rng = random.Random(3)
for _ in range(25):
n = rng.randint(1, 3)
parent, r, cg, coupling = random_tree(rng, n, 2, True)
rise = [F(rng.randint(1, 30)), F(rng.randint(1, 30))]
swing = [F(1), F(-1) if rng.random() < 0.5 else F(1)]
start = [F(0), F(rng.randint(0, 10))]
waves = [lambda t, a=a: swing[a] * min(max((t - start[a]) / rise[a], F(0)), F(1)) for a in range(2)]
bound = devgan_noise(parent, r, coupling, [abs(swing[a]) / rise[a] for a in range(2)])
g, cap, b = matrices(parent, r, cg, coupling, 2)
h = F(rng.randint(1, 6), 2)
for v in backward_euler(g, cap, b, waves, h, 24):
assert all(abs(v[i]) <= bound[i] for i in range(n))
def test_backward_euler_single_rising_aggressor_is_nonnegative():
rng = random.Random(4)
for _ in range(20):
n = rng.randint(1, 3)
parent, r, cg, coupling = random_tree(rng, n, 1, True)
rise = F(rng.randint(1, 20))
bound = devgan_noise(parent, r, coupling, [1 / rise])
g, cap, b = matrices(parent, r, cg, coupling, 1)
for v in backward_euler(g, cap, b, [lambda t: min(t / rise, F(1))], F(1), 24):
assert all(0 <= v[i] <= bound[i] for i in range(n))
def test_one_node_closed_form():
# One node: peak = s R Cc (1 - exp(-tr / tau)), tau = R (Cg + Cc).
for rr, cg, cc, tr in [(1.0, 10.0, 10.0, 5.0), (2.0, 3.0, 7.0, 40.0), (0.5, 20.0, 1.0, 300.0)]:
g, cap, b = matrices([-1], [rr], [cg], [[(cc, 0)]], 1)
peak = ramp_peaks(g, cap, b, [(0.0, tr, 1.0)])[0]
metric = devgan_noise([-1], [rr], [[(cc, 0)]], [1.0 / tr])[0]
tau = rr * (cg + cc)
assert math.isclose(peak, metric * (1 - math.exp(-tr / tau)), rel_tol=1e-9)
assert peak <= cc / (cg + cc) # the charge sharing limit of a step
def test_exact_solution_bound_and_tightness():
# Exact solution of the linear ODE on random trees: the bound holds,
# it is loose for fast ramps and tight for slow ones.
rng = random.Random(1997)
ratios = {"fast": [], "slow": []}
for _ in range(80):
n = rng.randint(1, 5)
parent, r, cg, coupling = random_tree(rng, n, 2, False)
g, cap, b = matrices(parent, r, cg, coupling, 2)
tau = sum(r) * sum(cap) # at least the slowest time constant
for kind, tr in (("fast", tau / 50), ("slow", 50 * tau)):
ramps = [(0.0, tr, 1.0), (rng.uniform(0, tr), tr, -1.0)]
bound = devgan_noise(parent, r, coupling, [1 / tr, 1 / tr])
peak = ramp_peaks(g, cap, b, ramps, samples=60)
for p, v in zip(peak, bound):
assert p <= v * (1 + 1e-9) + 1e-15
if v > 0:
ratios[kind].append(p / v)
assert max(ratios["fast"]) < 0.2
assert max(ratios["slow"]) > 0.95
History
Before the metric, designers bounded coupling noise by the charge sharing ratio , which ignores the driver that holds the victim, or by closed forms for one pair of uniform lines such as those of Sakurai (1993). Shepard and Narayanan (1996) described the static noise analysis of whole chips, which needs a fast and safe measure for each net. Devgan (1997) gave the metric for RC trees, explained it as the steady state of an infinitely long ramp, and noted that it is an upper bound for RC circuits that is pessimistic for fast aggressors. The metric became a standard screen in noise analysis tools, and later work refined it with time constants and pulse widths.
References
- Anirudh Devgan, Efficient coupled noise estimation for on-chip interconnects, Proceedings of the IEEE/ACM International Conference on Computer-Aided Design (ICCAD), 147 to 151, 1997, the metric for RC trees and its claim to be an upper bound for RC circuits (DBLP gives pages 147 to 151, and some citations give 147 to 153; the section numbers were not checked)
- Kenneth L. Shepard and Vinod Narayanan, Noise in deep submicron digital design, Proceedings of the IEEE/ACM International Conference on Computer-Aided Design (ICCAD), 524 to 531, 1996, the static noise analysis setting in which a fast noise bound per net is used
- Takayasu Sakurai, Closed-form expressions for interconnection delay, coupling, and crosstalk in VLSIs, IEEE Transactions on Electron Devices 40(1), 118 to 124, January 1993, the closed-form crosstalk height of two coupled distributed RC lines, an earlier estimate for one pair of lines
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.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H1 sketch |
|
| Lean | L0 no Lean part |
|
| Code (python) | I0 not checked yet |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag 6FQBVC Edit this page History Report an error Markdown