#include "xf_utils_hw/stream_one_to_n/round_robin.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], RoundRobinT alg )
stream distribute, in round-robin order from first output.
The input stream is assumed to be conpact 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. |