##// END OF EJS Templates
Sync...
Sync BP parameters are set in accordance with TC_LFR_LOAD_NORMAL, BURST, SBM1 and SBM2 BP packets related to f0 data are sent in any mode

File last commit:

r117:7ccc2641c507 VHDLib206
r117:7ccc2641c507 VHDLib206
Show More
fsw_params_processing.h
66 lines | 2.7 KiB | text/x-c | CLexer
/ header / fsw_params_processing.h
#ifndef FSW_PARAMS_PROCESSING_H
#define FSW_PARAMS_PROCESSING_H
#define NB_BINS_PER_SM 128
#define NB_VALUES_PER_SM 25
#define TOTAL_SIZE_SM 3200 // 25 * 128
#define TOTAL_SIZE_NORM_BP1_F0 99 // 11 * 9 = 99
#define TOTAL_SIZE_NORM_BP1_F1 117 // 13 * 9 = 117
#define TOTAL_SIZE_NORM_BP1_F2 108 // 12 * 9 = 108
#define TOTAL_SIZE_SBM1_BP1_F0 198 // 22 * 9 = 198
//
#define NB_RING_NODES_SM_F0 12 // AT LEAST 3
#define NB_RING_NODES_SM_F1 3 // AT LEAST 3
#define NB_RING_NODES_SM_F2 3 // AT LEAST 3
#define NB_RING_NODES_ASM_BURST_SBM_F0 10 // AT LEAST 3
//
#define NB_BINS_PER_ASM_F0 88
#define NB_BINS_PER_PKT_ASM_F0 44
#define TOTAL_SIZE_ASM_F0_IN_BYTES 4400 // 25 * 88 * 2
#define ASM_F0_INDICE_START 17 // 88 bins
#define ASM_F0_INDICE_STOP 104 // 2 packets of 44 bins
//
#define NB_BINS_PER_ASM_F1 104
#define NB_BINS_PER_PKT_ASM_F1 52
#define TOTAL_SIZE_ASM_F1 2600 // 25 * 104
#define ASM_F1_INDICE_START 6 // 104 bins
#define ASM_F1_INDICE_STOP 109 // 2 packets of 52 bins
//
#define NB_BINS_PER_ASM_F2 96
#define NB_BINS_PER_PKT_ASM_F2 48
#define TOTAL_SIZE_ASM_F2 2400 // 25 * 96
#define ASM_F2_INDICE_START 7 // 96 bins
#define ASM_F2_INDICE_STOP 102 // 2 packets of 48 bins
//
#define NB_BINS_COMPRESSED_SM_F0 11
#define NB_BINS_COMPRESSED_SM_F1 13
#define NB_BINS_COMPRESSED_SM_F2 12
#define NB_BINS_COMPRESSED_SM_SBM_F0 22
//
#define NB_BINS_TO_AVERAGE_ASM_F0 8
#define NB_BINS_TO_AVERAGE_ASM_F1 8
#define NB_BINS_TO_AVERAGE_ASM_F2 8
#define NB_BINS_TO_AVERAGE_ASM_SBM_F0 4
//
#define TOTAL_SIZE_COMPRESSED_ASM_F0 275 // 11 * 25 WORDS
#define TOTAL_SIZE_COMPRESSED_ASM_F1 325 // 13 * 25 WORDS
#define TOTAL_SIZE_COMPRESSED_ASM_F2 300 // 12 * 25 WORDS
#define TOTAL_SIZE_COMPRESSED_ASM_SBM1 550 // 22 * 25 WORDS
// NORM
#define NB_SM_BEFORE_NORM_BP1_F0 384 // 96 * 4
#define NB_SM_BEFORE_NORM_BP2_F0 1920 // 96 * 20
#define NB_SM_BEFORE_NORM_ASM_F0 384 // 384 matrices at f0 = 4.00 second
// BURST
#define NB_SM_BEFORE_BURST_BP1_F0 96 // 96 matrices at f0 = 1.00 second
#define NB_SM_BEFORE_BURST_BP2_F0 480 // 480 matrices at f0 = 5.00 second
// SBM1
#define NB_SM_BEFORE_SBM1_BP1_F0 24 // 24 matrices at f0 = 0.25 second
#define NB_SM_BEFORE_SBM1_BP2_F0 96 // 96 matrices at f0 = 1.00 second
// SBM2
#define NB_SM_BEFORE_SBM2_BP1_F0 96 // 96 matrices at f0 = 1.00 second
#define NB_SM_BEFORE_SBM2_BP2_F0 480 // 480 matrices at f0 = 5.00 second
// GENERAL
#define NB_SM_BEFORE_AVF0 8
#endif // FSW_PARAMS_PROCESSING_H