← RTL Design Interviews · SoC Architecture Interviews

Interview Question · Diagnose a Chip from Evidence

The Probe Reads an ID. Where Is the Core?

L1 JuniorL2 Mid-Leveldiagnose from evidence

The Question

The interviewer asks

A board probe reads a repeatable ID, yet its register dump changes between reads. Which parts of the debug path have actually answered?

Reveal the Model Answer

An ID establishes a working scan path to a selected data register. A halt needs a command through the debug transport, a request from the debug module and a halted reply from the hart. Wait for that reply before inspecting stopped state.

Self-Check

Tick each key point you covered in your answer.

What Interviewers Want to Hear (Junior)

Walk instruction and data scans to their update edges.

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 selected a register.

S8.2 starts the ID scan with TDO bits 1,0,0,0 from 142000b1. Walk the probe from an unknown state to reading those bits.

Reveal the Model Answer

Hold TMS high for five rising TCK edges to reset the TAP, then low for Idle. Select DR, capture, then shift the ID least-significant bit first. Shift the last bit while leaving Shift, then update and return to Idle. 142000b1 belongs to the neighbour nearest TDO. In this two-ID scan, ap_soc’s 2a5310c5 begins after the first 32 bits.

Self-Check

Tick each key point you covered in your answer.

Approve a Diagnostic Snapshot

You can halt the hart to inspect registers during a timing failure. When is that acceptable?

Reveal the Model Answer

Use a confirmed halt for a consistent view of hart registers. It interrupts execution and other devices can continue changing. For a timing-sensitive failure preserve a running trace first. Use halt and step afterward to test the instruction boundary identified there.

Self-Check

Tick each key point you covered in your answer.

I read the right number of bits.

S8.2 prints “mixed bypass=0 upstream_ID=2a5310c5”. How many shift edges read that ID and where does the extra bit come from?

Reveal the Model Answer

Count one BYPASS cell near TDO plus the upstream 32-bit ID, or 33 shifts. The bypass bit comes out first. Check the chain length with both chips in BYPASS before blaming a shifted word on the target core.

Self-Check

Tick each key point you covered in your answer.

Approve a Diagnostic Snapshot

You can halt the hart to inspect registers during a timing failure. When is that acceptable?

Reveal the Model Answer

Use a confirmed halt for a consistent view of hart registers. It interrupts execution and other devices can continue changing. For a timing-sensitive failure preserve a running trace first. Use halt and step afterward to test the instruction boundary identified there.

Self-Check

Tick each key point you covered in your answer.

I saw the halt request.

In the separate S8.9 trace e3 is running at 00 after halt was requested. At e4 the hart is halted at 04 with x5=41 hex. Did it ignore the request?

Reveal the Model Answer

The instruction in progress finished. Only e4 confirms the stop. A single step next reaches e6 halted at 08 with x5=42 hex. Check that exactly one instruction finished, even if it needed several clock edges.

Self-Check

Tick each key point you covered in your answer.

Approve a Diagnostic Snapshot

You can halt the hart to inspect registers during a timing failure. When is that acceptable?

Reveal the Model Answer

Use a confirmed halt for a consistent view of hart registers. It interrupts execution and other devices can continue changing. For a timing-sensitive failure preserve a running trace first. Use halt and step afterward to test the instruction boundary identified there.

Self-Check

Tick each key point you covered in your answer.

I reset the scan path.

After those five edges, does the program restart?

Reveal the Model Answer

No. The edges reset the test access port (TAP). They select its reset scan state while the processor continues unless it receives a separate reset or halt.

Self-Check

Tick each key point you covered in your answer.

Approve a Diagnostic Snapshot

You can halt the hart to inspect registers during a timing failure. When is that acceptable?

Reveal the Model Answer

Use a confirmed halt for a consistent view of hart registers. It interrupts execution and other devices can continue changing. For a timing-sensitive failure preserve a running trace first. Use halt and step afterward to test the instruction boundary identified there.

Self-Check

Tick each key point you covered in your answer.

What People Get Wrong

Common wrong answers and why they fail.

Misconception

The edge leaving Shift carries no data.

It shifts the last bit while TMS is high.

Source S8.2, rule 4 and One Shift Too Many.

Misconception

An ID is enough evidence for reading the hart’s registers.

The ID register can answer while the hart runs.

Source S8.2, ID scan. S8.9, e3 running after request.

Learn It, Then Prove It