RTL Studio Open IDE

3.3 · AXI CLASS

Read data channel: RLAST on the final read beat

Assert RLAST on the final beat of an AXI4 read burst.

Video coming soon. This lesson page stays at the same URL when the lecture publishes.

What you practice

Read data channel: RLAST on the final read beat (3.3). Assert RLAST on the final beat of an AXI4 read burst. It is in Read Data Channel — Part 3 · AXI4 Full RTL Design of the AXI Masterclass. Burst, outstanding, and a BRAM memory bridge.

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

This lesson teaches how to assert the RLAST signal on the final data beat of an AXI4 read burst, ensuring correct burst termination per the AXI protocol.

Learning objectives

  • Understand the AXI4 read data channel and RLAST semantics.
  • Implement a read beat counter to detect the final transfer.
  • Assert RLAST only on the last beat of a read burst.
  • Verify RLAST behavior using testbench stimulus.

Theory

In AXI4, the RLAST signal indicates the final data transfer in a read burst. It must be asserted on the last beat only, aligned with the burst length specified in ARLEN. The read master uses RLAST to know when to stop expecting data. The slave must track the number of remaining beats and assert RLAST when the counter reaches 1.

SignalMeaningAssertion condition
rvalidData validAsserted every beat
rlastLast beatAsserted only when r_beats_left == 1

The read beat counter (r_beats_left) is decremented each time a beat is loaded onto the bus. RLAST is assigned (r_beats_left == 8'd1) when the final beat is loaded and held until the master accepts it with rready. The slave loads the next beat only when the bus is empty or the current beat completes its rvalid && rready handshake.

Practice

  1. Open RtlStudio and select this chapter.

Confirm student/rtl/axi_full_mem.sv and student/tb/tb_top.sv appear in Explore.

  1. Open student/rtl/axi_full_mem.sv in the editor.
  2. Locate the three __TODO__ placeholders for bus.rlast assignments.
  3. Drive 1'b0 in the reset branch and in the per-cycle default, and (r_beats_left == 8'd1) where a new beat is loaded.
  4. Run Simulation and check the Log panel for expected output.

Summary

You implemented a read beat counter to track the number of remaining transfers in an AXI4 read burst and asserted RLAST only on the final data beat. This ensures correct burst termination by signaling the end of the read data transfer precisely when the counter reaches one. The simulation confirmed RLAST was high only on the third (final) beat, matching the expected burst length and protocol requirements.

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 Read data channel: RLAST on the final read beat. Change the source, run the Verilog simulator again, and read the waveform without leaving the IDE. Simulation guide · Yosys guide.