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/rrespfields in UVM sequences. - Practice using
uvm_warningto 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.
| Response | Code | Meaning |
|---|---|---|
| OK | 2'b00 | Transfer completed normally |
| SLVERR | 2'b10 | Slave reports error |
| DECERR | 2'b11 | Invalid 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
- Open RtlStudio and select Lesson 5.5.
Files appear in Explore.
- Open
student/tb/tb_top.svand confirm the testbench instantiatesaxi_error_seq(look foraxi_error_seq::type_id::create("axi_error_seq")). - Open
student/tb/seq/axi_error_seq.svand locate the__TODO__comments. - Replace the
__TODO__placeholders with appropriateuvm_warningcalls that report when SLVERR (2'b10) or DECERR (2'b11) is detected. - Run Simulation → Run and verify the Log panel shows warnings (not fatal errors) for both SLVERR and DECERR.
- 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
- 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 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.