← RTL Design Interviews · SoC Architecture Interviews

Interview Question · Reason About Traffic and Performance

The Display Misses Its Deadline

L2 Mid-LevelL3 Seniortraffic and performance

The Question

The interviewer asks

A display consumes bytes from a FIFO during each frame. It runs empty before the next refill. The bus was busy only 40% of that frame. What would you measure?

Reveal the Model Answer

A FIFO underrun means the display needed a byte while its queue was empty. Measure the time from refill request to usable data. Compare consumption during that delay with the bytes available when the request began.

Self-Check

Tick each key point you covered in your answer.

What Interviewers Want to Hear (Mid-Level)

Choose a time window small enough to show the missed refill.

Choose Your Follow-up

I’ve answered the opening question

Choose the route closest to your reasoning. Answer the follow-up aloud, then open the closing question.

I suspected arbitration.

The display won arbitration immediately. What two observations would narrow the remaining delay?

Reveal the Model Answer

Timestamp acceptance at the memory target and arrival of usable data at the FIFO. Compare those with the grant to localize the delay.

Self-Check

Tick each key point you covered in your answer.

Sign off the Deadline

A reviewer proposes doubling the refill weight. What would establish that the display will meet every deadline?

Reveal the Model Answer

More grants can lengthen the round for another requester. Bound the waits for a grant, the target and the reply, including the longest allowed burst. Show the reserve covers that delay and that incoming words can keep up with consumption.

Self-Check

Tick each key point you covered in your answer.

I proposed a deeper FIFO.

The FIFO holds 96 bytes and drains eight per microsecond. Can it cover 15 microseconds? How would you price the bus wait?

Reveal the Model Answer

The reserve lasts 12 microseconds. Fifteen requires 120 bytes. In the C,D,D,J round, the processor can wait three slots behind D,D,J. Two four-word DMA turns and one debug word make that nine word times before service, assuming memory always accepts.

Self-Check

Tick each key point you covered in your answer.

Sign off the Deadline

A reviewer proposes doubling the refill weight. What would establish that the display will meet every deadline?

Reveal the Model Answer

More grants can lengthen the round for another requester. Bound the waits for a grant, the target and the reply, including the longest allowed burst. Show the reserve covers that delay and that incoming words can keep up with consumption.

Self-Check

Tick each key point you covered in your answer.

I wanted a trace.

Which three timestamped events distinguish request starvation from a slow response?

Reveal the Model Answer

Capture the refill request arriving at the arbiter, its grant, and the first usable data returning. Match all three to the same refill.

Self-Check

Tick each key point you covered in your answer.

Sign off the Deadline

A reviewer proposes doubling the refill weight. What would establish that the display will meet every deadline?

Reveal the Model Answer

More grants can lengthen the round for another requester. Bound the waits for a grant, the target and the reply, including the longest allowed burst. Show the reserve covers that delay and that incoming words can keep up with consumption.

Self-Check

Tick each key point you covered in your answer.

I quoted the longest recorded wait.

Policy 0 prints a processor wait of 12 slots. Can firmware use 12 as the limit?

Reveal the Model Answer

Doubling the run gives 24 because DMA wins every slot. Policy 1 still reports 3,2,3 for C,D,J. Its repeating C,D,D,J order proves those limits when each slot serves one word.

Self-Check

Tick each key point you covered in your answer.

Sign off the Deadline

A reviewer proposes doubling the refill weight. What would establish that the display will meet every deadline?

Reveal the Model Answer

More grants can lengthen the round for another requester. Bound the waits for a grant, the target and the reply, including the longest allowed burst. Show the reserve covers that delay and that incoming words can keep up with consumption.

Self-Check

Tick each key point you covered in your answer.

I counted grants instead of words.

What if competing managers can hold their grants for bursts of any length?

Reveal the Model Answer

Even one turn ahead of the refill can then last arbitrarily long. Enforce a maximum burst and bound target waits before converting turns to clock periods.

Self-Check

Tick each key point you covered in your answer.

Sign off the Deadline

A reviewer proposes doubling the refill weight. What would establish that the display will meet every deadline?

Reveal the Model Answer

More grants can lengthen the round for another requester. Bound the waits for a grant, the target and the reply, including the longest allowed burst. Show the reserve covers that delay and that incoming words can keep up with consumption.

Self-Check

Tick each key point you covered in your answer.

What People Get Wrong

Common wrong answers and why they fail.

Half-Truth

There was 60% spare capacity over the frame, so this refill had time.

Idle cycles later in the frame cannot refill the FIFO earlier.

Half-Truth

A higher priority solves the problem.

In S4.8 policy 0 gives every contested slot to DMA, starving C and J. Policy 2 still never serves J.

Source S4.8, policy comparison.

Learn It, Then Prove It