RTL Studio Open IDE

2.2 · AXI CLASS

AXI driver: VALID/READY handshake and item_done

Implement AXI4-Lite driver handshake and item_done synchronization.

Watch on YouTube

What you practice

AXI driver: VALID/READY handshake and item_done (2.2). Implement AXI4-Lite driver handshake and item_done synchronization. It is in AXI Driver — Part 2 · AXI4-Lite UVM Verification of the AXI Masterclass. Verify the AXI4-Lite DUT with UVM and RAL.

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

You will implement an AXI4-Lite driver that translates UVM sequence items into physical channel handshakes (VALID/READY) and properly synchronizes with the sequencer using get_next_item and item_done.

Learning objectives

  • Understand the AXI4-Lite channel handshake protocol (VALID/READY) for AW, W, B, AR, and R channels.
  • Implement get_next_item and item_done in the UVM driver’s run_phase.
  • Drive each AXI channel in strict order per transaction type (write vs read).
  • Connect the driver to the sequencer and verify transaction completion via testbench logs.

Theory

AXI4-Lite uses a simple handshake: the master asserts VALID, the slave asserts READY, and data transfers on the common clock edge when both are high. Each channel (AW, W, B, AR, R) has independent VALID/READY pairs.

ChannelDirectionVALIDREADYDataPurpose
AWMaster → SlaveawvalidawreadyawaddrWrite address
WMaster → Slavewvalidwreadywdata, wstrbWrite data
BSlave → MasterbvalidbreadybrespWrite response
ARMaster → SlavearvalidarreadyaraddrRead address
RSlave → Masterrvalidrreadyrdata, rrespRead data

The driver must:

  1. Wait for VALID/READY handshake on each channel before proceeding.
  2. Call get_next_item() to fetch the next sequence item.
  3. Drive the transaction using channel-specific handshakes.
  4. Call item_done() to signal completion and allow the sequencer to proceed.

Practice

Open RtlStudio and select this chapter. Files appear automatically in Explore.

  1. Open student/tb/env/axi_driver.sv.
  2. In the run_phase task, replace both seq_item_port.__TODO__(req) lines with seq_item_port.get_next_item(req) and seq_item_port.item_done(req) respectively.
  3. Run Simulation and check the Log panel for INFO: messages.
  4. Verify the final log shows INFO: PASS.

Summary

You implemented an AXI4-Lite driver that correctly translates UVM sequence items into physical AXI channel handshakes using VALID/READY protocol. You used get_next_item() to fetch transactions from the sequencer and item_done() to signal completion after driving each beat. The driver successfully drove AW, W, B, AR, and R channel handshakes per AXI4-Lite specifications. The simulation passed, confirming proper transaction handling and handshake timing.

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 AXI driver: VALID/READY handshake and item_done. Change the source, run the Verilog simulator again, and read the waveform without leaving the IDE. Simulation guide · Yosys guide.