swap - 2023.2 English

Vitis Libraries

Release Date
2023-12-20
Version
2023.2 English
template  <typename t_DataType, unsigned int t_ParEntries, typename t_IndexType = unsigned int>
void swap(unsigned int p_n, hls::stream<WideType<t_DataType, t_ParEntries>>& p_x, hls::stream<WideType<t_DataType, t_ParEntries>>& p_y, hls::stream<WideType<t_DataType, t_ParEntries>>& p_xRes, hls::stream<WideType<t_DataType, t_ParEntries>>& p_yRes)

swap function that swap vector x and y

Parameters:

t_DataType the data type of the vector entries
t_ParEntries number of parallelly processed entries in the packed input vector stream
t_IndexType the datatype of the index
p_n the number of entries in vector X and Y, p_n % t_ParEntries == 0
p_x the packed input vector stream
p_y the packed input vector stream
p_xRes the packed output stream
p_yRes the packed output stream