forked from p2l1pfp/GlobalCorrelator_HLS
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathglobal_correlator.h
39 lines (31 loc) · 1.12 KB
/
global_correlator.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef _GLOBAL_CORRELATOR_H_
#define _GLOBAL_CORRELATOR_H_
#include <stdio.h>
#include "ap_int.h"
#define NUM_TRANS 40
#define ieta_max 10
#define iphi_max 10
#define ncalo_max 20
#define ntrack_max 20
#define npf_neutral_max 20
typedef ap_uint<10> int10;
typedef ap_uint<10> int11;
typedef int din_t;
typedef int dint_t;
typedef int dout_t;
void hier_func(din_t A, din_t B, dout_t *C, dout_t *D);
void calo_track_linking_grid(int10 calos_pt[ieta_max][iphi_max],
int10 calos_h_over_e[ieta_max][iphi_max],
int10 tracks_pt[ieta_max][iphi_max],
int11 pf_neutral_pt[ieta_max][iphi_max]);
void calo_track_linking_list(int10 track_list_pt[ntrack_max],
int10 track_list_ieta[ntrack_max],
int10 track_list_iphi[ntrack_max],
int10 calo_list_pt[ncalo_max],
int10 calo_list_h_over_e[ncalo_max],
int10 calo_list_ieta[ncalo_max],
int10 calo_list_iphi[ncalo_max],
int10 pf_neutral_list_pt[npf_neutral_max],
int10 pf_neutral_list_ieta[npf_neutral_max],
int10 pf_neutral_list_iphi[npf_neutral_max]);
#endif