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_itemanditem_donein the UVM driver’srun_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.
| Channel | Direction | VALID | READY | Data | Purpose |
|---|---|---|---|---|---|
| AW | Master → Slave | awvalid | awready | awaddr | Write address |
| W | Master → Slave | wvalid | wready | wdata, wstrb | Write data |
| B | Slave → Master | bvalid | bready | bresp | Write response |
| AR | Master → Slave | arvalid | arready | araddr | Read address |
| R | Slave → Master | rvalid | rready | rdata, rresp | Read data |
The driver must:
- Wait for VALID/READY handshake on each channel before proceeding.
- Call
get_next_item()to fetch the next sequence item. - Drive the transaction using channel-specific handshakes.
- Call
item_done()to signal completion and allow the sequencer to proceed.
Practice
Open RtlStudio and select this chapter. Files appear automatically in Explore.
- Open
student/tb/env/axi_driver.sv. - In the
run_phasetask, replace bothseq_item_port.__TODO__(req)lines withseq_item_port.get_next_item(req)andseq_item_port.item_done(req)respectively. - Run Simulation and check the Log panel for
INFO:messages. - 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
- 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 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.