What you practice
Skid buffer: decouple VALID/READY timing on an AXI channel (1.5). Add a skid buffer on the write data channel to break VALID/READY timing paths under backpressure. It is in Skid Buffer — Part 1 · AXI4-Lite RTL Design of the AXI Masterclass. Design an AXI4-Lite slave in pure SystemVerilog.
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 implement a skid buffer holding register on the AXI write data channel to break a combinational timing loop between VALID and READY, ensuring reliable operation under backpressure.
Learning objectives
- Understand why VALID/READY handshake can cause timing loops in combinational paths.
- Implement a skid buffer (holding register) to decouple the data path from the handshake.
- Verify skid buffer behavior under backpressure using a testbench that delays wready.
- Recognize skid buffer signals in AXI write channel FSM.
Theory
In AXI protocols, VALID/READY handshakes are synchronous but can form combinational loops if data is consumed immediately without buffering. A skid buffer inserts a one-cycle holding register on the data path (e.g., wdata, wstrb) so that when wready is asserted, the data is already captured and stable for the next cycle—even if wready is deasserted mid-transfer. This prevents data loss and timing violations.
| Signal | Role in skid buffer |
|---|---|
| skid_valid | Indicates data is held in the skid register |
| skid_wdata | Holds wdata when wready is not asserted |
| skid_wstrb | Holds wstrb alongside wdata |
The skid buffer is consumed only when the FSM is ready to process the write (e.g., in WRITE state after awready), and is cleared once consumed. It does not affect the AW or B channels directly.
Practice
Open this chapter in RtlStudio. Files appear automatically in Explore.
- Open
student/rtl/axi_lite_slave.svin the editor. - Locate the
always_ffblock whereskid_valid,skid_wdata, andskid_wstrbare declared. - In the reset branch, assign
skid_valid <= 1'b0(already present in golden, but TODO in student). - In the non-reset branch, inside the
if (bus.wvalid && bus.wready)block, assignskid_valid <= 1'b1,skid_wdata <= bus.wdata, andskid_wstrb <= bus.wstrb. - In the WRITE state, after consuming skid data, assign
skid_valid <= 1'b0to clear it. - Open
student/tb/tb_top.svto confirm the testbench stimulus: it asserts wvalid while delaying wready to trigger skid holding. - Run Simulation and check the Log panel for INFO messages.
Summary
You implemented a skid buffer holding register on the AXI write data channel to decouple VALID/READY timing and prevent combinational loops under backpressure. By capturing data when both wvalid and wready assert, the skid buffer allows the slave FSM to process writes at its own pace without violating AXI handshake rules. You verified correct operation by delaying wready in the testbench, confirming that data is held and delivered once the slave is ready. The key takeaway is that skid buffers preserve data integrity during handshake delays while maintaining protocol compliance.
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 Skid buffer: decouple VALID/READY timing on an AXI channel. Change the source, run the Verilog simulator again, and read the waveform without leaving the IDE. Simulation guide · Yosys guide.