← RTL Design Interviews · SoC Architecture Interviews
Interview Question · Diagnose a Chip from Evidence
The Handler Never Ran
The Question
The interviewer asks
Firmware times out waiting for a peripheral interrupt. The device can latch an event even when delivery is masked. What would you inspect first, and why?
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
Read raw status if the read preserves it. A set flag directs attention toward masking and delivery. A clear flag calls for checking capture and any earlier clear.
Self-Check
Tick each key point you covered in your answer.
What Interviewers Want to Hear (Junior)
Say which observation would change your next step.
What Interviewers Want to Hear (Senior)
Account for probes that acknowledge events or destroy evidence.
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 inspected the device flag.
A second driver can clear the event flag. Does a zero prove the device missed the event?
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
Trace capture and clear together. An earlier clear could explain the zero. In S6.2 a rise coincides with a clear. The correct device keeps raw=10 while the faulty one clears it to 00.
Self-Check
Tick each key point you covered in your answer.
Report the First Missing Event
How would you report the failure so the next engineer can reproduce it without accepting your preferred diagnosis?
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
Record the stimulus, source ID, masks and timing. Name the last observed event and the first expected event that failed under a reliable probe. Prefer a passive trace when a claim read would consume evidence. Budget capture storage for the full service and return.
Self-Check
Tick each key point you covered in your answer.
I inspected interrupt delivery.
The source is pending. Which gates stand between that bit and trap entry on ap_soc?
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
Check that priority exceeds zero, the source is enabled and its priority strictly exceeds the threshold. Follow the external interrupt wire to the core. Check mie bit 11 and mstatus bit 3, then look for trap entry.
Self-Check
Tick each key point you covered in your answer.
Report the First Missing Event
How would you report the failure so the next engineer can reproduce it without accepting your preferred diagnosis?
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
Record the stimulus, source ID, masks and timing. Name the last observed event and the first expected event that failed under a reliable probe. Prefer a passive trace when a claim read would consume evidence. Budget capture storage for the full service and return.
Self-Check
Tick each key point you covered in your answer.
I instrumented the handler.
The request wire rose. A complete capture of that interval has no I packet. What can you conclude? What if the start packet is missing?
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 core took no interrupt during the complete capture. The request wire alone cannot prove entry. With the start packet removed, the decoder can place “not one address”. Capture the start and the event together before reporting a handler address.
Self-Check
Tick each key point you covered in your answer.
Report the First Missing Event
How would you report the failure so the next engineer can reproduce it without accepting your preferred diagnosis?
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
Record the stimulus, source ID, masks and timing. Name the last observed event and the first expected event that failed under a reliable probe. Prefer a passive trace when a claim read would consume evidence. Budget capture storage for the full service and return.
Self-Check
Tick each key point you covered in your answer.
I saw the first handler run.
The first event reached the handler. The next never arrives. Which write would you check?
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
Compare the ID returned by claim with the ID written on completion. A wrong ID leaves the original gateway busy, blocking the next request from that source.
Self-Check
Tick each key point you covered in your answer.
Report the First Missing Event
How would you report the failure so the next engineer can reproduce it without accepting your preferred diagnosis?
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
Record the stimulus, source ID, masks and timing. Name the last observed event and the first expected event that failed under a reliable probe. Prefer a passive trace when a claim read would consume evidence. Budget capture storage for the full service and return.
Self-Check
Tick each key point you covered in your answer.
I saw the handler start.
In S11.6 UART0 receives 4b at t=36. The core saves mepc=00000060, enters 180 hex and claims 1. Trace that byte through return.
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
Read the UART receive register once to pop the byte, publish the sample in SRAM, then complete ID 1 at t=39. At t=41 mret resumes at the saved PC 00000060. RISC-V specifies that mret restores MIE from MPIE. For nested interrupts, save mepc and mstatus before reopening MIE. S6.14 describes these rules without checking them.
Self-Check
Tick each key point you covered in your answer.
Report the First Missing Event
How would you report the failure so the next engineer can reproduce it without accepting your preferred diagnosis?
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
Record the stimulus, source ID, masks and timing. Name the last observed event and the first expected event that failed under a reliable probe. Prefer a passive trace when a claim read would consume evidence. Budget capture storage for the full service and return.
Self-Check
Tick each key point you covered in your answer.
What People Get Wrong
Common wrong answers and why they fail.
Misconception
The timeout proves the device missed the event.
Masking at the controller can produce the same software symptom.
Source S6.2, raw and masked columns.
Missed Corner
I would dump every register first.
Reading a claim register may change the pending state during investigation.
Source S6.3, claim read consumes pending.
Learn It, Then Prove It
- Lesson S6.1The Interrupt Path
- Lesson S6.2Interrupt Registers in a Peripheral: Level, Edge and Write-1-to-Clear
- Lesson S6.3The Interrupt Controller: A PLIC
- Lesson S6.4Interrupts at the Core: The Enable Bits
- Lesson S8.4Trace: Rebuilding the Path of a Program
- Lesson S6.14Interrupt Entry and Return
- Lesson S11.6From the First Interrupt to the First DMA Copy
- Lesson S6.16Capstone Step: Firmware Bring-Up
- Problem S6.16.2Three Bring-Up Failures