#include "xf_database/insert_sort.hpp"
template < typename KEY_TYPE, int MAX_SORT_NUMBER > void insertSort ( hls::stream <KEY_TYPE>& kinStrm, hls::stream <bool>& endInStrm, hls::stream <KEY_TYPE>& koutStrm, hls::stream <bool>& endOutStrm, bool order )
Insert sort top function.
Parameters:
| KEY_TYPE | the input and output key type |
| MAX_SORT_NUMBER | the max number of the sequence can be sorted |
| kinStrm | input key stream |
| endInStrm | end flag stream for input |
| koutStrm | output key stream |
| endOutStrm | end flag stream for output |
| order | 1:sort ascending 0:sort descending |