← Analog & Mixed-Signal Interviews

Interview Question · Design

Layout for a Matched Input Pair

L3 Seniormismatchlayout
  • Likely at NVIDIA
  • Likely at Analog Devices

The Question

The interviewer asks

Monte Carlo says your input pair's offset meets the budget. What can the layout still do to the offset, and how do you plan the layout to prevent it?

Reveal the Model Answer

A schematic Monte Carlo sees only random mismatch. Layout adds gradients and edge effects, which depend on position and shift every die of a wafer the same way. Under a linear gradient, offset equals the gradient times the distance between the devices' centres. A common-centroid pattern such as ABBA makes that distance zero. Dummy fingers at the ends remove the edge effect.

Two of the Eight FingersFinger A (position p) belongs to M1, finger B (position q) to M2.
Two of the eight fingers++EA​−g·pA finger2.5/1B finger2.5/1EB​−g·qinoutxouttail
  1. A gradient along the row

    A gradient g per finger pitch raises the threshold of the finger at position p by g·p. Its gate source takes g·p off the gate, with the same effect.

  2. Both devices average their fingers

    M1 is four A fingers in parallel, M2 four B fingers. Each acts like one transistor shifted by the average of its fingers: for a linear gradient, by g times its centre.

Read the circuit as text
  • E_A voltage source (−g·p): + → n1, − → n2
  • A finger NMOS transistor (2.5/1): gate → n1, drain → n3, source → n4
  • B finger NMOS transistor (2.5/1): gate → n5, drain → n6, source → n4
  • E_B voltage source (−g·q): + → n5, − → n7
  • in port: terminal → n2
  • out port: terminal → n7
  • x port: terminal → n3
  • out port: terminal → n6
  • tail port: terminal → n4

Eight such fingers make the pair: W = 2.5 µm each, 10 µm per device, as OTA-A's 10/1 pair.

DC sweepAdded Offset Under a Linear Gradient, Three PlacementsThe same follower and the same gradient; only the assignment of fingers to M1 and M2 changes.
  • AAAABBBB, side by side
  • ABABABAB, interdigitated
  • ABBAABBA, common centroid
00.5 mV1.0 mV1.5 mV2.0 mV2.5 mV3.0 mV3.5 mV4.0 mV4.5 mVAdded offset00.2 mV0.4 mV0.6 mV0.8 mV1.0 mVGradient per finger01 mV2 mV3 mV4 mV5 mVAdded offset00.5 mV1.0 mVGradient per finger
  1. Gradient per finger 1 mVAAAABBBB, side by side = 3.97 mV · ABABABAB, interdigitated = 999.6 µV · ABBAABBA, common centroid = 22.47 µV

    At 1 mV per finger: 3.97 mV side by side, 1.00 mV interdigitated and 22 µV for the common centroid. The hand numbers are 4, 1 and 0 mV.

    More context

    The last 22 µV come from the curvature of the drain current: fingers with different thresholds carry slightly different currents, and the average of a curve is not the curve of the average.

Read the plot as a table
Gradient per fingerAAAABBBB, side by sideABABABAB, interdigitatedABBAABBA, common centroid
0 V0 V0 V0 V
200 µV794 µV200 µV2.539 µV
400 µV1.588 mV400 µV6.054 µV
600 µV2.382 mV599.9 µV10.55 µV
800 µV3.176 mV799.8 µV16.02 µV
1 mV3.97 mV999.6 µV22.47 µV

The same gradient, three placements of the fingers. Side by side adds 3.97 mV; the common centroid adds 22 µV.

Self-Check

Tick each key point you covered in your answer.

What Interviewers Listen For (Senior)

A good senior answer separates random mismatch from gradients and edge effects. It chooses a common-centroid pattern with dummy fingers, and asks for a check after layout.

Cross-Questions

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

WhyWhat IfProve ItCompareScale It

  1. Layout for a Matched Input Pair
  2. WhyWhy Common Centroid Cancels a GradientL2 Mid-Level

    Why does an ABBA arrangement cancel a linear gradient?

    Reveal the Model Answer

    A linear gradient shifts each finger by an amount proportional to its position. In ABBA, the A fingers sit at both ends and the B fingers in the middle. Both devices then have their average position, their centroid, at the same point. So the gradient shifts both by the same amount, and the difference cancels.

    Self-Check

    Tick each key point you covered in your answer.

  3. Prove ItSolve E7.7.1: The Offset Every Die Agreed OnSimulator-graded

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

    Open Problem E7.7.1

  4. CompareRandom Mismatch vs Systematic Layout ErrorL2 Mid-LevelL3 Senior

    Compare random mismatch with systematic layout errors. Which one does more area fix?

    Reveal the Model Answer

    Random mismatch is different on every die and falls with area, so bigger devices help. Systematic errors from gradients and edges shift every die the same way. They depend on where the devices sit, so more area alone may not help. Placement fixes them: common centroid, dummies and the same orientation.

    DC sweepOffset with 0 to 3 Dummy Fingers at Each End of the RowOffset (output − input) of the follower, no gradient.
    • ABBAABBA, common centroid
    • AAAABBBB, side by side
    -6.5 mV-6.0 mV-5.5 mV-5.0 mV-4.5 mV-4.0 mV-3.5 mV-3.0 mV-2.5 mVOffset00.51.01.52.02.53.0Dummy fingers at each end-7 mV-6 mV-5 mV-4 mV-3 mV-2 mVOffset0123Dummy fingers at each end
    1. Dummy fingers at each end 0ABBAABBA, common centroid = -5.928 mV · AAAABBBB, side by side = -2.684 mV

      No dummies: the common centroid sits at −5.93 mV, −3.24 mV away from the side-by-side pair (−2.68 mV). Its two end fingers both belong to M1.

    2. Dummy fingers at each end 1ABBAABBA, common centroid = -3.301 mV · AAAABBBB, side by side = -2.69 mV

      One dummy at each end: the difference shrinks to −0.61 mV.

    3. Dummy fingers at each end 3ABBAABBA, common centroid = -2.814 mV · AAAABBBB, side by side = -2.694 mV

      Three dummies: −0.12 mV. The side-by-side pair hardly moves: each of its devices has one end finger.

    Read the plot as a table
    Dummy fingers at each endABBAABBA, common centroidAAAABBBB, side by side
    0-5.928 mV-2.684 mV
    0.5-4.614 mV-2.687 mV
    1-3.301 mV-2.69 mV
    1.5-3.115 mV-2.692 mV
    2-2.929 mV-2.693 mV
    2.5-2.872 mV-2.693 mV
    3-2.814 mV-2.694 mV

    An edge effect is systematic. Dummy fingers at each end remove it; more area alone would not.

    Self-Check

    Tick each key point you covered in your answer.

  5. Prove ItSolve E7.7.1: The Offset Every Die Agreed OnSimulator-graded

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

    Open Problem E7.7.1

  6. Scale ItReviewing an Analog Block Before Tape-OutL3 SeniorL4 Staff

    You review a colleague's op-amp and bias block a month before tape-out. What evidence do you ask for before you accept it?

    Reveal the Model Answer

    Ask for every specification line with its measured margin at every corner, crossed with supply and temperature. Ask for Monte Carlo mean plus or minus 3σ on offset and matching. Check stability at the worst load and feedback factor, with a step as well as a margin. Check start-up with supply ramps, fast and cold-slow. Finally, ask which known faults the benches were shown to catch.

    One Bench Against Five BuffersArrows carry the same stimulus to each copy and the measured lines back to the verdict.
    One bench against five buffersArrows carry the same stimulus to each copy and the measured lines back to the verdict. component Your bench stimulus and measlines component Final design component No Rz phase margin component Bias 5 µA slew rate component Load mirror 4/2 input range component M2 22/2 offset component Verdicts pass, fail × 4
    1. Dynamic faults

      No Rz and a starved bias leave the settled DC levels right, so only the settling lines catch them for sure.

    Read the diagram as text
    • Your bench: stimulus and meas lines
    • Final design
    • No Rz: phase margin
    • Bias 5 µA: slew rate
    • Load mirror 4/2: input range
    • M2 22/2: offset
    • Verdicts: pass, fail × 4
    • Your bench → Final design
    • Your bench → No Rz
    • Your bench → Bias 5 µA
    • Your bench → Load mirror 4/2
    • Your bench → M2 22/2
    • Final design → Verdicts
    • No Rz → Verdicts
    • Bias 5 µA → Verdicts
    • Load mirror 4/2 → Verdicts
    • M2 22/2 → Verdicts
    AC analysisLoop Gain of OPA-B in the Sf Corner, Nominal and Cold at Low SupplyThe same op-amp, the same corner. Only the supply (1.8 → 1.62 V) and the temperature (27 → −40 °C) change.
    • sf, 1.8 V, 27 °C
    • sf, 1.62 V, −40 °C
    -60 dB-40 dB-20 dB020 dB40 dB60 dB80 dB100 dBLoop gain1 Hz100 Hz10 kHz1 MHz100 MHzFrequencyA0 = 79.8 dBA0 = 60.1 dB-100 dB-50 dB050 dB100 dBLoop gain1 Hz1 kHz1 MHz1 GHzFrequencyA0 = 79.8 dBA0 = 60.1 dB
    Read the plot as a table
    Frequencysf, 1.8 V, 27 °Csf, 1.62 V, −40 °C
    1 Hz79.77 dB60.13 dB
    10 Hz79.77 dB60.13 dB
    100 Hz79.76 dB60.13 dB
    1 kHz79.17 dB60.12 dB
    10 kHz67.83 dB59.42 dB
    100 kHz48.11 dB47.38 dB
    1 MHz28.11 dB27.61 dB
    10 MHz7.725 dB7.411 dB
    100 MHz-18.93 dB-17 dB
    1 GHz-49.24 dB-45.32 dB

    One corner, two conditions. Only the supply and the temperature change, and the loop gain changes with them.

    Self-Check

    Tick each key point you covered in your answer.

    What Interviewers Listen For (Senior)

    A good senior answer asks for PVT corners crossed with Monte Carlo, and for stability in the worst case. It also asks for start-up transients and proof that the benches work.

    Missed Corner

    "It meets spec at typical with an ideal bias source."

    An ideal bias source hides the biggest process effect. The real reference current moves with process, supply and temperature, so the corners must use it.

    Source ASIC Point lesson E7.6

    Half-Truth

    "All the DC checks pass, so the benches are good."

    DC-level checks never see a missing R_z or a starved bias. A bench is trusted only after it fails known faults.

    Source ASIC Point lesson E8.4

    Wrong Altitude

    Reviews only the schematic numbers.

    Layout adds gradients and parasitics, and system use adds loads and supply noise. A senior review asks how those were covered.

  7. WhyWhy a Bench Must Fail Known FaultsL2 Mid-LevelL3 Senior

    Why should a test bench be shown to fail on purpose before you trust it?

    Reveal the Model Answer

    A bench that passes everything may not be measuring what you think. Insert known faults, such as a missing R_z, a starved bias or a swapped input. A good bench fails each one with a clear reason. In the lesson, DC-level checks missed both a missing R_z and a starved bias.

    TransientThe Final Design and the Two Dynamic Faults
    • final design
    • no R_z
    • bias 5 µA
    -20 mV-15 mV-10 mV-5 mV05 mV10 mV15 mV20 mVv(out) − v(dac)0100 ns200 ns300 ns400 ns500 ns600 ns700 ns800 ns900 nsTime+½ LSB−½ LSB-20 mV-10 mV010 mV20 mVv(out) − v(dac)0200 ns400 ns600 ns800 nsTime+½ LSB−½ LSB
    1. Time 370 nsfinal design = 61.54 µV · no R_z = 17.13 mV · bias 5 µA = 164.3 mV

      70 ns after the fall only the final design has settled for good. Without Rz the output rings until 112.3 ns; the starved copy slews until 176.1 ns.

    Read the plot as a table
    Timefinal designno R_zbias 5 µA
    0 s50.28 µV50.28 µV93.29 µV
    100 ns50.28 µV50.28 µV93.29 µV
    200 ns215.5 µV-3.915 mV-29.01 mV
    300 ns789.4 µV819.1 µV-6.087 mV
    370 ns61.54 µV17.13 mV164.3 mV
    400 ns51.91 µV2.84 mV34.21 mV
    500 ns-1.362 mV-1.29 mV5.276 mV
    600 ns96.08 µV-1.484 mV22.49 mV
    700 ns75.11 µV110.3 µV902.4 µV
    800 ns96.97 µV155.3 µV108.6 µV
    900 ns96.97 µV96.41 µV129.2 µV

    Measured on ngspice 42; clipped at ±20 mV.

    Self-Check

    Tick each key point you covered in your answer.

  8. Prove ItSolve E8.4.1: Break the DAC BufferSimulator-graded

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

    Open Problem E8.4.1

  9. What IfChoosing the Faults to Plant in a BenchL2 Mid-LevelL3 Senior

    Which faults would you plant in a DAC output buffer bench, and which check should catch each one?

    Reveal the Model Answer

    Plant faults that a weak bench would miss. Remove R_z: the step settling check at speed must show ringing. Starve the bias: the input-range check at speed must fail near the top code. Swap the inputs: the open-loop sign check must fail. Each check that never fails is measuring nothing useful.

    Self-Check

    Tick each key point you covered in your answer.

    Tool as Truth

    "The DC sweeps pass with every fault, so the faults are harmless."

    DC checks cannot see stability or slew. In the lesson they missed both a missing R_z and a starved bias.

    Source Lesson E8.4 key points

  10. CompareProcess Corners vs Monte CarloL1 JuniorL2 Mid-Level

    Compare process corners with a mismatch Monte Carlo run. Do you need both?

    Reveal the Model Answer

    Yes. A process corner moves every transistor of a type together, the global spread between wafers. Mismatch moves each transistor alone, the local spread on one die. Offset comes mostly from mismatch, while bias currents and speed move mostly with corners. Sign-off runs corners crossed with supply and temperature, plus Monte Carlo.

    Self-Check

    Tick each key point you covered in your answer.

  11. Prove ItSolve E7.6.1: Nine Settings, One VerdictSimulator-graded

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

    Open Problem E7.6.1

  12. 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.

  13. What IfA DAC Buffer's Input Range at the CornersL2 Mid-LevelL3 Senior

    Asked if the block drives a DAC or ADC

    What if a DAC output buffer passes at typical but a corner moves its input range?

    Reveal the Model Answer

    A corner can push an edge of the input range past the top or bottom code. Then the buffer's tail leaves saturation at that code and the output error jumps. Choose the DAC references inside the buffer's range at speed, not just where the DC error is small. Check them at every corner.

    DC sweepDC Error at Sf, −40 °C: Versions 2 and 3
    • version 2
    • version 3
    -5 mV05 mV10 mV15 mVv(out) − v(in)0.7 V0.8 V0.9 V1.0 V1.1 V1.2 V1.3 VInput+½ LSBcode 63-5 mV05 mV10 mV15 mVv(out) − v(in)0.8 V1.0 V1.2 VInput+½ LSBcode 63
    Read the plot as a table
    Inputversion 2version 3
    700 mV-149.8 µV-88.19 µV
    800 mV13.66 µV37.73 µV
    900 mV48.87 µV64.35 µV
    1 V93.74 µV89.88 µV
    1.1 V630.6 µV211.5 µV
    1.2 V10.28 mV2.951 mV
    1.3 V47.59 mV33.11 mV

    DC error at the sf corner and -40 °C. At the top code, version 2 errs by 9.02 mV and version 3 by 2.42 mV.

    Self-Check

    Tick each key point you covered in your answer.

What People Get Wrong

Common wrong answers and why they fail.

Misconception

"Monte Carlo passed, so the layout cannot add offset."

Gradients, edges, orientation and substrate coupling are not in a schematic Monte Carlo. In the lesson a gradient alone added about 3.97 mV to a -2.68 mV systematic offset.

Source ASIC Point lesson E7.7 (measured)

Half-Truth

"Interdigitation removes gradient offset."

Interdigitation only shrinks it. Common centroid puts both centres at the same point, so a linear gradient cancels.

Source ASIC Point lesson E7.7

Learn It, Then Prove It