What you practice
SVA basics for AXI: stable data while VALID waits for READY (5.1). Enforce handshake stability: data and control remain stable while VALID is high and READY is low. It is in SVA Basics for AXI — 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 write SystemVerilog Assertions (SVA) to enforce that AXI data and strobe signals remain stable during handshake stalls — a critical requirement for reliable AXI protocol compliance.
Learning objectives
- Understand how to use SVA
$stableto check signal stability over clock cycles. - Write assert properties for write data (
wdata,wstrb) and read data (rdata) during VALID/READY stalls. - Bind assertion modules to the DUT interface using
bind. - Verify assertions pass under UVM stimulus with Verilator
--assert.
Theory
SystemVerilog Assertions (SVA) let you specify temporal properties about signal behavior. For AXI handshakes, it is essential that payload signals do not change while VALID is high and READY is low (i.e., during a stall). The $stable operator checks that a signal retains its value from the current cycle to the next.
| Operator | Meaning | Example | ||
|---|---|---|---|---|
| ` | =>` | Overlap implication: current cycle condition holds, then next cycle consequent holds | `(wvalid && !wready) | => $stable(wdata)` |
$stable | Signal value unchanged from previous to current cycle | $stable(signal) | ||
disable iff | Reset condition — assertion disabled when true | disable iff (!aresetn) |
The property checks that when wvalid && !wready, the next cycle must see wdata unchanged. This prevents data corruption during backpressure.
Practice
- Open RtlStudio and select this chapter — confirm
student/tb/axi_sva_bind.svandstudent/tb/tb_top.svappear in Explore. - Open
student/tb/axi_sva_bind.svand locate the__TODO__placeholders forwdata_stable_pand its assertion. - Replace the
__TODO__parts to complete thewdata_stable_pproperty and itsassert propertystatement. - Run Simulation from the left sidebar and check the Log panel for
INFO:output. - Verify the simulation ends with
INFO: PASS.
Summary
You practiced writing SystemVerilog Assertions to enforce AXI handshake stability by asserting that wdata and wstrb remain unchanged during stalls (when VALID is high but READY is low). Using the $stable operator and next-cycle implication, you defined and instantiated a property in axi_sva_bind.sv to catch violations at simulation time. Binding the assertion module to the interface and running Verilator with --assert confirmed the design meets the required timing constraint. The key takeaway is that SVA provides a declarative, reliable way to validate interface protocol behavior without modifying the DUT.
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 SVA basics for AXI: stable data while VALID waits for READY. Change the source, run the Verilog simulator again, and read the waveform without leaving the IDE. Simulation guide · Yosys guide.