← RTL Design Interviews · SoC Architecture Interviews

Interview Question · Diagnose a Chip from Evidence

Both Targets Answered. Why Is the Core Waiting?

L3 SeniorL4 Staffdiagnose from evidence

The Question

The interviewer asks

GPIO and SRAM each owe one read reply. Both reads used ID 2. Can you prove deadlock from five cycles without a delivery?

Reveal the Model Answer

First trace what each participant needs before it can advance. A slow target can produce the same quiet interval. Prove that every event capable of releasing the wait depends on another event inside the cycle.

Self-Check

Tick each key point you covered in your answer.

What Interviewers Want to Hear (Senior)

Name the occupant and the reply that must pass it.

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 a blocked return.

At e1 the trace reads “older=1 younger=0 full=1 young=1 deliver=0”. Which event would have to happen first?

Reveal the Model Answer

GPIO needs the sole slot to deliver its older word. Freeing that slot requires delivering SRAM. Delivering SRAM requires delivery of the GPIO reply first because both reads used ID 2. Two ready replies contend for one entry with no legal first move.

Self-Check

Tick each key point you covered in your answer.

Defend the Admission Rule

You must keep the single return slot and preserve same-ID order. Which request would you stall, and how would you verify progress?

Reveal the Model Answer

Hold the younger same-ID read until the older one completes. This costs overlap for that ID. Replay the early SRAM response case and check both words reach the manager in issue order. State the progress assumptions explicitly: each admitted target eventually replies and the manager eventually accepts.

Self-Check

Tick each key point you covered in your answer.

I proposed separate IDs.

With the SRAM read issued as ID 3, deliver rises at e1 and e3. Why would changing an internal tag alone be insufficient?

Reveal the Model Answer

The manager accepts SRAM first because it issued independent IDs. The slot is empty at e2. At e3 it takes the GPIO reply and delivers it. With equal upstream IDs, reserve space for the older response or hold back the younger request.

Self-Check

Tick each key point you covered in your answer.

Defend the Admission Rule

You must keep the single return slot and preserve same-ID order. Which request would you stall, and how would you verify progress?

Reveal the Model Answer

Hold the younger same-ID read until the older one completes. This costs overlap for that ID. Replay the early SRAM response case and check both words reach the manager in issue order. State the progress assumptions explicitly: each admitted target eventually replies and the manager eventually accepts.

Self-Check

Tick each key point you covered in your answer.

I added a timeout.

Read A times out at edge 4. B uses ID 1 at edge 5. An ID 1 reply arrives at edge 6. Whose data is it?

Reveal the Model Answer

The recorded reply belongs to A. Reusing ID 1 aliases two lifetimes. Close that ID at timeout, discard A’s late reply at 6, then issue B at 7. If A never replies, reset or cut off the device before reopening that ID.

Self-Check

Tick each key point you covered in your answer.

Defend the Admission Rule

You must keep the single return slot and preserve same-ID order. Which request would you stall, and how would you verify progress?

Reveal the Model Answer

Hold the younger same-ID read until the older one completes. This costs overlap for that ID. Replay the early SRAM response case and check both words reach the manager in issue order. State the progress assumptions explicitly: each admitted target eventually replies and the manager eventually accepts.

Self-Check

Tick each key point you covered in your answer.

What People Get Wrong

Common wrong answers and why they fail.

Misconception

Raise GPIO priority after its reply arrives.

The only place to hold a reply is already occupied.

Source S4.9, occupied return slot at e1.

Half-Truth

Retry every timed-out write.

The device may already have acted on it.

Learn It, Then Prove It