mergeSort overload (1) - 2023.2 English

Vitis Libraries

Release Date
2023.2 English
#include "xf_database/merge_sort.hpp"
template <typename Key_Type>
void mergeSort (
    hls::stream <Key_Type>& left_kin_strm,
    hls::stream <bool>& left_strm_in_end,
    hls::stream <Key_Type>& right_kin_strm,
    hls::stream <bool>& right_strm_in_end,
    hls::stream <Key_Type>& kout_strm,
    hls::stream <bool>& strm_out_end,
    bool order

Merge sort function.


Key_Type the input and output key type
left_kin_strm input key stream
left_strm_in_end end flag stream for left input
right_kin_strm input key stream
right_strm_in_end end flag stream for right input
kout_strm output key stream
strm_out_end end flag stream for output data
order 1:ascending 0:descending