RTL Studio Open IDE

3.1 · AXI CLASS

AXI4 burst and size: AWLEN and AWSIZE address stepping

Implement burst length and transfer size with AWLEN and AWSIZE address stepping.

Watch on YouTube

What you practice

AXI4 burst and size: AWLEN and AWSIZE address stepping (3.1). Implement burst length and transfer size with AWLEN and AWSIZE address stepping. It is in AXI4 Burst and Size — 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

You will learn how AXI4 burst transactions use AWLEN and AWSIZE to determine address stepping, and implement the address increment logic in a full AXI memory slave.

Learning objectives

  • Understand how AWLEN and AWSIZE define burst length and transfer size.
  • Implement address stepping per beat using the burst_step function.
  • Capture AWLEN and AWSIZE on address valid and use them during the write data phase.
  • Verify correct behavior with a fixed-length write burst in simulation.

Theory

In AXI4, burst transactions are defined by:

  • AWLEN: Number of transfers minus one (e.g., AWLEN=3 means 4 beats).
  • AWSIZE: Transfer size encoded as log2(bytes), e.g., AWSIZE=2 → 4 bytes.

The address increments per beat by 1 << AWSIZE data words (or bytes if DATA_WIDTH=8). The burst_step function computes this increment.

SignalWidthMeaning
AWLEN8Burst length = AWLEN + 1
AWSIZE3Transfer size = 2^AWSIZE bytes

Address stepping per beat: addr_next = addr_current + (1 << awsize) * (DATA_WIDTH/8). In this lesson, burst_step returns ADDR_WIDTH'(32'd1 << awsize) (assumes byte-addressed memory with DATA_WIDTH=32).

Practice

  1. Open this chapter in RtlStudio.

Files appear in Explore.

  1. Edit student/tb/tb_top.sv to ensure the testbench drives a 4-beat write burst with AWLEN=3 and AWSIZE=2.
  2. Edit student/rtl/axi_full_mem.sv to capture bus.awlen and bus.awsize on awvalid, and store them in lat_awlen and lat_awsize.
  3. Use burst_step(lat_awsize) to increment wr_addr during the write phase when wr_beat < lat_awlen.
  4. Run Simulation and check the Log panel for INFO: lines.
  5. If VCD is generated, open the Waveform tab to inspect signals aligned with INFO: checkpoints.

Summary

Students implemented AXI4 full burst transaction handling by capturing AWLEN and AWSIZE signals to compute address stepping per beat. They integrated the address increment logic into a full AXI memory slave model, verifying correct behavior with a fixed-length write burst. The key takeaway is that burst transactions rely on AWLEN for length and AWSIZE for byte width to advance the address correctly across beats.

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 AXI4 burst and size: AWLEN and AWSIZE address stepping. Change the source, run the Verilog simulator again, and read the waveform without leaving the IDE. Simulation guide · Yosys guide.