← RTL Design Interviews · SoC Architecture Interviews

Interview Question · Plan Boot, Reset, and Power Transitions

Wake a Core Whose Clock Has Stopped

L1 JuniorL3 Seniorboot reset and power

The Question

The interviewer asks

The core clock stops in ap_soc sleep. A button changes after its last edge. What can still observe the change and restart execution?

Reveal the Model Answer

All supplies stay on and the peripheral bus clock keeps running. A detector on the always-on clock records the press in a pending bit. That bit opens the core clock gate. In the separate S11.7 board run, the PC resumes at 0x94.

Self-Check

Tick each key point you covered in your answer.

What Interviewers Want to Hear (Junior)

Identify the circuit that can still observe the sensor.

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 started with event capture.

Can the always-on detector capture every press, even one shorter than its clock period?

Reveal the Model Answer

A press shorter than one period of that clock could slip between two samples. Hold the request until sampled or specify a minimum width that guarantees sampling. A detector driven by the stopped core clock cannot wake that core.

Self-Check

Tick each key point you covered in your answer.

Test the Handoff

Which observations distinguish a resumed program from a fresh boot? How should software identify a button that has already been released?

Reveal the Model Answer

In S5.8 the core edge count stays at seven as pending rises, then advances to eight. In S11.7 execution resumes at 0x94 with the copied SRAM word intact. Read the stored cause before acknowledging it. The pin gives only its present level.

Self-Check

Tick each key point you covered in your answer.

I considered switching off a supply.

Suppose a different chip switches off its peripheral supply in deep sleep. What changes, and which sleep mode meets a 3 µs wake deadline?

Reveal the Model Answer

Apply QUIET before switching off PD_PER to hold its outputs at safe values. Restore the supply and reset the domain before releasing isolation. Power good alone cannot authorize a peripheral read. In S5.13 sleep wakes in 1 µs and deep sleep takes 5 µs. Only sleep meets the deadline.

Self-Check

Tick each key point you covered in your answer.

Test the Handoff

Which observations distinguish a resumed program from a fresh boot? How should software identify a button that has already been released?

Reveal the Model Answer

In S5.8 the core edge count stays at seven as pending rises, then advances to eight. In S11.7 execution resumes at 0x94 with the copied SRAM word intact. Read the stored cause before acknowledging it. The pin gives only its present level.

Self-Check

Tick each key point you covered in your answer.

I considered sleep entry.

The button event becomes pending just as software requests sleep. When can the gate actually close?

Reveal the Model Answer

Close it only when the sleep request is one, the bus is idle and pending is zero. A pending wake keeps the gate open. If the gate already closed, the always-on detector can still set pending and reopen it.

Self-Check

Tick each key point you covered in your answer.

Test the Handoff

Which observations distinguish a resumed program from a fresh boot? How should software identify a button that has already been released?

Reveal the Model Answer

In S5.8 the core edge count stays at seven as pending rises, then advances to eight. In S11.7 execution resumes at 0x94 with the copied SRAM word intact. Read the stored cause before acknowledging it. The pin gives only its present level.

Self-Check

Tick each key point you covered in your answer.

What People Get Wrong

Common wrong answers and why they fail.

Misconception

The sleeping core can sample the button to restart itself.

Sampling needs an edge. The always-on detector can set pending while the core edge count stays at seven.

Source S5.8, frozen core edge count.

Misconception

A low pin means the wake was spurious.

The pin can fall before software runs. The stored cause survives until software acknowledges it.

Source S5.8, saved cause after release.

Learn It, Then Prove It