@@ -1,77 +1,77 | |||||
1 | #ifndef FSW_PARAMS_PROCESSING_H |
|
1 | #ifndef FSW_PARAMS_PROCESSING_H | |
2 | #define FSW_PARAMS_PROCESSING_H |
|
2 | #define FSW_PARAMS_PROCESSING_H | |
3 |
|
3 | |||
4 | #define NB_BINS_PER_SM 128 |
|
4 | #define NB_BINS_PER_SM 128 | |
5 | #define NB_VALUES_PER_SM 25 |
|
5 | #define NB_VALUES_PER_SM 25 | |
6 | #define TOTAL_SIZE_SM 3200 // 25 * 128 = 0xC80 |
|
6 | #define TOTAL_SIZE_SM 3200 // 25 * 128 = 0xC80 | |
7 | #define TOTAL_SIZE_NORM_BP1_F0 99 // 11 * 9 = 99 |
|
7 | #define TOTAL_SIZE_NORM_BP1_F0 99 // 11 * 9 = 99 | |
8 | #define TOTAL_SIZE_NORM_BP1_F1 117 // 13 * 9 = 117 |
|
8 | #define TOTAL_SIZE_NORM_BP1_F1 117 // 13 * 9 = 117 | |
9 | #define TOTAL_SIZE_NORM_BP1_F2 108 // 12 * 9 = 108 |
|
9 | #define TOTAL_SIZE_NORM_BP1_F2 108 // 12 * 9 = 108 | |
10 | #define TOTAL_SIZE_SBM1_BP1_F0 198 // 22 * 9 = 198 |
|
10 | #define TOTAL_SIZE_SBM1_BP1_F0 198 // 22 * 9 = 198 | |
11 | // F0 |
|
11 | // F0 | |
12 |
#define NB_RING_NODES_SM_F0 |
|
12 | #define NB_RING_NODES_SM_F0 20 // AT LEAST 8 due to the way the averaging is done | |
13 | #define NB_RING_NODES_ASM_BURST_SBM_F0 10 // AT LEAST 3 |
|
13 | #define NB_RING_NODES_ASM_BURST_SBM_F0 10 // AT LEAST 3 | |
14 | #define NB_RING_NODES_ASM_NORM_F0 10 // AT LEAST 3 |
|
14 | #define NB_RING_NODES_ASM_NORM_F0 10 // AT LEAST 3 | |
15 | #define NB_RING_NODES_ASM_F0 3 // AT LEAST 3 |
|
15 | #define NB_RING_NODES_ASM_F0 3 // AT LEAST 3 | |
16 | // F1 |
|
16 | // F1 | |
17 | #define NB_RING_NODES_SM_F1 12 // AT LEAST 8 due to the way the averaging is done |
|
17 | #define NB_RING_NODES_SM_F1 12 // AT LEAST 8 due to the way the averaging is done | |
18 | #define NB_RING_NODES_ASM_BURST_SBM_F1 5 // AT LEAST 3 |
|
18 | #define NB_RING_NODES_ASM_BURST_SBM_F1 5 // AT LEAST 3 | |
19 | #define NB_RING_NODES_ASM_NORM_F1 5 // AT LEAST 3 |
|
19 | #define NB_RING_NODES_ASM_NORM_F1 5 // AT LEAST 3 | |
20 | #define NB_RING_NODES_ASM_F1 3 // AT LEAST 3 |
|
20 | #define NB_RING_NODES_ASM_F1 3 // AT LEAST 3 | |
21 | // F2 |
|
21 | // F2 | |
22 |
#define NB_RING_NODES_SM_F2 |
|
22 | #define NB_RING_NODES_SM_F2 5 // AT LEAST 3 | |
23 | #define NB_RING_NODES_ASM_BURST_SBM_F2 3 // AT LEAST 3 |
|
23 | #define NB_RING_NODES_ASM_BURST_SBM_F2 3 // AT LEAST 3 | |
24 | #define NB_RING_NODES_ASM_NORM_F2 3 // AT LEAST 3 |
|
24 | #define NB_RING_NODES_ASM_NORM_F2 3 // AT LEAST 3 | |
25 | #define NB_RING_NODES_ASM_F2 3 // AT LEAST 3 |
|
25 | #define NB_RING_NODES_ASM_F2 3 // AT LEAST 3 | |
26 | // |
|
26 | // | |
27 | #define NB_BINS_PER_ASM_F0 88 |
|
27 | #define NB_BINS_PER_ASM_F0 88 | |
28 | #define NB_BINS_PER_PKT_ASM_F0 44 |
|
28 | #define NB_BINS_PER_PKT_ASM_F0 44 | |
29 | #define TOTAL_SIZE_ASM_F0_IN_BYTES 4400 // 25 * 88 * 2 |
|
29 | #define TOTAL_SIZE_ASM_F0_IN_BYTES 4400 // 25 * 88 * 2 | |
30 | #define ASM_F0_INDICE_START 17 // 88 bins |
|
30 | #define ASM_F0_INDICE_START 17 // 88 bins | |
31 | #define ASM_F0_INDICE_STOP 104 // 2 packets of 44 bins |
|
31 | #define ASM_F0_INDICE_STOP 104 // 2 packets of 44 bins | |
32 | // |
|
32 | // | |
33 | #define NB_BINS_PER_ASM_F1 104 |
|
33 | #define NB_BINS_PER_ASM_F1 104 | |
34 | #define NB_BINS_PER_PKT_ASM_F1 52 |
|
34 | #define NB_BINS_PER_PKT_ASM_F1 52 | |
35 | #define TOTAL_SIZE_ASM_F1_IN_BYTES 5200 // 25 * 104 * 2 |
|
35 | #define TOTAL_SIZE_ASM_F1_IN_BYTES 5200 // 25 * 104 * 2 | |
36 | #define ASM_F1_INDICE_START 6 // 104 bins |
|
36 | #define ASM_F1_INDICE_START 6 // 104 bins | |
37 | #define ASM_F1_INDICE_STOP 109 // 2 packets of 52 bins |
|
37 | #define ASM_F1_INDICE_STOP 109 // 2 packets of 52 bins | |
38 | // |
|
38 | // | |
39 | #define NB_BINS_PER_ASM_F2 96 |
|
39 | #define NB_BINS_PER_ASM_F2 96 | |
40 | #define NB_BINS_PER_PKT_ASM_F2 48 |
|
40 | #define NB_BINS_PER_PKT_ASM_F2 48 | |
41 | #define TOTAL_SIZE_ASM_F2_IN_BYTES 4800 // 25 * 96 * 2 |
|
41 | #define TOTAL_SIZE_ASM_F2_IN_BYTES 4800 // 25 * 96 * 2 | |
42 | #define ASM_F2_INDICE_START 7 // 96 bins |
|
42 | #define ASM_F2_INDICE_START 7 // 96 bins | |
43 | #define ASM_F2_INDICE_STOP 102 // 2 packets of 48 bins |
|
43 | #define ASM_F2_INDICE_STOP 102 // 2 packets of 48 bins | |
44 | // |
|
44 | // | |
45 | #define NB_BINS_COMPRESSED_SM_F0 11 |
|
45 | #define NB_BINS_COMPRESSED_SM_F0 11 | |
46 | #define NB_BINS_COMPRESSED_SM_F1 13 |
|
46 | #define NB_BINS_COMPRESSED_SM_F1 13 | |
47 | #define NB_BINS_COMPRESSED_SM_F2 12 |
|
47 | #define NB_BINS_COMPRESSED_SM_F2 12 | |
48 | #define NB_BINS_COMPRESSED_SM_SBM_F0 22 |
|
48 | #define NB_BINS_COMPRESSED_SM_SBM_F0 22 | |
49 | #define NB_BINS_COMPRESSED_SM_SBM_F1 26 |
|
49 | #define NB_BINS_COMPRESSED_SM_SBM_F1 26 | |
50 | #define NB_BINS_COMPRESSED_SM_SBM_F2 24 |
|
50 | #define NB_BINS_COMPRESSED_SM_SBM_F2 24 | |
51 | // |
|
51 | // | |
52 | #define NB_BYTES_PER_BP1 9 |
|
52 | #define NB_BYTES_PER_BP1 9 | |
53 | #define NB_BYTES_PER_BP2 30 |
|
53 | #define NB_BYTES_PER_BP2 30 | |
54 | // |
|
54 | // | |
55 | #define NB_BINS_TO_AVERAGE_ASM_F0 8 |
|
55 | #define NB_BINS_TO_AVERAGE_ASM_F0 8 | |
56 | #define NB_BINS_TO_AVERAGE_ASM_F1 8 |
|
56 | #define NB_BINS_TO_AVERAGE_ASM_F1 8 | |
57 | #define NB_BINS_TO_AVERAGE_ASM_F2 8 |
|
57 | #define NB_BINS_TO_AVERAGE_ASM_F2 8 | |
58 | #define NB_BINS_TO_AVERAGE_ASM_SBM_F0 4 |
|
58 | #define NB_BINS_TO_AVERAGE_ASM_SBM_F0 4 | |
59 | #define NB_BINS_TO_AVERAGE_ASM_SBM_F1 4 |
|
59 | #define NB_BINS_TO_AVERAGE_ASM_SBM_F1 4 | |
60 | #define NB_BINS_TO_AVERAGE_ASM_SBM_F2 4 |
|
60 | #define NB_BINS_TO_AVERAGE_ASM_SBM_F2 4 | |
61 | // |
|
61 | // | |
62 | #define TOTAL_SIZE_COMPRESSED_ASM_NORM_F0 275 // 11 * 25 WORDS |
|
62 | #define TOTAL_SIZE_COMPRESSED_ASM_NORM_F0 275 // 11 * 25 WORDS | |
63 | #define TOTAL_SIZE_COMPRESSED_ASM_NORM_F1 325 // 13 * 25 WORDS |
|
63 | #define TOTAL_SIZE_COMPRESSED_ASM_NORM_F1 325 // 13 * 25 WORDS | |
64 | #define TOTAL_SIZE_COMPRESSED_ASM_NORM_F2 300 // 12 * 25 WORDS |
|
64 | #define TOTAL_SIZE_COMPRESSED_ASM_NORM_F2 300 // 12 * 25 WORDS | |
65 | #define TOTAL_SIZE_COMPRESSED_ASM_SBM_F0 550 // 22 * 25 WORDS |
|
65 | #define TOTAL_SIZE_COMPRESSED_ASM_SBM_F0 550 // 22 * 25 WORDS | |
66 | #define TOTAL_SIZE_COMPRESSED_ASM_SBM_F1 650 // 26 * 25 WORDS |
|
66 | #define TOTAL_SIZE_COMPRESSED_ASM_SBM_F1 650 // 26 * 25 WORDS | |
67 | #define TOTAL_SIZE_COMPRESSED_ASM_SBM_F2 600 // 24 * 25 WORDS |
|
67 | #define TOTAL_SIZE_COMPRESSED_ASM_SBM_F2 600 // 24 * 25 WORDS | |
68 | #define TOTAL_SIZE_BP1_NORM_F0 99 // 9 * 11 UNSIGNED CHAR |
|
68 | #define TOTAL_SIZE_BP1_NORM_F0 99 // 9 * 11 UNSIGNED CHAR | |
69 | #define TOTAL_SIZE_BP2_NORM_F0 330 // 30 * 11 UNSIGNED CHAR |
|
69 | #define TOTAL_SIZE_BP2_NORM_F0 330 // 30 * 11 UNSIGNED CHAR | |
70 | #define TOTAL_SIZE_BP1_SBM_F0 198 // 9 * 22 UNSIGNED CHAR |
|
70 | #define TOTAL_SIZE_BP1_SBM_F0 198 // 9 * 22 UNSIGNED CHAR | |
71 | // GENERAL |
|
71 | // GENERAL | |
72 | #define NB_SM_BEFORE_AVF0 8 // must be 8 due to the SM_average() function |
|
72 | #define NB_SM_BEFORE_AVF0 8 // must be 8 due to the SM_average() function | |
73 | #define NB_SM_BEFORE_AVF1 8 // must be 8 due to the SM_average() function |
|
73 | #define NB_SM_BEFORE_AVF1 8 // must be 8 due to the SM_average() function | |
74 | #define NB_SM_BEFORE_AVF2 1 // must be 1 due to the SM_average_f2() function |
|
74 | #define NB_SM_BEFORE_AVF2 1 // must be 1 due to the SM_average_f2() function | |
75 |
|
75 | |||
76 | #endif // FSW_PARAMS_PROCESSING_H |
|
76 | #endif // FSW_PARAMS_PROCESSING_H | |
77 |
|
77 |
General Comments 0
You need to be logged in to leave comments.
Login now