← RTL Design Interviews · SoC Architecture Interviews

Interview Question · Reason About Traffic and Performance

Choose a Bus for Each Port

L0 FresherL2 Mid-Leveltraffic and performance

The Question

The interviewer asks

A chip has occasional control writes, sequential SRAM reads, and a port issuing several reads before any reply. Where would APB, AHB and AXI fit?

Reveal the Model Answer

Use APB for control registers and consider pipelined AHB for successive SRAM reads. Use AXI where the port needs several outstanding transactions. Check that the target can actually accept the requested traffic.

Self-Check

Tick each key point you covered in your answer.

What Interviewers Want to Hear (Fresher)

Match each port to a transfer requirement.

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 grouped the register devices.

The processor uses AHB and the APB device extends its access. Sketch the bridge. What must survive the wait?

Reveal the Model Answer

Draw the AHB port feeding saved address and control registers, then an APB controller driving the device. Hold the request stable through setup, access and any extra wait cycles. Hold HREADY low through the APB wait. Return the read data on success. Translate PSLVERR at completion into the two-cycle AHB error.

Self-Check

Tick each key point you covered in your answer.

Justify the Extra Logic

The team can upgrade one port to AXI. Which observation would justify it, and what would you measure after the change?

Reveal the Model Answer

Look for idle service capacity while independent requests wait for earlier replies. Verify that both endpoints support outstanding work. Compare completed useful reads per unit time under the same traffic.

Self-Check

Tick each key point you covered in your answer.

I chose AXI for speed.

The target accepts its next request only after returning the current result. What happens to the proposed gain from outstanding reads?

Reveal the Model Answer

Requests may queue upstream, but this target still serves one at a time. Measure its service time before paying for more stored routes.

Self-Check

Tick each key point you covered in your answer.

Justify the Extra Logic

The team can upgrade one port to AXI. Which observation would justify it, and what would you measure after the change?

Reveal the Model Answer

Look for idle service capacity while independent requests wait for earlier replies. Verify that both endpoints support outstanding work. Compare completed useful reads per unit time under the same traffic.

Self-Check

Tick each key point you covered in your answer.

I considered a wider bus.

Instruction fetches stall behind register writes even though ROM is idle. Which part of the design would you examine first?

Reveal the Model Answer

Trace where the two paths share a grant or a waiting transfer. Separate target paths can allow concurrent service if the requesters can issue independently.

Self-Check

Tick each key point you covered in your answer.

Justify the Extra Logic

The team can upgrade one port to AXI. Which observation would justify it, and what would you measure after the change?

Reveal the Model Answer

Look for idle service capacity while independent requests wait for earlier replies. Verify that both endpoints support outstanding work. Compare completed useful reads per unit time under the same traffic.

Self-Check

Tick each key point you covered in your answer.

I asked what the chip actually issues.

The CPU fetches from ROM while DMA reads SRAM at e1 in the matrix lab. Does that concurrency justify AXI?

Reveal the Model Answer

Separate AHB paths already serve those two managers together. No ap_soc port needs several requests outstanding before its first reply. The extra AXI channels and stored routes would buy no useful overlap here.

Self-Check

Tick each key point you covered in your answer.

Justify the Extra Logic

The team can upgrade one port to AXI. Which observation would justify it, and what would you measure after the change?

Reveal the Model Answer

Look for idle service capacity while independent requests wait for earlier replies. Verify that both endpoints support outstanding work. Compare completed useful reads per unit time under the same traffic.

Self-Check

Tick each key point you covered in your answer.

What People Get Wrong

Common wrong answers and why they fail.

Half-Truth

A faster bus makes the peripheral finish sooner.

A slow device can still hold the response while its operation runs.

Buzzword Without Mechanism

Every port should use the richest protocol.

Extra tracking logic buys little for a register accessed once at startup.

Learn It, Then Prove It