 |
Belle II Software
release-05-02-19
|
14 #ifndef TRGCDCFrontEnd_FLAG_
15 #define TRGCDCFrontEnd_FLAG_
19 #include "trg/trg/Board.h"
20 #include "trg/trg/SignalVector.h"
21 #include "trg/trg/SignalBundle.h"
23 #ifdef TRGCDC_SHORT_NAMES
24 #define TCFrontEnd TRGCDCFrontEnd
38 public std::vector<const TRGCDCWire*> {
66 static std::string
version(
void);
125 void dump(
const std::string& message =
"",
126 const std::string& pre =
"")
const;
A class to represent a trigger board.
static void unpackerInnerInside(const TRGState &input, const TRGState &output)
Unpacks TRGState.
void dump_log_innerOutside(void) const
Dump all the details of _mosb into a .log file, for innerOutside FE.
static int implementationPort(const boardType &type, std::ofstream &)
writes a port map.
static TRGState packerInnerInside(const TRGState &input)
Makes bit pattern using input bit pattern for the inner FE.
TRGSignalBundle * _isb
Input signal bundle.
void dump_log_outerOutside(void) const
Dump all the details of _mosb into a .log file, for outerOutside FE.
void simulate(void)
simulates firmware.
static void unpackerInnerOutside(const TRGState &input, const TRGState &output)
Unpacks TRGState.
A class to represent a state of multi bits.
A class to represent a wire in CDC.
A class to represent a CDC front-end board.
TRGSignalBundle * _osb
Output signal bundle.
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()
boardType _type
Board type.
void dump(const std::string &message="", const std::string &pre="") const
dumps contents.
static TRGState packerOuterOutside(const TRGState &input)
Makes bit pattern using input bit pattern for the outer FE.
static void unpackerOuterInside(const TRGState &input, const TRGState &output)
Unpacks TRGState.
static std::string version(void)
returns version.
static void unpackerOuterOutside(const TRGState &input, const TRGState &output)
Unpacks TRGState.
Abstract base class for different kinds of events.
TRGCDCFrontEnd(const std::string &name, boardType type, const TRGClock &systemClock, const TRGClock &dataClock, const TRGClock &userClock)
Constructor.
boardType type(void) const
returns type.
static TRGState packerOuterInside(const TRGState &input)
Makes bit pattern using input bit pattern for the inner FE.
static TRGState packerInnerOutside(const TRGState &input)
Makes bit pattern using input bit pattern for the outer FE.
void dump_log_innerInside(void) const
Dump all the details of _mosb into a .log file, for innerInside FE.
void push_back(const TRGCDCWire *)
push back TRGCDCWire for this Front-end
void dump_log_outerInside(void) const
Dump all the details of _mosb into a .log file, for outerInside FE.
A class to represent a digitized signal. Unit is nano second.
static int implementation(const boardType &type, std::ofstream &)
make a VHDL component file.
TRGSignalBundle * getOSB(void) const
output from FrontEnd
virtual ~TRGCDCFrontEnd()
Destructor.