Algorithm Search⌘K

Algorithmadvanced

Clustered voltage scaling

Also called CVS, Usami-Horowitz voltage scaling.

Usami and Horowitz's method that moves gates with slack to a low supply, growing clusters back from the outputs so that level converters are needed only at the registers.

Time
O(n (n + m)) worst
Space
O(n + m) extra
Where
m = the number of gate input pins; n = the number of gates
Properties
deterministicnot exactgreedyiterative
Origin
Kimiyoshi Usami, Mark Horowitz, 1995

Clustered voltage scaling (CVS) is a method to lower the dynamic power of a synchronous circuit with two supply voltages, a high one VHV_H and a low one VLV_L. Since P=αCV2fP = \alpha C V^2 f, a gate moved to VLV_L spends (VL/VH)2(V_L/V_H)^2 of its old switching power, but it is slower. CVS moves gates that have timing slack to VLV_L. It keeps the rule that a low gate never drives a high gate, because a high gate driven by a low signal can draw static current. So the low gates form clusters at the ends of the paths, next to the registers, and only the registers need level converters. The method visits the gates from the outputs back to the inputs, tries each gate whose fanouts are all low, and keeps it low when the circuit still meets the clock period. Usami and Horowitz gave it in 1995. Under a simple additive delay model this page proves that the greedy result is the largest legal set that meets the clock period and so is optimal. With real delay models it is a heuristic.

In plain words

A chip can have two supply rails, one at a high voltage and one at a low voltage. Gates on the low rail use much less energy per switch, but they are slower. Many gates are not on the slowest paths, so they can afford to be slower.

There is a catch. When a low-voltage gate drives a high-voltage gate, the high gate does not switch off fully and wastes current. So the low gates must sit at the ends of the paths, where they feed the registers, and the registers convert the level back.

CVS starts at the registers at the end of the logic and walks back. It tries to move each gate to the low rail when all the gates it drives are already low. If the circuit is still fast enough, the gate stays low.

The problem

Circuit. The logic between registers is a DAG of nn gates with mm gate input pins. The primary inputs come from registers clocked at time 0 at VHV_H. A set OO of gates drive registers. Each gate gg has a switched capacitance CgC_g, an activity αg\alpha_g, a delay dH(g)d_H(g) at VHV_H and a delay dL(g)≥dH(g)d_L(g) \ge d_H(g) at VLV_L. A register driven by a low gate is a level-converting register and adds a delay ℓc≥0\ell_c \ge 0.

Delay model. This page uses an additive model in which the delay of a gate depends only on its own supply. For a set LL of low gates, the arrival time is a(g)=max⁡fa(f)+d(g)a(g) = \max_{f} a(f) + d(g) over the fanins ff of gg, with a=0a = 0 at the primary inputs and d(g)=dL(g)d(g) = d_L(g) if g∈Lg \in L and dH(g)d_H(g) otherwise. The circuit meets the clock period TT when a(o)+ℓc[o∈L]≤Ta(o) + \ell_c [o \in L] \le T for every o∈Oo \in O. This is the timing of static timing analysis with fixed gate delays, a longest path in the DAG.

Legality. A set LL is legal when no gate of LL drives a gate outside LL.

Goal. Find a legal set LL that meets TT and has the largest saving ∑g∈LαgCg(VH2−VL2)f\sum_{g \in L} \alpha_g C_g (V_H^2 - V_L^2) f.

Physical numbers. How much slower a low gate is follows the alpha-power law of Sakurai and Newton (1990): the delay of a gate is about proportional to CV/(V−VT)aC V / (V - V_T)^{a}. The threshold VTV_T and the exponent aa are fitted to the transistors of a process. The exponent is near 2 for long channels and between 1 and 1.5 for short channels. The capacitances CgC_g come from extraction, and the activities αg\alpha_g from switching activity estimation. The level converter delay ℓc\ell_c is a characterized cell value.

The algorithm

  1. CVS(circuit, T, ℓc)
  2. 1L ← ∅; if the circuit misses T with every gate high then fail
  3. 2for each gate g in reverse topological order do
  4. 3if every gate driven by g is in L then
  5. 4L ← L ∪ {g}
  6. 5if some output o has a(o) + ℓc [o ∈ L] > T then
  7. 6L ← L − {g}
  8. 7return L

Line L2 visits each gate after all the gates that it drives. Line L3 keeps the set legal. Line L5 is a full timing check, or an incremental one that updates the arrival times in the fanout cone of gg.

Example

Take VH=1.8V_H = 1.8 V, VL=1.2V_L = 1.2 V, VT=0.4V_T = 0.4 V and a=1.3a = 1.3. The alpha-power law gives a delay ratio of 1.2/0.81.31.8/1.41.3≈1.38\frac{1.2 / 0.8^{1.3}}{1.8 / 1.4^{1.3}} \approx 1.38. For a=1a = 1 the ratio would be 1.17, and for a=2a = 2 it would be 2.04, which shows how much the fitted exponent matters. The power ratio is (1.2/1.8)2=0.444(1.2/1.8)^2 = 0.444, so each low gate saves 56% of its switching power.

For a check by hand, the circuit below uses whole numbers for the delays. The inputs aa and bb come from registers. The gate g1g_1 is driven by aa, g2g_2 by g1g_1, g3g_3 by bb, g4g_4 by g2g_2 and g3g_3, and g5g_5 by g3g_3. The outputs are g4g_4 and g5g_5. The level converter adds ℓc=1\ell_c = 1, and T=8T = 8.

gate dHd_H dLd_L CgC_g
g1g_1 2 3 2
g2g_2 2 3 2
g3g_3 1 2 3
g4g_4 2 3 2
g5g_5 1 2 1

With every gate high, the longest path a,g1,g2,g4a, g_1, g_2, g_4 takes 6, so line L1 passes. The reverse topological order is g5,g4,g3,g2,g1g_5, g_4, g_3, g_2, g_1.

gate line L3 worst output time with gg low result
g5g_5 an output, no gate fanout max⁡(6,1+2+1)=6\max(6, 1 + 2 + 1) = 6 low
g4g_4 an output, no gate fanout 2+2+3+1=82 + 2 + 3 + 1 = 8 low
g3g_3 g4g_4 and g5g_5 are low max⁡(8,2+3+1,2+2+1)=8\max(8, 2 + 3 + 1, 2 + 2 + 1) = 8 low
g2g_2 g4g_4 is low 2+3+3+1=9>82 + 3 + 3 + 1 = 9 > 8 back to high
g1g_1 g2g_2 is high not tried high

The result is L={g3,g4,g5}L = \{g_3, g_4, g_5\} with switched capacitance 6 of 10. If all gates have the same activity, the switching power falls from 10 units to 4+6⋅0.444=6.674 + 6 \cdot 0.444 = 6.67, a saving of 33%, before the cost of the converters. A search over all 32 subsets confirms that no legal set that meets TT saves more.

Correctness

Two invariants hold after each pass of lines L2 to L6: LL is legal, since line L4 adds a gate only when all of its gate fanouts are in LL already, and LL meets TT, since line L6 undoes any addition that breaks it. So the result is legal and meets TT. It is also maximal: a gate that line L6 removed would still miss TT if added to the final set, because adding low gates never makes a path faster.

Under the additive model more is true, and the proof file gives the details. In a legal set, the low gates on any path form a suffix of it, so the delay of a path under L1∪L2L_1 \cup L_2 equals its delay under L1L_1 or under L2L_2. Hence the legal sets that meet TT are closed under union, and there is a largest one. The greedy returns exactly this largest set, so it is optimal for every choice of the nonnegative weights αgCg\alpha_g C_g, and the order among gates with no path between them does not matter.

Why the rule. A static CMOS gate on VHV_H whose input is driven high by a gate on VLV_L sees the gate voltage VLV_L at its PMOS transistor, whose source is at VHV_H. The PMOS then has VGS=VL−VHV_{GS} = V_L - V_H, and it conducts when VH−VL>∣VTp∣V_H - V_L > |V_{Tp}|, while the NMOS also conducts. The current flows from VHV_H to ground as long as the input stays high. In the example VH−VL=0.6V_H - V_L = 0.6 V is more than a threshold of 0.4 V. A level-converting register restores the full swing with a cross-coupled pair of PMOS transistors.

Proof: Clustered voltage scaling returns a legal timed set, and under additive delays the largest onefull

Setting. The circuit is a DAG of gates with primary inputs at time 0, a set OO of output gates that drive registers, delays 0≤dH(g)≤dL(g)0 \le d_H(g) \le d_L(g) and a converter delay ℓc≥0\ell_c \ge 0. For a set LL of low gates, dLd_L applies to the gates of LL and dHd_H to the others. The delay of a path π=(g1,…,gk)\pi = (g_1, \ldots, g_k) from a gate driven by a primary input to an output gate gk∈Og_k \in O is

DL(π)=∑i=1kdL(gi)[gi∈L]+dH(gi)[gi∉L]  +  ℓc[gk∈L].D_L(\pi) = \sum_{i=1}^{k} d_L(g_i)[g_i \in L] + d_H(g_i)[g_i \notin L] \;+\; \ell_c [g_k \in L].

The worst output time W(L)=max⁡oa(o)+ℓc[o∈L]W(L) = \max_o a(o) + \ell_c [o \in L] equals max⁡πDL(π)\max_\pi D_L(\pi) over all such paths, by the usual longest path recursion. LL meets TT when W(L)≤TW(L) \le T, and LL is legal when every gate fanout of every gate of LL is in LL. Call LL feasible when it is legal and meets TT.

Lemma 1 (monotone delay). If L⊆L′L \subseteq L' then W(L)≤W(L′)W(L) \le W(L').

Proof. For each path, DL′(π)−DL(π)D_{L'}(\pi) - D_L(\pi) is a sum of terms dL(g)−dH(g)≥0d_L(g) - d_H(g) \ge 0 and possibly ℓc≥0\ell_c \ge 0. Take the maximum over paths. □\square

Lemma 2 (invariants). After each pass of lines L2 to L6, LL is feasible.

Proof. At line L1, L=∅L = \emptyset is legal, and it meets TT by the check of line L1. Line L4 adds gg only when every gate driven by gg is in LL, so L∪{g}L \cup \{g\} is legal: the gates of LL keep their fanouts in LL, and gg has its fanouts in LL. If L∪{g}L \cup \{g\} misses TT, line L6 returns to LL. □\square

Lemma 3 (suffix). If LL is legal and π=(g1,…,gk)\pi = (g_1, \ldots, g_k) is a path of gates, then {i:gi∈L}\{i : g_i \in L\} is a set of the form {j,j+1,…,k}\{j, j+1, \ldots, k\}, possibly empty.

Proof. If gi∈Lg_i \in L and i<ki < k, then gi+1g_{i+1} is a gate driven by gig_i, so gi+1∈Lg_{i+1} \in L by legality. □\square

Lemma 4 (union). If L1L_1 and L2L_2 are feasible, so is L1∪L2L_1 \cup L_2.

Proof. Legality: each gate of L1∪L2L_1 \cup L_2 lies in L1L_1 or in L2L_2, and its gate fanouts lie in the same set. Timing: fix a path π\pi. By Lemma 3 its low gates under L1L_1 are a suffix starting at j1j_1, and under L2L_2 a suffix starting at j2j_2 (with j=k+1j = k + 1 for an empty suffix). Its low gates under L1∪L2L_1 \cup L_2 are the union of the two suffixes, which is the longer one. Say j1≤j2j_1 \le j_2. Then π\pi has the same low gates under L1∪L2L_1 \cup L_2 as under L1L_1. The delay DL(π)D_L(\pi) depends only on which gates of π\pi are in LL, since each gate's delay depends only on its own supply and the converter term only on gkg_k. So DL1∪L2(π)=DL1(π)≤W(L1)≤TD_{L_1 \cup L_2}(\pi) = D_{L_1}(\pi) \le W(L_1) \le T. The case j2<j1j_2 < j_1 is the same with L2L_2. Taking the maximum over paths gives W(L1∪L2)≤TW(L_1 \cup L_2) \le T. □\square

So if any feasible set exists, the union of all feasible sets is feasible, and it is the largest feasible set L∗L^*.

Theorem. If the circuit meets TT with every gate high, line L7 returns L∗L^*.

Proof. Let RR be the returned set. By Lemma 2, RR is feasible, so R⊆L∗R \subseteq L^*. Suppose that L∗⊈RL^* \not\subseteq R. Let hh be the first gate of L∗∖RL^* \setminus R in the order of line L2, and let RhR_h be the value of LL when line L2 reaches hh.

Every gate ff driven by hh is in L∗L^* by legality of L∗L^*. The order of line L2 is reverse topological, so ff comes before hh. Since hh is the first gate of L∗L^* that is missing from RR, the gate ff is in RR. A gate is added to LL only at line L4 and is removed only at line L6 in the same pass, so a gate of RR that comes before hh is in RhR_h. So every gate driven by hh is in RhR_h, the test of line L3 holds, and line L4 tries Rh∪{h}R_h \cup \{h\}. Since h∉Rh \notin R, line L5 found W(Rh∪{h})>TW(R_h \cup \{h\}) > T.

But RhR_h is feasible by Lemma 2 and L∗L^* is feasible, so Rh∪L∗R_h \cup L^* is feasible by Lemma 4. Since h∈L∗h \in L^*, we have Rh∪{h}⊆Rh∪L∗R_h \cup \{h\} \subseteq R_h \cup L^*, and Lemma 1 gives W(Rh∪{h})≤W(Rh∪L∗)≤TW(R_h \cup \{h\}) \le W(R_h \cup L^*) \le T. This contradicts the result of line L5. So L∗⊆RL^* \subseteq R, and R=L∗R = L^*. □\square

Corollary. For any nonnegative weights wgw_g, such as wg=αgCg(VH2−VL2)fw_g = \alpha_g C_g (V_H^2 - V_L^2) f, the result has the largest total weight among all feasible sets, and every reverse topological order gives the same result.

Proof. Every feasible set is a subset of L∗L^*, and the weights are nonnegative. The set L∗L^* does not depend on the order. □\square

Where the proof stops. Lemma 4 uses that the delay of a gate depends only on its own supply. If the delay of gg also depends on the supply of its driver, through the input slope, or on the supplies of the gates it drives, through their input capacitance, the delay of a path is no longer fixed by its set of low gates alone, Lemma 4 can fail, and the greedy is then only a heuristic. The tests check the theorem on random circuits of up to 9 gates against all subsets.

Why the rule is needed (physics, not a theorem of this page). In static CMOS, a gate on VHV_H whose input is high at VLV_L has a PMOS transistor with its source at VHV_H and its gate at VLV_L, so VGS=VL−VHV_{GS} = V_L - V_H. The PMOS conducts when VH−VL>∣VTp∣V_H - V_L > |V_{Tp}|, while the NMOS of the same input also conducts, so a static current flows from VHV_H to ground. A low input to a low gate, or a high gate driving a low gate, has no such problem, since a high level at VHV_H turns the PMOS of a low gate fully off.

Complexity

Line L5 runs once per gate. A full timing pass costs O(n+m)O(n + m), so the total is O(n(n+m))O(n (n + m)) time, with O(n+m)O(n + m) space for the arrival times and the fanout lists. Incremental timing updates only the fanout cone of the new gate, which is often small, but the worst case stays the same.

Properties

  • Legal and timed, proved. The result never has a low gate driving a high gate, and it meets TT.
  • Optimal under the additive model, proved here. The result contains every legal set that meets TT, so it is the most power saving one for any nonnegative weights. This proof is not in the paper of Usami and Horowitz.
  • A heuristic under real delay models. With delays that depend on the load and on the input slope, a low driver slows the gates it drives, and the union property can fail. Then the result depends on the order and can be worse than the best legal set.
  • Measured savings. The power savings reported by Usami and Horowitz (1995) and by Usami and coworkers (1998) are measured on their circuits, not proved. They also depend on how much slack the circuit has, which is a property of the design.
  • Converters only at registers. Since a low cluster ends at the registers, the only level converters are in the registers, which keeps the cost of the converters small.

Variants and improvements

  • Level converters inside the logic. Later work allows a converter on any edge from a low gate to a high gate, at a cost in delay, area and power. Then more gates can go low, but the choice becomes a harder search, and the legal sets are no longer closed under union.
  • Gate sizing at the same time. A gate that misses timing at VLV_L can be made faster by a larger size, as in gate sizing and TILOS. Joint methods trade the two moves against each other.
  • Threshold voltage as a third choice. The same structure of a choice per gate under a timing bound appears in multiple threshold voltage assignment, which lowers leakage instead of switching power. Flows often run both.
  • Voltage per block and per time. Coarser schemes give a whole block one supply, which needs fewer converters and simpler rails. Speed scaling changes the supply and the clock over time instead of over gates.

When to use it

Use it on synchronous logic with much slack off the critical paths, when the process and the library offer two supplies and level-converting registers. The gain is large when many gates feed the registers through short paths, as in datapaths with a few long paths. It gives little on a circuit in which most paths are near critical, and it needs a placement that can reach both supply rails.

Pitfalls

  • Breaking the rule at a fanout stem. A gate that drives both a low gate and a high gate cannot go low. Line L3 checks all gate fanouts, not only the one on the critical path.
  • Forgetting the converter delay. A low output adds ℓc\ell_c at the register. Without it, the timing check passes and the chip fails.
  • Trusting the fixed-delay model. In a real library, a slower low driver also slows its fanout gates through the input slope. Rerun full timing with the real model on the result.
  • Hold time. Low gates are slower, which helps hold time, but the converter registers have their own setup and hold times. Check setup and hold on every converter register.
  • Counting the saving in the wrong units. The saving per gate is αgCg(VH2−VL2)f\alpha_g C_g (V_H^2 - V_L^2) f with αg\alpha_g the rising transitions per cycle, as on the dynamic power page. Leakage changes too, since it falls with the supply, but it is a separate term.

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.

clustered_voltage_scaling.pyI0RawGitHub
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/clustered-voltage-scaling/. The authors are listed in prov/STT7KY.jsonl.
"""Clustered voltage scaling (Usami and Horowitz 1995).

The logic between registers is a DAG of gates. Each gate has a delay at the
high supply and a larger delay at the low supply, and a switched capacitance.
The primary inputs come from registers at time 0. The outputs go to
level-converting registers, which add the delay lc when their driver is low.
The clock period is T.

Legal: no low gate drives a high gate. The pass visits the gates in reverse
topological order. A gate whose gate fanouts are all low already is tried at
the low supply, and stays low when every output still meets T.
"""

from __future__ import annotations

import random
from typing import Dict, Iterable, List, Sequence, Set, Tuple


class Net:
    """inputs: names; gates: (name, fanins, d_high, d_low, cap) in topological order; outputs: gate names."""

    def __init__(self, inputs: Sequence[str], gates: Sequence[Tuple[str, Sequence[str], float, float, float]], outputs: Sequence[str]):
        self.inputs = list(inputs)
        self.gates = [g[0] for g in gates]
        self.fanin = {g[0]: list(g[1]) for g in gates}
        self.d_high = {g[0]: g[2] for g in gates}
        self.d_low = {g[0]: g[3] for g in gates}
        self.cap = {g[0]: g[4] for g in gates}
        self.outputs = list(outputs)
        self.fanout: Dict[str, List[str]] = {g: [] for g in self.gates}
        for g in self.gates:
            for f in self.fanin[g]:
                if f in self.fanout:
                    self.fanout[f].append(g)


def arrival(net: Net, low: Set[str]) -> Dict[str, float]:
    a: Dict[str, float] = {x: 0 for x in net.inputs}
    for g in net.gates:
        d = net.d_low[g] if g in low else net.d_high[g]
        a[g] = max((a[f] for f in net.fanin[g]), default=0) + d
    return a


def worst_output_time(net: Net, low: Set[str], lc: float) -> float:
    a = arrival(net, low)
    return max(a[o] + (lc if o in low else 0) for o in net.outputs)


def meets_timing(net: Net, low: Set[str], period: float, lc: float) -> bool:
    return worst_output_time(net, low, lc) <= period


def is_legal(net: Net, low: Set[str]) -> bool:
    """No low gate drives a high gate."""
    return all(f in low for g in low for f in net.fanout[g])


def saving(net: Net, low: Iterable[str]) -> float:
    """Switched capacitance moved to the low supply (the power saving is this times alpha f (VH^2 - VL^2))."""
    return sum(net.cap[g] for g in low)


def cvs(net: Net, period: float, lc: float) -> Set[str]:
    """The set of low gates chosen by clustered voltage scaling."""
    low: Set[str] = set()  # @line L1
    if not meets_timing(net, low, period, lc):
        raise ValueError("the circuit misses the period with every gate high")
    for g in reversed(net.gates):  # @line L2: reverse topological order
        if all(f in low for f in net.fanout[g]):  # @line L3
            low.add(g)  # @line L4
            if not meets_timing(net, low, period, lc):  # @line L5
                low.discard(g)  # @line L6
    return low  # @line L7


def random_net(rng: random.Random, n_in: int, n_gates: int) -> Net:
    inputs = [f"i{k}" for k in range(n_in)]
    names = list(inputs)
    gates = []
    for k in range(n_gates):
        fanins = rng.sample(names, min(len(names), rng.randint(1, 2)))
        dh = rng.randint(1, 3)
        gates.append((f"g{k}", fanins, dh, dh + rng.randint(1, 2), rng.randint(1, 5)))
        names.append(f"g{k}")
    used = {f for g in gates for f in g[1]}
    outputs = [g[0] for g in gates if g[0] not in used]
    outputs += [g[0] for g in gates if g[0] in used and rng.random() < 0.2]
    return Net(inputs, gates, outputs)
test_clustered_voltage_scaling.py 90 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/clustered-voltage-scaling/. The authors are listed in prov/STT7KY.jsonl.

import itertools
import random

import pytest

from clustered_voltage_scaling import Net, cvs, is_legal, meets_timing, random_net, saving, worst_output_time


def page_net():
    # a -> g1 -> g2 -> g4 (output); b -> g3 -> g4; g3 -> g5 (output). Delays (high, low), cap.
    return Net(
        ["a", "b"],
        [
            ("g1", ["a"], 2, 3, 2),
            ("g2", ["g1"], 2, 3, 2),
            ("g3", ["b"], 1, 2, 3),
            ("g4", ["g2", "g3"], 2, 3, 2),
            ("g5", ["g3"], 1, 2, 1),
        ],
        ["g4", "g5"],
    )


def all_feasible(net, period, lc):
    for r in range(len(net.gates) + 1):
        for s in itertools.combinations(net.gates, r):
            s = set(s)
            if is_legal(net, s) and meets_timing(net, s, period, lc):
                yield s


def test_page_example():
    net = page_net()
    assert worst_output_time(net, set(), 1) == 6
    low = cvs(net, 8, 1)
    assert low == {"g4", "g5", "g3"}
    assert worst_output_time(net, low, 1) == 8
    best = max(all_feasible(net, 8, 1), key=lambda s: saving(net, s))
    assert saving(net, best) == saving(net, low) == 6


def test_legal_timed_and_maximal_against_brute_force():
    rng = random.Random(31)
    for _ in range(150):
        net = random_net(rng, rng.randint(1, 3), rng.randint(2, 8))
        lc = rng.randint(0, 1)
        period = worst_output_time(net, set(), lc) + rng.randint(0, 4)
        low = cvs(net, period, lc)
        assert is_legal(net, low)
        assert meets_timing(net, low, period, lc)
        # maximal: no single high gate can join and keep both properties
        for g in net.gates:
            if g not in low:
                s = low | {g}
                assert not (is_legal(net, s) and meets_timing(net, s, period, lc))
        best = max(saving(net, s) for s in all_feasible(net, period, lc))
        assert saving(net, low) <= best


def test_result_contains_every_legal_timed_set():
    # Under the additive delay model the legal timed sets are closed under union,
    # and the pass returns the largest one, so it is optimal for any weights.
    rng = random.Random(32)
    for _ in range(200):
        net = random_net(rng, rng.randint(1, 3), rng.randint(2, 9))
        lc = rng.randint(0, 2)
        period = worst_output_time(net, set(), lc) + rng.randint(0, 5)
        low = cvs(net, period, lc)
        feasible = list(all_feasible(net, period, lc))
        for s in feasible:
            assert s <= low
        for s, t in itertools.combinations(feasible[:40], 2):
            u = s | t
            assert is_legal(net, u) and meets_timing(net, u, period, lc)


def test_fanout_stem_goes_low_only_after_all_its_fanouts():
    # g1 drives g2 and g3. With period 3 only the two outputs fit at the low
    # supply; with period 4 the stem g1 joins them.
    net = Net(["a"], [("g1", ["a"], 1, 2, 5), ("g2", ["g1"], 1, 2, 1), ("g3", ["g1"], 1, 2, 1)], ["g2", "g3"])
    assert cvs(net, 3, 0) == {"g2", "g3"}
    assert cvs(net, 4, 0) == {"g1", "g2", "g3"}


def test_infeasible_period_raises():
    with pytest.raises(ValueError):
        cvs(page_net(), 5, 1)

History

Chandrakasan, Sheng and Brodersen (1992) showed that the supply voltage is the strongest lever on CMOS power, because power falls with its square while delay grows more slowly. Usami and Horowitz (1995) applied this inside one circuit, with a second supply for the gates that have slack, and with the rule that clusters of low gates end at registers. Usami and coworkers at Toshiba (1998) built an automated flow around it for a media processor, and later work allowed converters inside the logic and combined the supply choice with sizing and with the threshold voltage.

References

  1. Kimiyoshi Usami and Mark Horowitz, Clustered voltage scaling technique for low-power design, Proceedings of the International Symposium on Low Power Design, 3 to 8, 1995, the two supplies, the rule that a low gate drives only low gates, the backward search from the outputs, and the level-converting flip-flops
  2. Kimiyoshi Usami, Mototsugu Igarashi, Fujio Minami, Takashi Ishikawa, Masahiro Kanazawa, Makoto Ichida and Kazutaka Nogami, Automated low-power technique exploiting multiple supply voltages applied to a media processor, IEEE Journal of Solid-State Circuits 33(3), March 1998, the automated flow with two supplies on a media processor, with the level-converting flip-flop and the layout of the two supply rails
  3. Takayasu Sakurai and A. Richard Newton, Alpha-power law MOSFET model and its applications to CMOS inverter delay and other formulas, IEEE Journal of Solid-State Circuits 25(2), 584 to 594, April 1990, the drain current model with the fitted exponent alpha and the inverter delay that follows from it

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 proofH1 sketch
  • a full proof of time.worst
  • a full proof of space.extra
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
Code (python)I0 not checked yet
  • the tests did not run in this build
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW2 basic
  • a scene preset for the example