DP-HLS
 All Classes Namespaces Files Functions Variables Typedefs Macros Pages
components.h
Go to the documentation of this file.
1 //
2 // Created by yic033@AD.UCSD.EDU on 8/13/23.
3 // This file serves as a wrapper to components used test synthesis
4 
5 #ifndef DP_HLS_COMPONENTS_H
6 #define DP_HLS_COMPONENTS_H
7 
8 #include "./components.h"
9 #include "./PE.h"
10 #include "./seq_align.h"
11 #include "./utils.h"
12 
13 // Expand a PE Array
14 void DutExpandCompute(
15  char_t local_query[PE_NUM],
16  char_t local_reference[PE_NUM],
17  hls::vector<type_t, N_LAYERS> wavefronts[2][PE_NUM], // or can define a variable called DEPTH which is the depth of the wavefront
18  hls::vector<type_t, N_LAYERS> write_score_arr[PE_NUM],
19  hls::vector<tbp_t, N_LAYERS> write_traceback_arr[PE_NUM]);
20 
22  input_char_block_t &local_references,
23  score_block_t &up_prevs,
24  score_block_t &diag_prevs,
25  score_block_t &left_prevs,
26  score_block_t &output_scores,
27  tbp_block_t &output_tbp);
28 
29 void DutChunkComputeBlock(idx_t chunk_row_offset,
30  input_char_block_t &query,
31  char_t (&reference)[MAX_REFERENCE_LENGTH],
32  score_block_t &init_col_scr,
33  hls::vector<type_t, N_LAYERS> (&init_row_scr)[MAX_REFERENCE_LENGTH],
34  int query_length, int reference_length,
35  hls::vector<type_t, N_LAYERS> (&preserved_row_scr)[MAX_REFERENCE_LENGTH],
36  ScorePack &max,
37  tbp_chunk_block_t &chunk_tbp_out);
38 
40  idx_t chunk_row_offset,
41  input_char_block_t &query,
42  char_t (&reference)[MAX_REFERENCE_LENGTH],
43  score_block_t &init_col_scr,
44  hls::vector<type_t, N_LAYERS> (&init_row_scr)[MAX_REFERENCE_LENGTH],
45  int query_length, int reference_length,
46  hls::vector<type_t, N_LAYERS> (&preserved_row_scr)[MAX_REFERENCE_LENGTH],
47  ScorePack &max, // write out so must pass by reference
48  tbp_chunk_block_t &chunk_tbp_out
49  );
50 
51 
52 #endif //DP_HLS_COMPONENTS_H
void DutExpandComputeBlock(input_char_block_t local_querys, input_char_block_t &local_references, score_block_t &up_prevs, score_block_t &diag_prevs, score_block_t &left_prevs, score_block_t &output_scores, tbp_block_t &output_tbp)
void DutChunkComputeArr(idx_t chunk_row_offset, input_char_block_t &query, char_t(&reference)[MAX_REFERENCE_LENGTH], score_block_t &init_col_scr, hls::vector< type_t, N_LAYERS >(&init_row_scr)[MAX_REFERENCE_LENGTH], int query_length, int reference_length, hls::vector< type_t, N_LAYERS >(&preserved_row_scr)[MAX_REFERENCE_LENGTH], ScorePack &max, tbp_chunk_block_t &chunk_tbp_out)
void DutExpandCompute(char_t local_query[PE_NUM], char_t local_reference[PE_NUM], hls::vector< type_t, N_LAYERS > wavefronts[2][PE_NUM], hls::vector< type_t, N_LAYERS > write_score_arr[PE_NUM], hls::vector< tbp_t, N_LAYERS > write_traceback_arr[PE_NUM])
A structure to hold score and index information.
Definition: dp_hls_common.h:46
void DutChunkComputeBlock(idx_t chunk_row_offset, input_char_block_t &query, char_t(&reference)[MAX_REFERENCE_LENGTH], score_block_t &init_col_scr, hls::vector< type_t, N_LAYERS >(&init_row_scr)[MAX_REFERENCE_LENGTH], int query_length, int reference_length, hls::vector< type_t, N_LAYERS >(&preserved_row_scr)[MAX_REFERENCE_LENGTH], ScorePack &max, tbp_chunk_block_t &chunk_tbp_out)
char_t input_char_block_t[PE_NUM]
Definition: dp_hls_common.h:91