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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
|
#ifndef PixelPortCardSettingNames_h
#define PixelPortCardSettingNames_h
/**
* \file CalibFormats/SiPixelObjects/interface/PortCardSettingNames.h
* \brief This is just a naespe populated with default values
*
* A longer explanation will be placed here later
*
*/
#include <string>
namespace pos {
namespace PortCardSettingNames {
// AOH
const std::string k_AOH_Bias1 = "AOH_Bias1";
const std::string k_AOH_Bias2 = "AOH_Bias2";
const std::string k_AOH_Bias3 = "AOH_Bias3";
const std::string k_AOH_Bias4 = "AOH_Bias4";
const std::string k_AOH_Bias5 = "AOH_Bias5";
const std::string k_AOH_Bias6 = "AOH_Bias6";
const std::string k_AOH_Gain123 = "AOH_Gain123";
const std::string k_AOH_Gain456 = "AOH_Gain456";
const std::string k_AOH1_Bias1 = "AOH1_Bias1";
const std::string k_AOH1_Bias2 = "AOH1_Bias2";
const std::string k_AOH1_Bias3 = "AOH1_Bias3";
const std::string k_AOH1_Bias4 = "AOH1_Bias4";
const std::string k_AOH1_Bias5 = "AOH1_Bias5";
const std::string k_AOH1_Bias6 = "AOH1_Bias6";
const std::string k_AOH1_Gain123 = "AOH1_Gain123";
const std::string k_AOH1_Gain456 = "AOH1_Gain456";
const std::string k_AOH2_Bias1 = "AOH2_Bias1";
const std::string k_AOH2_Bias2 = "AOH2_Bias2";
const std::string k_AOH2_Bias3 = "AOH2_Bias3";
const std::string k_AOH2_Bias4 = "AOH2_Bias4";
const std::string k_AOH2_Bias5 = "AOH2_Bias5";
const std::string k_AOH2_Bias6 = "AOH2_Bias6";
const std::string k_AOH2_Gain123 = "AOH2_Gain123";
const std::string k_AOH2_Gain456 = "AOH2_Gain456";
const std::string k_AOH3_Bias1 = "AOH3_Bias1";
const std::string k_AOH3_Bias2 = "AOH3_Bias2";
const std::string k_AOH3_Bias3 = "AOH3_Bias3";
const std::string k_AOH3_Bias4 = "AOH3_Bias4";
const std::string k_AOH3_Bias5 = "AOH3_Bias5";
const std::string k_AOH3_Bias6 = "AOH3_Bias6";
const std::string k_AOH3_Gain123 = "AOH3_Gain123";
const std::string k_AOH3_Gain456 = "AOH3_Gain456";
const std::string k_AOH4_Bias1 = "AOH4_Bias1";
const std::string k_AOH4_Bias2 = "AOH4_Bias2";
const std::string k_AOH4_Bias3 = "AOH4_Bias3";
const std::string k_AOH4_Bias4 = "AOH4_Bias4";
const std::string k_AOH4_Bias5 = "AOH4_Bias5";
const std::string k_AOH4_Bias6 = "AOH4_Bias6";
const std::string k_AOH4_Gain123 = "AOH4_Gain123";
const std::string k_AOH4_Gain456 = "AOH4_Gain456";
const unsigned int k_AOH_Bias1_offset = 0x0;
const unsigned int k_AOH_Bias2_offset = 0x1;
const unsigned int k_AOH_Bias3_offset = 0x2;
const unsigned int k_AOH_Bias4_offset = 0x4;
const unsigned int k_AOH_Bias5_offset = 0x5;
const unsigned int k_AOH_Bias6_offset = 0x6;
const unsigned int k_AOH_Gain123_offset = 0x3;
const unsigned int k_AOH_Gain456_offset = 0x7;
// AOH fpix
const unsigned int k_fpix_AOH_base = 0x10;
const unsigned int k_fpix_AOH_Bias1_address = k_fpix_AOH_base + k_AOH_Bias1_offset;
const unsigned int k_fpix_AOH_Bias2_address = k_fpix_AOH_base + k_AOH_Bias2_offset;
const unsigned int k_fpix_AOH_Bias3_address = k_fpix_AOH_base + k_AOH_Bias3_offset;
const unsigned int k_fpix_AOH_Bias4_address = k_fpix_AOH_base + k_AOH_Bias4_offset;
const unsigned int k_fpix_AOH_Bias5_address = k_fpix_AOH_base + k_AOH_Bias5_offset;
const unsigned int k_fpix_AOH_Bias6_address = k_fpix_AOH_base + k_AOH_Bias6_offset;
const unsigned int k_fpix_AOH_Gain123_address = k_fpix_AOH_base + k_AOH_Gain123_offset;
const unsigned int k_fpix_AOH_Gain456_address = k_fpix_AOH_base + k_AOH_Gain456_offset;
// AOH bpix
const unsigned int k_bpix_AOH1_base = 0x08;
const unsigned int k_bpix_AOH1_Bias1_address = k_bpix_AOH1_base + k_AOH_Bias1_offset;
const unsigned int k_bpix_AOH1_Bias2_address = k_bpix_AOH1_base + k_AOH_Bias2_offset;
const unsigned int k_bpix_AOH1_Bias3_address = k_bpix_AOH1_base + k_AOH_Bias3_offset;
const unsigned int k_bpix_AOH1_Bias4_address = k_bpix_AOH1_base + k_AOH_Bias4_offset;
const unsigned int k_bpix_AOH1_Bias5_address = k_bpix_AOH1_base + k_AOH_Bias5_offset;
const unsigned int k_bpix_AOH1_Bias6_address = k_bpix_AOH1_base + k_AOH_Bias6_offset;
const unsigned int k_bpix_AOH1_Gain123_address = k_bpix_AOH1_base + k_AOH_Gain123_offset;
const unsigned int k_bpix_AOH1_Gain456_address = k_bpix_AOH1_base + k_AOH_Gain456_offset;
const unsigned int k_bpix_AOH2_base = 0x10;
const unsigned int k_bpix_AOH2_Bias1_address = k_bpix_AOH2_base + k_AOH_Bias1_offset;
const unsigned int k_bpix_AOH2_Bias2_address = k_bpix_AOH2_base + k_AOH_Bias2_offset;
const unsigned int k_bpix_AOH2_Bias3_address = k_bpix_AOH2_base + k_AOH_Bias3_offset;
const unsigned int k_bpix_AOH2_Bias4_address = k_bpix_AOH2_base + k_AOH_Bias4_offset;
const unsigned int k_bpix_AOH2_Bias5_address = k_bpix_AOH2_base + k_AOH_Bias5_offset;
const unsigned int k_bpix_AOH2_Bias6_address = k_bpix_AOH2_base + k_AOH_Bias6_offset;
const unsigned int k_bpix_AOH2_Gain123_address = k_bpix_AOH2_base + k_AOH_Gain123_offset;
const unsigned int k_bpix_AOH2_Gain456_address = k_bpix_AOH2_base + k_AOH_Gain456_offset;
const unsigned int k_bpix_AOH3_base = 0x18;
const unsigned int k_bpix_AOH3_Bias1_address = k_bpix_AOH3_base + k_AOH_Bias1_offset;
const unsigned int k_bpix_AOH3_Bias2_address = k_bpix_AOH3_base + k_AOH_Bias2_offset;
const unsigned int k_bpix_AOH3_Bias3_address = k_bpix_AOH3_base + k_AOH_Bias3_offset;
const unsigned int k_bpix_AOH3_Bias4_address = k_bpix_AOH3_base + k_AOH_Bias4_offset;
const unsigned int k_bpix_AOH3_Bias5_address = k_bpix_AOH3_base + k_AOH_Bias5_offset;
const unsigned int k_bpix_AOH3_Bias6_address = k_bpix_AOH3_base + k_AOH_Bias6_offset;
const unsigned int k_bpix_AOH3_Gain123_address = k_bpix_AOH3_base + k_AOH_Gain123_offset;
const unsigned int k_bpix_AOH3_Gain456_address = k_bpix_AOH3_base + k_AOH_Gain456_offset;
const unsigned int k_bpix_AOH4_base = 0x20;
const unsigned int k_bpix_AOH4_Bias1_address = k_bpix_AOH4_base + k_AOH_Bias1_offset;
const unsigned int k_bpix_AOH4_Bias2_address = k_bpix_AOH4_base + k_AOH_Bias2_offset;
const unsigned int k_bpix_AOH4_Bias3_address = k_bpix_AOH4_base + k_AOH_Bias3_offset;
const unsigned int k_bpix_AOH4_Bias4_address = k_bpix_AOH4_base + k_AOH_Bias4_offset;
const unsigned int k_bpix_AOH4_Bias5_address = k_bpix_AOH4_base + k_AOH_Bias5_offset;
const unsigned int k_bpix_AOH4_Bias6_address = k_bpix_AOH4_base + k_AOH_Bias6_offset;
const unsigned int k_bpix_AOH4_Gain123_address = k_bpix_AOH4_base + k_AOH_Gain123_offset;
const unsigned int k_bpix_AOH4_Gain456_address = k_bpix_AOH4_base + k_AOH_Gain456_offset;
// PLL
const std::string k_PLL_CTR1 = "PLL_CTR1";
const std::string k_PLL_CTR2 = "PLL_CTR2";
const std::string k_PLL_CTR3 = "PLL_CTR3";
const std::string k_PLL_CTR4or5 =
"PLL_CTR4or5"; // controls either CTR4 (if bit 5 of CTR2 = 0) or CTR5 (if bit 5 of CTR = 1)
const std::string k_PLL_CTR4 = "PLL_CTR4"; // has no address defined, needs special handling
const std::string k_PLL_CTR5 = "PLL_CTR5"; // has no address defined, needs special handling
const unsigned int k_PLL_CTR1_offset = 0x0;
const unsigned int k_PLL_CTR2_offset = 0x1;
const unsigned int k_PLL_CTR3_offset = 0x2;
const unsigned int k_PLL_CTR4or5_offset = 0x3;
// PLL fpix
const unsigned int k_fpix_PLL_base = 0x20;
const unsigned int k_fpix_PLL_CTR1_address = k_fpix_PLL_base + k_PLL_CTR1_offset;
const unsigned int k_fpix_PLL_CTR2_address = k_fpix_PLL_base + k_PLL_CTR2_offset;
const unsigned int k_fpix_PLL_CTR3_address = k_fpix_PLL_base + k_PLL_CTR3_offset;
const unsigned int k_fpix_PLL_CTR4or5_address = k_fpix_PLL_base + k_PLL_CTR4or5_offset;
// PLL bpix
const unsigned int k_bpix_PLL_base = 0x40;
const unsigned int k_bpix_PLL_CTR1_address = k_bpix_PLL_base + k_PLL_CTR1_offset;
const unsigned int k_bpix_PLL_CTR2_address = k_bpix_PLL_base + k_PLL_CTR2_offset;
const unsigned int k_bpix_PLL_CTR3_address = k_bpix_PLL_base + k_PLL_CTR3_offset;
const unsigned int k_bpix_PLL_CTR4or5_address = k_bpix_PLL_base + k_PLL_CTR4or5_offset;
// Delay25
const std::string k_Delay25_RDA = "Delay25_RDA";
const std::string k_Delay25_RCL = "Delay25_RCL";
const std::string k_Delay25_SDA = "Delay25_SDA";
const std::string k_Delay25_TRG = "Delay25_TRG";
const std::string k_Delay25_SCL = "Delay25_SCL";
const std::string k_Delay25_GCR = "Delay25_GCR";
const unsigned int k_Delay25_CR0_offset = 0x0;
const unsigned int k_Delay25_CR1_offset = 0x1;
const unsigned int k_Delay25_CR2_offset = 0x2;
const unsigned int k_Delay25_CR3_offset = 0x3;
const unsigned int k_Delay25_CR4_offset = 0x4;
const unsigned int k_Delay25_CR5_offset = 0x5;
// Delay25 fpix
const unsigned int k_fpix_Delay25_base = 0x30;
const unsigned int k_fpix_Delay25_RDA_address = k_fpix_Delay25_base + k_Delay25_CR0_offset;
const unsigned int k_fpix_Delay25_RCL_address = k_fpix_Delay25_base + k_Delay25_CR1_offset;
const unsigned int k_fpix_Delay25_SDA_address = k_fpix_Delay25_base + k_Delay25_CR2_offset;
const unsigned int k_fpix_Delay25_TRG_address = k_fpix_Delay25_base + k_Delay25_CR3_offset;
const unsigned int k_fpix_Delay25_SCL_address = k_fpix_Delay25_base + k_Delay25_CR4_offset;
const unsigned int k_fpix_Delay25_GCR_address = k_fpix_Delay25_base + k_Delay25_CR5_offset;
// Delay25 bpix
const unsigned int k_bpix_Delay25_base = 0x60;
const unsigned int k_bpix_Delay25_RDA_address = k_bpix_Delay25_base + k_Delay25_CR3_offset;
const unsigned int k_bpix_Delay25_RCL_address = k_bpix_Delay25_base + k_Delay25_CR0_offset;
const unsigned int k_bpix_Delay25_SDA_address = k_bpix_Delay25_base + k_Delay25_CR2_offset;
const unsigned int k_bpix_Delay25_TRG_address = k_bpix_Delay25_base + k_Delay25_CR1_offset;
const unsigned int k_bpix_Delay25_SCL_address = k_bpix_Delay25_base + k_Delay25_CR4_offset;
const unsigned int k_bpix_Delay25_GCR_address = k_bpix_Delay25_base + k_Delay25_CR5_offset;
// DOH
const std::string k_DOH_Ch0Bias_CLK = "DOH_Ch0Bias_CLK";
const std::string k_DOH_Dummy = "DOH_Dummy";
const std::string k_DOH_Ch1Bias_Data = "DOH_Ch1Bias_Data";
const std::string k_DOH_Gain_SEU = "DOH_Gain_SEU";
const unsigned int k_DOH_Ch0Bias_CLK_offset = 0x0;
const unsigned int k_DOH_Dummy_offset = 0x1;
const unsigned int k_DOH_Ch1Bias_Data_offset = 0x2;
const unsigned int k_DOH_Gain_SEU_offset = 0x3;
// DOH fpix
const unsigned int k_fpix_DOH_base = 0x70;
const unsigned int k_fpix_DOH_Ch0Bias_CLK_address = k_fpix_DOH_base + k_DOH_Ch0Bias_CLK_offset;
const unsigned int k_fpix_DOH_Dummy_address = k_fpix_DOH_base + k_DOH_Dummy_offset;
const unsigned int k_fpix_DOH_Ch1Bias_Data_address = k_fpix_DOH_base + k_DOH_Ch1Bias_Data_offset;
const unsigned int k_fpix_DOH_Gain_SEU_address = k_fpix_DOH_base + k_DOH_Gain_SEU_offset;
// DOH bpix
const unsigned int k_bpix_DOH_base = 0x70;
const unsigned int k_bpix_DOH_Ch0Bias_CLK_address = k_bpix_DOH_base + k_DOH_Ch0Bias_CLK_offset;
const unsigned int k_bpix_DOH_Dummy_address = k_bpix_DOH_base + k_DOH_Dummy_offset;
const unsigned int k_bpix_DOH_Ch1Bias_Data_address = k_bpix_DOH_base + k_DOH_Ch1Bias_Data_offset;
const unsigned int k_bpix_DOH_Gain_SEU_address = k_bpix_DOH_base + k_DOH_Gain_SEU_offset;
} // namespace PortCardSettingNames
} // namespace pos
#endif
|