RTL Studio Open IDE

5.5 · AXI CLASS

AXI error handling: SLVERR and DECERR in UVM sequences

Handle SLVERR/DECERR responses in UVM sequences without fatal exits.

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

What you practice

AXI error handling: SLVERR and DECERR in UVM sequences (5.5). Handle SLVERR/DECERR responses in UVM sequences without fatal exits. It is in AXI Error Handling — Part 5 · SVA and System Integration of the AXI Masterclass. SVA protocol checkers, multi-master systems, and the capstone.

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 to detect and gracefully handle AXI bus error responses (SLVERR and DECERR) in UVM sequences without stopping the simulation, using uvm_warning instead of uvm_fatal.

Learning objectives

  • Understand AXI bus error responses: SLVERR (slave error) and DECERR (decode error).
  • Learn how to inspect bresp/rresp fields in UVM sequences.
  • Practice using uvm_warning to report errors instead of fatal exits.
  • Verify graceful error handling by observing non-fatal log output.

Theory

AXI protocols define two error response codes: 2'b10 for SLVERR (slave reports error) and 2'b11 for DECERR (decoder error). In UVM, sequences receive these via the resp field of axi_seq_item. A robust testbench should log warnings and continue, not terminate.

ResponseCodeMeaning
OK2'b00Transfer completed normally
SLVERR2'b10Slave reports error
DECERR2'b11Invalid address decode

The testbench monitor captures bresp/rresp and passes it to the scoreboard. Sequences must check resp == 2'b10 (SLVERR) and resp == 2'b11 (DECERR), and issue uvm_warning, not uvm_fatal.

Practice

  1. Open RtlStudio and select Lesson 5.5.

Files appear in Explore.

  1. Open student/tb/tb_top.sv and confirm the testbench instantiates axi_error_seq (look for axi_error_seq::type_id::create("axi_error_seq")).
  2. Open student/tb/seq/axi_error_seq.sv and locate the __TODO__ comments.
  3. Replace the __TODO__ placeholders with appropriate uvm_warning calls that report when SLVERR (2'b10) or DECERR (2'b11) is detected.
  4. Run Simulation → Run and verify the Log panel shows warnings (not fatal errors) for both SLVERR and DECERR.
  5. Confirm the simulation completes with INFO: PASS.

Summary

You practiced injecting AXI errors by sending transactions to invalid addresses and verifying that the UVM sequence handles both SLVERR and DECERR responses gracefully using uvm_warning instead of uvm_fatal. This ensures robust error reporting during verification without halting the simulation, aligning with best practices for scalable testbench design.

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 AXI error handling: SLVERR and DECERR in UVM sequences. Change the source, run the Verilog simulator again, and read the waveform without leaving the IDE. Simulation guide · Yosys guide.