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.
| Operation | Pointer Update | Count Change | When |
|---|---|---|---|
| Push AWID | id_wr_ptr <= id_wr_ptr + 3'd1 | +1 | AW handshake |
| Pop AWID | id_rd_ptr <= id_rd_ptr + 3'd1 | -1 | B handshake |
Practice
Open this chapter in RtlStudio. Files appear in Explore under student/rtl/ and student/tb/.
- Open
student/rtl/axi_full_mem.svin the editor. - In the reset block, initialize
id_wr_ptrandid_rd_ptrto'0. - In the AW handshake block, update
id_wr_ptrafter pushingbus.awidintoid_fifo. - In the write-complete block (when
w_beats_left == 8'd1 && bus.wlast), updateid_rd_ptrbefore drivingbus.bidand decrementingid_count. - Run Simulation and check the Log panel for
INFO:messages. - If needed, open
student/tb/tb_top.svto 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
- 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 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.