E9.8.1 Bias That Follows the Process

MediumImplementngspice 42 + SKY130 · serverReview the topic

Bias an AC-coupled common-source stage from its supply alone. The gain must stay within 6 % of 12 in all five process corners, with one set of values.

Circuit context: An AC-coupled common-source sensor stage (8/0.5 NMOS, 29 kΩ load) that must bias itself from a 1.8 V supply, with no voltage or current source inside. Replace a divider that was tuned in the typical corner with a bias network that tracks the transistor.

A sensor amplifier was tuned on the bench: a divider put 0.7342 V on the gate, and the gain was 12. The first wafers came from a slow lot and the gain was 10.6. A fast lot gave 13.0.

Nobody can trim the divider on each chip. The bias has to find the right gate voltage by itself, in every corner.

The subcircuit biasamp holds the stage. The transistor M1 and the load R_D are given. Replace the bias network. The block must meet the spec at tt, ss, ff, sf and fs with the same component values.

The block gets only the supply. It may not contain a voltage source or a current source.

What the Grader Measures

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

CheckCornerRule
Gain at 1 MHztt11.28 to 12.72
Gain at 1 MHzss11.28 to 12.72
Gain at 1 MHzff11.28 to 12.72
Gain at 1 MHzsf11.28 to 12.72
Gain at 1 MHzfs11.28 to 12.72
Output leveltt600 mV to 1.1 V
Output levelss600 mV to 1.1 V
Output levelff600 mV to 1.1 V
Output levelsf600 mV to 1.1 V
Output levelfs600 mV to 1.1 V
Gain at 10 kHz over gain at 1 MHztt≥ 0.95
Input impedance at 100 kHztt≥ 500 kΩ
Supply currenttt≤ 60 µA
Full specification
The subcircuit the grader tests (keep the name and the ports)
.subckt biasamp in out vdd
* resistors, capacitors and SKY130 1.8 V FETs (sky130_fd_pr__nfet_01v8, sky130_fd_pr__pfet_01v8)
.ends
CheckCornerRuleHow the grader measures it
Gain at 1 MHztt, ss, ff, sf, fs11.28 to 12.72 (12 ± 6 %)ac: |v(out)| at 1 MHz with AC 1 on in
Output leveltt, ss, ff, sf, fs0.6 V to 1.1 Vop: v(out)
Gain at 10 kHztt≥ 95 % of the gain at 1 MHzac: |v(out)| at 10 kHz over |v(out)| at 1 MHz
Input impedance at 100 kHztt≥ 500 kΩac: 1 V over the current drawn from the source
Supply currenttt≤ 60 µAop: the current out of the 1.8 V source, bias network included

The grader runs its bench five times, with .lib sky130 tt, ss, ff, sf and fs (one run per corner, 27 °C). The signal source rests at 0 V and has no resistance. The load is 0.2 pF.

Examples

Example 1

The Starter: A Divider Tuned at Tt
Design
.subckt biasamp in out vdd
* The amplifying transistor M1 and its load RD are given. The bias network is yours to change.
* the gate voltage comes from a divider on the supply, tuned at tt
R1 vdd g 1.4517meg
R2 g 0 1meg
C1 in g 150p
RD vdd out 29k
XM1 out g 0 0 sky130_fd_pr__nfet_01v8 W=8 L=0.5
.ends
Measured by the grader
Gain at 1 MHz: 12.09 (needs 11.28 to 12.72)
Gain at 1 MHz at ss: 10.6 (needs 11.28 to 12.72)
Gain at 1 MHz at ff: 13.02 (needs 11.28 to 12.72)
Gain at 1 MHz at sf: 12.62 (needs 11.28 to 12.72)
Gain at 1 MHz at fs: 9.639 (needs 11.28 to 12.72)
Output level: 791.9 mV (needs 600 mV to 1.1 V)
Output level at ss: 1.002 V (needs 600 mV to 1.1 V)
Output level at ff: 557.8 mV (needs 600 mV to 1.1 V)
Output level at sf: 407.5 mV (needs 600 mV to 1.1 V)
Output level at fs: 1.123 V (needs 600 mV to 1.1 V)
Gain at 10 kHz over gain at 1 MHz: 0.9849 (needs ≥ 0.95)
Input impedance at 100 kHz: 592.3 kΩ (needs ≥ 500 kΩ)
Supply current: 35.49 µA (needs ≤ 60 µA)

The gain is right at tt and misses at ss, ff and fs. A fixed gate voltage gives a slow transistor too little current and a fast one too much. The output level moves with the current.

Example 2

Feedback Bias with a 1 MΩ Resistor
Design
.subckt biasamp in out vdd
RF out g 1meg
C1 in g 40p
RD vdd out 29k
XM1 out g 0 0 sky130_fd_pr__nfet_01v8 W=8 L=0.5
.ends
Measured by the grader
Gain at 1 MHz: 12.02 (needs 11.28 to 12.72)
Gain at 1 MHz at ss: 11.84 (needs 11.28 to 12.72)
Gain at 1 MHz at ff: 12.19 (needs 11.28 to 12.72)
Gain at 1 MHz at sf: 12.15 (needs 11.28 to 12.72)
Gain at 1 MHz at fs: 11.87 (needs 11.28 to 12.72)
Output level: 738.5 mV (needs 600 mV to 1.1 V)
Output level at ss: 755.7 mV (needs 600 mV to 1.1 V)
Output level at ff: 721.4 mV (needs 600 mV to 1.1 V)
Output level at sf: 710.5 mV (needs 600 mV to 1.1 V)
Output level at fs: 766.6 mV (needs 600 mV to 1.1 V)
Gain at 10 kHz over gain at 1 MHz: 0.1896 (needs ≥ 0.95)
Input impedance at 100 kHz: 86.4 kΩ (needs ≥ 500 kΩ)
Supply current: 36.6 µA (needs ≤ 60 µA)

The stage now finds its own gate voltage, so the gain and the level hold in every corner. But the resistor is tied to the output, which moves 12 times as far as the gate. The source sees only about 86 kΩ, and the corner of the coupling capacitor rises far above 10 kHz.

Example 3

A Mirror with a Reference Transistor of Another Length
Design
.subckt biasamp in out vdd
RREF vdd b 68k
XM0 b b 0 0 sky130_fd_pr__nfet_01v8 W=1.2 L=0.15
RB b g 2meg
C1 in g 40p
RD vdd out 29k
XM1 out g 0 0 sky130_fd_pr__nfet_01v8 W=8 L=0.5
.ends
Measured by the grader
Gain at 1 MHz: 2.416 (needs 11.28 to 12.72)
Gain at 1 MHz at ss: 1.187 (needs 11.28 to 12.72)
Gain at 1 MHz at ff: 7.193 (needs 11.28 to 12.72)
Gain at 1 MHz at sf: 10.02 (needs 11.28 to 12.72)
Gain at 1 MHz at fs: 1.041 (needs 11.28 to 12.72)
Output level: 137.3 mV (needs 600 mV to 1.1 V)
Output level at ss: 109.7 mV (needs 600 mV to 1.1 V)
Output level at ff: 201.6 mV (needs 600 mV to 1.1 V)
Output level at sf: 258.7 mV (needs 600 mV to 1.1 V)
Output level at fs: 103.4 mV (needs 600 mV to 1.1 V)
Gain at 10 kHz over gain at 1 MHz: 0.9809 (needs ≥ 0.95)
Input impedance at 100 kHz: 2.004 MΩ (needs ≥ 500 kΩ)
Supply current: 72.06 µA (needs ≤ 60 µA)

The reference transistor has W/L = 8 and M1 has 16, so the copy looks like a factor of two. A 0.15 µm transistor needs a different gate voltage from a 0.5 µm one for the same current density. M1 gets too much gate voltage and falls out of saturation.

Constraints and Contract

  • The netlist defines .subckt biasamp in out vdd ... .ends exactly once, with these ports in this order.
  • Inside biasamp: resistors, capacitors and X instances of sky130_fd_pr__nfet_01v8 or sky130_fd_pr__pfet_01v8, with comments and .param lines. No V or I sources.
  • The grader writes the .lib line for each corner itself. Everything outside biasamp is replaced by its bench.

Hints

Hint 1

A divider gives the same gate voltage in every corner. The transistor needs a different one in each. What kind of part knows which?

Hint 2

A resistor from the supply into a diode-connected transistor makes a current that changes little with the corner. Match that transistor to M1 in everything but its width.

Hint 3

The source rests at 0 V, so a capacitor must carry the signal to the gate. Check the resistance it sees, then its corner against 10 kHz.

What the grader checks: The grader places biasamp under its own bench: 1.8 V, a source at 0 V and 0.2 pF. It measures the output level and supply current (op) and the gain and input impedance (ac). It runs at tt, ss, ff, sf and fs, at 27 °C. Engine: ngspice 42 (libngspice0 42+ds-3build1) with the pinned SKY130 models, measured 2026-11-12 with tools/spice-judge.mjs. Resistors keep their value in every corner of this library. It does not check temperature, supply variation, mismatch or large-signal swing.

Run simulates your netlist as written, with your own analyses and measurements. Submit sends it to the grader, which keeps only the subcircuit biasamp and makes 5 ngspice runs. 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