Design a 100 kΩ transimpedance amplifier on SKY130 for a 1 pF photodiode. It must be flat within 0.5 dB to beyond 20 MHz at three corners, quiet, and under 80 µA.
Circuit context: A 100 kΩ transimpedance amplifier on SKY130 between a 1 pF photodiode model and a 0.5 pF load, from a 1.8 V supply. Design a photodiode amplifier that stays flat to 20 MHz at three corners.
An optical receiver needs 100 kΩ of transimpedance. The photodiode has 1 pF of capacitance. The next stage loads the output with 0.5 pF.
Build the amplifier in the subcircuit tia from SKY130 1.8 V transistors, resistors and capacitors. The starter is one inverter with a 100 kΩ resistor around it.
The starter fails two checks. Its transimpedance is 97.6 kΩ, and its response peaks by 6.8 dB.
The grader measures five things. The bandwidth and the peaking must hold at the tt, ss and ff corners with one set of values.
What the Grader Measures
Your subcircuit tia (ports in, out, vdd) under the grader's own bench, one run per corner (tt, ss, ff):
| Check | Corner | Rule |
|---|---|---|
| Transimpedance | tt | 99 kΩ to 101 kΩ |
| −3 dB bandwidth | tt | ≥ 20 MHz |
| Peaking | tt | ≤ 0.5 dB |
| Input noise current | tt | ≤ 1.2 pA/√Hz |
| Supply current | tt | ≤ 80 µA |
| −3 dB bandwidth | ss | ≥ 20 MHz |
| Peaking | ss | ≤ 0.5 dB |
| −3 dB bandwidth | ff | ≥ 20 MHz |
| Peaking | ff | ≤ 0.5 dB |
Full specification
.subckt tia in out vdd
* SKY130 1.8 V FETs (sky130_fd_pr__nfet_01v8, sky130_fd_pr__pfet_01v8), resistors and capacitors
.ends
| Check | Corner | Rule | How the grader measures it |
|---|---|---|---|
| Transimpedance | tt | 99 kΩ to 101 kΩ | 1 A of AC from the photodiode source: |v(out)| at 10 kHz |
| −3 dB bandwidth | tt, ss, ff | ≥ 20 MHz | the first frequency where |v(out)| is 3 dB under its 10 kHz value |
| Peaking | tt, ss, ff | ≤ 0.5 dB | the highest |v(out)| up to 1 GHz, in dB above its 10 kHz value |
| Input noise current | tt | ≤ 1.2 pA/√Hz | noise with the photodiode source as input: the highest inoise_spectrum from 1 MHz to 20 MHz |
| Supply current | tt | ≤ 80 µA | op: the current out of the 1.8 V supply |
The grader runs at 27 °C with a 1.8 V supply. The photodiode is a current source beside 1 pF, because the model library has no diode.
Examples
Example 1
The Starter: 8/0.3 Under 16/0.3 with 100 kΩ and No C_F- Design
.subckt tia in out vdd * a 100 k resistor around one inverter: the gain is low and the response peaks XMN out in 0 0 sky130_fd_pr__nfet_01v8 W=8 L=0.3 XMP out in vdd vdd sky130_fd_pr__pfet_01v8 W=16 L=0.3 RF out in 100k .ends
- Measured by the grader
Transimpedance: 97.63 kΩ (needs 99 kΩ to 101 kΩ) −3 dB bandwidth: 34.79 MHz (needs ≥ 20 MHz) Peaking: 6.808 dB (needs ≤ 0.5 dB) Input noise current: 952.1 fA/√Hz (needs ≤ 1.2 pA/√Hz) Supply current: 43.09 µA (needs ≤ 80 µA) −3 dB bandwidth at ss: 31.49 MHz (needs ≥ 20 MHz) Peaking at ss: 7.128 dB (needs ≤ 0.5 dB) −3 dB bandwidth at ff: 38 MHz (needs ≥ 20 MHz) Peaking at ff: 6.351 dB (needs ≤ 0.5 dB)
The gain is 2.4 % low, because the inverter's gain is finite. The response peaks at every corner, most at ss.
Example 2
The Starter with a 200 fF Capacitor Across the Resistor- Design
.subckt tia in out vdd XMN out in 0 0 sky130_fd_pr__nfet_01v8 W=8 L=0.3 XMP out in vdd vdd sky130_fd_pr__pfet_01v8 W=16 L=0.3 RF out in 100k CF out in 200f .ends
- Measured by the grader
Transimpedance: 97.63 kΩ (needs 99 kΩ to 101 kΩ) −3 dB bandwidth: 7.894 MHz (needs ≥ 20 MHz) Peaking: 0 dB (needs ≤ 0.5 dB) Input noise current: 1.101 pA/√Hz (needs ≤ 1.2 pA/√Hz) Supply current: 43.09 µA (needs ≤ 80 µA) −3 dB bandwidth at ss: 8.056 MHz (needs ≥ 20 MHz) Peaking at ss: 0 dB (needs ≤ 0.5 dB) −3 dB bandwidth at ff: 7.75 MHz (needs ≥ 20 MHz) Peaking at ff: 0 dB (needs ≤ 0.5 dB)
The peak is gone, and so is the band. The response now rolls off near 1/(2π·R_{F}·C_{F}).
Example 3
The Starter's Inverter with a T-Network of 10 kΩ, 10 kΩ and 305 Ω- Design
.subckt tia in out vdd XMN out in 0 0 sky130_fd_pr__nfet_01v8 W=8 L=0.3 XMP out in vdd vdd sky130_fd_pr__pfet_01v8 W=16 L=0.3 R1 in m 10k R2 out m 10k R3 m k 305 C3 k 0 1u .ends
- Measured by the grader
Transimpedance: 78.07 kΩ (needs 99 kΩ to 101 kΩ) −3 dB bandwidth: 17.11 MHz (needs ≥ 20 MHz) Peaking: 0.0005294 dB (needs ≤ 0.5 dB) Input noise current: 2.022 pA/√Hz (needs ≤ 1.2 pA/√Hz) Supply current: 43.09 µA (needs ≤ 80 µA) −3 dB bandwidth at ss: 16.36 MHz (needs ≥ 20 MHz) Peaking at ss: 0.000389 dB (needs ≤ 0.5 dB) −3 dB bandwidth at ff: 17.86 MHz (needs ≥ 20 MHz) Peaking at ff: 0.0006783 dB (needs ≤ 0.5 dB)
Small resistors in a T reach a large transimpedance on paper. Their current noise is large: 2.02 pA/√Hz here. The band is also too narrow.
Constraints and Contract
- The netlist defines .subckt tia in out vdd ... .ends exactly once, with these ports in this order.
- Inside tia: X instances of sky130_fd_pr__nfet_01v8 and sky130_fd_pr__pfet_01v8, resistors and capacitors. No sources.
- The grader writes the .lib line for each corner itself. Its bench replaces everything outside tia.
Hints
Hint 1
Fix the gain first. With a finite gain, the transimpedance is a little under RF. Measure how far under, then correct RF.
Hint 2
The peak means the loop has two poles and too little phase margin. A small capacitor across RF adds the zero that the lesson describes.
Hint 3
Step CF in the bench and watch both the peak and the bandwidth. Then try ss and ff: the slow corner peaks the most.
Hint 4
If no CF meets both limits, the inverter is too weak for the 0.5 pF load. More width gives more gm, at the cost of current.
What the grader checks: The grader places tia between a 1 pF photodiode model and a 0.5 pF load. It measures the transimpedance, bandwidth, peaking, input noise current and supply current at 27 °C. Engine: ngspice 42 (libngspice0 42+ds-3build1) with the lean SKY130 library, measured 2026-11-12 with tools/spice-judge.mjs. It does not check the step response, the output swing, supply rejection, mismatch or temperature. The photodiode model has no shot noise and no dark current.
Run simulates your netlist as written, with your own analyses and measurements. Submit sends it to the grader, which keeps only the subcircuit tia 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