W1.3.1 Pick the Threshold

MediumOptimizengspice 42 + SKY130 · serverReview the topic

A three-inverter chain leaks too much while its block sleeps. Choose a threshold flavour for each transistor so that it leaks far less and still meets its delay limit.

Circuit context: Three-inverter chain with a delay limit and a sleep state. Choose threshold flavours by path slack so leakage falls without missing the delay limit.

Three inverters in a row carry a wake-up signal through a block that sleeps most of the time. While the block sleeps, its controller parks the input of the chain low. While it runs, the chain must pass both edges within 108 ps.

Built from standard devices, the chain is fast enough. But on a fast chip at 100 °C it draws 117 nA from its supply in the sleep state. The budget is 250 pA.

Change the threshold flavours, and the widths if you like, in the subcircuit chain. Keep its three inverters and their wiring. SKY130 offers a standard and a low-threshold (LVT) NMOS, and a standard, a high-threshold (HVT) and an LVT PMOS. There is no 1.8 V HVT NMOS.

What the Grader Measures

Your subcircuit chain (ports in, out, vdd) under the grader's own bench, one run per corner (ss, ff):

CheckCornerRule
Falling output edge, slow hot chipss≤ 108 ps
Rising output edge, slow hot chipss≤ 108 ps
Budget: Sleep current, fast hot chipss≤ 250 pA, the lower the better
Full specification
The subcircuit the grader tests (keep the name and the ports)
.subckt chain in out vdd
* three inverters: in -> n1 -> n2 -> out
.ends
CheckRuleHow the grader measures it
Falling output edge≤ 108 psss corner, 100 °C: from the rising input crossing 0.9 V to the falling output crossing 0.9 V, on the second edge
Rising output edge≤ 108 psss corner, 100 °C: from the falling input crossing 0.9 V to the rising output crossing 0.9 V, on the second edge
Sleep current (budget)≤ 250 pAff corner, 100 °C: the supply current of a second copy whose input is held at 0 V, from an operating-point run

The input edges take 50 ps, the output drives 10 fF and the supply is 1.8 V. The grader sets gmin to 1e-18, so the smallest leakage is read without the simulator's floor.

Examples

Example 1

All Standard Devices (the Starter)
Design
.subckt chain in out vdd
XP1 n1 in vdd vdd sky130_fd_pr__pfet_01v8 W=2 L=0.15
XN1 n1 in 0 0 sky130_fd_pr__nfet_01v8 W=1 L=0.15
XP2 n2 n1 vdd vdd sky130_fd_pr__pfet_01v8 W=2 L=0.15
XN2 n2 n1 0 0 sky130_fd_pr__nfet_01v8 W=1 L=0.15
XP3 out n2 vdd vdd sky130_fd_pr__pfet_01v8 W=2 L=0.15
XN3 out n2 0 0 sky130_fd_pr__nfet_01v8 W=1 L=0.15
.ends
Measured by the grader
Falling output edge, slow hot chip at ss: 97.25 ps (needs ≤ 108 ps)
Rising output edge, slow hot chip at ss: 99.83 ps (needs ≤ 108 ps)
Sleep current, fast hot chip: 116.9 nA (budget ≤ 250 pA)

Fast, and the sleep current is almost 500 times the budget.

Example 2

Every PMOS HVT
Design
.subckt chain in out vdd
XP1 n1 in vdd vdd sky130_fd_pr__pfet_01v8_hvt W=2 L=0.15
XN1 n1 in 0 0 sky130_fd_pr__nfet_01v8 W=1 L=0.15
XP2 n2 n1 vdd vdd sky130_fd_pr__pfet_01v8_hvt W=2 L=0.15
XN2 n2 n1 0 0 sky130_fd_pr__nfet_01v8 W=1 L=0.15
XP3 out n2 vdd vdd sky130_fd_pr__pfet_01v8_hvt W=2 L=0.15
XN3 out n2 0 0 sky130_fd_pr__nfet_01v8 W=1 L=0.15
.ends
Measured by the grader
Falling output edge, slow hot chip at ss: 105.2 ps (needs ≤ 108 ps)
Rising output edge, slow hot chip at ss: 121.7 ps (needs ≤ 108 ps)
Sleep current, fast hot chip: 194 pA (budget ≤ 250 pA)

The leakage is inside the budget, and the rising edge is now too slow.

Example 3

Every Device LVT
Design
.subckt chain in out vdd
XP1 n1 in vdd vdd sky130_fd_pr__pfet_01v8_lvt W=2 L=0.35
XN1 n1 in 0 0 sky130_fd_pr__nfet_01v8_lvt W=1 L=0.15
XP2 n2 n1 vdd vdd sky130_fd_pr__pfet_01v8_lvt W=2 L=0.35
XN2 n2 n1 0 0 sky130_fd_pr__nfet_01v8_lvt W=1 L=0.15
XP3 out n2 vdd vdd sky130_fd_pr__pfet_01v8_lvt W=2 L=0.35
XN3 out n2 0 0 sky130_fd_pr__nfet_01v8_lvt W=1 L=0.15
.ends
Measured by the grader
Falling output edge, slow hot chip at ss: 127.2 ps (needs ≤ 108 ps)
Rising output edge, slow hot chip at ss: 140.1 ps (needs ≤ 108 ps)
Sleep current, fast hot chip: 954.1 nA (budget ≤ 250 pA)

The LVT PMOS needs L = 0.35, so it is slow as well as leaky.

Constraints and Contract

  • The netlist defines .subckt chain in out vdd ... .ends exactly once, with these ports in this order.
  • Inside chain: X instances of sky130_fd_pr__nfet_01v8, sky130_fd_pr__nfet_01v8_lvt, sky130_fd_pr__pfet_01v8, sky130_fd_pr__pfet_01v8_hvt, sky130_fd_pr__pfet_01v8_lvt, with comments and .param lines. No sources, resistors or capacitors.
  • Keep the six transistors of the starter and their nodes (in, n1, n2, out, vdd, 0). Only the flavours, W and L may change: one inverter is not three.
  • The grader writes the .lib and .temp lines itself; everything outside chain is replaced by its bench.

Hints

Hint 1

With the input at 0, write down the level of n1, n2 and out. In each inverter, which transistor is off?

Hint 2

Only the off transistors leak. A high threshold on a transistor that is on in sleep slows the chain and saves nothing.

Hint 3

Run your own bench at ss and at ff (change the .lib line). Read t_fall, t_rise and i_sleep after each change.

What the grader checks: The grader places your chain under its own bench at ss and at ff, both at 100 °C. It runs on ngspice 42 (libngspice0 42+ds-3build1) with the pinned SKY130 models. One input edge rate, one load and one sleep state are checked. The sleep current is the leakage of the devices only, without wiring or well leakage.

Run simulates your netlist as written, with your own analyses and measurements. Submit sends it to the grader, which keeps only the subcircuit chain and makes 1 ngspice run. The numbers come from ngspice and the SKY130 models the site pins; they prove the measured cases, not every condition a chip meets.

See all 1 steps and the final capstone

Report a problem with this page

Your netlist SPICESaved locally
Ln 1, Col 1Tab indents · Ctrl/⌘ + Enter runs
Not run yet
Run your netlist to see its measurements and the ngspice log here.
ngspice 42 + SKY130 · server