What you practice
Write channels (AW, W, B) RTL: AWREADY and WREADY handshake (1.1). Implement AXI4-Lite write channel handshake logic for AWREADY and WREADY. It is in Write Channels RTL — Part 1 · AXI4-Lite RTL Design of the AXI Masterclass. Design an AXI4-Lite slave in pure SystemVerilog.
AXI only counts when the handshake simulates. RTL Studio is the Verilog and SystemVerilog IDE where you edit the RTL and prove each beat on a VCD.
What you will learn
Today you will implement the AXI4-Lite write channel handshake logic for AWREADY and WREADY signals, ensuring proper flow control between master and slave.
Learning objectives
- Understand AXI write channel handshake protocol (valid/ready handshake).
- Implement combinational logic for AWREADY and WREADY assertion.
- Recognize the role of
wr_addr_doneandwr_data_doneflags in generating BVALID. - Write simple testbench stimulus to verify handshake behavior.
Theory
AXI4-Lite uses a simple valid/ready handshake for each channel: the master asserts VALID when data is ready, and the slave asserts READY when it can accept the data.
| Signal | Direction | Meaning |
|---|---|---|
awvalid | master → slave | Address valid |
awready | slave → master | Slave ready to accept address |
wvalid | master → slave | Write data valid |
wready | slave → master | Slave ready to accept write data |
Handshake occurs when both valid and ready are high in the same cycle. For AXI-Lite slaves, AWREADY and WREADY are typically asserted immediately when VALID is seen, unless internal state prevents it.
Practice
- Open RtlStudio and select this chapter.
Files appear in Explore under student/.
- Open
student/rtl/axi_lite_slave.svandstudent/tb/tb_top.svin the editor. - In
axi_lite_slave.sv, replace each__TODO__placeholder with correct handshake logic:
- On reset, set awready, wready, and bvalid to 1'b0. - Assert awready when awvalid is high (and clear it after handshake). - Assert wready when wvalid is high (and clear it after handshake). - Use wr_addr_done and wr_data_done to generate bvalid after both channels complete.
- Run Simulation from the left sidebar and check the Log panel.
- Open the Waveform tab to inspect signal timing if needed.
Summary
You implemented asynchronous handshake logic for the AXI write address (AW) and write data (W) channels by asserting AWREADY and WREADY when AWVALID and WVALID are detected. You verified the implementation through simulation, confirming that the slave correctly responds to valid signals with ready signals on the same clock cycle. This exercise reinforced the AXI protocol requirement that VALID and READY must both be high for a successful transfer, independent of clock alignment. The log output confirmed successful handshakes on AW, W, and B channels, culminating in a PASS result.
Run it in the Verilog IDE
- Open the lesson in the IDE and find the valid/ready or AXI channel ports in the editor.
- Simulate with Verilator. Confirm the beat on the VCD, not only in the transcript.
- Check that data moves only on the beats this lesson describes, and that backpressure holds the transfer.
- Synthesize the RTL master, slave, or buffer with Yosys. Leave the UVM bench out of synthesis.
The lesson is done when the simulation matches Write channels (AW, W, B) RTL: AWREADY and WREADY handshake. Change the source, run the Verilog simulator again, and read the waveform without leaving the IDE. Simulation guide · Yosys guide.