Size a five-transistor OTA for a new brief. It has half the load, twice the speed, less current and a wider input range, at three corners.
Circuit context: A five-transistor OTA driving 1 pF from input levels of 0.65 V to 1.1 V, biased from a 1 µA reference. Size the error amplifier of a second bias loop that has half the load and less current than the first.
Lesson E5.7 sized an OTA for 10 MHz into 2 pF on 20 µA. A second block needs a different one.
The new load is 1 pF. The unity-gain frequency must be at least 20 MHz and the DC gain at least 40 dB.
Both must hold at input levels of 0.65 V and 1.1 V. A buffer made of the OTA needs 70° of phase margin.
The supply current is at most 16 µA, with the bias reference counted. Every line must hold at tt, ss and ff.
The bias line nb now carries 1 µA from the bench. The diode MB that receives it is inside ota.
The starter holds the lesson's sizes. On 1 µA they draw 8.9 µA and reach only 12.8 MHz at 0.65 V.
Follow the lesson's order: speed, current, width, length, then the input range. Each number is new.
What the Grader Measures
Your subcircuit ota (ports inp, inn, out, vdd, nb) under the grader's own bench, one run per corner (tt, ss, ff):
| Check | Corner | Rule |
|---|---|---|
| f_u at 0.65 V | tt | ≥ 20 MHz |
| A_0 at 1.1 V | tt | ≥ 40 dB |
| Supply current | tt | ≤ 16 µA |
| f_u at 1.1 V | tt | ≥ 20 MHz |
| A_0 at 0.65 V | tt | ≥ 40 dB |
| Phase margin as a buffer | tt | ≥ 70° |
| f_u at 0.65 V | ss | ≥ 20 MHz |
| A_0 at 1.1 V | ss | ≥ 40 dB |
| Supply current | ss | ≤ 16 µA |
| f_u at 0.65 V | ff | ≥ 20 MHz |
| A_0 at 1.1 V | ff | ≥ 40 dB |
| Supply current | ff | ≤ 16 µA |
Full specification
.subckt ota inp inn out vdd nb
* MB (the diode on nb), the tail M5, the pair M1 and M2, the mirror M3 and M4
.ends
| Line of the brief | Corner | Rule | How the grader measures it |
|---|---|---|---|
| fu at 0.65 V | tt, ss, ff | ≥ 20 MHz | ac: where the open-loop gain crosses 0 dB, 1 pF load |
| A0 at 1.1 V | tt, ss, ff | ≥ 40 dB | ac: the open-loop gain at 10 Hz |
| Supply current | tt, ss, ff | ≤ 16 µA | op at 1.1 V: the OTA's supply current plus the 1 µA reference |
| fu at 1.1 V | tt | ≥ 20 MHz | as at 0.65 V |
| A0 at 0.65 V | tt | ≥ 40 dB | as at 1.1 V |
| Phase margin as a buffer | tt | ≥ 70° | 180° plus the open-loop phase at fu, at 0.65 V |
The bench is lesson E5.7's inductor bench. One copy of ota sits at 0.65 V and a second at 1.1 V.
Each copy has its own 1 µA reference into nb and its own 1.8 V supply. The grader runs at 27 °C.
Examples
Example 1
The Starter: The Lesson's Sizes on the 1 µA Reference- Design
.subckt ota inp inn out vdd nb XMB nb nb 0 0 sky130_fd_pr__nfet_01v8 W=8 L=2 XM5 tail nb 0 0 sky130_fd_pr__nfet_01v8 W=8 L=2 m=8 XM1 x inp tail 0 sky130_fd_pr__nfet_01v8 W=40 L=1 XM2 out inn tail 0 sky130_fd_pr__nfet_01v8 W=40 L=1 XM3 x x vdd vdd sky130_fd_pr__pfet_01v8 W=4 L=1 XM4 out x vdd vdd sky130_fd_pr__pfet_01v8 W=4 L=1 .ends
- Measured by the grader
f_u at 0.65 V: 12.79 MHz (needs ≥ 20 MHz) A_0 at 1.1 V: 41.86 dB (needs ≥ 40 dB) Supply current: 8.886 µA (needs ≤ 16 µA) f_u at 1.1 V: 14.21 MHz (needs ≥ 20 MHz) A_0 at 0.65 V: 42.09 dB (needs ≥ 40 dB) Phase margin as a buffer: 83.03° (needs ≥ 70°) f_u at 0.65 V at ss: 12.49 MHz (needs ≥ 20 MHz) A_0 at 1.1 V at ss: 41.93 dB (needs ≥ 40 dB) Supply current at ss: 8.854 µA (needs ≤ 16 µA) f_u at 0.65 V at ff: 13.02 MHz (needs ≥ 20 MHz) A_0 at 1.1 V at ff: 41.8 dB (needs ≥ 40 dB)
Eight copies of a 1 µA diode give half the lesson's tail current. The gain holds, and the speed is far short.
Example 2
Twelve Copies and a 120/1 Pair- Design
.subckt ota inp inn out vdd nb XMB nb nb 0 0 sky130_fd_pr__nfet_01v8 W=8 L=2 XM5 tail nb 0 0 sky130_fd_pr__nfet_01v8 W=8 L=2 m=12 XM1 x inp tail 0 sky130_fd_pr__nfet_01v8 W=120 L=1 XM2 out inn tail 0 sky130_fd_pr__nfet_01v8 W=120 L=1 XM3 x x vdd vdd sky130_fd_pr__pfet_01v8 W=4 L=1 XM4 out x vdd vdd sky130_fd_pr__pfet_01v8 W=4 L=1 .ends
- Measured by the grader
f_u at 0.65 V: 19.58 MHz (needs ≥ 20 MHz) A_0 at 1.1 V: 41.55 dB (needs ≥ 40 dB) Supply current: 12.87 µA (needs ≤ 16 µA) f_u at 1.1 V: 20.74 MHz (needs ≥ 20 MHz) Phase margin as a buffer: 74.25° (needs ≥ 70°) f_u at 0.65 V at ss: 19.27 MHz (needs ≥ 20 MHz) f_u at 0.65 V at ff: 19.85 MHz (needs ≥ 20 MHz)
The pair's g_{m} is above the 125.7 µS floor at 0.65 V. The output node carries more than 1 pF, so f_{u} is 19.6 MHz.
Example 3
Fifteen Copies and a 30/1 Pair- Design
.subckt ota inp inn out vdd nb XMB nb nb 0 0 sky130_fd_pr__nfet_01v8 W=8 L=2 XM5 tail nb 0 0 sky130_fd_pr__nfet_01v8 W=8 L=2 m=15 XM1 x inp tail 0 sky130_fd_pr__nfet_01v8 W=30 L=1 XM2 out inn tail 0 sky130_fd_pr__nfet_01v8 W=30 L=1 XM3 x x vdd vdd sky130_fd_pr__pfet_01v8 W=4 L=1 XM4 out x vdd vdd sky130_fd_pr__pfet_01v8 W=4 L=1 .ends
- Measured by the grader
f_u at 0.65 V: 20.91 MHz (needs ≥ 20 MHz) A_0 at 1.1 V: 42.08 dB (needs ≥ 40 dB) Supply current: 15.71 µA (needs ≤ 16 µA) f_u at 1.1 V: 24.27 MHz (needs ≥ 20 MHz) Phase margin as a buffer: 82.68° (needs ≥ 70°) f_u at 0.65 V at ss: 19.65 MHz (needs ≥ 20 MHz) A_0 at 1.1 V at ss: 42.14 dB (needs ≥ 40 dB) Supply current at ss: 15.65 µA (needs ≤ 16 µA) f_u at 0.65 V at ff: 21.82 MHz (needs ≥ 20 MHz)
Every line holds at tt. At ss the thresholds rise, the tail starves at 0.65 V, and f_{u} falls to 19.6 MHz.
Constraints and Contract
- The netlist defines .subckt ota inp inn out vdd nb ... .ends exactly once, with these ports in this order.
- Inside ota: resistors, capacitors and X instances of sky130_fd_pr__nfet_01v8 or sky130_fd_pr__pfet_01v8. You may use m= for copies. No sources.
- The grader feeds 1 µA into nb and writes the .lib line for each corner itself. Everything outside ota is replaced by its bench.
Hints
Hint 1
Start from fu = gm1/(2πCL). The output node carries more than CL, so the hand value of gm1 is a floor.
Hint 2
The current budget and gm1 give the gm/ID the pair must reach. The lesson's chart turns that into a width.
Hint 3
The lesson's tail left saturation at 0.654 V at tt. This brief starts at 0.65 V and adds ss, where thresholds are higher.
Hint 4
A very wide pair is not free. Its capacitance loads the mirror node and the output, and the phase margin pays.
What the grader checks: The grader measures two copies of ota, at 0.65 V and 1.1 V, at tt, ss and ff, 27 °C. Engine: ngspice 42 (libngspice0 42+ds-3build1) with the pinned SKY130 models, measured 2026-11-12 with tools/spice-judge.mjs. It does not check temperature, supply spread, mismatch or slew rate.
Run simulates your netlist as written, with your own analyses and measurements. Submit sends it to the grader, which keeps only the subcircuit ota and makes 3 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