ngc 1.5.0
 
Loading...
Searching...
No Matches
ngcbSIM Class Reference

#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.
 
ngcbSIMmod [ngcbNUM_LINK]
 Next modules on down-links.
 
ngcbSIMmod0
 Pointer to first module.
 
ngcbSERVICEservices
 System services.
 
int verboseLevel
 Verbose level.
 
int logLevel
 Log level.
 

Detailed Description

General front-end module simulation class

Constructor & Destructor Documentation

◆ ngcbSIM() [1/2]

ngcbSIM::ngcbSIM ( )

Constructor for master.

◆ ngcbSIM() [2/2]

ngcbSIM::ngcbSIM ( int master)
explicit

Constructor specifying whether simulator is master or not.

◆ ~ngcbSIM()

ngcbSIM::~ngcbSIM ( )
virtual

Destructor.

Member Function Documentation

◆ Execute()

int ngcbSIM::Execute ( int * fifoBuf,
const int * buffer,
int size,
int length = 1 )

Execute target operation or cut header and pass through.

◆ Fifo()

int * ngcbSIM::Fifo ( )

Pointer to result storage space (= RX-FIFO)

◆ Initialized()

int ngcbSIM::Initialized ( )
inline

Return initialization flag.

◆ Log()

void ngcbSIM::Log ( const char * format,
... )

Log file output.

◆ Pause()

void ngcbSIM::Pause ( )

Pause sequencers.

◆ Read()

void ngcbSIM::Read ( int * buffer,
int size )

Read buffer.

◆ Reset()

void ngcbSIM::Reset ( )

Reset front-end.

◆ Status()

int ngcbSIM::Status ( )

Communication status.

◆ SyncStart()

void ngcbSIM::SyncStart ( ngcbSIM * orig)

Synchronized start.

◆ SyncTrigger()

void ngcbSIM::SyncTrigger ( ngcbSIM * orig)

Synchronized trigger.

◆ Timeout()

void ngcbSIM::Timeout ( int sconds)

Set timeout.

◆ Verbose()

void ngcbSIM::Verbose ( const char * format,
... )

Verbose output.

◆ Write()

int ngcbSIM::Write ( const int * buffer,
int size )

Write buffer.

Member Data Documentation

◆ cfgSpace

int* ngcbSIM::cfgSpace

Configuration space.

◆ localSpace

int* ngcbSIM::localSpace

Local space.

◆ logLevel

int ngcbSIM::logLevel

Log level.

◆ mod

ngcbSIM* ngcbSIM::mod[ngcbNUM_LINK]

Next modules on down-links.

◆ mod0

ngcbSIM* ngcbSIM::mod0

Pointer to first module.

◆ services

ngcbSERVICE* ngcbSIM::services

System services.

◆ verboseLevel

int ngcbSIM::verboseLevel

Verbose level.


The documentation for this class was generated from the following files: