RTL Studio Open IDE

2.5 · AXI CLASS

Coverage-driven AXI verification: 100% READY backpressure mission

Hit 100% functional coverage on READY backpressure by constraining master-ready delays.

Watch on YouTube

What you practice

Coverage-driven AXI verification: 100% READY backpressure mission (2.5). Hit 100% functional coverage on READY backpressure by constraining master-ready delays. It is in Coverage-Driven AXI Verification — Part 2 · AXI4-Lite UVM Verification of the AXI Masterclass. Verify the AXI4-Lite DUT with UVM and RAL.

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 extend a UVM testbench to achieve 100% functional coverage on AXI4-Lite backpressure by constraining master-ready delays across AW/W/AR channels.

Learning objectives

  • Add coverage constraints to a UVM sequence to randomize stall cycles.
  • Ensure all backpressure coverpoints close by covering a range of delay values.
  • Run simulation with Verilator coverage enabled and verify INFO: PASS.
  • Understand how stall_cycles in axi_seq_item maps to READY delay in AXI.

Theory

AXI4-Lite READY delay occurs when the slave asserts READY with latency, causing the master to stall. Coverage-driven verification (CDV) requires covering all meaningful delay values to ensure the DUT handles backpressure correctly.

ParameterMeaningCoverage Goal
stall_cyclesNumber of cycles before asserting READYCover [2:8] to avoid edge cases
AW/W/AR channelsWrite address, write data, read addressEach must be tested with delays

The axi_driver uses stall_cycles to insert delays before asserting READY. The constraint must cover a range that exercises both minimal and moderate backpressure without being overly broad.

Practice

  1. Open this chapter in RtlStudio; confirm student/tb/seq/axi_backpressure_seq.sv and student/tb/tb_top.sv appear in Explore.
  2. Open student/tb/seq/axi_backpressure_seq.sv in the editor.
  3. In the backpressure_c constraint, replace __TODO__ with a range that ensures all backpressure coverpoints close.
  4. Run Simulation → Run; check Log for INFO: CDV ready_delay=... and INFO: PASS.
  5. Verify coverage is enabled via Verilator --coverage and artifacts.coverage_lcov true in the lesson config.

Summary

You practiced coverage-driven verification by extending the AXI4-Lite UVM sequence with constraints to randomize READY delays across AW, W, and AR channels, ensuring all backpressure coverpoints close. You confirmed 100% functional coverage by running Verilator with --coverage and verifying INFO: PASS in the log after stimulus completion. This exercise reinforced how realistic backpressure modeling enables thorough validation of ready-handshaking behavior in AXI4-Lite interfaces.

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 Coverage-driven AXI verification: 100% READY backpressure mission. Change the source, run the Verilog simulator again, and read the waveform without leaving the IDE. Simulation guide · Yosys guide.