streamOneToN overload (1) - 2023.2 English

Vitis Libraries

Release Date
2023-12-20
Version
2023.2 English
#include "xf_utils_hw/stream_one_to_n/load_balance.hpp"
template <
    int _WInStrm,
    int _WOutStrm,
    int _NStrm
    >
void streamOneToN (
    hls::stream <ap_uint <_WInStrm>>& istrm,
    hls::stream <bool>& e_istrm,
    hls::stream <ap_uint <_WOutStrm>> ostrms [_NStrm],
    hls::stream <bool> e_ostrms [_NStrm],
    LoadBalanceT alg
    )

stream distribute, using load-balancing algorithm.

The input stream is assumed to be compact data to be splitted into _WOutStrm wide data into output streams.

Parameters:

_WInStrm input stream width.
_WOutStrm output stream width.
_NStrm number of output stream.
istrm input data stream.
e_istrm end flag stream for input data.
ostrms output data streams.
e_ostrms end flag streams, one for each output data stream.
alg algorithm selector.