RTL Studio Open IDE

3.4 · AXI CLASS

Outstanding transactions: AWID tracking FIFO

Track multiple in-flight write transactions with an AWID FIFO.

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

What you practice

Outstanding transactions: AWID tracking FIFO (3.4). Track multiple in-flight write transactions with an AWID FIFO. It is in Outstanding Transactions — 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 track multiple in-flight write transactions using a synchronous FIFO that stores AWID values, enabling correct BID assignment on write responses.

Learning objectives

  • Understand why ID tracking is needed for AXI write channels.
  • Implement a push/pop FIFO for AWID on address and response handshakes.
  • Maintain FIFO pointers and count correctly under back-to-back AW transactions.
  • Verify FIFO behavior with overlapping write transactions in the testbench.

Theory

AXI write transactions can overlap: the master may issue multiple AW before the corresponding B responses arrive. The slave must return each B response with the correct BID, which matches the original AWID. Since AWID is only valid on the address phase, the slave must store it until the write completes and B is issued. A simple FIFO is ideal for this: push AWID on AW handshake, pop and drive BID on B handshake. The FIFO depth must be at least the maximum number of outstanding writes (ID_DEPTH). The pointers wrap modulo depth, and the count prevents overflow/underflow.

OperationPointer UpdateCount ChangeWhen
Push AWIDid_wr_ptr <= id_wr_ptr + 3'd1+1AW handshake
Pop AWIDid_rd_ptr <= id_rd_ptr + 3'd1-1B handshake

Practice

Open this chapter in RtlStudio. Files appear in Explore under student/rtl/ and student/tb/.

  1. Open student/rtl/axi_full_mem.sv in the editor.
  2. In the reset block, initialize id_wr_ptr and id_rd_ptr to '0.
  3. In the AW handshake block, update id_wr_ptr after pushing bus.awid into id_fifo.
  4. In the write-complete block (when w_beats_left == 8'd1 && bus.wlast), update id_rd_ptr before driving bus.bid and decrementing id_count.
  5. Run Simulation and check the Log panel for INFO: messages.
  6. If needed, open student/tb/tb_top.sv to verify stimulus — it issues two back-to-back AW before W completes.

Summary

You implemented a synchronous FIFO to track AWID values, pushing IDs on address channel handshakes and popping them to drive BID on write responses. This enables pipelined in-flight write transactions by decoupling AWID generation from BID assignment. The design correctly handles back-to-back address handshakes before write completions, ensuring reliable transaction tracking. Key takeaway: ID tracking FIFOs are essential for maintaining AXI protocol compliance in high-throughput write channels.

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 Outstanding transactions: AWID tracking FIFO. Change the source, run the Verilog simulator again, and read the waveform without leaving the IDE. Simulation guide · Yosys guide.