12unsigned int TrigConf::CTPFiles::ALL_CTPCORELUT_SIZE = 0;
13unsigned int TrigConf::CTPFiles::ALL_CTPCORECAM_SIZE = 0;
14unsigned int TrigConf::CTPFiles::ALL_CTPINMONSEL_SIZE = 0;
15unsigned int TrigConf::CTPFiles::ALL_CTPINMONDEC_SIZE = 0;
16unsigned int TrigConf::CTPFiles::CTPMON_MUX_OUTPUT_NUMBER = 0;
17unsigned int TrigConf::CTPFiles::CTPMON_ADDRESS_SELECTOR_NUMBER = 0;
18unsigned int TrigConf::CTPFiles::ALL_CTPMONSELECTOR_SIZE = 0;
19unsigned int TrigConf::CTPFiles::ALL_CTPMONDECODER_SIZE = 0;
34 ALL_CTPCORELUT_SIZE = 49664;
35 ALL_CTPCORECAM_SIZE = 8192;
37 ALL_CTPINMONSEL_SIZE = 124;
38 ALL_CTPINMONDEC_SIZE = 4096;
40 CTPMON_MUX_OUTPUT_NUMBER = 9;
41 CTPMON_ADDRESS_SELECTOR_NUMBER = 24;
42 ALL_CTPMONSELECTOR_SIZE = CTPMON_MUX_OUTPUT_NUMBER * CTPMON_ADDRESS_SELECTOR_NUMBER;
43 ALL_CTPMONDECODER_SIZE = 6656;
46 ALL_CTPCORELUT_SIZE = 725248;
47 ALL_CTPCORECAM_SIZE = 55296;
49 ALL_CTPINMONSEL_SIZE = 124;
50 ALL_CTPINMONDEC_SIZE = 4096;
52 CTPMON_MUX_OUTPUT_NUMBER = 9;
53 CTPMON_ADDRESS_SELECTOR_NUMBER = 24;
54 ALL_CTPMONSELECTOR_SIZE = CTPMON_MUX_OUTPUT_NUMBER * CTPMON_ADDRESS_SELECTOR_NUMBER;
55 ALL_CTPMONDECODER_SIZE = 6656;
61const std::vector<uint32_t> &
69 if(
vec.size() != ALL_CTPCORELUT_SIZE)
70 throw std::runtime_error(
"CTPFiles: LUT size incorrect" );
74const std::vector<uint32_t> &
81 if(
vec.size() != ALL_CTPCORECAM_SIZE)
82 throw std::runtime_error(
"CTPFiles: CAM size incorrect" );
87const std::vector<uint32_t> &
94 if(
vec.size() != ALL_CTPINMONSEL_SIZE)
95 throw std::runtime_error(
"CTPFiles: MonSel size slot 7 incorrect" );
99const std::vector<uint32_t> &
106 if(
vec.size() != ALL_CTPINMONSEL_SIZE)
107 throw std::runtime_error(
"CTPFiles: MonSel size slot 8 incorrect" );
112const std::vector<uint32_t> &
119 if(
vec.size() != ALL_CTPINMONSEL_SIZE)
120 throw std::runtime_error(
"CTPFiles: MonSel size slot 9 incorrect" );
125const std::vector<uint32_t> &
133 if(
vec.size() != ALL_CTPMONSELECTOR_SIZE)
134 throw std::runtime_error(
"CTPFiles: CTPMON Selector size incorrect" );
139const std::vector<uint32_t> &
145 if(
vec.size() != ALL_CTPINMONDEC_SIZE)
146 throw std::runtime_error(
"CTPFiles: MonSel size slot 7 incorrect" );
150const std::vector<uint32_t> &
157 if(
vec.size() != ALL_CTPINMONDEC_SIZE)
158 throw std::runtime_error(
"CTPFiles: MonSel size slot 8 incorrect" );
163const std::vector<uint32_t> &
170 if(
vec.size() != ALL_CTPINMONDEC_SIZE)
171 throw std::runtime_error(
"CTPFiles: MonSel size slot 9 incorrect" );
175const std::vector<uint32_t> &
183 if(
vec.size() != ALL_CTPMONDECODER_SIZE)
184 throw std::runtime_error(
"CTPFiles: CTPMON Decoder size incorrect" );
192 cout <<
indent <<
"CTPFiles: " << endl;
193 cout <<
indent <<
"id:\t\t\t" <<
id() << endl;
194 cout <<
indent <<
"Name: \t\t\t" <<
name() << endl;
196 cout <<
indent <<
"Print the LUT" << endl;
198 for (
unsigned int i=0; i<(ALL_CTPCORELUT_SIZE); i++)
199 cout <<
indent << i <<
"\t:t0x" << setw(8) << setfill(
'0')
202 cout <<
indent <<
"Print the CAM" << endl;
203 for (
unsigned int i=0; i<(ALL_CTPCORECAM_SIZE); i++)
204 cout <<
indent << i <<
"\t:\t0x" << setw(8) << setfill(
'0')
207 cout <<
indent <<
"Print the CTPIN mon decoders slot 7" << endl;
208 for (
unsigned int i=0; i<(ALL_CTPINMONDEC_SIZE); i++)
209 cout <<
indent << i <<
"\t:\t0x" << setw(8) << setfill(
'0')
211 cout <<
indent <<
"Print the CTPIN mon decoders slot 8" << endl;
212 for (
unsigned int i=0; i<(ALL_CTPINMONDEC_SIZE); i++)
213 cout <<
indent << i <<
"\t:\t0x" << setw(8) << setfill(
'0')
215 cout <<
indent <<
"Print the CTPIN mon decoders slot 9" << endl;
216 for (
unsigned int i=0; i<(ALL_CTPINMONDEC_SIZE); i++)
217 cout <<
indent << i <<
"\t:\t0x" << setw(8) << setfill(
'0')
220 cout <<
indent <<
"Print the CTPIN mon selectors slot 7" << endl;
221 for (
unsigned int i=0; i<(ALL_CTPINMONSEL_SIZE); i++)
222 cout <<
indent << i <<
"\t:\t0x" << setw(8) << setfill(
'0')
224 cout <<
indent <<
"Print the CTPIN mon selectors slot 8" << endl;
225 for (
unsigned int i=0; i<(ALL_CTPINMONSEL_SIZE); i++)
226 cout <<
indent << i <<
"\t:\t0x" << setw(8) << setfill(
'0')
228 cout <<
indent <<
"Print the CTPIN mon selectors slot 9" << endl;
229 for (
unsigned int i=0; i<(ALL_CTPINMONSEL_SIZE); i++)
230 cout <<
indent << i <<
"\t:\t0x" << setw(8) << setfill(
'0')
233 cout <<
indent <<
"Print the CTPMON selector" << endl;
234 for (
unsigned int i=0; i < ALL_CTPMONSELECTOR_SIZE; i++)
235 cout <<
indent << i <<
"\t:\t" << setw(2) << setfill(
' ')
237 cout <<
indent <<
"Print the CTPMON decoder" << endl;
238 for (
unsigned int i=0; i < ALL_CTPMONDECODER_SIZE; i++)
239 cout <<
indent << i <<
"\t:\t0x" << setw(8) << setfill(
'0')
243 cout <<
indent <<
"VHDL slot 7 : " << endl;
245 cout <<
indent <<
"VHDL slot 8 : " << endl;
247 cout <<
indent <<
"VHDL slot 9 : " << endl;
250 cout <<
indent <<
"SVFI slot 7 : " << endl;
252 cout <<
indent <<
"SVFI slot 8 : " << endl;
254 cout <<
indent <<
"SVFI slot 9 : " << endl;
257 cout <<
indent <<
"SMX Output file: " << endl;
std::vector< size_t > vec
std::string m_ctpinSmxSvfiSlot9
const std::vector< uint32_t > & ctpmonSelector() const
const std::vector< uint32_t > & ctpinMonSelectorSlot7() const
const std::vector< uint32_t > & ctpinMonSelectorSlot8() const
std::vector< uint32_t > m_ctpcoreLUT
void setCtpcoreCAM(const std::vector< u_int > &vec)
std::vector< uint32_t > m_ctpinMonSelectorSlot9
const std::vector< uint32_t > & ctpcoreLUT() const
virtual void print(const std::string &indent="", unsigned int detail=1) const override
std::vector< uint32_t > m_ctpmonDecoder
const std::vector< uint32_t > & ctpmonDecoder() const
void setFileSizes(unsigned int run)
void setCtpinMonDecoderSlot7(const std::vector< u_int > &vec)
std::vector< uint32_t > m_ctpmonSelector
void setCtpmonSelector(const std::vector< u_int > &vec)
const std::vector< uint32_t > & ctpinMonSelectorSlot9() const
const std::vector< uint32_t > & ctpinMonDecoderSlot8() const
void setCtpinMonSelectorSlot7(const std::vector< u_int > &vec)
void setCtpinMonSelectorSlot8(const std::vector< u_int > &vec)
const std::vector< uint32_t > & ctpcoreCAM() const
std::vector< uint32_t > m_ctpinMonDecoderSlot8
std::string m_ctpinSmxSvfiSlot7
std::string m_ctpinSmxVhdlSlot8
std::string m_ctpinSmxOutput
void setCtpmonDecoder(const std::vector< u_int > &vec)
std::vector< uint32_t > m_ctpinMonSelectorSlot7
void setCtpinMonDecoderSlot9(const std::vector< u_int > &vec)
std::string m_ctpinSmxSvfiSlot8
const std::vector< uint32_t > & ctpinMonDecoderSlot9() const
std::vector< uint32_t > m_ctpcoreCAM
void setCtpinMonSelectorSlot9(const std::vector< u_int > &vec)
std::vector< uint32_t > m_ctpinMonSelectorSlot8
std::vector< uint32_t > m_ctpinMonDecoderSlot7
std::string m_ctpinSmxVhdlSlot7
void setCtpcoreLUT(const std::vector< u_int > &vec)
std::vector< uint32_t > m_ctpinMonDecoderSlot9
std::string m_ctpinSmxVhdlSlot9
void setCtpinMonDecoderSlot8(const std::vector< u_int > &vec)
const std::vector< uint32_t > & ctpinMonDecoderSlot7() const
std::ostream & indent(std::ostream &o, int lvl, int size) const
unsigned int version() const