 |
Belle II Software
release-05-02-19
|
14 #ifndef TRGCDCMerger_FLAG_
15 #define TRGCDCMerger_FLAG_
18 #include "trg/trg/Board.h"
19 #include "trg/trg/SignalVector.h"
20 #include "trg/trg/SignalBundle.h"
22 #ifdef TRGCDC_SHORT_NAMES
23 #define TCMerger TRGCDCMerger
37 public std::vector<const TRGCDCFrontEnd*> {
70 static std::string
version(
void);
116 void dump(
const std::string& message =
"",
117 const std::string& pre =
"")
const;
void dump_log_inner(void) const
dump_log for inner Merger
TRGSignalBundle * _mosb
outptu signal bundle
A class to represent a trigger board.
TRGCDCMerger(const std::string &name, unitType type, const TRGClock &systemClock, const TRGClock &dataClock, const TRGClock &userClockInput, const TRGClock &userClockOutput)
Constructor.
void simulate(void)
simulates firmware.
static void unpackerOuter(const TRGState &input, const TRGState &output)
Unpack TRGState.
A class to represent a state of multi bits.
static int implementationPort(const unitType &type, std::ofstream &)
writes a port map.
static TRGState packerOuter(const TRGState &input)
Make bit pattern using input information from outer FEs.
A class to represent a CDC front-end board.
A class to represent a CDC merger board.
A class to represent a bundle of SignalVectors.
const std::string & name(void) const
returns name.
void dump_log(void) const
Dump all the details of _mosb into a .log file, do it in the end of simulate()
static int implementation(const unitType &type, std::ofstream &)
make a VHDL component file.
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...
void dump_log_outer(void) const
dump_log for outer Merger
void push_back(const TRGCDCFrontEnd *)
push back TRGCDCFrontEnd of this Merger
static TRGState packerInner(const TRGState &input)
Make bit pattern using input information from inner FEs.
static std::string version(void)
return version.
Abstract base class for different kinds of events.
TRGSignalBundle * _misb
Input single bundle.
virtual ~TRGCDCMerger()
Destructor.
unitType type(void) const
return type.
static void unpackerInner(const TRGState &input, const TRGState &output)
Unpack TRGState.
A class to represent a digitized signal. Unit is nano second.
TRGSignalBundle * mosb
Output signal bundle. not the best way to do this though.