← RTL Design Interviews · SoC Architecture Interviews

Interview Question · Diagnose a Chip from Evidence

Where Did the Fifth Byte Go?

L2 Mid-LevelL3 Seniordiagnose from evidence

The Question

The interviewer asks

UART offered ABCDEF. SRAM contains ABCDF. Which measurements would distinguish a dropped arrival from slow service?

Reveal the Model Answer

Count offers, admissions, drops and committed writes over the same interval. Record occupancy at each edge and follow the missing byte through the queue. Include any byte held by DMA when reconciling the endpoints.

Self-Check

Tick each key point you covered in your answer.

What Interviewers Want to Hear (Mid-Level)

Identify the first slot that cannot accept E.

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 counted bus activity.

The separate S8.6 CPU print run says “writes=1 waits=2”. How should the monitor classify the three access edges?

Reveal the Model Answer

Count two edges with select and enable high but ready low as waits. Count the edge with select, enable, write and ready high as one completed write. Select spans four edges, e2 through e5. Apply the same distinction at SRAM. Count DMA commits only on completed SRAM writes.

Self-Check

Tick each key point you covered in your answer.

Choose the Monitor Window

Depths three and five both deliver ABCDEF by slot 12. What would you record before buying more storage for the next burst?

Reveal the Model Answer

At the slower pace depth three records “peak=3 lost=1”. Depth five records “peak=4”. Capture per-slot arrivals and actual departures from before the burst through drain. Carry forward any initial backlog and take the maximum difference. Compare sustained arrival and service rates separately: persistent excess demand eventually fills any finite queue.

Self-Check

Tick each key point you covered in your answer.

I suspected the memory port.

In the separate S8.7 eight-byte run, bytes are numbered from zero. At e5 the trace shows “fifo=2” and “rx_in=-1”. The odd bank can accept data. What keeps that bank idle?

Reveal the Model Answer

DMA holds byte two for the even bank until e6. Byte three needs the odd bank but waits behind byte two. Four FIFO slots admit byte five at e5, yet the last store still lands at e13.

Self-Check

Tick each key point you covered in your answer.

Choose the Monitor Window

Depths three and five both deliver ABCDEF by slot 12. What would you record before buying more storage for the next burst?

Reveal the Model Answer

At the slower pace depth three records “peak=3 lost=1”. Depth five records “peak=4”. Capture per-slot arrivals and actual departures from before the burst through drain. Carry forward any initial backlog and take the maximum difference. Compare sustained arrival and service rates separately: persistent excess demand eventually fills any finite queue.

Self-Check

Tick each key point you covered in your answer.

I sized the FIFO from average traffic.

The lossless run has five offers and two completed departures by slot 5. How does that explain “depth=2 peak=2 lost=1 SRAM=ABCDF”?

Reveal the Model Answer

The required backlog is 5 − 2 = 3 bytes. At depth two, C and D occupy both spaces when E arrives without a write slot. At slot 6, C departs before F takes its place. The depth-three run saves all six.

Self-Check

Tick each key point you covered in your answer.

Choose the Monitor Window

Depths three and five both deliver ABCDEF by slot 12. What would you record before buying more storage for the next burst?

Reveal the Model Answer

At the slower pace depth three records “peak=3 lost=1”. Depth five records “peak=4”. Capture per-slot arrivals and actual departures from before the burst through drain. Carry forward any initial backlog and take the maximum difference. Compare sustained arrival and service rates separately: persistent excess demand eventually fills any finite queue.

Self-Check

Tick each key point you covered in your answer.

What People Get Wrong

Common wrong answers and why they fail.

Misconception

Count every cycle with a write request as a write.

One stalled request can last several cycles.

Source S8.6, count the accepted access.

Misconception

A full FIFO proves it lost a byte.

A departure can make room on the arrival edge.

Source S8.7, simultaneous arrival and departure.

Learn It, Then Prove It