← RTL Design Interviews · SoC Architecture Interviews
Interview Question · Diagnose a Chip from Evidence
Can Software Trust This SRAM Read?
The Question
The interviewer asks
A proposed SRAM must keep serving after one flipped bit and report a word it cannot repair. What must happen before data reaches software?
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 the stored word and its check bits together. In the SEC-DED model, correct one error and detect two. An uncorrectable word ends the bus read with an error. This is a teaching model beyond ap_soc.
Self-Check
Tick each key point you covered in your answer.
What Interviewers Want to Hear (Mid-Level)
Read syndrome together with overall parity.
What Interviewers Want to Hear (Senior)
Distinguish correcting the outgoing data from repairing storage and reporting a failure.
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 added one parity bit.
S3.12 writes 0_10110010. Flipping bit 3 gives 0_10111010 and a parity error. What if another data bit flips before that read?
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 first flip takes four ones to five. The two-flip run prints “bit 6 flips | stored 0_11111010”. The read finds even parity and accepts 11111010. Even parity would accept a changed word, and parity alone cannot locate the first bad bit.
Self-Check
Tick each key point you covered in your answer.
Specify the Response to Corruption
For this workload, would you pay for correction and periodic scrubbing or rely on parity and retry?
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
Parity suffices when software can fetch undamaged data again. Choose correction here because a retry rereads damaged SRAM. For a 64-bit word, eight check bits bring storage to 72 bits. Record corrected counts and addresses, and schedule scrubs so a word rarely takes a second hit before repair. On a double error, report the failure before consuming data.
Self-Check
Tick each key point you covered in your answer.
I located the flipped bit.
S3.27 flips positions 5 and 2 in one stored word. The next read gives syndrome 7 and even overall parity. Would you flip position 7?
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
No. The two positions give 5 exclusive-OR 2 = 7. Even parity distinguishes this double error from a correctable single error. Withhold data. The syndrome-only decoder prints “one error at position 7: corrected | data 0001”. The written value was 1011. S3.28 shows the reporting contract with a bus error, the failing address and an interrupt.
Self-Check
Tick each key point you covered in your answer.
Specify the Response to Corruption
For this workload, would you pay for correction and periodic scrubbing or rely on parity and retry?
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
Parity suffices when software can fetch undamaged data again. Choose correction here because a retry rereads damaged SRAM. For a 64-bit word, eight check bits bring storage to 72 bits. Record corrected counts and addresses, and schedule scrubs so a word rarely takes a second hit before repair. On a double error, report the failure before consuming data.
Self-Check
Tick each key point you covered in your answer.
I corrected the read.
S3.28 reads word 1 twice. Both reads return 1011 and corrected_count goes from 1 to 2. Is a second physical upset required?
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
No. Both reads repair only the outgoing value. The first flipped bit survives in SRAM. The scrub pass reads four words and rewrites one repaired code word and raises the count to 3. Without repair the position-2 hit leaves 1000 1110, two wrong bits and no data.
Self-Check
Tick each key point you covered in your answer.
Specify the Response to Corruption
For this workload, would you pay for correction and periodic scrubbing or rely on parity and retry?
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
Parity suffices when software can fetch undamaged data again. Choose correction here because a retry rereads damaged SRAM. For a 64-bit word, eight check bits bring storage to 72 bits. Record corrected counts and addresses, and schedule scrubs so a word rarely takes a second hit before repair. On a double error, report the failure before consuming data.
Self-Check
Tick each key point you covered in your answer.
What People Get Wrong
Common wrong answers and why they fail.
Misconception
Counted corrections equal distinct faulty cells.
Two reads of the same stored error can raise the count twice.
Source S3.28, two reads of word 1.
Misconception
Flip the position named by any nonzero syndrome.
Two errors can name a third position.
Source S3.27, positions 5 and 2 give syndrome 7.