← RTL Design Interviews · SoC Architecture Interviews

Interview Question · Explain the SoC

Follow a Peripheral Read

L0 FresherL1 Juniorexplain the soc

The Question

The interviewer asks

A program reads a switch through a peripheral register. Who supplies the address and value? When can the processor use the value?

Reveal the Model Answer

The processor issues the register address. The bridge selects the peripheral, which supplies the sampled switch value. The processor takes the value on the edge that completes the read.

Self-Check

Tick each key point you covered in your answer.

What Interviewers Want to Hear (Fresher)

Trace the address outward and the value back.

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 the address.

Two devices can both return zero. How would you tell which one answered?

Reveal the Model Answer

Look at the address and the selected device. At PC 0 and PC 2, LOAD 15 selects the switches both times. The returned values differ because the switches moved between reads.

Self-Check

Tick each key point you covered in your answer.

Show One Successful Read

You may mark two moments on the trace. Which prove where the request went and what the processor received?

Reveal the Model Answer

At e0 the bridge takes the GPIO address. At e3 the core accepts 00008042 from GPIO. Three clock periods separate those edges, including one wait state.

Self-Check

Tick each key point you covered in your answer.

I discussed when the value arrives.

At e2 HRDATA already shows 00008042, but HREADY is zero. May the core use that word?

Reveal the Model Answer

Wait until e3. Only that edge has PSEL, PENABLE, PREADY and HREADY all high together.

Self-Check

Tick each key point you covered in your answer.

Show One Successful Read

You may mark two moments on the trace. Which prove where the request went and what the processor received?

Reveal the Model Answer

At e0 the bridge takes the GPIO address. At e3 the core accepts 00008042 from GPIO. Three clock periods separate those edges, including one wait state.

Self-Check

Tick each key point you covered in your answer.

I followed the value into the processor.

The instruction names a processor register and accesses a peripheral register. Which one receives the result?

Reveal the Model Answer

The peripheral register supplies the data. The load writes its destination register inside the processor.

Self-Check

Tick each key point you covered in your answer.

Show One Successful Read

You may mark two moments on the trace. Which prove where the request went and what the processor received?

Reveal the Model Answer

At e0 the bridge takes the GPIO address. At e3 the core accepts 00008042 from GPIO. Three clock periods separate those edges, including one wait state.

Self-Check

Tick each key point you covered in your answer.

I counted the wait states.

How long does the read take with zero, one or two waits? Where else could a larger chip spend time?

Reveal the Model Answer

From address acceptance, setup and access take two periods with no wait. One wait gives three periods and two give four. Measure any delay before address acceptance, time inside the device, and time carrying the reply back.

Self-Check

Tick each key point you covered in your answer.

Show One Successful Read

You may mark two moments on the trace. Which prove where the request went and what the processor received?

Reveal the Model Answer

At e0 the bridge takes the GPIO address. At e3 the core accepts 00008042 from GPIO. Three clock periods separate those edges, including one wait state.

Self-Check

Tick each key point you covered in your answer.

What People Get Wrong

Common wrong answers and why they fail.

Misconception

The address contains the switch value.

Two reads of the same register can observe different switch positions.

Source S1.2, e0 takes the address and e3 samples HRDATA.

Wrong Altitude

I would start by explaining the instruction encoding.

Identify the requester and the selected device before decoding the instruction.

Learn It, Then Prove It