← RTL Design Interviews · SoC Architecture Interviews

Interview Question · Reason About Traffic and Performance

Route Two AXI Reads Home

L2 Mid-LevelL3 Seniortraffic and performance

The Question

The interviewer asks

Sketch an N-manager, M-target crossbar. On the fourth edge the CPU reads the console and DMA reads SRAM. Both use ID 01. What must travel with each accepted request?

Reveal the Model Answer

Decode the target from the address and arbitrate among requests for that target. Keep the issuing port and its local ID until the reply transfers. Different targets can accept work together. In the tagged run both reads finish at e6.

Self-Check

Tick each key point you covered in your answer.

What Interviewers Want to Hear (Mid-Level)

Trace the requesting manager and its original ID through the return path.

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 bits to the ID.

At e6 the lab returns 101 with d1 and 001 with 68. Who receives each word? What if one manager reuses 01?

Reveal the Model Answer

The leading bit routes d1 to DMA and 68 to the CPU. Each sees its original 01. The prefix distinguishes managers. Within one manager, keep replies with the same ID in issue order.

Self-Check

Tick each key point you covered in your answer.

Set the Outstanding Limit

The team wants to accept another read every cycle. What must you establish before advertising that rate?

Reveal the Model Answer

S4.14 has one read slot per subordinate. Its two SRAM replies transfer at e9 and e11. Budget routes and reply space for every accepted read, including blocked replies. Stop accepting before that capacity runs out. Measure completed reads per cycle with equal IDs and stalled receivers.

Self-Check

Tick each key point you covered in your answer.

I let several requests proceed.

S4.14 gives SRAM one read slot. Suppose m0 lowers RREADY before its e9 reply. Which state can you recycle?

Reveal the Model Answer

Keep the route and SRAM slot for that read until the R handshake. Hold RVALID, data, response and ID stable until RREADY is also high. A second SRAM read must wait, while another target can serve independent work.

Self-Check

Tick each key point you covered in your answer.

Set the Outstanding Limit

The team wants to accept another read every cycle. What must you establish before advertising that rate?

Reveal the Model Answer

S4.14 has one read slot per subordinate. Its two SRAM replies transfer at e9 and e11. Budget routes and reply space for every accepted read, including blocked replies. Stop accepting before that capacity runs out. Measure completed reads per cycle with equal IDs and stalled receivers.

Self-Check

Tick each key point you covered in your answer.

I drew routes only to real targets.

S4.14 accepts 0x1000_7000 at e12 and returns zero with resp=11 at e14. May a larger crossbar drop the remaining beats of a failed burst?

Reveal the Model Answer

The default subordinate returns DECERR to the original requester. The zero carries no usable data. A burst-capable implementation must finish all required beats, including write data before the write response. Otherwise the manager can wait forever.

Self-Check

Tick each key point you covered in your answer.

Set the Outstanding Limit

The team wants to accept another read every cycle. What must you establish before advertising that rate?

Reveal the Model Answer

S4.14 has one read slot per subordinate. Its two SRAM replies transfer at e9 and e11. Budget routes and reply space for every accepted read, including blocked replies. Stop accepting before that capacity runs out. Measure completed reads per cycle with equal IDs and stalled receivers.

Self-Check

Tick each key point you covered in your answer.

I reused a read ID across targets.

One manager uses ID 01 for a slow read, then uses 01 at a faster target. How do you keep the replies ordered?

Reveal the Model Answer

Hold the second address until the earlier same-ID reply transfers. To accept both, track their issue order and store the faster reply until it can return in order. Budget space for that waiting reply.

Self-Check

Tick each key point you covered in your answer.

Set the Outstanding Limit

The team wants to accept another read every cycle. What must you establish before advertising that rate?

Reveal the Model Answer

S4.14 has one read slot per subordinate. Its two SRAM replies transfer at e9 and e11. Budget routes and reply space for every accepted read, including blocked replies. Stop accepting before that capacity runs out. Measure completed reads per cycle with equal IDs and stalled receivers.

Self-Check

Tick each key point you covered in your answer.

I decoded the live address for every channel.

At e1 AW already names SRAM, but W carries 68. Which target owns that byte?

Reveal the Model Answer

The earlier accepted write address selected the console. Save that choice until its write data transfers. Byte 68 reaches the console at e1. Decoding the live address would send it to SRAM.

Self-Check

Tick each key point you covered in your answer.

Set the Outstanding Limit

The team wants to accept another read every cycle. What must you establish before advertising that rate?

Reveal the Model Answer

S4.14 has one read slot per subordinate. Its two SRAM replies transfer at e9 and e11. Budget routes and reply space for every accepted read, including blocked replies. Stop accepting before that capacity runs out. Measure completed reads per cycle with equal IDs and stalled receivers.

Self-Check

Tick each key point you covered in your answer.

What People Get Wrong

Common wrong answers and why they fail.

Misconception

ID 01 identifies the CPU.

Each manager chooses its own IDs.

Source S4.6, two managers issue the same ID.

Misconception

Granting an address frees its return route.

The target can still owe the manager a response.

Source S4.6, response routing after address acceptance.

Learn It, Then Prove It