E6.2.1 Predict the Closed Loop

MediumImplementngspice 42 + SKY130 · serverReview the topic

Design the feedback network that gives a one-stage OTA a gain of exactly 5. The OTA has little gain to spare, and the network loads it.

Circuit context: OTA-A, the five-transistor OTA of lesson E5.3, in a non-inverting loop with a gain of 5, driving 1 pF. Set the gain of a sensor amplifier built on a one-stage OTA to within 0.5 %.

A sensor signal needs a gain of 5.000, within 0.5 %. The amplifier is OTA-A in a non-inverting loop, driving 1 pF.

You design only the feedback network: the subcircuit fbnet, made of resistors and capacitors.

Its port out is the OTA's output, fb is the − input, and ref is the 0.9 V reference.

Lesson E6.2 measured OTA-A: an open-loop gain of 136.7 and an output resistance of 841.7 kΩ.

So the ideal ratio is not enough, and the resistors themselves change the gain around the loop.

The loop must also keep a loop gain of at least 20. Then a drift in the OTA's gain moves the closed loop little.

The response must reach 3 MHz and stay flat within 0.5 dB.

What the Grader Measures

Your subcircuit fbnet (ports out, fb, ref) under the grader's own bench, one run per corner (tt, ss, ff):

CheckCornerRule
Closed-loop gaintt5 V/V ± 0.5 %
Loop gaintt≥ 20
Bandwidthtt≥ 3 MHz
Peakingtt≤ 0.5 dB
Closed-loop gainss5 V/V ± 0.5 %
Closed-loop gainff5 V/V ± 0.5 %
Full specification
The subcircuit the grader tests (keep the name and the ports)
.subckt fbnet out fb ref
* resistors and capacitors between the output, the - input and the reference
.ends
CheckCornerRuleHow the grader measures it
Closed-loop gaintt, ss, ff5 ± 0.5 %ac at 10 Hz: the output for 1 V on the + input
Loop gain Ttt≥ 20ac at 10 Hz: the loop opened at the − input with 1 TH and 1 F
Bandwidthtt≥ 3 MHzac: where the closed-loop gain is 3 dB below its 10 Hz value
Peakingtt≤ 0.5 dBac: the largest closed-loop gain over its 10 Hz value

The op-amp is OTA-A with its own 20 µA bias, on a 1.8 V supply.

Its + input sits at 0.9 V and its output drives 1 pF.

The loop-gain copy breaks the loop between fb and the − input, as lesson E6.2 does for its gain of two.

Examples

Example 1

The Starter: The Ideal Ratio with 80 kΩ and 20 kΩ
Design
.subckt fbnet out fb ref
RF out fb 80k
RG fb ref 20k
.ends
Measured by the grader
Closed-loop gain: 3.714 V/V (needs 5 V/V ± 0.5 %)
Loop gain: 2.903 (needs ≥ 20)
Bandwidth: 7.128 MHz (needs ≥ 3 MHz)
Peaking: 0 dB (needs ≤ 0.5 dB)
Closed-loop gain at ss: 3.706 V/V (needs 5 V/V ± 0.5 %)
Closed-loop gain at ff: 3.721 V/V (needs 5 V/V ± 0.5 %)

The 100 kΩ network loads the OTA's output. The loop gain is 2.9, so the gain is far below 1/β.

Example 2

The Ideal Ratio with 16 MΩ and 4 MΩ
Design
.subckt fbnet out fb ref
RF out fb 16meg
RG fb ref 4meg
.ends
Measured by the grader
Closed-loop gain: 4.808 V/V (needs 5 V/V ± 0.5 %)
Loop gain: 26.19 (needs ≥ 20)
Bandwidth: 4.527 MHz (needs ≥ 3 MHz)
Peaking: 1.6 dB (needs ≤ 0.5 dB)
Closed-loop gain at ss: 4.809 V/V (needs 5 V/V ± 0.5 %)
Closed-loop gain at ff: 4.807 V/V (needs 5 V/V ± 0.5 %)

The load on the output is light and the loop gain is high. The gain is still 3.8 % low, and the response peaks by 1.6 dB.

Example 3

A 240 kΩ Network Trimmed for the Gain
Design
.subckt fbnet out fb ref
RF out fb 200k
RG fb ref 40k
.ends
Measured by the grader
Closed-loop gain: 5.001 V/V (needs 5 V/V ± 0.5 %)
Loop gain: 5.053 (needs ≥ 20)
Bandwidth: 5.314 MHz (needs ≥ 3 MHz)
Peaking: 0 dB (needs ≤ 0.5 dB)
Closed-loop gain at ss: 4.996 V/V (needs 5 V/V ± 0.5 %)
Closed-loop gain at ff: 5.006 V/V (needs 5 V/V ± 0.5 %)

A ratio of 5 hides the loading and the gain is right. The loop gain is 5.05, so the gain follows every drift of A.

Constraints and Contract

  • The netlist defines .subckt fbnet out fb ref ... .ends exactly once, with these ports in this order.
  • Inside fbnet: resistors and capacitors only, with comments and .param lines.
  • The grader writes the .lib line for each corner itself. Everything outside fbnet is replaced by its bench.

Hints

Hint 1

The closed-loop gain is A/(1 + Aβ), and it must equal 5. With A near 100, β is not 1/5.

Hint 2

The network hangs on the output. With RF + RG beside 841.7 kΩ, the loaded gain is A × R/(R + ro).

Hint 3

Choose the resistance level for the loop gain first. Then trim the ratio for the gain, with a run.

Hint 4

Very large resistors meet the gate capacitance of the − input. Watch the peak of the response.

What the grader checks: The grader places fbnet around two copies of OTA-A at 27 °C. It measures the closed-loop gain at tt, ss and ff. It measures the loop gain, bandwidth and peaking at tt. 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 resistor tolerance, temperature, noise or the area of megohm resistors.

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

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