RTL Studio Open IDE

4.1 · SOC CLASS

AXI-Stream register slice

Implement an AXI-Stream register slice to pipeline valid/ready handshakes and verify it with a testbench.

Video coming soon. This lesson page stays at the same URL when the lecture publishes.

What you practice

AXI-Stream register slice (4.1). Implement an AXI-Stream register slice to pipeline valid/ready handshakes and verify it with a testbench. It is in AXIS Register Slice — Part 4 · Data Movement of the SoC Masterclass. Move data with AXI-Stream slices, mem↔stream FIFOs, and a small DMA engine.

SoC lessons simulate the fabric and the peripheral together in the IDE. Verilator is the simulator; the waveform is where address and response show up.

What you will learn

You will implement an AXI-Stream register slice to pipeline valid/ready handshakes. This technique isolates timing between a producer and a consumer. It is essential for breaking critical paths in high-speed data movement.

Learning objectives

  • Understand AXI-Stream valid/ready flow control.
  • Implement a register slice with backpressure handling.
  • Verify the slice behavior using a simple testbench.

Theory

An AXI-Stream register slice inserts registers between two components. The producer drives s_tdata and s_tvalid. The consumer drives m_tready. The slice must accept data when s_tvalid and s_tready are high. It must hold data if the consumer is not ready (!m_tready). It must release the input ready signal if it holds valid data. The s_tready signal is low when the internal register is full. The internal register is full when valid_r is high and m_tready is low.

SignalDirectionDescription
s_tvalidInputProducer valid
s_treadyOutputConsumer ready (backpressure)
s_tdataInputData input
m_tvalidOutputInternal valid
m_treadyInputConsumer ready
m_tdataOutputData output

Practice

Open this chapter in RtlStudio. Navigate to student/rtl/ip/soc/axis_register_slice.sv in the Explore panel. Edit the always_ff block to implement the register logic. Set data_r to '0 on reset. Set valid_r to 1'b0 on reset. When s_tvalid and s_tready are high, update data_r with s_tdata. When s_tvalid and s_tready are high, set valid_r to 1'b1. When m_tready is high and valid_r is high, set valid_r to 1'b0. Save the file. Open student/tb/tb_top.sv in the Explore panel. Run Simulation from the sidebar. Check the Log panel for INFO: PASS.

Summary

You implemented an AXI-Stream register slice to pipeline valid and ready signals for improved timing closure. This practice decoupled data movement stages by inserting a register stage between components. The design ensures data is only transferred when the downstream logic is prepared to accept it.

© 2026 RtlStudio. Licensed under CC BY-NC-ND 4.0. Commercial use and modifications by third parties are not permitted.

Run it in the Verilog IDE

  1. Open the lesson workspace in the IDE. The fabric and the peripheral are one simulation.
  2. Run Verilator and follow the address, write data, and read response on the waveform.
  3. A passing log is not enough when decode or an IRQ line is the point of the lesson — those show up on the VCD.
  4. Run Yosys on the RTL island you just integrated when you want the mapped cells.

The lesson is done when the simulation matches AXI-Stream register slice. Change the source, run the Verilog simulator again, and read the waveform without leaving the IDE. Simulation guide · Yosys guide.