StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
sector.h
1 #ifndef _SECTOR_H
2 #define _SECTOR_H
3 
4 
5 // Sector Broker defines
6 #define SB_RB_NUM 12
7 
8 // Receiver board defines
9 #define RB_MZ_NUM 3
10 #define RB_FIBER_HDR_LEN 64
11 
12 // Mezzanine defines
13 #define MZ_ASIC_NUM 6
14 #define MZ_BUFFER_NUM 12
15 
16 
17 
18 #define MZ_TPC_PADS_PER_ASIC 64
19 #define MZ_TPC_TIMEBINS 512
20 #define MZ_TPC_CPP_PER_PAD 32
21 #define MZ_TPC_MAX_PADS_PER_MEZ (MZ_TPC_PADS_PER_ASIC*MZ_ASIC_NUM)
22 
23 #define MZ_FTP_PADS_PER_ASIC 64
24 #define MZ_FTP_TIMEBINS 512 // deal with this in software
25 #define MZ_FTP_CPP_PER_PAD 32
26 #define MZ_FTP_MAX_PADS_PER_MEZ (MZ_TPC_PADS_PER_ASIC*MZ_ASIC_NUM)
27 #define MZ_FTP_PADS_PER_MEZ 320
28 
29 #define MZ_SVT_PADS_PER_ASIC 256
30 #define MZ_SVT_TIMEBINS 128
31 #define MZ_SVT_CPP_PER_PAD 8
32 #define MZ_SVT_MAX_PADS_PER_MEZ (MZ_SVT_PADS_PER_ASIC*MZ_ASIC_NUM) // not really verified
33 
34 // generic constants
35 #define MZ_MAX_PADS_PER_ASIC 256 // SVT case
36 #define MZ_MAX_TIMEBINS 512 // TPC
37 #define MZ_MAX_CPP_PER_PAD 32 // TPC
38 #define MZ_MAX_PADS (256*MZ_ASIC_NUM) // SVT
39 #define MZ_MAX_CHANNELS (512*64*MZ_ASIC_NUM) // all
40 #define MZ_MAX_CPPS (8*256*MZ_ASIC_NUM) // all
41 #define MZ_MAX_ROWS 6 // TPC, SVT
42 // maximum clusters per mezzanine
43 #define MZ_MAX_CLUSTERS 6000
44 
45 #define MZ_RAW_DEBUG_BYTES (0x40000 + 0x10000) // ADC and CPP
46 
47 // this shouldn't really be here...
48 // misc.
49 #define DMA_SL3_TYPE (1 << 28)
50 #define DMA_FMT_TYPE (2 << 28)
51 
52 
53 
54 #endif