#include "xf_utils_hw/axi_to_stream.hpp"
template < int _BurstLen = 32, int _WAxi, typename _TStrm > void axiToStream ( ap_uint <_WAxi>* rbuf, const int num, hls::stream <_TStrm>& ostrm )
Loading data elements from AXI master to stream.
This module requires the data elements to align to its size in buffer. In another word, the start offset is specified by element count from the beginning of a vector of AXI port width.
This primitive assumes the width of AXI port is positive integer multiple of data element’s alignment width.
The alignment width is assumed to be multiple of 8-bit char. The AXI master port width is power of two, and no less than 8.
Parameters:
_BurstLen | burst length of AXI buffer, default is 32. |
_WAxi | width of AXI port, must be power of 2 and between 8 to 512. |
_TStrm | stream’s type, e.g. ap_uint<aligned_width> for a aligned_width stream. |
rbuf | input AXI port. |
num | number of data elements to load from AXI port. |
ostrm | output stream. |
e_ostrm | end flag for output stream. |