AXI4-Stream Protocol Overview
Protocol Structure
The AXI4-Stream protocol is a lightweight data transfer mechanism that uses a simple handshake between the source (the transmitter; master in older texts and in Vitis) and sink (the receiver; slave). Data is sent in units called bursts, which are sequences of one or more data beats. Each beat is transferred when both sides agree: the source asserts TVALID to indicate valid data, and the sink asserts TREADY to signal readiness to accept it.
Within a burst:
- TVALID stays high while the source has data to send.
- TREADY may toggle depending on whether the sink can accept data.
- A transfer occurs only when both TVALID and TREADY are high in the same cycle.
This handshake ensures flow control: the source never overruns the sink, and the sink can apply backpressure by deasserting TREADY.
Pure Streaming
The full protocol has more signals than these three. The most important is TLAST, which the source raises on the final beat of a burst to mark where one frame of data ends. In pure streaming there are no frames: the stream is one endless sequence of samples, so there is no TLAST. The only signals are TDATA, TVALID and TREADY, in each direction.
The IP in this demo also has no start or done signal. The scalar function IP ran once each time the processor started it. This one never stops: whenever a sample arrives on the input stream it computes, and whenever the output stream can accept a sample it writes one.
Go to The Averaging Kernel