#include <ngcbSIM.hpp>
Public Member Functions | |
| ngcbSIM () | |
| Constructor for master. | |
| ngcbSIM (int master) | |
| Constructor specifying whether simulator is master or not. | |
| virtual | ~ngcbSIM () |
| Destructor. | |
| int | Initialized () |
| Return initialization flag. | |
| int | Status () |
| Communication status. | |
| void | Timeout (int sconds) |
| Set timeout. | |
| void | Reset () |
| Reset front-end. | |
| void | Read (int *buffer, int size) |
| Read buffer. | |
| int | Write (const int *buffer, int size) |
| Write buffer. | |
| int | Execute (int *fifoBuf, const int *buffer, int size, int length=1) |
| Execute target operation or cut header and pass through. | |
| void | SyncStart (ngcbSIM *orig) |
| Synchronized start. | |
| void | SyncTrigger (ngcbSIM *orig) |
| Synchronized trigger. | |
| void | Pause () |
| Pause sequencers. | |
| int * | Fifo () |
| Pointer to result storage space (= RX-FIFO) | |
| void | Verbose (const char *format,...) __attribute__((format(printf |
| Verbose output. | |
| void void | Log (const char *format,...) __attribute__((format(printf |
| Log file output. | |
Public Attributes | |
| int * | cfgSpace |
| Configuration space. | |
| int * | localSpace |
| Local space. | |
| ngcbSIM * | mod [ngcbNUM_LINK] |
| Next modules on down-links. | |
| ngcbSIM * | mod0 |
| Pointer to first module. | |
| ngcbSERVICE * | services |
| System services. | |
| int | verboseLevel |
| Verbose level. | |
| int | logLevel |
| Log level. | |
General front-end module simulation class
| ngcbSIM::ngcbSIM | ( | ) |
Constructor for master.
|
explicit |
Constructor specifying whether simulator is master or not.
|
virtual |
Destructor.
| int ngcbSIM::Execute | ( | int * | fifoBuf, |
| const int * | buffer, | ||
| int | size, | ||
| int | length = 1 ) |
Execute target operation or cut header and pass through.
| int * ngcbSIM::Fifo | ( | ) |
Pointer to result storage space (= RX-FIFO)
|
inline |
Return initialization flag.
| void ngcbSIM::Log | ( | const char * | format, |
| ... ) |
Log file output.
| void ngcbSIM::Pause | ( | ) |
Pause sequencers.
| void ngcbSIM::Read | ( | int * | buffer, |
| int | size ) |
Read buffer.
| void ngcbSIM::Reset | ( | ) |
Reset front-end.
| int ngcbSIM::Status | ( | ) |
Communication status.
| void ngcbSIM::SyncStart | ( | ngcbSIM * | orig | ) |
Synchronized start.
| void ngcbSIM::SyncTrigger | ( | ngcbSIM * | orig | ) |
Synchronized trigger.
| void ngcbSIM::Timeout | ( | int | sconds | ) |
Set timeout.
| void ngcbSIM::Verbose | ( | const char * | format, |
| ... ) |
Verbose output.
| int ngcbSIM::Write | ( | const int * | buffer, |
| int | size ) |
Write buffer.
| int* ngcbSIM::cfgSpace |
Configuration space.
| int* ngcbSIM::localSpace |
Local space.
| int ngcbSIM::logLevel |
Log level.
| ngcbSIM* ngcbSIM::mod[ngcbNUM_LINK] |
Next modules on down-links.
| ngcbSIM* ngcbSIM::mod0 |
Pointer to first module.
| ngcbSERVICE* ngcbSIM::services |
System services.
| int ngcbSIM::verboseLevel |
Verbose level.