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_cyclesinaxi_seq_itemmaps 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.
| Parameter | Meaning | Coverage Goal |
|---|---|---|
stall_cycles | Number of cycles before asserting READY | Cover [2:8] to avoid edge cases |
| AW/W/AR channels | Write address, write data, read address | Each 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
- Open this chapter in RtlStudio; confirm
student/tb/seq/axi_backpressure_seq.svandstudent/tb/tb_top.svappear in Explore. - Open
student/tb/seq/axi_backpressure_seq.svin the editor. - In the
backpressure_cconstraint, replace__TODO__with a range that ensures all backpressure coverpoints close. - Run Simulation → Run; check Log for
INFO: CDV ready_delay=...andINFO: PASS. - Verify coverage is enabled via
Verilator --coverageandartifacts.coverage_lcov truein 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
- 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 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.