← RTL Design Interviews · SoC Architecture Interviews

Interview Question · Diagnose a Chip from Evidence

What Did the Live Side See?

L2 Mid-LevelL3 Seniordiagnose from evidence

The Question

The interviewer asks

Two blocks share a clock. Only the sender resets. The receiver treats a change of a saved bit as a new event. What would you capture?

Reveal the Model Answer

Record the sender bit, local reset, receiver’s previous sample and event acceptance together. If reset takes a one to zero, a change detector can count a nonexistent event. This proposed detector illustrates the crossing. The lesson lab instead loses a pending read.

Self-Check

Tick each key point you covered in your answer.

What Interviewers Want to Hear (Mid-Level)

Explain how independent resets create a crossing on one clock.

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 waited for stable samples.

S5.6 goes from “reserved … pending=1 hready=1” to “reset isolated=0 pending=0 enable=1 hready=0”. Suppose a listener counts changes on ready. When can it listen again?

Reveal the Model Answer

Pending is internal to the timer, while ready crosses to the live side. Mask event recognition before reset. Keep it masked until the sender is initialized and the listener has sampled the new baseline. Otherwise even a stable zero differs from the remembered one. Separately test that the first genuine change counts exactly once.

Self-Check

Tick each key point you covered in your answer.

Authorize a Local Restart

The timer is stuck, the CPU is idle and a debugger can still issue reads. How can software recover?

Reveal the Model Answer

Stop every requester, including debug. Drain accepted work or have the live side terminate a stuck transfer with an error. Isolate before resetting. Release reset, establish valid state, then reconnect. Local recovery preserves other work but requires isolation and a way to return an error.

Self-Check

Tick each key point you covered in your answer.

I released both sides cleanly.

After release S5.6 prints “sel=1 enable=1 pending=0 hready=0”. Which side could move the transaction forward?

Reveal the Model Answer

Neither side can progress. The bridge waits in access for ready. This lab’s timer sets pending only in setup, which has already passed. A timer that answered every access could finish with a count of zero. In the drained run the old read returns 00000005 before isolation, and the next returns 00000004.

Self-Check

Tick each key point you covered in your answer.

Authorize a Local Restart

The timer is stuck, the CPU is idle and a debugger can still issue reads. How can software recover?

Reveal the Model Answer

Stop every requester, including debug. Drain accepted work or have the live side terminate a stuck transfer with an error. Isolate before resetting. Release reset, establish valid state, then reconnect. Local recovery preserves other work but requires isolation and a way to return an error.

Self-Check

Tick each key point you covered in your answer.

I checked the samples in simulation.

Your simulation shows clean zeros. What hazard can it miss?

Reveal the Model Answer

A reset transition near the sampling edge can leave a receiving flip-flop electrically unsettled. The digital trace shows the lost read but cannot show that electrical hazard.

Self-Check

Tick each key point you covered in your answer.

Authorize a Local Restart

The timer is stuck, the CPU is idle and a debugger can still issue reads. How can software recover?

Reveal the Model Answer

Stop every requester, including debug. Drain accepted work or have the live side terminate a stuck transfer with an error. Isolate before resetting. Release reset, establish valid state, then reconnect. Local recovery preserves other work but requires isolation and a way to return an error.

Self-Check

Tick each key point you covered in your answer.

I returned an error to the requester.

May software retry a timed-out write to a device?

Reveal the Model Answer

First establish whether the write took effect. For example, retrying an accepted queue write could enqueue the same item twice. Retry only if repetition is safe or the device confirms the first write had no effect.

Self-Check

Tick each key point you covered in your answer.

Authorize a Local Restart

The timer is stuck, the CPU is idle and a debugger can still issue reads. How can software recover?

Reveal the Model Answer

Stop every requester, including debug. Drain accepted work or have the live side terminate a stuck transfer with an error. Isolate before resetting. Release reset, establish valid state, then reconnect. Local recovery preserves other work but requires isolation and a way to return an error.

Self-Check

Tick each key point you covered in your answer.

What People Get Wrong

Common wrong answers and why they fail.

Misconception

Using one clock removes this crossing.

One reset still changes state seen by a running receiver.

Source S5.6, rule 1 and local timer reset.

Half-Truth

I would add sampling stages everywhere.

Clean samples can still communicate a reset-induced change or a lost transaction.

Source S5.6, Trap paragraph 2 and Isolate the crossing design choice.

Learn It, Then Prove It