DP-HLS
 All Classes Namespaces Files Functions Variables Typedefs Macros Pages
seq_align_multiple.h
Go to the documentation of this file.
1 #ifndef SEQ_ALIGN_MULTIPLE_H
2 #define SEQ_ALIGN_MULTIPLE_H
3 
4 #include "dp_hls_common.h"
5 #include "ap_int.h"
6 #include "ap_fixed.h"
7 #include <hls_stream.h>
8 
9 #ifdef CMAKEDEBUG
10 #include "debug.h"
11 #endif
12 
13 using namespace hls;
14 
15 extern "C" {
23  char_t (&querys)[MAX_QUERY_LENGTH][N_BLOCKS],
24  char_t (&references)[MAX_REFERENCE_LENGTH][N_BLOCKS],
25  idx_t (&query_lengths)[N_BLOCKS],
26  idx_t (&reference_lengths)[N_BLOCKS],
27  const Penalties (&penalties)[N_BLOCKS],
28 #ifdef LOCAL_TRANSITION_MATRIX
29  const type_t (&transitions)[TRANSITION_MATRIX_SIZE][TRANSITION_MATRIX_SIZE],
30 #endif
31  idx_t (&tb_is)[N_BLOCKS], idx_t (&tb_js)[N_BLOCKS]
32 #ifndef NO_TRACEBACK
33  , tbr_t (&tb_streams)[MAX_REFERENCE_LENGTH + MAX_QUERY_LENGTH][N_BLOCKS]
34 #endif
35 #ifdef SCORED
36  , type_t (&scores)[N_BLOCKS]
37 #endif
38 #ifdef CMAKEDEBUG
39  , Container (&debugger)[N_BLOCKS]
40 #endif
41  );
42 
43  // Have maximum input length of 2048 for 2 bit inputs.
44  // void seq_align_multiple_dynamic(
45  // stream<ArrayPack<char_t, MAX_QUERY_LENGTH>> &querys,
46  // stream<ArrayPack<char_t, MAX_REFERENCE_LENGTH>> &references,
47  // stream<idx_t> &query_lengths,
48  // stream<idx_t> &reference_lengths,
49  // stream<tbp_t> &tb_streams);
50 
51 }
52 
53 #endif
Definition: debug.h:28
Declaration of types used by DP-HLS internally, referred from the user defined params.h file.
void seq_align_multiple_static(char_t(&querys)[MAX_QUERY_LENGTH][N_BLOCKS], char_t(&references)[MAX_REFERENCE_LENGTH][N_BLOCKS], idx_t(&query_lengths)[N_BLOCKS], idx_t(&reference_lengths)[N_BLOCKS], const Penalties(&penalties)[N_BLOCKS], idx_t(&tb_is)[N_BLOCKS], idx_t(&tb_js)[N_BLOCKS], tbr_t(&tb_streams)[MAX_REFERENCE_LENGTH+MAX_QUERY_LENGTH][N_BLOCKS])
Static kernel performing multiple pairwise sequence alignment. The specific number of sequences is de...
ap_uint< 3 > tbr_t
Definition: dp_hls_common.h:94