ICP
1
|
#include <sim_period_card.h>
Public Member Functions | |
SIMPeriodCard (int position, VMESimulation *vme, FaultMode fault_mode, DAEstatus &status) | |
virtual | ~SIMPeriodCard () |
virtual void | printStatus (std::ostream &os) |
virtual void | updateCardAfterWrite (DAEstatus &status) |
virtual void | updateCardAfterRead (DAEstatus &status) |
virtual void | simulate (int delay) |
Public Member Functions inherited from SIMDAE2Card< DAECardPolicy > | |
SIMDAE2Card (int position, VMESimulationIface *vme, isisU32_t firmware, bool fw32, FaultMode fault_mode, DAEstatus &status) | |
int | position () |
virtual | ~SIMDAE2Card () |
int | read16 (ISISVME::TransferProps props, unsigned long address, isisU16_t *data16, long nitems, DAEstatus &status) |
int | read32 (ISISVME::TransferProps props, unsigned long address, isisU32_t *data32, long nitems, DAEstatus &status) |
int | write16 (ISISVME::TransferProps props, unsigned long address, isisU16_t *data16, long nitems, DAEstatus &status) |
int | write32 (ISISVME::TransferProps props, unsigned long address, isisU32_t *data32, long nitems, DAEstatus &status) |
std::vector< sim_mapping > & | mapping () |
int | addMapping (ISISVME::TransferProps props, isisU32_t address, int n, isisU32_t *var, const char *name, bool readable, bool writable, isisU32_t *access_reg, unsigned access_bit, bool wrap, bool sixteen_bit_access, FaultMode fault_mode) |
int | addMapping (ISISVME::TransferProps props, isisU32_t address, int n, uint64_t *var, const char *name, bool readable, bool writable, isisU32_t *access_reg, unsigned access_bit, bool wrap, bool sixteen_bit_access, FaultMode fault_mode) |
int | addMapping (ISISVME::TransferProps props, const unused_t &address, int n, isisU32_t *var, const char *name, bool readable, bool writable, isisU32_t *access_reg, unsigned access_bit, bool wrap, bool sixteen_bit_access, FaultMode fault_mode) |
int | addMapping (ISISVME::TransferProps props, const unused_t &address, int n, uint64_t *var, const char *name, bool readable, bool writable, isisU32_t *access_reg, unsigned access_bit, bool wrap, bool sixteen_bit_access, FaultMode fault_mode) |
bool | isVetoing () |
bool | isRunning () |
CardType | type () |
Protected Attributes | |
isisU32_t | m_main_period_counter |
isisU32_t | m_main_period_limit |
isisU32_t | m_main_period_sequence_counter |
isisU32_t | m_extract_vc_low |
isisU32_t | m_extract_vc_high |
isisU32_t | m_lookup |
isisU32_t | m_period_control |
isisU32_t * | m_perlut |
isisU32_t * | m_outlut |
isisU32_t * | m_rawframes |
isisU32_t * | m_goodframes |
isisU32_t | m_mat_counter |
Protected Attributes inherited from SIMDAE2Card< DAECardPolicy > | |
int | m_position |
CardType | m_type |
VMESimulationIface * | m_vme |
bool | m_veto_raised |
bool | m_is_running |
std::vector< sim_mapping > | m_mapping |
isisU32_t | m_firmware |
Protected Attributes inherited from ISIS::Base | |
Poco::Logger * | m_logger |
Poco::LogStream * | m_logstr |
Poco::Mutex | m_logger_lock |
Additional Inherited Members | |
Public Types inherited from SIMDAE2Card< DAECardPolicy > | |
enum | CardType { UnknownCard =0, EnvCard =1, DetCard =2, PeriodCard =3, EnvPeriodCard =4 } |
Static Public Member Functions inherited from SIMDAE2Card< DAECardPolicy > | |
static void | increment (int value, isisU32_t &low) |
static void | increment2 (int value, isisU32_t &low, isisU32_t &high) |
static void | increment3 (int value, isisU32_t &low, isisU32_t &middle, isisU32_t &high) |
static void | increment32 (int value, isisU32_t &low, isisU32_t &high) |
static void | increment32 (int value, uint64_t &low, isisU32_t &high) |
Protected Member Functions inherited from SIMDAE2Card< DAECardPolicy > | |
std::string | loggingPrefix () const |
Protected Member Functions inherited from ISIS::Base | |
Base (const std::string &logger_name="UNKNOWN") | |
void | setLoggerName (const std::string &logger_name) |
virtual | ~Base () |
void | setThisLoggerLevel (int level) |
Static Protected Member Functions inherited from ISIS::Base | |
static void | setAllLoggerLevel (int level) |
Definition at line 7 of file sim_period_card.h.
SIMPeriodCard::SIMPeriodCard | ( | int | position, |
VMESimulation * | vme, | ||
FaultMode | fault_mode, | ||
DAEstatus & | status | ||
) |
Definition at line 7 of file sim_period_card.cpp.
References SIMDAE2Card< DAECardPolicy >::addMapping(), EXTTRIGVC0, EXTTRIGVC1, GFCNT0SIZE, GFCNT0START, LOOKTAR, m_extract_vc_high, m_extract_vc_low, m_goodframes, SIMDAE2Card< DAECardPolicy >::m_is_running, m_lookup, m_main_period_counter, m_main_period_limit, m_main_period_sequence_counter, m_mat_counter, m_outlut, m_period_control, m_perlut, m_rawframes, SIMDAE2Card< DAECardPolicy >::m_type, SIMDAE2Card< DAECardPolicy >::m_veto_raised, MAT_1, MPCNT, MPLIM, OUTLUTSIZE, OUTLUTSTART, PCREG, SIMDAE2Card< DAECardPolicy >::PeriodCard, PERLUTSIZE, PERLUTSTART, PSCNT, RFCNT0SIZE, RFCNT0START, TAROUTLUT, and TARPERLUT.
|
virtual |
Definition at line 148 of file sim_period_card.cpp.
References m_goodframes, m_outlut, m_perlut, and m_rawframes.
|
virtual |
Implements SIMDAE2Card< DAECardPolicy >.
Definition at line 35 of file sim_period_card.cpp.
References SIMDAE2Card< DAECardPolicy >::m_position.
|
virtual |
Implements SIMDAE2Card< DAECardPolicy >.
Definition at line 66 of file sim_period_card.cpp.
References SIMDAE2Card< DAECardPolicy >::increment(), SIMDAE2Card< DAECardPolicy >::increment2(), VMESimulationIface::incrementDetectorCardPeriod(), VMESimulationIface::isRunning(), m_extract_vc_high, m_extract_vc_low, m_goodframes, m_main_period_counter, m_main_period_limit, m_main_period_sequence_counter, m_period_control, m_perlut, m_rawframes, SIMDAE2Card< DAECardPolicy >::m_veto_raised, SIMDAE2Card< DAECardPolicy >::m_vme, PCENAB, PCENDAFTER, PCENDSEQCOMP, PCEXTENAB, PCEXTPERCLK, PCEXTTRIG, PCMULENAB, and VMESimulationIface::resetDetectorCardPeriod().
|
virtual |
Implements SIMDAE2Card< DAECardPolicy >.
Definition at line 62 of file sim_period_card.cpp.
|
virtual |
Implements SIMDAE2Card< DAECardPolicy >.
Definition at line 40 of file sim_period_card.cpp.
References m_extract_vc_high, m_extract_vc_low, m_lookup, m_main_period_counter, m_main_period_sequence_counter, m_period_control, PCCLRPC, PCCLRVETO, and PCRESET.
|
protected |
Definition at line 23 of file sim_period_card.h.
Referenced by SIMPeriodCard(), simulate(), and updateCardAfterWrite().
|
protected |
Definition at line 22 of file sim_period_card.h.
Referenced by SIMPeriodCard(), simulate(), and updateCardAfterWrite().
|
protected |
Definition at line 29 of file sim_period_card.h.
Referenced by SIMPeriodCard(), simulate(), and ~SIMPeriodCard().
|
protected |
Definition at line 24 of file sim_period_card.h.
Referenced by SIMPeriodCard(), and updateCardAfterWrite().
|
protected |
Definition at line 18 of file sim_period_card.h.
Referenced by SIMPeriodCard(), simulate(), and updateCardAfterWrite().
|
protected |
Definition at line 19 of file sim_period_card.h.
Referenced by SIMPeriodCard(), and simulate().
|
protected |
Definition at line 20 of file sim_period_card.h.
Referenced by SIMPeriodCard(), simulate(), and updateCardAfterWrite().
|
protected |
Definition at line 32 of file sim_period_card.h.
Referenced by SIMPeriodCard().
|
protected |
Definition at line 27 of file sim_period_card.h.
Referenced by SIMPeriodCard(), and ~SIMPeriodCard().
|
protected |
Definition at line 25 of file sim_period_card.h.
Referenced by SIMPeriodCard(), simulate(), and updateCardAfterWrite().
|
protected |
Definition at line 26 of file sim_period_card.h.
Referenced by SIMPeriodCard(), simulate(), and ~SIMPeriodCard().
|
protected |
Definition at line 28 of file sim_period_card.h.
Referenced by SIMPeriodCard(), simulate(), and ~SIMPeriodCard().