This document describes the structure and execution of streamToAxi, implemented as streamToAxi function.
This function is designed for writing data into AXI master in burst mode.
Caution
Applicable conditions:
- AXI port width should be a multiple of stream width.
- countForBurst: Converts stream width from _WStrm into _WAxi and counts the burst number.
- burstWrite: It reads the number of burst from stream, then burst writes to the axi port in dataflow.
This primitive performs streamToAxi in two modules working simultaneously.
The implementation of the two modules is shown as follows:
where N = _WAxi/_WStrm
, not enough one axi
is the state of counter_for_axi < N
and it would be instead of 0.
not enough one burst
is the state of counter_for_burst < NBurst
and it acts as a burst to write.
This streamToAxi
primitive has only one port for axi ptr and one port for stream output.