What you practice
AXI Protocol Overview: VALID/READY handshake (0.1). Introduce the AXI VALID/READY handshake and implement a simple synchronous sink in RTL. It is in AXI Protocol Overview — Part 0 · AXI Foundation of the AXI Masterclass. Bundle AXI’s five channels into modern SystemVerilog interfaces.
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 learn the core VALID/READY handshake mechanism used in AMBA AXI and other streaming protocols, and implement a minimal sink that asserts ready when valid is present.
Learning objectives
- Understand the purpose of VALID/READY handshaking in synchronous streaming interfaces.
- Recognize the role of each signal: valid (producer asserts data is ready), ready (consumer asserts it can accept data).
- Implement a simple synchronous sink that asserts ready one cycle after valid is asserted.
- Verify the handshake behavior with a minimal testbench.
Theory
In AXI and many streaming protocols, data transfer is governed by a two-way handshake:
- valid is asserted by the sender when data is valid and ready to be consumed.
- ready is asserted by the receiver when it is prepared to accept the data.
- A transfer occurs only when *both* valid and ready are high on the same clock edge.
This handshake decouples data production and consumption, enabling flexible pipelining and backpressure. The receiver may assert ready early, late, or only when ready — the protocol guarantees correctness as long as both signals are stable during the clock edge.
| Signal | Direction | Meaning |
|---|---|---|
| valid | source → sink | Data is valid and ready for transfer |
| ready | sink → source | Sink is ready to accept the data |
Practice
- Open this chapter in RtlStudio; files appear automatically in Explore.
- Open
student/rtl/design.svandstudent/tb/tb_top.svin the editor. - In
student/rtl/design.sv, complete thereadyassignment logic inside thealways_ffblock to assert ready one cycle aftervalidis asserted. - Run Simulation from the sidebar and check the Log panel for
INFO:messages. - If VCD is generated, open the Waveform tab to inspect signal timing.
Summary
You implemented a minimal AXI sink that asserts ready whenever valid is high, practicing the core VALID/READY handshake mechanism. This foundational pattern underpins all AXI channel transfers, emphasizing handshake-driven, flow-controlled communication. You verified the behavior with a testbench that confirms the handshake completes successfully on the first cycle after reset. This exercise established the vocabulary and timing semantics for the five AXI channels you will explore next.
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 AXI Protocol Overview: VALID/READY handshake. Change the source, run the Verilog simulator again, and read the waveform without leaving the IDE. Simulation guide · Yosys guide.