← Analog & Mixed-Signal Interviews

Interview Question · Code Reading

Gain of a Common-Source Stage

L0 FresherL1 Junioramplifier

The Question

The interviewer asks

This bench biases a common-source stage with a resistor load at mid-rail and runs AC. What gain do you expect, and what limits it?

spice
.lib sky130 tt
VDD vdd 0 1.8
RD vdd out 36k
XM1 out in 0 0 sky130_fd_pr__nfet_01v8 W=2 L=0.15
VIN in 0 dc 0.7 ac 1
CL out 0 1p
.control
save all @m.xm1.msky130_fd_pr__nfet_01v8[gm] @m.xm1.msky130_fd_pr__nfet_01v8[gds] @m.xm1.msky130_fd_pr__nfet_01v8[id] @m.xm1.msky130_fd_pr__nfet_01v8[vdsat]
dc VIN 0.3 1.2 0.0005
let gm = @m.xm1.msky130_fd_pr__nfet_01v8[gm]
let ro = 1/@m.xm1.msky130_fd_pr__nfet_01v8[gds]
let id = @m.xm1.msky130_fd_pr__nfet_01v8[id]
Reveal the Model Answer

The small-signal gain is -g_m(R_D ∥ r_o). Here g_m is about 0.32 mS and r_o about 63 kΩ for this short device. The measured gain is 7.3, well below g_m·R_D, because r_o is in parallel. At a fixed voltage across R_D, g_m·R_D equals (g_m/I_D)·V_RD, where g_m/I_D is transconductance per unit current. So gain is bought with voltage headroom, not current. With a load capacitor, the gain-bandwidth product is about g_m/(2πC_L), whatever R_D is.

The Common-Source Stage of the LabThe input drives the gate, the source sits at ground, and RD feeds the drain from the 1.8 V supply. The output is the drain.
The common-source stage of the lab+VDD1.8 VRD​36 kΩM1W/L = 2/0.15VIN0.7815 V + acCL​1 pFoutout0.900 Vin0.7815 V
  1. Bias current

    At VIN = 0.7815 V, M1 carries 25.00 µA. The same current crosses RD and drops 0.9 V, so the output sits at 0.9 V.

    ID = 25 µA

  2. The input rises

    A rise of the gate voltage raises the current. More current drops more voltage across RD, so the output falls: the stage inverts.

    ID + id

  3. The load

    CL = 1 pF stands for whatever the output drives. It sets the bandwidth below.

Read the circuit as text
  • R_D resistor (36 kΩ): pin 1 → VDD, pin 2 → out
  • M1 NMOS transistor (W/L = 2/0.15): gate → in, drain → out, source → 0
  • VIN voltage source (0.7815 V + ac): + → in, − → 0
  • C_L capacitor (1 pF): pin 1 → out, pin 2 → 0
  • out port: terminal → out
  • out = 0.900 V
  • in = 0.7815 V

Body tied to the source at ground. The node voltages are the operating point of the lab run.

DC sweepTransfer Curve and Its SlopeAbove: v(out) against the input. Below: the gain −dv(out)/dVIN, the slope as a positive number.
  • v(out)
  • gain
00.5 V1.0 V1.5 V2.0 VOutput02468Gain (slope)0.3 V0.4 V0.5 V0.6 V0.7 V0.8 V0.9 V1.0 V1.1 V1.2 VInput VINbiastriode edgev(out) = 0.900 V00.5 V1.0 V1.5 V2.0 VOutput02468Gain (slope)0.4 V0.6 V0.8 V1.0 V1.2 VInput VINbiastriode edgev(out) = 0.900 V
  1. Input VIN 600 mVv(out) = 1.733 V · gain = 1.359

    At 0.6 V M1 carries only 1.9 µA. The output is still near the supply, at 1.73 V, and the slope is only 1.4; below this it falls toward zero.

  2. Input VIN 781.5 mVv(out) = 900 mV · gain = 7.315

    The bias: 0.7815 V in, 0.9 V out. The slope here is the small-signal gain, 7.32. A wiggle of 1 mV at the input moves the output 7.3 mV the other way.

  3. Input VIN 900.5 mVv(out) = 137.2 mV · gain = 2.11

    Here the output has fallen to M1's own saturation voltage VDsat (0.137 V). Above this input M1 is in triode, and the gain collapses toward zero.

    More context

    The swing below the bias is therefore about 0.9 − 0.14 = 0.76 V; above it the output can rise to the 1.8 V supply.

Read the plot as a table
Input VINv(out)gain
300 mV1.8 V0.001433
400 mV1.799 V0.01652
500 mV1.793 V0.1726
600 mV1.733 V1.359
700 mV1.425 V5.125
781.5 mV900 mV7.315
800 mV763.3 mV7.451
900 mV138.2 mV2.15
900.5 mV137.2 mV2.11
1 V64 mV0.2922
1.1 V45.04 mV0.1237
1.2 V35.82 mV0.06885

The measured transfer curve. Its slope at the bias point is the gain, 7.32.

The common-source bench from lesson E3.2: bias by a DC sweep, then op and AC.

SPICEngspice 42 · simulator service
Edit the netlist, then run it
Expected: gm_b = 3.228319e-04 ro_b = 6.264115e+04 gain_lf = 7.315344e+00 f3 = 6.924588e+06 fu = 5.016066e+07

Self-Check

Tick each key point you covered in your answer.

What Interviewers Listen For (Fresher)

A good fresher answer writes the gain as -g_m(R_D ∥ r_o). It explains that the minus sign means the stage inverts.

Cross-Questions

Where the interviewer goes next. Open a node to practise that follow-up.

WhyWhat IfProve ItCompareScale It

  1. Gain of a Common-Source Stage
  2. WhyWhy Gain Is Bought with VoltageL1 JuniorL2 Mid-Level

    Why does a resistor-loaded stage's gain depend on the voltage across the resistor rather than the bias current?

    Reveal the Model Answer

    g_m·R_D can be written as (g_m/I_D)·(I_D·R_D), and I_D·R_D is just the DC drop across the load. For a given g_m/I_D, more current with a proportionally smaller R_D gives the same gain. The supply limits that drop, which is why high-gain stages use current-source loads instead of resistors.

    Self-Check

    Tick each key point you covered in your answer.

  3. CompareIntrinsic Gain and Channel LengthL1 JuniorL2 Mid-Level

    What is a transistor's intrinsic gain, and why does a longer channel raise it?

    Reveal the Model Answer

    Intrinsic gain g_m·r_o is the most one transistor can give, with an ideal current-source load. It equals (g_m/I_D)·V_A, where g_m/I_D is transconductance per unit current. The Early voltage V_A grows with length, because the drain has less influence on a long channel. On sky130 at about 20 µA, V_A is 1.17 V at 0.15 µm and 22.8 V at 2 µm. So intrinsic gain rose from 16.7 to 131. Longer devices cost capacitance and speed.

    DC sweepID and ro of a Short and a Long DeviceAbove: drain current. Below: ro = 1/gds on a log axis. Both against VDS at VGS = 0.9 V.
    • id_short
    • id_long
    • ro_short
    • ro_long
    -10 µA010 µA20 µA30 µADrain current1 kΩ10 kΩ100 kΩ1 MΩ10 MΩOutput resistance ro = 1/gds00.2 V0.4 V0.6 V0.8 V1.0 V1.2 V1.4 V1.6 V1.8 VDrain-source voltage VDS0.6/0.15: 110 kΩ3.2/2: 1.07 MΩ-10 µA010 µA20 µA30 µADrain current1 kΩ100 kΩ10 MΩOutput resistance ro = 1/gds00.5 V1.0 V1.5 VDrain-source voltage VDS0.6/0.15: 110 kΩ3.2/2: 1.07 MΩ
    1. Drain-source voltage VDS 300 mVid_short = 13.03 µA · id_long = 20.7 µA · ro_short = 86.96 kΩ · ro_long = 79.86 kΩ

      At 0.3 V the long device has only just saturated (its VDsat is 0.28 V), and ro is only 80 kΩ. The short one, past its 0.13 V VDsat, has 87 kΩ.

    2. Drain-source voltage VDS 900 mVid_short = 18.84 µA · id_long = 22.15 µA · ro_short = 109.7 kΩ · ro_long = 1.071 MΩ

      At the operating point the long device's ro is 1.07 MΩ, almost ten times the short one's 110 kΩ, at about the same current.

    3. Drain-source voltage VDS 1.5 Vid_short = 24.23 µA · id_long = 22.63 µA · ro_short = 112.2 kΩ · ro_long = 1.38 MΩ

      At 1.5 V the long device reaches 1.38 MΩ, while the short one stays near 112 kΩ. ro depends on VDS, so quote it at the operating point.

    Read the plot as a table
    Drain-source voltage VDSid_shortid_longro_shortro_long
    0 V0 A0 A7.732 kΩ7.273 kΩ
    200 mV11.7 µA18.04 µA60.97 kΩ22.36 kΩ
    300 mV13.03 µA20.7 µA86.96 kΩ79.86 kΩ
    400 mV14.1 µA21.39 µA97.48 kΩ270 kΩ
    600 mV16.06 µA21.82 µA105.6 kΩ702.5 kΩ
    800 mV17.92 µA22.05 µA108.8 kΩ975.7 kΩ
    900 mV18.84 µA22.15 µA109.7 kΩ1.071 MΩ
    1 V19.75 µA22.24 µA110.4 kΩ1.149 MΩ
    1.2 V21.55 µA22.41 µA111.3 kΩ1.266 MΩ
    1.4 V23.34 µA22.56 µA112 kΩ1.349 MΩ
    1.5 V24.23 µA22.63 µA112.2 kΩ1.38 MΩ
    1.6 V25.13 µA22.71 µA112.3 kΩ1.403 MΩ
    1.8 V26.91 µA22.85 µA112.1 kΩ1.42 MΩ

    A short and a long sky130 device at about the same current. The long one has almost ten times the ro.

    Self-Check

    Tick each key point you covered in your answer.

    What Interviewers Listen For (Junior)

    A good junior answer defines g_m·r_o and links r_o to channel-length modulation. It says a longer device gives more gain.

    Spec Misquote

    "Use λ = 0.1 per volt from the textbook to get r_o."

    λ is a fit for one length at one bias. On sky130 the Early voltage changes about twentyfold between 0.15 µm and 2 µm, so measure r_o at your operating point.

    Source ASIC Point lesson E2.4 (measured)

    Half-Truth

    "A longer device always makes the amplifier slower."

    At a fixed g_m/I_D and load, the unity-gain frequency g_m/(2πC_L) stays the same while gain rises. What falls is the device's own transit frequency and the speed of internal nodes.

    Source ASIC Point lesson E3.3

  4. WhyReading the Early Voltage from a CurveL1 JuniorL2 Mid-Level

    How do you extract the Early voltage and r_o from a simulated I_D-V_DS curve?

    Reveal the Model Answer

    In saturation, take the slope of the curve, g_ds, at the operating point; r_o is its inverse. Extend the tangent back to zero current: it meets the V_DS axis at -V_A, so V_A = I_D/g_ds - V_DS and r_o ≈ V_A/I_D. Do it at the bias you will use, because both change with current and voltage.

    DC sweepA 0.6/0.15 µm NMOS Against the λ = 0.1 V−1 ModelDrain current against drain voltage at VGS = 0.9 V. The dashed line is the textbook model through the same point at 0.9 V.
    • id
    • id_lambda
    05 µA10 µA15 µA20 µA25 µA30 µADrain current00.2 V0.4 V0.6 V0.8 V1.0 V1.2 V1.4 V1.6 V1.8 VDrain-source voltage VDSoperating point: 18.8 µA05 µA10 µA15 µA20 µA25 µA30 µADrain current00.5 V1.0 V1.5 VDrain-source voltage VDSoperating point: 18.8 µA
    1. Drain-source voltage VDS 900 mVid = 18.84 µA · id_lambda = 18.84 µA

      The model and the device agree at the operating point, 18.8 µA at VDS = 0.9 V. Their slopes do not.

    2. Drain-source voltage VDS 1.8 Vid = 26.91 µA · id_lambda = 20.39 µA

      At 1.8 V the device carries 26.9 µA; the λ = 0.1 V−1 line predicts 20.4 µA. The real slope is about five times steeper.

    Read the plot as a table
    Drain-source voltage VDSidid_lambda
    0 V0.000002267 fA17.28 µA
    200 mV11.7 µA17.63 µA
    400 mV14.1 µA17.97 µA
    600 mV16.06 µA18.32 µA
    800 mV17.92 µA18.67 µA
    900 mV18.84 µA18.84 µA
    1 V19.75 µA19.01 µA
    1.2 V21.55 µA19.36 µA
    1.4 V23.34 µA19.7 µA
    1.6 V25.13 µA20.05 µA
    1.8 V26.91 µA20.39 µA

    A short device against the textbook λ model. The real slope, and so ro, must be read from the measured curve.

    Self-Check

    Tick each key point you covered in your answer.

  5. Prove ItSolve E2.4.1: The Tail Current That Followed Its DrainSimulator-graded

    Show it, don't just say it: this Silicon Lab problem is graded by the simulator.

    Open Problem E2.4.1

  6. CompareThe Cascode and Its PriceL1 JuniorL2 Mid-Level

    Your gain stage needs far more output resistance. You consider a cascode. What does it buy, and what does it cost?

    Reveal the Model Answer

    A common-gate device on top holds the lower drain nearly still. The output resistance becomes about (g_m2 + g_mb2)·r_o2·r_o1, so the top device's intrinsic gain multiplies r_o1. In the lesson that was 71 times one device at the same output voltage. The price is headroom. The output must stay above the lower drain plus the top device's V_Dsat. On a 1.8 V supply, that is the real limit.

    A Cascode Current SinkM1 sets the current from its gate voltage. M2, gate at VB, sits on M1's drain and passes the current up to the output.
    A cascode current sink++outM2W/L = 4/0.5M1W/L = 4/0.5VB1.2 VVIN0.75 Vout1.200 Vx0.380 V
    1. One current through the stack

      M1 sets 18.36 µA from its 0.75 V gate. M2 has no other path, so the same current flows through it and out of the output.

      18.36 µA

    2. M2 holds node x

      M2's gate is fixed at 1.2 V, and at a fixed current its VGS barely changes. So its source, node x, stays near 1.2 − 0.82 = 0.38 V.

    3. The output moves; x does not

      Raise the output from 0.6 V to 1.2 V and node x moves only 6.8 mV, from 0.373 V to 0.380 V. M1 sees almost the same VDS, so its current hardly changes.

    Read the circuit as text
    • out port: terminal → out
    • M2 NMOS transistor (W/L = 4/0.5): gate → n1, drain → out, source → x
    • M1 NMOS transistor (W/L = 4/0.5): gate → n2, drain → x, source → 0
    • VB voltage source (1.2 V): + → n1, − → 0
    • VIN voltage source (0.75 V): + → n2, − → 0
    • out = 1.200 V
    • x = 0.380 V

    Both bodies are at ground (the fourth node, 0). In the lab the output is held by VOUT and swept.

    DC sweepOutput Resistance Against Output VoltageRout = 1/(dI/dV) along the sweep, for one device and three cascode biases.
    • one device
    • V_B = 0.9 V
    • V_B = 1.2 V
    • V_B = 1.5 V
    1 kΩ10 kΩ100 kΩ1 MΩ10 MΩ100 MΩOutput resistance00.2 V0.4 V0.6 V0.8 V1.0 V1.2 V1.4 V1.6 V1.8 VOutput voltage10 MΩ1 kΩ10 kΩ100 kΩ1 MΩ10 MΩ100 MΩOutput resistance00.5 V1.0 V1.5 VOutput voltage10 MΩ
    1. Output voltage 400 mVone device = 293.4 kΩ · V_B = 0.9 V = 1.713 MΩ · V_B = 1.2 V = 427.7 kΩ · V_B = 1.5 V = 295.5 kΩ

      At 0.4 V, M2 of the 1.2 V cascode is not yet saturated, and its Rout is still close to one device's.

    2. Output voltage 610.3 mVone device = 415.1 kΩ · V_B = 0.9 V = 3.598 MΩ · V_B = 1.2 V = 10 MΩ · V_B = 1.5 V = 561.2 kΩ

      The VB = 1.2 V cascode passes 10 MΩ at 0.610 V, about 0.1 V above Vx + VDsat2.

    3. Output voltage 1.2 Vone device = 572 kΩ · V_B = 0.9 V = 6.338 MΩ · V_B = 1.2 V = 40.76 MΩ · V_B = 1.5 V = 47.44 MΩ

      At 1.2 V: 0.57 MΩ for one device, 6.3 MΩ at VB = 0.9 V, 40.8 MΩ at 1.2 V and 47.4 MΩ at 1.5 V.

    Read the plot as a table
    Output voltageone deviceV_B = 0.9 VV_B = 1.2 VV_B = 1.5 V
    0 V4.257 kΩ6.11 kΩ5.152 kΩ4.884 kΩ
    200 mV96.53 kΩ65.35 kΩ75.91 kΩ82.97 kΩ
    400 mV293.4 kΩ1.713 MΩ427.7 kΩ295.5 kΩ
    600 mV410.5 kΩ3.524 MΩ9.075 MΩ536 kΩ
    610.3 mV415.1 kΩ3.598 MΩ10 MΩ561.2 kΩ
    800 mV485.1 kΩ4.747 MΩ24.29 MΩ6.528 MΩ
    1 V536 kΩ5.642 MΩ34.07 MΩ31 MΩ
    1.2 V572 kΩ6.338 MΩ40.76 MΩ47.44 MΩ
    1.4 V597 kΩ6.86 MΩ45.56 MΩ58.36 MΩ
    1.6 V609.9 kΩ7.023 MΩ47.68 MΩ66.08 MΩ
    1.8 V605.4 kΩ6.412 MΩ40.83 MΩ70.13 MΩ

    Measured output resistance. Once the top device saturates, the cascode is about 71 times one device at 1.2 V.

    Self-Check

    Tick each key point you covered in your answer.

    What Interviewers Listen For (Junior)

    A good junior answer states how much the cascode raises the output resistance. It also names the price: one more V_Dsat of headroom.

    Half-Truth

    "Cascode everything for gain; it is free."

    Each cascode costs about one V_Dsat plus a margin of swing. On a 1.8 V supply a cascoded output and a cascoded load leave little room for the signal.

    Source ASIC Point lesson E3.7

    Missed Corner

    "Bias the cascode gate anywhere above the input."

    Too low and the lower device leaves saturation; too high and the swing shrinks. The bias must be about V_GS2 plus V_Dsat1, with a margin, and checked across corners.

    Source ASIC Point lesson E3.7

  7. WhyWhy the Cascode Multiplies r_oL1 JuniorL2 Mid-Level

    Explain in words why a cascode's output resistance is about g_m·r_o times larger than one device's.

    Reveal the Model Answer

    Push the output up by a volt. The top device's r_o lets a little extra current flow, which raises the voltage at the lower drain, its source. That rise turns the top device down by g_m times the rise, cancelling most of the extra current. The output must move about g_m·r_o times further for the same current change.

    DC sweepOutput Current Against Output VoltageOne NMOS and the cascode, both with the input gate at 0.75 V. A flat curve means a high output resistance.
    • one device
    • cascode, V_B = 1.2 V
    -5 µA05 µA10 µA15 µA20 µA25 µACurrent00.2 V0.4 V0.6 V0.8 V1.0 V1.2 V1.4 V1.6 V1.8 VOutput voltage20.19 µA, slope 1/0.572 MΩ18.36 µA, slope 1/40.8 MΩ-5 µA05 µA10 µA15 µA20 µA25 µACurrent00.5 V1.0 V1.5 VOutput voltage20.19 µA, slope 1/0.572 MΩ18.36 µA, slope 1/40.8 MΩ
    1. Output voltage 300 mVone device = 18.03 µA · cascode, V_B = 1.2 V = 17.82 µA

      At low voltage both sinks are still rising. The single device is already saturated; the cascode is not.

    2. Output voltage 1.2 Vone device = 20.19 µA · cascode, V_B = 1.2 V = 18.36 µA

      At 1.2 V the single device's current still climbs with the output: 0.572 MΩ. The cascode's line is almost flat: 40.8 MΩ.

    Read the plot as a table
    Output voltageone devicecascode, V_B = 1.2 V
    0 V0 A0.000003521 fA
    200 mV17.35 µA17.04 µA
    300 mV18.03 µA17.82 µA
    400 mV18.43 µA18.17 µA
    600 mV19 µA18.33 µA
    800 mV19.44 µA18.35 µA
    1 V19.83 µA18.35 µA
    1.2 V20.19 µA18.36 µA
    1.4 V20.53 µA18.36 µA
    1.6 V20.87 µA18.37 µA
    1.8 V21.19 µA18.37 µA

    The same sinks as current against output voltage. The cascode line is almost flat: a high output resistance.

    Self-Check

    Tick each key point you covered in your answer.

  8. Prove ItSolve E3.7.1: The Smallest Cascode SinkSimulator-graded

    Show it, don't just say it: this Silicon Lab problem is graded by the simulator.

    Open Problem E3.7.1

  9. CompareSimple Mirror vs Cascode MirrorL1 JuniorL2 Mid-Level

    Compare a simple mirror with a cascode mirror.

    Reveal the Model Answer

    A cascode device on top raises the output resistance by about (g_m + g_mb)·r_o. In the lesson it went from 0.80 MΩ to 102 MΩ. The price is headroom: the output now needs about V_GS + V_Dsat, around 0.85 V. A wide-swing version gets most of the gain back while the output can fall to about 0.3 V.

    Self-Check

    Tick each key point you covered in your answer.

  10. Scale ItDesigning a Wide-Swing Cascode MirrorL2 Mid-LevelL3 Senior

    A differential pair's tail must stay accurate down to a low output voltage. You choose a wide-swing cascode mirror. How do you size its bias, and how do you check it?

    Reveal the Model Answer

    A separate diode device biases the cascode gates. It is sized so the bottom devices sit just above V_Dsat. The textbook W/4 rule comes from the square law, and in sky130 it left the copy 12 % low. A cascode on the reference side makes both bottom devices see the same V_DS and fixes the copy. Then sweep the output to find where the current is 1 % low, at every corner.

    A Wide-Swing Mirror with a Reference-Side CascodeXB sets the bias line b. R2 and O2 are cascodes on it; R1 and O1 share the gate node g, the top of the reference branch.
    A wide-swing mirror with a reference-side cascodeVDDIB20 µAXB1/1VDDIREF20 µAR28/1R18/1O28/1O18/1outb1.014 Vg0.718 Vy0.245 Vx0.246 V
    1. The bias device sets b

      XB is an eighth of the 8 µm width. At 20 µA it needs a larger VGS, so the bias line b sits at 1.014 V.

      20 µA

    2. The cascodes hold y and x low

      R2 and O2 have their gates on b, so their sources sit one VGS lower: y = 0.245 V and x = 0.246 V. Both bottom devices get about 0.25 V, above their 0.137 V VDsat.

    3. The bottom devices match

      R1's gate is tied to g, the top of the reference branch, so g settles where R1 carries 20 µA at y. O1 shares g and sits at nearly the same VDS: it copies 20.006 µA at 0.9 V.

      20.006 µA

    4. Room at the output

      O2 needs only its own VDsat above x, so the output can fall to 0.297 V before the current is 1 % low.

    Read the circuit as text
    • IB current source (20 µA): + → VDD, − → b
    • XB NMOS transistor (1/1): gate → b, drain → b, source → 0
    • IREF current source (20 µA): + → VDD, − → g
    • R2 NMOS transistor (8/1): gate → b, drain → g, source → y
    • R1 NMOS transistor (8/1): gate → g, drain → y, source → 0
    • O2 NMOS transistor (8/1): gate → b, drain → n1, source → x
    • O1 NMOS transistor (8/1): gate → g, drain → x, source → 0
    • out port: terminal → n1
    • b = 1.014 V
    • g = 0.718 V
    • y = 0.245 V
    • x = 0.246 V

    Node voltages at Vout = 0.9 V from the lab's mirror m8. Widths in µm, all L = 1 µm; all bodies are the substrate at ground.

    DC sweepFour 20 µA Mirrors Against Output VoltageSimple (i_s), stacked cascode (i_c), wide-swing by the W/4 rule (i_w4), and wide-swing with a reference-side cascode and a W/8 bias device (i_m8).
    • i_s
    • i_c
    • i_w4
    • i_m8
    05 µA10 µA15 µA20 µA25 µAOutput current00.2 V0.4 V0.6 V0.8 V1.0 V1.2 V1.4 V1.6 V1.8 VOutput voltage VO20 µAsimple 0.757 Vstacked 0.621 VW/4 0.301 Vmatched W/8 0.297 V05 µA10 µA15 µA20 µA25 µAOutput current00.5 V1.0 V1.5 VOutput voltage VO20 µAsimple 0.757 Vstacked 0.621 VW/4 0.301 Vmatched W/8 0.297 V
    1. Output voltage VO 300 mVi_s = 19.16 µA · i_c = 19.11 µA · i_w4 = 17.37 µA · i_m8 = 19.81 µA

      At 0.3 V the matched W/8 mirror already gives 19.81 µA. The simple and the stacked mirrors give about 19.1 µA, the W/4 mirror 17.4 µA.

    2. Output voltage VO 900 mVi_s = 20.27 µA · i_c = 19.99 µA · i_w4 = 17.55 µA · i_m8 = 20.01 µA

      At 0.9 V: simple 20.27 µA, stacked 19.99 µA, W/4 17.55 µA, matched W/8 20.006 µA.

    3. Output voltage VO 1.7 Vi_s = 21.26 µA · i_c = 20 µA · i_w4 = 17.64 µA · i_m8 = 20.02 µA

      At 1.7 V the simple mirror has climbed to 21.26 µA; the cascodes have hardly moved.

    Read the plot as a table
    Output voltage VOi_si_ci_w4i_m8
    0 V0 A0 A0 A0 A
    200 mV18.64 µA18.51 µA16.67 µA19 µA
    300 mV19.16 µA19.11 µA17.37 µA19.81 µA
    400 mV19.44 µA19.39 µA17.45 µA19.97 µA
    600 mV19.82 µA19.76 µA17.5 µA20 µA
    800 mV20.13 µA19.97 µA17.53 µA20 µA
    900 mV20.27 µA19.99 µA17.55 µA20.01 µA
    1 V20.4 µA19.99 µA17.56 µA20.01 µA
    1.2 V20.66 µA20 µA17.58 µA20.01 µA
    1.4 V20.9 µA20 µA17.61 µA20.02 µA
    1.6 V21.14 µA20 µA17.63 µA20.02 µA
    1.7 V21.26 µA20 µA17.64 µA20.02 µA
    1.8 V21.38 µA20 µA17.65 µA20.03 µA

    Four 20 µA mirrors swept. The W/4 mirror is flat but 12 % low; the matched W/8 mirror is right and works down to about 0.3 V.

    Self-Check

    Tick each key point you covered in your answer.

    What Interviewers Listen For (Mid-Level)

    A good mid-level answer explains how the extra diode device sets the cascode bias. It checks the copy and the lowest output voltage by sweeping the output.

    Half-Truth

    "Use the W/4 rule for the bias device and you are done."

    The rule comes from the square law. In sky130 it left the copy 12 % low. Find the bias width by sweeping, not from the ratio.

    Source ASIC Point lesson E4.3 (measured)

    Buzzword Without Mechanism

    "The minimum output voltage is two V_Dsat."

    That is a hand estimate. The lesson defines it as the voltage where the current falls 1 % below its value at 0.9 V, and measures it.

    Source ASIC Point lessons E4.1 and E4.3

  11. WhyWhy a Reference-Side Cascode Fixes the CopyL2 Mid-Level

    Why does adding a cascode on the reference side make the wide-swing copy accurate?

    Reveal the Model Answer

    In the plain wide-swing mirror the reference device is diode-connected, so its V_DS is V_GS. The output's bottom device sits near V_Dsat instead. Different V_DS means a different current. A cascode on the reference side holds its bottom device at the same low V_DS as the output side. Then both carry the same current.

    DC sweepA Wide-Swing Mirror Sized by the W/4 RuleOutput current against output voltage. Every device is W/L = 8/1 µm except the 2/1 µm bias device.
    05 µA10 µA15 µA20 µA25 µAOutput current00.2 V0.4 V0.6 V0.8 V1.0 V1.2 V1.4 V1.6 V1.8 VOutput voltage VOreference 20 µA17.55 µA at 0.9 V05 µA10 µA15 µA20 µA25 µAOutput current00.5 V1.0 V1.5 VOutput voltage VOreference 20 µA17.55 µA at 0.9 V
    1. Output voltage VO 900 mVi_w4 = 17.55 µA

      At 0.9 V the copy is 17.55 µA: a flat curve, at the wrong current.

    2. Output voltage VO 1.7 Vi_w4 = 17.64 µA

      At 1.7 V it is still only 17.64 µA. A high output resistance holds an error as faithfully as a correct current.

    Read the plot as a table
    Output voltage VOi_w4
    0 V0 A
    200 mV16.67 µA
    400 mV17.45 µA
    600 mV17.5 µA
    800 mV17.53 µA
    900 mV17.55 µA
    1 V17.56 µA
    1.2 V17.58 µA
    1.4 V17.61 µA
    1.6 V17.63 µA
    1.7 V17.64 µA
    1.8 V17.65 µA

    The wide-swing mirror without a reference-side cascode: a flat curve at the wrong current, 17.55 µA instead of 20 µA.

    Self-Check

    Tick each key point you covered in your answer.

  12. Prove ItSolve E4.3.1: The Leanest Wide-Swing SinkSimulator-graded

    Show it, don't just say it: this Silicon Lab problem is graded by the simulator.

    Open Problem E4.3.1

  13. What IfSizing the Wide-Swing Bias by the Square LawL2 Mid-LevelL3 Senior

    What if you size the cascode bias device by the square-law W/4 rule instead of sweeping? What happens in sky130?

    Reveal the Model Answer

    In the lesson the W/4 rule left the copy 12 % low. Short sky130 devices do not follow the square law, so the bottom devices end up at the wrong V_DS. The bias width trades output resistance against the lowest output voltage. So find it by sweeping, and check the copy at the target output range.

    Self-Check

    Tick each key point you covered in your answer.

    Misconception

    "W/4 is exact; the textbook derives it."

    The derivation assumes the square law. Short devices break that model, so the derived width puts the bottom devices at the wrong voltage.

    Source Lesson E4.3 key points

  14. CompareSimple Mirror vs Cascode MirrorL1 JuniorL2 Mid-Level

    Compare a simple mirror with a cascode mirror.

    Reveal the Model Answer

    A cascode device on top raises the output resistance by about (g_m + g_mb)·r_o. In the lesson it went from 0.80 MΩ to 102 MΩ. The price is headroom: the output now needs about V_GS + V_Dsat, around 0.85 V. A wide-swing version gets most of the gain back while the output can fall to about 0.3 V.

    Self-Check

    Tick each key point you covered in your answer.

  15. Scale ItWriting a Bias Block SpecificationL3 Senior

    You must hand over a bias block to other designers. How do you write its specification and prove it?

    Reveal the Model Answer

    Write each requirement as one line with a limit and a measurement, set after measuring a reference design at every corner. Use one bench per check. Run a supply sweep and a temperature and supply sweep for the worst case. Add an output sweep for compliance and power-up transients, fast and slow. A constant-g_m reference moves its current on purpose, so specify the tail current as a band.

    The Bias Block, Piece by PieceArrows show where a current or a gate voltage goes. W/L in µm.
    The bias block, piece by pieceArrows show where a current or a gate voltage goes. W/L in µm. component Start-up XS1-XS3: kick atpower-up, then off component Reference Beta multiplier, K = 4,RS a res_high_po: 10µA component PMOS copies XP3 4/1: 10 µA; XP41/1: 2.5 µA component Cascode bias XBC 0.5/1.5 diodesets node c component Reference stack XC1 over XB1, 16/1units: node g output Tail output XC2 over XB2, twounits: 20 µA output PMOS bias output XB3 sinks 10 µA fromXPB 8/1 kickgate b2.5 µA10 µAgate cgate ggate g
    1. Reference and start-up

      The beta multiplier of E4.4 sets 10 µA with a res_high_po resistor (W = 0.35 µm, L = 8.54 µm). The start-up of E4.5 kicks it on at power-up and then switches off.

    2. Send currents

      PMOS devices on the reference's gate line b copy its current: 10 µA for the NMOS reference stack and 2.5 µA for the cascode bias. Currents travel; gate voltages stay local (E4.2).

    3. Wide-swing cascode

      The 2.5 µA diode XBC sets the cascode gate c. The reference stack sets the bottom gate g with its own cascode, so both bottom devices see the same drain voltage (E4.3). The tail is two units of the stack: 20 µA.

    4. PMOS bias output

      One more unit on gate g sinks 10 µA from a diode-connected 8/1 PMOS. Its gate is pbias: any 8/1 PMOS with its source at VDD and this gate voltage sources about 10 µA.

    Read the diagram as text
    • Start-up: XS1-XS3: kick at power-up, then off
    • Reference: Beta multiplier, K = 4, RS a res_high_po: 10 µA
    • PMOS copies: XP3 4/1: 10 µA; XP4 1/1: 2.5 µA
    • Cascode bias: XBC 0.5/1.5 diode sets node c
    • Reference stack: XC1 over XB1, 16/1 units: node g
    • Tail output: XC2 over XB2, two units: 20 µA
    • PMOS bias output: XB3 sinks 10 µA from XPB 8/1
    • Start-up → Reference: kick
    • Reference → PMOS copies: gate b
    • PMOS copies → Cascode bias: 2.5 µA
    • PMOS copies → Reference stack: 10 µA
    • Cascode bias → Tail output: gate c
    • Reference stack → Tail output: gate g
    • Reference stack → PMOS bias output: gate g

    The full netlist is the Try it below. Units are whole devices (m=2 for the tail), so the 2:1 ratio does not depend on drawn widths matching.

    Self-Check

    Tick each key point you covered in your answer.

  16. Prove ItSolve E3.3.1: A Gain of 120 into 2 pFSimulator-graded

    Show it, don't just say it: this Silicon Lab problem is graded by the simulator.

    Open Problem E3.3.1

  17. What IfWhy Gain Is Bought with VoltageL1 JuniorL2 Mid-Level

    Why does a resistor-loaded stage's gain depend on the voltage across the resistor rather than the bias current?

    Reveal the Model Answer

    g_m·R_D can be written as (g_m/I_D)·(I_D·R_D), and I_D·R_D is just the DC drop across the load. For a given g_m/I_D, more current with a proportionally smaller R_D gives the same gain. The supply limits that drop, which is why high-gain stages use current-source loads instead of resistors.

    Self-Check

    Tick each key point you covered in your answer.

  18. What IfSource DegenerationL1 JuniorL2 Mid-Level

    Asked if they worry about gain varying with process

    What if you put a resistor in the source of the common-source device?

    Reveal the Model Answer

    It feeds the output current back against the input, so the effective transconductance becomes g_m/(1 + (g_m + g_mb)R_S). Gain falls but depends less on the device, the linear input range widens and the output resistance rises. It tends to -R_D/R_S only when (g_m + g_mb)R_S is large: at 2 kΩ the lesson's stage gave 3.87 against a limit of 10.

    Self-Check

    Tick each key point you covered in your answer.

  19. Prove ItSolve E3.3.1: A Gain of 120 into 2 pFSimulator-graded

    Show it, don't just say it: this Silicon Lab problem is graded by the simulator.

    Open Problem E3.3.1

  20. Prove ItSolve E3.2.1: The Gain That Fell When RD RoseSimulator-graded

    Show it, don't just say it: this Silicon Lab problem is graded by the simulator.

    Open Problem E3.2.1

What People Get Wrong

Common wrong answers and why they fail.

Half-Truth

"Double R_D to double the gain."

At the same input bias a bigger R_D drops more voltage and pushes the output toward V_Dsat. Then the current, g_m and gain all fall. Gain is set by the voltage across R_D and the device's g_m/I_D.

Source ASIC Point lesson E3.2

Missed Corner

"The gain is g_m·R_D."

That ignores r_o. With a 0.15 µm device r_o took about 37 % off g_m·R_D in the lesson's stage.

Source ASIC Point lesson E3.2 (measured)

Learn It, Then Prove It