Project 5, Part 1: AXI4-Lite, Five Independent Handshakes
Modern System-on-Chip (SoC) architectures connect microprocessors and memory-mapped peripherals using standard bus protocols. The ARM AMBA AXI4-Lite specification defines a point-to-point interface composed of five independent channels. Each channel operates using an autonomous ready/valid handshake mechanism. This article defines the channel signals, decoupled write architectures, and protocol dependency rules.
The Five AXI4-Lite Channels
AXI4-Lite divides read and write transactions across five specialized channels:
| Channel Identifier | Data Flow Direction | Functional Role |
|---|---|---|
| Write Address (AW) | Master to Slave | Transmits the target memory address for write operations. |
| Write Data (W) | Master to Slave | Transmits the data payload and byte write strobes. |
| Write Response (B) | Slave to Master | Confirms write transaction completion and reports error status. |
| Read Address (AR) | Master to Slave | Transmits the target memory address for read operations. |
| Read Data (R) | Slave to Master | Returns the requested read data word and read status. |
This project implements an AXI4-Lite slave peripheral that manages internal control and status registers.
The Autonomous Ready/Valid Handshake
Every channel shares an identical two-wire handshake protocol:
A data or address transfer completes on any clock edge where both VALID and READY evaluate to logic 1.
The source asserts VALID when data is stable.
The destination asserts READY when it can accept a transfer.
The AXI protocol permits the destination to assert READY before or after VALID asserts.
Once a source asserts VALID, it must keep VALID asserted until the destination asserts READY.
Decoupled Write Address and Data Channels
AXI4-Lite decouples write address (AW) and write data (W) into distinct channels.
A master pipeline can transmit the address before, during, or after transmitting the data payload.
Decoupling prevents pipeline stalls when address computation and data formatting resolve at different rates.
The slave must buffer arriving addresses or data until both channels complete their respective handshakes.
Transaction Ordering and Dependency Rules
The AXI specification establishes strict inter-channel dependencies:
The slave must never assert BVALID (Write Response) until both AWVALID/AWREADY and WVALID/WREADY handshakes complete.
This rule guarantees that the slave commits written data before notifying the bus master.
Similarly, on read operations, the slave must never assert RVALID before the ARVALID/ARREADY handshake concludes.
Practice Exercise
A master asserts AWVALID on cycle 0, and the slave asserts AWREADY on cycle 3.
The master asserts WVALID on cycle 1, and the slave asserts WREADY on cycle 1.
Identify the completion cycle for each channel and state when the slave may issue the write response.
Solution
- The
W(Write Data) channel completes on cycle 1 because bothWVALIDandWREADYare high. - The
AW(Write Address) channel completes on cycle 3 whenAWREADYtransitions high.
Although write data arrived on cycle 1, the slave lacks the destination address until cycle 3.
Therefore, the internal write commits on cycle 3.
The slave may assert BVALID on or after cycle 3, satisfying the ordering dependency.
AXI4-Lite provides five independent channels operating through ready/valid handshakes. Decoupling write address and write data channels provides pipeline flexibility across SoC interconnects. The next article implements the slave register file and channel handshake state machines.