##// END OF EJS Templates
ajout des constantes CHANNELF0, 1 et 2
paul -
r31:07e22c5c44da default
parent child
Show More
@@ -1,81 +1,85
1 1 #ifndef FSW_PARAMS_PROCESSING_H
2 2 #define FSW_PARAMS_PROCESSING_H
3 3
4 #define CHANNELF0 0
5 #define CHANNELF1 1
6 #define CHANNELF2 2
7
4 8 #define NB_BINS_PER_SM 128
5 9 #define NB_VALUES_PER_SM 25
6 10 #define TOTAL_SIZE_SM 3200 // 25 * 128 = 0xC80
7 11 #define TOTAL_SIZE_NORM_BP1_F0 99 // 11 * 9 = 99
8 12 #define TOTAL_SIZE_NORM_BP1_F1 117 // 13 * 9 = 117
9 13 #define TOTAL_SIZE_NORM_BP1_F2 108 // 12 * 9 = 108
10 14 #define TOTAL_SIZE_SBM1_BP1_F0 198 // 22 * 9 = 198
11 15 // F0
12 16 #define NB_RING_NODES_SM_F0 20 // AT LEAST 8 due to the way the averaging is done
13 17 #define NB_RING_NODES_ASM_BURST_SBM_F0 10 // AT LEAST 3
14 18 #define NB_RING_NODES_ASM_NORM_F0 10 // AT LEAST 3
15 19 #define NB_RING_NODES_ASM_F0 3 // AT LEAST 3
16 20 // F1
17 21 #define NB_RING_NODES_SM_F1 12 // AT LEAST 8 due to the way the averaging is done
18 22 #define NB_RING_NODES_ASM_BURST_SBM_F1 5 // AT LEAST 3
19 23 #define NB_RING_NODES_ASM_NORM_F1 5 // AT LEAST 3
20 24 #define NB_RING_NODES_ASM_F1 3 // AT LEAST 3
21 25 // F2
22 26 #define NB_RING_NODES_SM_F2 5 // AT LEAST 3
23 27 #define NB_RING_NODES_ASM_NORM_F2 3 // AT LEAST 3
24 28 #define NB_RING_NODES_ASM_F2 3 // AT LEAST 3
25 29 //
26 30 #define NB_BINS_PER_ASM_F0 88
27 31 #define NB_BINS_PER_PKT_ASM_F0_1 32
28 32 #define NB_BINS_PER_PKT_ASM_F0_2 24
29 33 #define DLEN_ASM_F0_PKT_1 3200 // 32 * 25 * 4, 25 components per matrix, 4 bytes per float
30 34 #define DLEN_ASM_F0_PKT_2 2400 // 24 * 25 * 4, 25 components per matrix, 4 bytes per float
31 35 #define ASM_F0_INDICE_START 16 // 17 - 1, (-1) due to the VHDL behaviour
32 36 #define ASM_F0_INDICE_STOP 103 // 104 - 1, 2 packets of 44 bins
33 37 //
34 38 #define NB_BINS_PER_ASM_F1 104
35 39 #define NB_BINS_PER_PKT_ASM_F1_1 36
36 40 #define NB_BINS_PER_PKT_ASM_F1_2 32
37 41 #define DLEN_ASM_F1_PKT_1 3600 // 36 * 25 * 4, 25 components per matrix, 4 bytes per float
38 42 #define DLEN_ASM_F1_PKT_2 3200 // 32 * 25 * 4, 25 components per matrix, 4 bytes per float
39 43 #define ASM_F1_INDICE_START 5 // 6 - 1, (-1) due to the VHDL behaviour
40 44 #define ASM_F1_INDICE_STOP 108 // 109 - 1, 2 packets of 52 bins
41 45 //
42 46 #define NB_BINS_PER_ASM_F2 96
43 47 #define NB_BINS_PER_PKT_ASM_F2 32
44 48 #define DLEN_ASM_F2_PKT 3200 // 32 * 25 * 4, 25 components per matrix, 4 bytes per float
45 49 #define ASM_F2_INDICE_START 6 // 7 - 1, (-1) due to the VHDL behaviour
46 50 #define ASM_F2_INDICE_STOP 101 // 102 - 1, 2 packets of 48 bins
47 51 //
48 52 #define KCOEFF_BLK_SIZE 130
49 53 #define NB_BINS_COMPRESSED_SM_F0 11
50 54 #define NB_BINS_COMPRESSED_SM_F1 13
51 55 #define NB_BINS_COMPRESSED_SM_F2 12
52 56 #define NB_BINS_COMPRESSED_SM 36 // 11 + 12 + 13
53 57 #define NB_BINS_COMPRESSED_SM_SBM_F0 22
54 58 #define NB_BINS_COMPRESSED_SM_SBM_F1 26
55 59 #define NB_BINS_COMPRESSED_SM_SBM_F2 24
56 60 //
57 61 #define NB_BYTES_PER_BP1 9
58 62 #define NB_BYTES_PER_BP2 30
59 63 //
60 64 #define NB_BINS_TO_AVERAGE_ASM_F0 8
61 65 #define NB_BINS_TO_AVERAGE_ASM_F1 8
62 66 #define NB_BINS_TO_AVERAGE_ASM_F2 8
63 67 #define NB_BINS_TO_AVERAGE_ASM_SBM_F0 4
64 68 #define NB_BINS_TO_AVERAGE_ASM_SBM_F1 4
65 69 #define NB_BINS_TO_AVERAGE_ASM_SBM_F2 4
66 70 //
67 71 #define TOTAL_SIZE_COMPRESSED_ASM_NORM_F0 275 // 11 * 25 WORDS
68 72 #define TOTAL_SIZE_COMPRESSED_ASM_NORM_F1 325 // 13 * 25 WORDS
69 73 #define TOTAL_SIZE_COMPRESSED_ASM_NORM_F2 300 // 12 * 25 WORDS
70 74 #define TOTAL_SIZE_COMPRESSED_ASM_SBM_F0 550 // 22 * 25 WORDS
71 75 #define TOTAL_SIZE_COMPRESSED_ASM_SBM_F1 650 // 26 * 25 WORDS
72 76 #define TOTAL_SIZE_BP1_NORM_F0 99 // 9 * 11 UNSIGNED CHAR
73 77 #define TOTAL_SIZE_BP2_NORM_F0 330 // 30 * 11 UNSIGNED CHAR
74 78 #define TOTAL_SIZE_BP1_SBM_F0 198 // 9 * 22 UNSIGNED CHAR
75 79 // GENERAL
76 80 #define NB_SM_BEFORE_AVF0 8 // must be 8 due to the SM_average() function
77 81 #define NB_SM_BEFORE_AVF1 8 // must be 8 due to the SM_average() function
78 82 #define NB_SM_BEFORE_AVF2 1 // must be 1 due to the SM_average_f2() function
79 83
80 84 #endif // FSW_PARAMS_PROCESSING_H
81 85
General Comments 0
You need to be logged in to leave comments. Login now