RTL Studio Open IDE

4.3 · AXI CLASS

ID tracking monitor: associative array for outstanding transactions

Track outstanding transactions by ID in the monitor for response correlation.

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

What you practice

ID tracking monitor: associative array for outstanding transactions (4.3). Track outstanding transactions by ID in the monitor for response correlation. It is in ID Tracking Monitor — Part 4 · AXI4 Full UVM Verification of the AXI Masterclass. Five-channel parallel UVM for AXI Full timing.

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

Today you will implement an associative array in the AXI monitor to track outstanding write and read transactions using their IDs, enabling correct correlation of address, data, and response phases in UVM.

Learning objectives

  • Understand why associative arrays are needed for ID-based transaction tracking in AXI.
  • Store address-phase items in a pending_tx[int] associative array keyed by AWID/ARID.
  • Update and delete entries on data/response phase completion.
  • Export tracked items via the analysis port for scoreboard comparison.

Theory

AXI protocols allow multiple in-flight transactions per ID due to out-of-order responses. The monitor must track pending transactions per ID until the corresponding B or RLAST response arrives. An associative array pending_tx[int] maps each ID to its incomplete transaction item. Key operations:

  • On AW/AR valid+ready: store the sampled item in pending_tx[id].
  • On W valid+ready: append data to pending_tx[lat_awid].
  • On B valid+ready or RLAST: retrieve and delete pending_tx[id] after writing the full item to the scoreboard.
OperationArray ActionKey
AW sampledpending_tx[id] = itemAWID
W sampledpending_tx[id].data[w_beat] = wdatalat_awid
B sampleditem = pending_tx[id]; pending_tx.delete(id)BID
AR sampledpending_tx[id] = itemARID
RLASTitem = pending_tx[id]; pending_tx.delete(id)ARID

Practice

  1. Open RtlStudio and select this chapter.

Confirm files appear in Explore.

  1. Open student/tb/env/axi_monitor.sv in the editor.
  2. In the AW valid+ready block, after id_key = int'(vif.awid);, assign pending_tx[id_key] = mon_item; to store the address-phase item.
  3. In the B valid+ready block, after writing the response item to the analysis port, call pending_tx.delete(id_key); to remove the completed transaction.
  4. In the AR valid+ready block, after id_key = int'(vif.arid);, assign pending_tx[id_key] = mon_item;.
  5. In the RLAST block, after writing the response item to the analysis port, call pending_tx.delete(id_key);.
  6. Run Simulation and check the Log panel for INFO: messages.

Summary

You implemented an ID-based tracking monitor using a SystemVerilog associative array to store pending AXI transactions keyed by their ID. This enables correct correlation of address-phase items with their corresponding data and response phases. The associative array approach efficiently manages multiple outstanding transactions, ensuring accurate transaction reconstruction for scoreboard verification.

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 ID tracking monitor: associative array for outstanding transactions. Change the source, run the Verilog simulator again, and read the waveform without leaving the IDE. Simulation guide · Yosys guide.