13#ifndef TRGCDCMerger_FLAG_
14#define TRGCDCMerger_FLAG_
17#include "trg/trg/Board.h"
18#include "trg/trg/SignalVector.h"
19#include "trg/trg/SignalBundle.h"
21#ifdef TRGCDC_SHORT_NAMES
22#define TCMerger TRGCDCMerger
36 public std::vector<const TRGCDCFrontEnd*> {
69 static std::string
version(
void);
115 void dump(
const std::string& message =
"",
116 const std::string& pre =
"")
const;
A class to represent a trigger board.
A class to represent a CDC front-end board.
A class to represent a CDC merger board.
TRGSignalBundle * _mosb
outptu signal bundle
TRGSignalBundle * _misb
Input single bundle.
TRGSignalBundle * mosb
Output signal bundle. not the best way to do this though.
A class to represent a digitized signal. Unit is nano second.
A class to represent a bundle of SignalVectors.
A class to represent a state of multi bits.
static int implementation(const unitType &type, std::ofstream &)
make a VHDL component file.
static void unpackerOuter(const TRGState &input, const TRGState &output)
Unpack TRGState.
void dump_log_outer(void) const
dump_log for outer Merger
static int implementationPort(const unitType &type, std::ofstream &)
writes a port map.
const std::string & name(void) const
returns name.
static TRGState packerInner(const TRGState &input)
Make bit pattern using input information from inner FEs.
void dump_log(void) const
Dump all the details of _mosb into a .log file, do it in the end of simulate()
unitType type(void) const
return type.
virtual ~TRGCDCMerger()
Destructor.
static TRGState packerOuter(const TRGState &input)
Make bit pattern using input information from outer FEs.
void dump_log_inner(void) const
dump_log for inner Merger
static std::string version(void)
return version.
void simulate(void)
simulates firmware.
void push_back(const TRGCDCFrontEnd *)
push back TRGCDCFrontEnd of this Merger
static void unpackerInner(const TRGState &input, const TRGState &output)
Unpack TRGState.
void dump(const std::string &message="", const std::string &pre="") const
dumps contents. "message" is to select information to dump. "pre" will be printed in head of each lin...
Abstract base class for different kinds of events.