← Analog & Mixed-Signal Interviews

Interview Question · Concept

A Latched Comparator's Decision Time

L1 JuniorL2 Mid-Levelcomparatormixed signal
  • Likely at NVIDIA
  • Likely at Qualcomm
  • Likely at Broadcom

The Question

The interviewer asks

How long does a latched comparator take to decide, and what happens as the input difference goes to zero?

Reveal the Model Answer

The latch amplifies the small input difference by positive feedback, so it grows as e^(t/τ). The time constant τ is about C/g_m of the cross-coupled inverters. The decision time is τ times the log of the ratio between the full swing and the starting difference. Each tenfold smaller input adds ln 10 · τ, 105 ps in the lesson. As the input goes to zero, the time has no limit.

TransientSmaller Inputs Take Longer to DecideThe difference v(outp) − v(outn) for three inputs, all around a 0.9 V common level.
  • 10 mV
  • 100 µV
  • 1 µV
-0.5 V00.5 V1.0 V1.5 V2.0 Vv(outp) − v(outn)00.5 ns1.0 ns1.5 ns2.0 nsTime0.9 V apart-0.5 V00.5 V1.0 V1.5 V2.0 Vv(outp) − v(outn)00.5 ns1.0 ns1.5 ns2.0 nsTime0.9 V apart
  1. Time 110 ps10 mV = -878 nV · 100 µV = -8.797 nV · 1 µV = -79.7 pV

    The clock crosses 0.9 V. All three differences are still near zero.

  2. Time 383.3 ps10 mV = 900 mV · 100 µV = 11.77 mV · 1 µV = 117.7 µV

    The 10 mV latch decides 273 ps after the clock.

  3. Time 593.4 ps10 mV = 1.793 V · 100 µV = 900 mV · 1 µV = 11.79 mV

    The 100 µV latch decides 483 ps after the clock: a hundred times less input, 210 ps more.

  4. Time 803.4 ps10 mV = 1.8 V · 100 µV = 1.792 V · 1 µV = 900 mV

    The 1 µV latch decides 693 ps after the clock: another hundredfold, another 210 ps.

Read the plot as a table
Time10 mV100 µV1 µV
0 s-25.76 fV-10.66 fV37.75 fV
110 ps-878 nV-8.797 nV-79.7 pV
383.3 ps900 mV11.77 mV117.7 µV
500 ps1.711 V150.8 mV1.522 mV
593.4 ps1.793 V900 mV11.79 mV
803.4 ps1.8 V1.792 V900 mV
1 ns1.8 V1.8 V1.789 V
1.5 ns10.27 mV10.23 mV10.23 mV
2 ns2.308 µV1.932 µV1.927 µV

Measured on ngspice 42 (the lab netlist). Reset starts at 1.13 ns.

DC sweepDecision Time Against the Input, One Decade per StepEach point is one latch of the lab run. −6 on the x axis is 1 µV, −1 is 100 mV.
100 ps200 ps300 ps400 ps500 ps600 ps700 ps800 psDecision time-6-5-4-3-2-1log10 of the input difference in volts1 µV: 693 ps1 mV: 378 ps100 mV: 141 ps100 ps200 ps300 ps400 ps500 ps600 ps700 ps800 psDecision time-6-4-2log10 of the input difference in volts1 µV: 693 ps1 mV: 378 ps100 mV: 141 ps
  1. log10 of the input difference in volts -6decision time = 693.4 ps

    From 1 µV to 1 mV the line is straight: 105.0 ps per decade. Then τ = 105.0 ps / ln 10 = 45.6 ps.

  2. log10 of the input difference in volts -4.063decision time = 490 ps

    A latch given 490 ps decides any input above 86 µV (10−4.06 V). Smaller inputs are still undecided.

  3. log10 of the input difference in volts -1decision time = 141.1 ps

    Above 10 mV the line bends down: a large input does much of the swing before regeneration takes over.

Read the plot as a table
log10 of the input difference in voltsdecision time
-6693.4 ps
-5588.4 ps
-4.063490 ps
-4483.4 ps
-3378.3 ps
-2273.3 ps
-1141.1 ps

Decision time against the input on a log axis: a straight line of 105 ps per decade, so τ = 45.6 ps.

Self-Check

Tick each key point you covered in your answer.

What Interviewers Listen For (Junior)

A good junior answer explains regeneration and writes the exponential growth. It says a smaller input takes longer to decide.

Cross-Questions

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

WhyWhat IfProve ItCompare

  1. A Latched Comparator's Decision Time
  2. WhyWhy Regeneration Is ExponentialL1 JuniorL2 Mid-Level

    Why does the difference in a cross-coupled latch grow exponentially?

    Reveal the Model Answer

    Each inverter drives the other's input. A small difference makes each one push its output further apart, and the rate of growth is proportional to the difference itself. Growth proportional to size is exponential growth. The time constant is the node capacitance over the inverter g_m.

    The StrongARM LatchM1 and M2 compare the inputs; M3-M6 are two cross-coupled inverters; S1-S4 reset; M0 is the clocked tail.
    The StrongARM latchVDD1.8 VS11/0.15M52/0.15M62/0.15S21/0.15M32/0.15M42/0.15S31/0.15VDDS41/0.15VDDM14/0.15M24/0.15M04/0.15inpinnclkclkclkclkclkoutnoutppq
    1. Reset

      With the clock low, M0 is off and S1-S4 pull outn, outp, p and q to 1.8 V. Nothing conducts from VDD to ground, so the latch draws no current while it waits.

    2. Integrate

      The clock rises: S1-S4 open and M0 turns on. M1 and M2 discharge p and q, and the side with the higher input discharges a little faster.

      I1 > I2

    3. Regenerate

      Once p and q are low enough, M3 and M4 conduct and both outputs fall. Each output drives the other inverter, so the one falling faster turns the other side's pull-up on.

    4. Decided

      One output reaches ground and the other returns to 1.8 V. With inp above inn, outp ends high. The current stops: a decided latch draws no static current either.

    Read the circuit as text
    • S1 PMOS transistor (1/0.15): gate → n1, source → VDD, drain → outn
    • M5 PMOS transistor (2/0.15): gate → outp, source → VDD, drain → outn
    • M6 PMOS transistor (2/0.15): gate → outn, source → VDD, drain → outp
    • S2 PMOS transistor (1/0.15): gate → n2, source → VDD, drain → outp
    • M3 NMOS transistor (2/0.15): gate → outp, drain → outn, source → p
    • M4 NMOS transistor (2/0.15): gate → outn, drain → outp, source → q
    • S3 PMOS transistor (1/0.15): gate → n3, source → VDD, drain → p
    • S4 PMOS transistor (1/0.15): gate → n4, source → VDD, drain → q
    • M1 NMOS transistor (4/0.15): gate → n5, drain → p, source → n6
    • M2 NMOS transistor (4/0.15): gate → n7, drain → q, source → n6
    • M0 NMOS transistor (4/0.15): gate → n8, drain → n6, source → 0
    • inp port: terminal → n5
    • inn port: terminal → n7
    • clk port: terminal → n8
    • clk port: terminal → n1
    • clk port: terminal → n2
    • clk port: terminal → n3
    • clk port: terminal → n4

    W/L in µm. NMOS bodies at ground, PMOS bodies at VDD. The lab adds 10 fF from each output to ground.

    Self-Check

    Tick each key point you covered in your answer.

  3. What IfA Ten Times Smaller Comparator InputL1 JuniorL2 Mid-Level

    What if the input difference is ten times smaller? How much longer does the decision take?

    Reveal the Model Answer

    The difference grows as v_0·e^(t/τ), so a ten times smaller start needs ln 10 times τ more. In the lesson that was 105 ps per decade, with τ = 45.6 ps. There is no upper limit: an input near zero can take any length of time. That is metastability, and it sets the comparator's error rate.

    Self-Check

    Tick each key point you covered in your answer.

    Missed Corner

    "A tiny input just gives a slightly late decision."

    The delay grows with the log of one over the input, without bound. A decision read before it settles gives a wrong or undefined code.

    Source Lesson E8.1 key points

  4. CompareComparator Decisions vs Flip-Flop MetastabilityL2 Mid-LevelL3 Senior

    Compare a comparator's slow decision with flip-flop metastability.

    Reveal the Model Answer

    They are the same physics. A flip-flop sampling a changing input is a latch that starts from a tiny difference. The undecided window shrinks as e^(-t/τ) with the time allowed to settle. That is why MTBF grows exponentially with settling time, and why synchronizers add a whole clock period of settling.

    TransientAt 1 µV Both Outputs Fall Before Either WinsAbove: each output of the 1 µV latch. Below: their difference.
    • v(outp)
    • v(outn)
    • difference
    -0.5 V00.5 V1.0 V1.5 V2.0 VOutputs-0.5 V00.5 V1.0 V1.5 V2.0 VDifference00.5 ns1.0 ns1.5 ns2.0 nsTime0.9 V-1 V01 V2 VOutputs-0.5 V00.5 V1.0 V1.5 V2.0 VDifference00.5 ns1.0 ns1.5 ns2.0 nsTime0.9 V
    1. Time 318.1 psv(outp) = 900 mV · v(outn) = 900 mV · difference = 28.6 µV

      Both outputs cross 0.9 V together, 208 ps after the clock. The difference is still almost zero.

    2. Time 483 psv(outp) = 849.8 mV · v(outn) = 848.7 mV · difference = 1.048 mV

      outp bottoms out at 0.850 V, then turns back up: the latch is deciding.

    3. Time 803.4 psv(outp) = 1.301 V · v(outn) = 401.2 mV · difference = 900 mV

      The difference reaches 0.9 V at 693 ps. That is the decision time.

    Read the plot as a table
    Timev(outp)v(outn)difference
    0 s1.8 V1.8 V37.75 fV
    318.1 ps900 mV900 mV28.6 µV
    483 ps849.8 mV848.7 mV1.048 mV
    500 ps849.9 mV848.4 mV1.522 mV
    803.4 ps1.301 V401.2 mV900 mV
    1 ns1.794 V5.664 mV1.789 V
    1.5 ns1.803 V1.793 V10.23 mV
    2 ns1.8 V1.8 V1.927 µV

    A 1 µV input: both outputs fall together before one wins. A flip-flop near metastability waits the same way.

    Self-Check

    Tick each key point you covered in your answer.

  5. Prove ItSolve E8.1.1: A Faster DecisionSimulator-graded

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

    Open Problem E8.1.1

  6. What IfkT/C Noise vs Charge Injection in a Sample-and-HoldL1 JuniorL2 Mid-Level

    Asked if the comparator follows a sample-and-hold

    Compare kT/C noise with charge injection as errors of a sample-and-hold switch.

    Reveal the Model Answer

    kT/C noise is random and set only by the hold capacitor, about 64 µV on 1 pF. Charge injection is a step left when the switch opens: channel charge and clock feedthrough land on the capacitor. It grows with switch width, falls with C_H, and depends on the input, so it is distortion, not just offset. A half-width dummy switch on the inverted clock cancels most of it.

    TransientThe Hold Error When the Switch Opens, at Three InputsThe error v(hold) − v(in) of an NMOS switch (W = 1 µm) into 1 pF. Below: the clock on its gate.
    • input 0.2 V
    • input 0.5 V
    • input 0.8 V
    • clock
    -1.0 mV-0.8 mV-0.6 mV-0.4 mV-0.2 mV0v(hold) − v(in)00.5 V1.0 V1.5 V2.0 VGate00.5 ns1.0 ns1.5 ns2.0 ns2.5 ns3.0 nsTime-1.0 mV-0.5 mV0v(hold) − v(in)00.5 V1.0 V1.5 V2.0 VGate01 ns2 ns3 nsTime
    1. Time 900 psinput 0.2 V = -201.2 pV · input 0.5 V = -741.1 pV · input 0.8 V = -4.223 nV · clock = 1.8 V

      Tracking: each hold node equals its input, so every error is zero.

    2. Time 1.1 nsinput 0.2 V = -903.2 µV · input 0.5 V = -734.8 µV · input 0.8 V = -575.7 µV · clock = 0 V

      The gate falls in 0.1 ns and the switch opens. Each hold node jumps down.

    3. Time 3 nsinput 0.2 V = -903.3 µV · input 0.5 V = -734.9 µV · input 0.8 V = -575.8 µV · clock = 0 V

      Held: −0.903 mV at 0.2 V, −0.735 mV at 0.5 V, −0.576 mV at 0.8 V. The step shrinks as the input rises.

    Read the plot as a table
    Timeinput 0.2 Vinput 0.5 Vinput 0.8 Vclock
    0 s-201.2 pV-741.1 pV-4.311 nV1.8 V
    500 ps-201.2 pV-741.1 pV-4.26 nV1.8 V
    900 ps-201.2 pV-741.1 pV-4.223 nV1.8 V
    1 ns-201.2 pV-741.1 pV-4.215 nV1.8 V
    1.1 ns-903.2 µV-734.8 µV-575.7 µV0 V
    1.5 ns-903.3 µV-734.9 µV-575.8 µV0 V
    2 ns-903.3 µV-734.9 µV-575.8 µV0 V
    2.5 ns-903.3 µV-734.9 µV-575.8 µV0 V
    3 ns-903.3 µV-734.9 µV-575.8 µV0 V

    Charge injection, measured: when the switch opens, each held voltage jumps by a step that depends on the input.

    Self-Check

    Tick each key point you covered in your answer.

  7. Prove ItSolve E8.2.1: The Pedestal That Came with a Wider SwitchSimulator-graded

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

    Open Problem E8.2.1

What People Get Wrong

Common wrong answers and why they fail.

Missed Corner

"Time the decision when one output crosses mid-rail."

One output falls through mid-rail at nearly the same time for any input. Time the decision on the difference of the two outputs.

Source ASIC Point lesson E8.1 (measured)

Misconception

"A comparator always decides within one clock period."

The decision time grows without bound as the input shrinks. A small enough input leaves it undecided at the read, which is metastability.

Source ASIC Point lesson E8.1

Learn It, Then Prove It