← Analog & Mixed-Signal Interviews
Interview Question · Concept
A Latched Comparator's Decision Time
- 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?
You have two and a half minutes. Speak or type, then press Get Feedback under your answer. No credits needed.
Speech-to-text runs in your browser. Chrome and Edge may send audio to their own speech service.
You can edit your answer before you send it. Feedback uses AI and checks your answer only against our written answer. No credits are used and your answer is not saved.
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.
- 10 mV
- 100 µV
- 1 µV
- 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.
- 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.
- 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.
- 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
| Time | 10 mV | 100 µV | 1 µV |
|---|---|---|---|
| 0 s | -25.76 fV | -10.66 fV | 37.75 fV |
| 110 ps | -878 nV | -8.797 nV | -79.7 pV |
| 383.3 ps | 900 mV | 11.77 mV | 117.7 µV |
| 500 ps | 1.711 V | 150.8 mV | 1.522 mV |
| 593.4 ps | 1.793 V | 900 mV | 11.79 mV |
| 803.4 ps | 1.8 V | 1.792 V | 900 mV |
| 1 ns | 1.8 V | 1.8 V | 1.789 V |
| 1.5 ns | 10.27 mV | 10.23 mV | 10.23 mV |
| 2 ns | 2.308 µV | 1.932 µV | 1.927 µV |
Measured on ngspice 42 (the lab netlist). Reset starts at 1.13 ns.
- 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.
- 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.
- 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 volts | decision time |
|---|---|
| -6 | 693.4 ps |
| -5 | 588.4 ps |
| -4.063 | 490 ps |
| -4 | 483.4 ps |
| -3 | 378.3 ps |
| -2 | 273.3 ps |
| -1 | 141.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.
What Interviewers Listen For (Senior)
A good senior answer links the log law to flip-flop metastability and MTBF, and times the decision on the output difference. It models offset, delay and a late decision for system simulation.
Cross-Questions
Where the interviewer goes next. Open a node to practise that follow-up.
WhyWhat IfProve ItCompare
- A Latched Comparator's Decision Time
-
WhyWhy Regeneration Is ExponentialL1 JuniorL2 Mid-Level
Why does the difference in a cross-coupled latch grow exponentially?
2:30You have two and a half minutes. Speak or type, then press Get Feedback under your answer. No credits needed.
Speech-to-text runs in your browser. Chrome and Edge may send audio to their own speech service.
You can edit your answer before you send it. Feedback uses AI and checks your answer only against our written answer. No credits are used and your answer is not saved.
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. Whole circuit- 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.
- 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
- 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.
- 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.
- Reset
-
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?
2:30You have two and a half minutes. Speak or type, then press Get Feedback under your answer. No credits needed.
Speech-to-text runs in your browser. Chrome and Edge may send audio to their own speech service.
You can edit your answer before you send it. Feedback uses AI and checks your answer only against our written answer. No credits are used and your answer is not saved.
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
-
CompareComparator Decisions vs Flip-Flop MetastabilityL2 Mid-LevelL3 Senior
Compare a comparator's slow decision with flip-flop metastability.
2:30You have two and a half minutes. Speak or type, then press Get Feedback under your answer. No credits needed.
Speech-to-text runs in your browser. Chrome and Edge may send audio to their own speech service.
You can edit your answer before you send it. Feedback uses AI and checks your answer only against our written answer. No credits are used and your answer is not saved.
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. Whole plot- v(outp)
- v(outn)
- difference
- 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.
- 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.
- 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
Time v(outp) v(outn) difference 0 s 1.8 V 1.8 V 37.75 fV 318.1 ps 900 mV 900 mV 28.6 µV 483 ps 849.8 mV 848.7 mV 1.048 mV 500 ps 849.9 mV 848.4 mV 1.522 mV 803.4 ps 1.301 V 401.2 mV 900 mV 1 ns 1.794 V 5.664 mV 1.789 V 1.5 ns 1.803 V 1.793 V 10.23 mV 2 ns 1.8 V 1.8 V 1.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.
-
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.
-
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.
2:30You have two and a half minutes. Speak or type, then press Get Feedback under your answer. No credits needed.
Speech-to-text runs in your browser. Chrome and Edge may send audio to their own speech service.
You can edit your answer before you send it. Feedback uses AI and checks your answer only against our written answer. No credits are used and your answer is not saved.
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. Whole plot- input 0.2 V
- input 0.5 V
- input 0.8 V
- clock
- 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.
- 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.
- 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
Time input 0.2 V input 0.5 V input 0.8 V clock 0 s -201.2 pV -741.1 pV -4.311 nV 1.8 V 500 ps -201.2 pV -741.1 pV -4.26 nV 1.8 V 900 ps -201.2 pV -741.1 pV -4.223 nV 1.8 V 1 ns -201.2 pV -741.1 pV -4.215 nV 1.8 V 1.1 ns -903.2 µV -734.8 µV -575.7 µV 0 V 1.5 ns -903.3 µV -734.9 µV -575.8 µV 0 V 2 ns -903.3 µV -734.9 µV -575.8 µV 0 V 2.5 ns -903.3 µV -734.9 µV -575.8 µV 0 V 3 ns -903.3 µV -734.9 µV -575.8 µV 0 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.
-
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.
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