streamSync - 2023.1 English

Vitis Libraries

Release Date
2023-12-20
Version
2023.1 English
#include "xf_utils_hw/stream_sync.hpp"
template <
    typename _TIn,
    int _NStrm
    >
void streamSync (
    hls::stream <_TIn> istrms [_NStrm],
    hls::stream <bool> e_istrms [_NStrm],
    hls::stream <_TIn> ostrms [_NStrm],
    hls::stream <bool>& e_ostrm
    )

Synchronize streams for successor module.

This module ensures that elements in different input stream goes into successor stream in locked steps. The end signal is also fused into one. It assumes the input elements in each input stream have the same number , otherwise, it will not terminate.

Parameters:

_TIn input type.
_NStrm number of input streams.
istrms input data streams.
e_istrms end flags for each input.
ostrms output data streams.
e_ostrm end flag for all output.