13#ifndef TRGCDCFrontEnd_FLAG_
14#define TRGCDCFrontEnd_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 TCFrontEnd TRGCDCFrontEnd
37 public std::vector<const TRGCDCWire*> {
65 static std::string
version(
void);
124 void dump(
const std::string& message =
"",
125 const std::string& pre =
"")
const;
A class to represent a trigger board.
A class to represent a CDC front-end board.
TRGSignalBundle * _isb
Input signal bundle.
boardType _type
Board type.
TRGSignalBundle * getOSB(void) const
output from FrontEnd
TRGSignalBundle * _osb
Output signal bundle.
A class to represent a wire in CDC.
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.
void dump_log_innerOutside(void) const
Dump all the details of _mosb into a .log file, for innerOutside FE.
static TRGState packerOuterInside(const TRGState &input)
Makes bit pattern using input bit pattern for the inner 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.
const std::string & name(void) const
returns name.
static void unpackerOuterOutside(const TRGState &input, const TRGState &output)
Unpacks TRGState.
void dump_log(void) const
Dump all the details of _mosb into a .log file, do it in the end of simulate()
static void unpackerInnerOutside(const TRGState &input, const TRGState &output)
Unpacks TRGState.
static TRGState packerInnerOutside(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.
void dump_log_outerInside(void) const
Dump all the details of _mosb into a .log file, for outerInside FE.
boardType type(void) const
returns type.
static int implementation(const boardType &type, std::ofstream &)
make a VHDL component file.
static TRGState packerOuterOutside(const TRGState &input)
Makes bit pattern using input bit pattern for the outer FE.
static std::string version(void)
returns version.
void simulate(void)
simulates firmware.
virtual ~TRGCDCFrontEnd()
Destructor.
void dump_log_innerInside(void) const
Dump all the details of _mosb into a .log file, for innerInside FE.
void dump_log_outerOutside(void) const
Dump all the details of _mosb into a .log file, for outerOutside FE.
static void unpackerInnerInside(const TRGState &input, const TRGState &output)
Unpacks TRGState.
void push_back(const TRGCDCWire *)
push back TRGCDCWire for this Front-end
void dump(const std::string &message="", const std::string &pre="") const
dumps contents.
Abstract base class for different kinds of events.