DP-HLS
 All Classes Namespaces Files Functions Variables Typedefs Macros Pages
Utils::Init Namespace Reference

Functions

template<typename T , int N>
void ArrSet (T(&arr)[N], T val)
 
template<typename T , int N>
void ArrSet (T(&arr)[N], idx_t layer, T val)
 
template<typename T , int LAY, int N>
void Linspace (hls::vector< T, LAY >(&arr)[N], idx_t starting_idx, idx_t layer, type_t start, type_t step)
 
template<typename T >
void Linspace (T &arr, idx_t starting_idx, idx_t layer, type_t start, type_t step, int len)
 
template<typename PACK , typename IDX_T , int LEN>
void DetermineGlobalTracebackCoordinate (PACK(&local_maximum)[LEN], IDX_T qry_len, IDX_T ref_len)
 ONLY FOR RECTANGULAR KERNEL Global alignment start the traceback at the bottom right corner of the score matrix. Given the query and reference length, the traceback physical address can be determined before the score matri iteration. Thus, this function takes the ScorePack array, according to the query and reference legnth, to set the traceback starting PE's ScorePack with INF and corresponding coordinate. More...
 
template<typename PACK , typename IDX_T , int PE_NUM_, int BANDWIDTH_, int TB_CHUNK_WIDTH_>
void DetermineFixedBandingGlobalTracebackCoordinate (PACK(&max)[PE_NUM_], IDX_T qry_len, IDX_T ref_len)
 

Function Documentation

template<typename T , int N>
void Utils::Init::ArrSet ( T(&)  arr[N],
val 
)
template<typename T , int N>
void Utils::Init::ArrSet ( T(&)  arr[N],
idx_t  layer,
val 
)
template<typename PACK , typename IDX_T , int PE_NUM_, int BANDWIDTH_, int TB_CHUNK_WIDTH_>
void Utils::Init::DetermineFixedBandingGlobalTracebackCoordinate ( PACK(&)  max[PE_NUM_],
IDX_T  qry_len,
IDX_T  ref_len 
)
template<typename PACK , typename IDX_T , int LEN>
void Utils::Init::DetermineGlobalTracebackCoordinate ( PACK(&)  local_maximum[LEN],
IDX_T  qry_len,
IDX_T  ref_len 
)

ONLY FOR RECTANGULAR KERNEL Global alignment start the traceback at the bottom right corner of the score matrix. Given the query and reference length, the traceback physical address can be determined before the score matri iteration. Thus, this function takes the ScorePack array, according to the query and reference legnth, to set the traceback starting PE's ScorePack with INF and corresponding coordinate.

Template Parameters
LENNumber of PE
IDX_TIndex Type Used in the Kernel
Parameters
qry_lenActual Query Length
ref_lenActual Reference Length
template<typename T , int LAY, int N>
void Utils::Init::Linspace ( hls::vector< T, LAY >(&)  arr[N],
idx_t  starting_idx,
idx_t  layer,
type_t  start,
type_t  step 
)
template<typename T >
void Utils::Init::Linspace ( T &  arr,
idx_t  starting_idx,
idx_t  layer,
type_t  start,
type_t  step,
int  len 
)