RTL Studio Open IDE

4.4 · AXI CLASS

Out-of-order scoreboard: match responses by BID and RID

Match write/read responses to address-phase transactions using BID/RID lookup.

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

What you practice

Out-of-order scoreboard: match responses by BID and RID (4.4). Match write/read responses to address-phase transactions using BID/RID lookup. It is in Out-of-Order Scoreboard — 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 AXI4 scoreboard that matches write responses (BID) and read responses (RID) to their original address-phase transactions using an associative array, enabling correct verification when responses arrive out of order.

Learning objectives

  • Use associative arrays (int key -> axi_seq_item) to store pending transactions by ID.
  • Match response-phase transactions to expected data using exp_by_id.exists(id) and exp_by_id[id].
  • Compare actual and expected payloads per beat and report mismatches with uvm_error.
  • Handle missing expected transactions with appropriate error logging.
  • Ensure student/tb/tb_top.sv is correctly referenced in the practice scope.

Theory

AXI4 responses (B-channel for writes, R-channel for reads) are identified by BID and RID respectively, which match AWID/ARID of the original address phase. Since responses can arrive out of order, the scoreboard must store pending address-phase transactions indexed by ID and look them up when the response phase completes.

PhaseID usedAssociative keyStored item
AddressAWID/ARIDint'(awid) / int'(arid)Full axi_seq_item (addr + data)
ResponseBID/RIDint'(resp_id)Lookup in exp_by_id[id] for comparison

The scoreboard compares expected vs actual data per beat and reports mismatches with uvm_error, including the response ID and beat index for debugging.

Practice

  1. Open RtlStudio and select this chapter.

Files appear in Explore.

  1. Open student/tb/env/axi_scoreboard.sv in the editor.
  2. Replace each __TODO__ placeholder with the correct logic to:

- Log burst length mismatch with uvm_error. - Log successful comparison with uvm_info including ID and beat count. - Log missing expected transaction with uvm_error when response arrives but no pending entry exists.

  1. Run Simulation and check the Log panel for INFO: lines.
  2. Confirm the test ends with INFO: PASS.

Summary

You practiced implementing an out-of-order scoreboard by using associative arrays to track pending transactions via BID and RID. You matched incoming responses to expected data using the response ID, then compared payloads and reported mismatches with uvm_error. The key takeaway is that ID-based lookup enables accurate comparison even when responses arrive out of order. This approach ensures robust verification of AXI4 responses without relying on strict ordering.

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 Out-of-order scoreboard: match responses by BID and RID. Change the source, run the Verilog simulator again, and read the waveform without leaving the IDE. Simulation guide · Yosys guide.