BeSlinkSim.hh 15.2 KB
Newer Older
dauncey's avatar
dauncey committed
1 2 3 4 5 6 7
#ifndef BeSlinkSim_HH
#define BeSlinkSim_HH

#include <iostream>
#include <iomanip>
#include <cassert>

dauncey's avatar
dauncey committed
8
#include "Buffering/CircularBufferUR.hh"
dauncey's avatar
dauncey committed
9 10 11 12 13 14 15 16
#include "Buffering/SlinkBoe.hh"
#include "Buffering/SlinkEoe.hh"
#include "Buffering/SlinkArch.hh"

class BeSlinkSim {
  friend class BeSlinkAna;

public:
dauncey's avatar
dauncey committed
17
  /*
dauncey's avatar
dauncey committed
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
  enum {
    NumberOfParallelBuffers=2
  };
  
  enum DataRandomMethod {
    NotRandom,
    Binomial,
    Flat,
    Mixed
  };

  enum DataFormatMethod {
    FixedChannelBitmap,
    FixedChannelLabels,
    FixedMixture,
    VariableMixture
  };

  enum DataFlowMethod {
    FixedHgcrocMap,
    VariableHgcrocMap,
    EventBuild
  };
dauncey's avatar
dauncey committed
41 42
  */
  
dauncey's avatar
dauncey committed
43 44 45 46
  //BeSlinkSim(unsigned e, unsigned h=18, unsigned m=0) : fEcon(e) {
  BeSlinkSim() {
  }

dauncey's avatar
dauncey committed
47 48
  void boj(const SlinkArch &a) {
    //fSlink=a.slinkNumber();
dauncey's avatar
dauncey committed
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
    fSlinkArch=&a;
      
    if(fPrintLevel>0) {	
      std::cout << "BeSlinkSim[" << fSlinkArch->slinkNumber() << "]::ctor() "
		<< "Entered" << std::endl;
    }

    fEventActive=false;
    fActiveInputBuffer=0;    
    fWriteElink=0;

    fArrayWrite=0;
    for(unsigned i(0);i<4;i++) fArrayWord[i]=0;

    for(unsigned e(0);e<fSlinkArch->numberOfEcons();e++) {
      const EconArch &econArch(fSlinkArch->econArch(e));
      for(unsigned b(0);b<econArch.numberOfBlocks();b++) {
	fBlockCheck[e][b].initialise(fSlinkArch->slinkNumber(),e,b,econArch.hgcrocNumber(b));
dauncey's avatar
dauncey committed
67
	fBlockPair[e][b].first=true;
dauncey's avatar
dauncey committed
68 69
      }
    }
dauncey's avatar
dauncey committed
70 71 72 73 74 75 76 77
  }

  void processL1Accept(uint64_t bx, uint64_t l1a) {
    uint64_t d[2];
    SlinkBoe sBoe(0xce00,bx&0xffffffff,l1a&0xffffffff,0xab);
    sBoe.words(d);
    assert(fSlinkBoeCb.writeAndIncrementPtr(d[0]));
    assert(fSlinkBoeCb.writeAndIncrementPtr(d[1]));
dauncey's avatar
dauncey committed
78
    
dauncey's avatar
dauncey committed
79 80 81 82 83 84
    if(fPrintLevel>4) {
      std::cout << "BeSlinkSim[" << fSlinkArch->slinkNumber() << "]::processL1Accept(" << bx << "," << l1a << ") "
		<< "Saving Slink BOE" << std::endl;
      sBoe.print();
    }
  }
dauncey's avatar
dauncey committed
85

dauncey's avatar
dauncey committed
86
  void processBx(uint64_t bx, const SlinkElinkData &d) {
dauncey's avatar
dauncey committed
87

dauncey's avatar
dauncey committed
88 89
    if((bx%2)==0) {
      fSlinkElinkData=d;
dauncey's avatar
dauncey committed
90
      
dauncey's avatar
dauncey committed
91 92 93 94
    } else {
      uint64_t word,word2;
      for(unsigned e(0);e<fSlinkArch->numberOfEcons();e++) {
	const EconArch &econArch(fSlinkArch->econArch(e));
dauncey's avatar
dauncey committed
95

dauncey's avatar
dauncey committed
96 97
	for(unsigned b(0);b<econArch.numberOfBlocks();b++) {
	  const std::vector<unsigned> &elinkNumber(econArch.elinkNumber(b));
dauncey's avatar
dauncey committed
98

dauncey's avatar
dauncey committed
99 100 101 102 103 104 105
	  unsigned eo(0);
	  for(unsigned w(0);w<elinkNumber.size();w++) {
	    if((eo%2)==0) {
	      word=fSlinkElinkData.fData[e][elinkNumber[w]];
	    } else {
	      word2=fSlinkElinkData.fData[e][elinkNumber[w]];
	      word+=(word2<<32);
dauncey's avatar
dauncey committed
106

dauncey's avatar
dauncey committed
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130
	      //if(word!=0) assert(fEventBuffer[e][fSlinkArch->econArch(e).numberOfBlocks()==1?0:w].writeAndIncrementPtr(word));
	      if(word!=0) assert(fEventBuffer[e][b].writeAndIncrementPtr(word));
	    }
	    eo++;
	  }
	  
	  for(unsigned w(0);w<elinkNumber.size();w++) {
	    if((eo%2)==0) {
	      word=d.fData[e][elinkNumber[w]];
	    } else {
	      word2=d.fData[e][elinkNumber[w]];
	      word+=(word2<<32);
	      
	      //if(word!=0) assert(fEventBuffer[e][fSlinkArch->econArch(e).numberOfBlocks()==1?0:w].writeAndIncrementPtr(word));
	      if(word!=0) assert(fEventBuffer[e][b].writeAndIncrementPtr(word));
	    }
	    eo++;
	  }
	  /*
	  // DO BY ARCH PROPERLY!!!
	  for(unsigned w(0);w<Dimensions::MaxNumberOfElinksPerEcon;w++) {
	  word=fSlinkElinkData.fData[e][w];
	  if(word!=0) assert(fEventBuffer[e][fSlinkArch->econArch(e).numberOfBlocks()==1?0:w].writeAndIncrementPtr(word));
	}
dauncey's avatar
dauncey committed
131

dauncey's avatar
dauncey committed
132 133 134
	for(unsigned w(0);w<Dimensions::MaxNumberOfElinksPerEcon;w++) {
	  word=d.fData[e][w];
	  //word=(word<<32)+fSlinkElinkData.fData[e][w];
dauncey's avatar
dauncey committed
135

dauncey's avatar
dauncey committed
136 137 138 139
	  if(word!=0) assert(fEventBuffer[e][fSlinkArch->econArch(e).numberOfBlocks()==1?0:w].writeAndIncrementPtr(word));
	}
	  */
	}
dauncey's avatar
dauncey committed
140 141 142 143




dauncey's avatar
dauncey committed
144
      //processEconBx(e,d.fData[e]);
dauncey's avatar
dauncey committed
145 146 147
      }
    }

dauncey's avatar
dauncey committed
148
    // Output to Slink
dauncey's avatar
dauncey committed
149 150 151 152 153 154 155 156 157 158 159 160 161 162 163

    bool done(false);
    uint128_t w;
    fNumberOfSlinkWords=0;

    for(fNumberOfSlinkWords=0;fNumberOfSlinkWords<3 && !done;) {
      if(fPrintLevel>5) {
	std::cout << "BeSlinkSim[" << fSlinkArch->slinkNumber() << "]::processBx() "
		  << "Number of Slink words written = " << fNumberOfSlinkWords
		  << ", event active = " << (fEventActive?"true":"false")
		  << ", done = " << (done?"true":"false")
		  << std::endl;
      }
    
      if(!fEventActive) {
dauncey's avatar
dauncey committed
164 165 166
	if(!fSlinkBoeCb.empty()) {
	  assert(fSlinkBoeCb.readAndIncrementPtr(w.first));
	  assert(fSlinkBoeCb.readAndIncrementPtr(w.second));
dauncey's avatar
dauncey committed
167 168 169 170 171 172 173 174 175 176 177 178 179
	  fSlinkWord[fNumberOfSlinkWords]=std::pair<uint128_t,bool>(w,true);
	  fNumberOfSlinkWords++;

	  if(fPrintLevel>3) {
	    std::cout << "BeSlinkSim[" << fSlinkArch->slinkNumber() << "]::processBx() "
		      << "Writing Slink BOE = 0x" << std::hex << w.second << " " << w.first
		      << std::dec << std::endl;
	  }
	  
	  fEconRead=0;
	  fBlockRead=0;
	  fNumberOfEventWords=0;
	  fEventActive=true;
dauncey's avatar
dauncey committed
180

dauncey's avatar
dauncey committed
181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201
	} else {
	  done=true;
	}
	
      } else {
	if(fEconRead==fSlinkArch->numberOfEcons()) {
	  SlinkEoe seoe(0xce00,0x77,0xff,fNumberOfEventWords);
	  seoe.word(w);
	  fSlinkWord[fNumberOfSlinkWords]=std::pair<uint128_t,bool>(w,true);
	  fNumberOfSlinkWords++;
	  
	  if(fPrintLevel>3) {
	    std::cout << "BeSlinkSim[" << fSlinkArch->slinkNumber() << "]::processBx() "
		      << "Writing Slink EOE = 0x" << std::hex << w.second << " " << w.first
		      << std::dec << std::endl;
	  }
	  
	  fEventActive=false;
	  
	} else {
	  
dauncey's avatar
dauncey committed
202 203 204 205 206 207 208 209 210 211 212 213 214
	  for(unsigned i(0);/*i<4 &&*/ !done && fEconRead<fSlinkArch->numberOfEcons() && fArrayWrite<4;i++) {
	    if(!(fEventBuffer[fEconRead][fBlockRead].empty() && fBlockPair[fEconRead][fBlockRead].first)) {

	      uint32_t nextWord(0);
	      if(fBlockPair[fEconRead][fBlockRead].first) {
		uint64_t d;
		assert(fEventBuffer[fEconRead][fBlockRead].readAndIncrementPtr(d));
		nextWord=(d&0xffffffff);
		fBlockPair[fEconRead][fBlockRead].second=(d>>32);
		fBlockPair[fEconRead][fBlockRead].first=false;
	      } else {
		nextWord=fBlockPair[fEconRead][fBlockRead].second;
		fBlockPair[fEconRead][fBlockRead].first=true;
dauncey's avatar
dauncey committed
215
	      }
dauncey's avatar
dauncey committed
216 217 218 219
	      
	      //fArrayWord[fArrayWrite  ]=(d&0xffffffff);
	      //fArrayWord[fArrayWrite+1]=(d>>32);
	      //fArrayWrite+=2;
dauncey's avatar
dauncey committed
220

dauncey's avatar
dauncey committed
221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240
	      if(nextWord!=0) {
		fArrayWord[fArrayWrite]=nextWord;
		fArrayWrite++;
		
		if(fPrintLevel>5) {
		  std::cout << "BeSlinkSim[" << fSlinkArch->slinkNumber() << "]::processBx() "
			    << "Read buffer words = 0x" << std::hex
		    //<< fArrayWord[fArrayWrite-2] << " "
			    << fArrayWord[fArrayWrite-1]
			    << std::dec << std::endl;
		}
		
		if(fBlockCheck[fEconRead][fBlockRead].processBx(fArrayWord[fArrayWrite-1])) fBlockRead++;
		
		if(fBlockRead==fSlinkArch->econArch(fEconRead).numberOfBlocks()) {
		  fBlockRead=0;
		  fEconRead++;
		}
		
		if(fEconRead==fSlinkArch->numberOfEcons()) fArrayWrite=4;
dauncey's avatar
dauncey committed
241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273
	      }
	      
	    } else {
	      done=true;
	    }
	  }
	  
	  if(fArrayWrite==4) {
	    w.first=fArrayWord[1];
	    w.first=(w.first<<32)+fArrayWord[0];
	    w.second=fArrayWord[3];
	    w.second=(w.second<<32)+fArrayWord[2];
	    fSlinkWord[fNumberOfSlinkWords]=std::pair<uint128_t,bool>(w,false);
	    fNumberOfSlinkWords++;
	    fNumberOfEventWords++;
	    
	    if(fPrintLevel>3) {
	      std::cout << "BeSlinkSim[" << fSlinkArch->slinkNumber() << "]::processBx() "
			<< "Writing Slink data word = 0x" << std::hex << w.second << " " << w.first
			<< std::dec << std::endl;
	    }
	  
	    fArrayWrite=0;
	    for(unsigned i(0);i<4;i++) fArrayWord[i]=0;
	  }
	}
      }
    }
  }

  void processEconBx(unsigned ec, const uint32_t *d) {

    return;
dauncey's avatar
dauncey committed
274
#ifdef NOT_YET
dauncey's avatar
dauncey committed
275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440
    
    uint32_t a[7];
    
    // Switch for different dataflow methods

    if(fDataFlowMethod==FixedHgcrocMap) {

      
      //  4 words per BX for 7 eLinks
      unsigned nWords(4);
      
      if(fPrintLevel>3) {
	std::cout << "BeSlinkSim[" << fSlinkArch->slinkNumber() << "][" << fEcon << "]::processBx() "
		  << "Data flow method = fixed HGCROC map, reading "
		  << nWords << " words per BX"	<< std::endl;
      }
	    
      for(unsigned b(0);b<NumberOfParallelBuffers;b++) {
	if(b!=(fActiveInputBuffer%NumberOfParallelBuffers)) {
	  
	  for(unsigned e(0);e<7;e++) {
	    if(fReadHgcroc[b]<fEconFile.fNumberOfHgcrocs) {
	      
	      for(unsigned w(0);w<nWords;w++) {
		assert(fReadHgcroc[b]<fEconFile.fNumberOfHgcrocs);
		assert(fReadWord[b]<fFirstBuffer[b][fReadHgcroc[b]].size());
		
		if(fPrintLevel>4) {
		  std::cout << "BeSlinkSim[" << fSlinkArch->slinkNumber() << "][" << fEcon << "]::processBx() "
			    << "Copying BX word " << w << " from first buffer " << b
			    << ", HGCROC " << fReadHgcroc[b] << ", word " << fReadWord[b]
			    << " of " << fFirstBuffer[b][fReadHgcroc[b]].size() << " = "
			    << std::hex << fFirstBuffer[b][fReadHgcroc[b]][fReadWord[b]]
			    << std::dec << std::endl;
		}
		assert(fElink[fHgcrocToElink[h]].writeAndIncrementPtr(fFirstBuffer[b][fReadHgcrocNumber[b]][fReadWord[b]]));
	      }
	    }
	  }
	}
      }

      // Add zero padding word if odd
      //if((nWords%2)==1) assert(fElink[fHgcrocToElink[h]].writeAndIncrementPtr(0));
      
      uint64_t d;
      for(unsigned e(0);e<7;e++) {
	if(fElink[e].readAndIncrementPtr(d)) a[e]=(d&0xffffffff);
	else a[e]=0;

	if(fPrintLevel>4) {
	  std::cout << "BeSlinkSim[" << fSlinkArch->slinkNumber() << "][" << fEcon << "]::processBx() "
		    << "Sending eLink " << e << " = "
		    << std::hex << a[e]
		    << std::dec << std::endl;
	}
      }

      
    } else if(fDataFlowMethod==VariableHgcrocMap) {

      unsigned nWords(0);
      
      if(fPrintLevel>3) {
	std::cout << "BeSlinkSim[" << fSlinkArch->slinkNumber() << "][" << fEcon << "]::processBx() "
		  << "Data flow method = variable HGCROC map, reading "
		  << nWords << " words per BX"	<< std::endl;
      }
	    
      assert(false);

      
    } else if(fDataFlowMethod==EventBuild) {
      
      // 24 words per BX for 2 parallel buffers = 960 MHz
      // 12 words per BX for 3 parallel buffers = 480 MHz
      //  8 words per BX for 4 parallel buffers = 320 MHz
      //unsigned nWords(24/(NumberOfParallelBuffers-1));


      // For one block, must be > 55 words x 18 HGCROCs/44 BX = 22.5; also more than output = 7 words/BX
      //  OR
      // For one block, must be > 39 words x 18 HGCROCs/44 BX = 15.95; also more than output = 7 words/BX
      // For seven blocks, must be > 55 words x 3 HGCROCs/44 BX = 3.75; also more than output = 1 word/BX
      //  OR
      // For seven blocks, must be > 39 words x 3 HGCROCs/44 BX = 2.66; also more than output = 1 word/BX

      unsigned nWords(fEconArch.fNumberOfBlocks==1?24:4);
      //unsigned nWords(fEconArch.fNumberOfBlocks==1?16:3);
      
      if(fPrintLevel>3) {
	std::cout << "BeSlinkSim[" << fSlinkArch->slinkNumber() << "][" << fEcon << "]::processBx() "
		  << "Data flow method = event build, reading "
		  << nWords << " words per BX"	<< std::endl;
      }
	    
      for(unsigned block(0);block<fEconArch.fNumberOfBlocks;block++) {

	for(unsigned b(0);b<NumberOfParallelBuffers;b++) {
	  if(b!=(fActiveInputBuffer%NumberOfParallelBuffers)) {

	    if(fPrintLevel>4) {
	      std::cout << "BeSlinkSim[" << fSlinkArch->slinkNumber() << "][" << fEcon << "]::processBx() "
			<< "Reading HGCROC number " << fReadHgcrocNumber[b][block]
			<< " < " << fEconArch.fHgcrocNumber[block].size()
			<< ", word number " << fReadWord[b][block] << std::endl;
	    }
	    
	    //if(fReadHgcrocNumber[b]<fEconFile.fNumberOfHgcrocs) {
	    if(fReadHgcrocNumber[b][block]<fEconArch.fHgcrocNumber[block].size()) {

	      for(unsigned w(0);w<nWords;w++) {
		//assert(fReadHgcroc[b]<fEconFile.fNumberOfHgcrocs);
		
		unsigned readHgcroc(fEconArch.fHgcrocNumber[block][fReadHgcrocNumber[b][block]]);
		std::vector<uint32_t> &readBuffer(fFirstBuffer[b][readHgcroc]); // Convenient
		assert(fReadWord[b][block]<readBuffer.size());
	      
		if(fPrintLevel>4) {
		  std::cout << "BeSlinkSim[" << fSlinkArch->slinkNumber() << "][" << fEcon << "]::processBx() "
			    << "Copying BX word " << w << " from block " << block << ", first buffer " << b
			    << ", HGCROC " << readHgcroc << ", word " << fReadWord[b][block]
			    << " of " << readBuffer.size() << " = "
			    << std::hex << readBuffer[fReadWord[b][block]]
			    << std::dec << std::endl;
		}

		// Write word to FIFO
		
		assert(fEventBuffer[0][block].writeAndIncrementPtr(readBuffer[fReadWord[b][block]]));
		
		// Check if completed all words of this HGCROC
		
		fReadWord[b][block]++;
		if(fReadWord[b][block]==readBuffer.size()) {
		  fReadWord[b][block]=0;
		  fReadHgcrocNumber[b][block]++;
		  
		  // Check if completed all HGCROCs
		  
		  if(fReadHgcrocNumber[b][block]==fEconArch.fHgcrocNumber[block].size()) w=nWords;
		}
	      }
	    }
	  }
	}

	uint64_t d;
	for(unsigned e(0);e<fEconArch.fElinkNumber[block].size();e++) {
	  if(fEventBuffer[0][block].readAndIncrementPtr(d)) a[fEconArch.fElinkNumber[block][e]]=(d&0xffffffff);
	  else a[fEconArch.fElinkNumber[block][e]]=0;
	}
      }

      if(fPrintLevel>4) {
	for(unsigned e(0);e<7;e++) {
	  std::cout << "BeSlinkSim[" << fSlinkArch->slinkNumber() << "][" << fEcon << "]::processBx() "
		    << "Sending eLink " << e << " = "
		    << std::hex << a[e]
		    << std::dec << std::endl;
	}
      }
        
    } else {
      assert(false);
    }
dauncey's avatar
dauncey committed
441
#endif
dauncey's avatar
dauncey committed
442 443 444 445 446 447 448 449 450 451 452
  }

  unsigned numberOfSlinkWords() const {
    return fNumberOfSlinkWords;
  }
  
  const std::pair<uint128_t,bool>& slinkWord(unsigned n) const {
    assert(n<fNumberOfSlinkWords);
    return fSlinkWord[n];
  }

dauncey's avatar
dauncey committed
453 454
  unsigned slinkNumber() const {
    return fSlinkArch->slinkNumber();
dauncey's avatar
dauncey committed
455 456 457 458
  }

public:
  static unsigned fPrintLevel;
dauncey's avatar
dauncey committed
459
  /*
dauncey's avatar
dauncey committed
460 461 462 463 464 465 466 467
  static DataRandomMethod fDataRandomMethod;
  static DataFormatMethod fDataFormatMethod;
  static DataFlowMethod fDataFlowMethod;
  static unsigned fFormatBreakEven;

  double fTotalNum;
  double fTotalMean;
  double fTotalWords;
dauncey's avatar
dauncey committed
468
  */
dauncey's avatar
dauncey committed
469 470
protected:
private:
dauncey's avatar
dauncey committed
471
  //unsigned fSlink;
dauncey's avatar
dauncey committed
472
  const SlinkArch *fSlinkArch;
dauncey's avatar
dauncey committed
473 474 475 476
  
  SlinkElinkData fSlinkElinkData;
  
  //unsigned fEcon;
dauncey's avatar
dauncey committed
477 478 479 480 481 482 483
  EconFile fEconFile;

  EconArch fEconArch;

  //unsigned fNumberOfHgcrocs;
  //double fHgcrocMean[18];
  
dauncey's avatar
dauncey committed
484
  //unsigned fHgcrocToElink[18];
dauncey's avatar
dauncey committed
485 486
  CircularBufferUR<1> fElink[7];
  CircularBufferUR<16> fEventBuffer[Dimensions::MaxNumberOfEconsPerSlink][Dimensions::MaxNumberOfBlocksPerEcon];
dauncey's avatar
dauncey committed
487 488
  //PartitionedBuffer<7,16> fPartitionedBuffer[5];

dauncey's avatar
dauncey committed
489 490
  //unsigned fNumberOfChannels[18];
  //unsigned fNumberOfWords[18];
dauncey's avatar
dauncey committed
491 492 493 494 495 496 497 498 499

  bool fEventActive;
  unsigned fEconRead;
  unsigned fBlockRead;
  unsigned fArrayWrite;
  uint32_t fArrayWord[4];
  unsigned fNumberOfEventWords;

  BlockCheck fBlockCheck[Dimensions::MaxNumberOfEconsPerSlink][Dimensions::MaxNumberOfBlocksPerEcon];
dauncey's avatar
dauncey committed
500
  std::pair<bool,uint32_t> fBlockPair[Dimensions::MaxNumberOfEconsPerSlink][Dimensions::MaxNumberOfBlocksPerEcon];
dauncey's avatar
dauncey committed
501 502 503 504

  
  //unsigned fReadHgcroc[NumberOfParallelBuffers];
  //unsigned fReadWord[NumberOfParallelBuffers];
dauncey's avatar
dauncey committed
505 506
  //unsigned fReadHgcrocNumber[NumberOfParallelBuffers][20];
  //unsigned fReadWord[NumberOfParallelBuffers][20];
dauncey's avatar
dauncey committed
507 508 509 510 511 512 513
  unsigned fWriteElink;

  //unsigned fNumberOfBlocks;
  std::vector<unsigned> fHgcrocNumber[7];
  std::vector<unsigned> fElinkNumber[7];
  
  unsigned fActiveInputBuffer;
dauncey's avatar
dauncey committed
514
  //std::vector<uint32_t> fFirstBuffer[NumberOfParallelBuffers][18];
dauncey's avatar
dauncey committed
515

dauncey's avatar
dauncey committed
516
  CircularBufferUR<1> fSlinkBoeCb;
dauncey's avatar
dauncey committed
517 518 519 520 521
  unsigned fNumberOfSlinkWords;
  std::pair<uint128_t,bool> fSlinkWord[3];
};

unsigned BeSlinkSim::fPrintLevel(1);
dauncey's avatar
dauncey committed
522
/*
dauncey's avatar
dauncey committed
523 524 525 526
BeSlinkSim::DataRandomMethod BeSlinkSim::fDataRandomMethod(BeSlinkSim::Binomial);
BeSlinkSim::DataFormatMethod BeSlinkSim::fDataFormatMethod(BeSlinkSim::FixedChannelBitmap);
BeSlinkSim::DataFlowMethod BeSlinkSim::fDataFlowMethod(BeSlinkSim::FixedHgcrocMap);
unsigned BeSlinkSim::fFormatBreakEven(0);
dauncey's avatar
dauncey committed
527
*/
dauncey's avatar
dauncey committed
528
#endif