RTL Studio Open IDE

1.1 · AXI CLASS

Write channels (AW, W, B) RTL: AWREADY and WREADY handshake

Implement AXI4-Lite write channel handshake logic for AWREADY and WREADY.

Watch on YouTube

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_done and wr_data_done flags 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.

SignalDirectionMeaning
awvalidmaster → slaveAddress valid
awreadyslave → masterSlave ready to accept address
wvalidmaster → slaveWrite data valid
wreadyslave → masterSlave 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

  1. Open RtlStudio and select this chapter.

Files appear in Explore under student/.

  1. Open student/rtl/axi_lite_slave.sv and student/tb/tb_top.sv in the editor.
  2. 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.

  1. Run Simulation from the left sidebar and check the Log panel.
  2. 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

  1. Open the lesson in the IDE and find the valid/ready or AXI channel ports in the editor.
  2. Simulate with Verilator. Confirm the beat on the VCD, not only in the transcript.
  3. Check that data moves only on the beats this lesson describes, and that backpressure holds the transfer.
  4. 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.