AXI4 Protocol Explained: The Complete Beginner's Guide
AXI's five independent channels, the VALID/READY handshake that governs all of them, and why splitting a transaction this way unlocks far higher throughput than AHB.
This is the protocol most digital design and verification engineers spend the majority of their career working with. Everything from here through Day 10 builds directly on what's in this post, so take your time with the channel architecture below — it's the single most important mental model in this entire series.
In This Article
1.Why AXI Exists
AHB's single shared address/data bus means only one transaction is in flight at a time. As CPU and memory-controller frequencies climbed, that became the limiting factor for system throughput. AXI's answer was architectural: instead of one shared bus, split every transaction into independent channels, each with its own handshake, so multiple transactions can be in flight simultaneously and complete out of order.
2.The Five Independent Channels
| Channel | Direction | Carries |
|---|---|---|
| Write Address (AW) | Master → Slave | Write address, burst length/size/type, ID |
| Write Data (W) | Master → Slave | Write data beats, byte strobes, last-beat flag |
| Write Response (B) | Slave → Master | Write completion status, matched by ID |
| Read Address (AR) | Master → Slave | Read address, burst length/size/type, ID |
| Read Data (R) | Slave → Master | Read data beats, response status, last-beat flag, ID |
3.The VALID/READY Handshake
Every one of the five channels uses the exact same handshake rule: a transfer happens on the clock edge where both VALID and READY are high simultaneously. The source (whoever is sending information on that channel) drives VALID; the destination drives READY.
- The source may assert VALID and then wait any number of cycles for READY.
- Critically: once VALID is asserted, it cannot be withdrawn until the transfer completes (a rule we'll cover in full on Day 8).
- The destination is allowed to wait for VALID before asserting READY, assert READY independent of VALID, or anything in between — but it cannot wait for VALID to assert READY and then retract it.
Because each channel handshakes independently, AW and W can even complete in either order relative to each other (though W beats must stay in order relative to each other), which is part of what gives AXI its flexibility.
4.Write Transaction Flow
5.Read Transaction Flow
6.Key Signals by Channel
Three fields appear on both the AW and AR channels and control the entire shape of a burst — we'll dig into these in full on Day 7:
- LEN — number of beats in the burst, minus one.
- SIZE — number of bytes per beat.
- BURST — INCR, WRAP, or FIXED addressing pattern.
And ID fields (AWID/BID, ARID/RID) are what let AXI support multiple outstanding, out-of-order transactions — the slave tags every response with the same ID the master used for the request, so the master can match them up correctly even if responses arrive out of the original request order.
Recap: What We Covered Today
- AXI splits every transaction into five independent channels: AW, W, B (writes) and AR, R (reads).
- Every channel uses the same VALID/READY handshake; a transfer occurs when both are high on the same edge.
- Writes use a 3-channel flow ending in a single bundled response (B); reads use a 2-channel flow with response bundled into each R beat.
- ID tagging lets AXI support multiple outstanding, out-of-order transactions.
AXI4-Lite vs AXI4 vs AXI-Stream: What's the Difference?
Tomorrow we compare the three AXI variants side by side — use cases, feature sets, and which one you should reach for depending on the block you're designing.
Comments
Post a Comment