OpenASIP  2.0
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Attributes | List of all members
NullFUState Class Reference

#include <FUState.hh>

Inheritance diagram for NullFUState:
Inheritance graph
Collaboration diagram for NullFUState:
Collaboration graph

Public Member Functions

virtual ~NullFUState ()
 
virtual void endClock ()
 
virtual void advanceClock ()
 
virtual void addInputPortState (PortState &port)
 
virtual void addOutputPortState (PortState &port)
 
virtual void addOperationExecutor (OperationExecutor &opExec, Operation &op)
 
virtual OperationExecutorexecutor (Operation &op)
 
- Public Member Functions inherited from FUState
 FUState ()
 
 FUState (const TCEString &name)
 
virtual ~FUState ()
 
void setTriggered ()
 
void setOperation (Operation &operation)
 
void setOperation (Operation &operation, OperationExecutor &executor)
 
bool isIdle ()
 
virtual void setOperationSimulator (DetailedOperationSimulator &sim)
 
virtual void replaceOperationExecutor (Operation &op, OperationExecutor *newExecutor)
 
virtual OperationContextcontext ()
 
virtual void reset ()
 this is called at (re)initialization of the simulation More...
 
- Public Member Functions inherited from ClockedState
 ClockedState ()
 
virtual ~ClockedState ()
 

Static Public Member Functions

static NullFUStateinstance ()
 

Private Member Functions

 NullFUState ()
 
 NullFUState (const NullFUState &)
 Copying not allowed. More...
 
NullFUStateoperator= (const NullFUState &)
 Assignment not allowed. More...
 

Static Private Attributes

static NullFUState instance_
 Unique instance of NullFUState. More...
 

Additional Inherited Members

- Protected Attributes inherited from FUState
bool idle_
 The idle status of the FU. The derived classes should alway set this to true when possible to avoid unnecessary advanceClock() and endClock() calls. More...
 

Detailed Description

Models non-existing FUState.

Definition at line 152 of file FUState.hh.

Constructor & Destructor Documentation

◆ ~NullFUState()

NullFUState::~NullFUState ( )
virtual

Destructor.

Definition at line 405 of file FUState.cc.

405  {
406 }

◆ NullFUState() [1/2]

NullFUState::NullFUState ( )
private

Constructor.

Definition at line 399 of file FUState.cc.

399  {
400 }

◆ NullFUState() [2/2]

NullFUState::NullFUState ( const NullFUState )
private

Copying not allowed.

Member Function Documentation

◆ addInputPortState()

void NullFUState::addInputPortState ( PortState port)
virtual

Aborts the program with error message.

Reimplemented from FUState.

Definition at line 428 of file FUState.cc.

428  {
429  Application::abortWithError("addInputPortState()");
430 }

References abortWithError.

◆ addOperationExecutor()

void NullFUState::addOperationExecutor ( OperationExecutor opExec,
Operation op 
)
virtual

Aborts the program with error message.

Reimplemented from FUState.

Definition at line 444 of file FUState.cc.

444  {
445  Application::abortWithError("addOperationExecutor()");
446 }

References abortWithError.

◆ addOutputPortState()

void NullFUState::addOutputPortState ( PortState port)
virtual

Aborts the program with error message.

Reimplemented from FUState.

Definition at line 436 of file FUState.cc.

436  {
437  Application::abortWithError("addOutputPortState()");
438 }

References abortWithError.

◆ advanceClock()

void NullFUState::advanceClock ( )
virtual

Aborts the program with error message.

Reimplemented from FUState.

Definition at line 420 of file FUState.cc.

420  {
421  Application::abortWithError("advanceClock()");
422 }

References abortWithError.

◆ endClock()

void NullFUState::endClock ( )
virtual

Aborts the program with error message.

Reimplemented from FUState.

Definition at line 412 of file FUState.cc.

412  {
413  Application::abortWithError("endClock()");
414 }

References abortWithError.

◆ executor()

OperationExecutor * NullFUState::executor ( Operation op)
virtual

Aborts the program with error message.

Returns
Never returns.

Reimplemented from FUState.

Definition at line 454 of file FUState.cc.

454  {
455  Application::abortWithError("executor()");
456  return NULL;
457 }

References abortWithError.

◆ instance()

NullFUState & NullFUState::instance ( )
static

Returns the instance of NullFUState.

Returns
Instance of NullFUState.

Definition at line 392 of file FUState.cc.

392  {
393  return instance_;
394 }

References instance_.

Referenced by FUTestbenchGenerator::createStimulus(), MachineState::fuState(), and NullPortState::parent().

◆ operator=()

NullFUState& NullFUState::operator= ( const NullFUState )
private

Assignment not allowed.

Member Data Documentation

◆ instance_

NullFUState NullFUState::instance_
staticprivate

Unique instance of NullFUState.

Definition at line 177 of file FUState.hh.

Referenced by instance().


The documentation for this class was generated from the following files:
abortWithError
#define abortWithError(message)
Definition: Application.hh:72
NullFUState::instance_
static NullFUState instance_
Unique instance of NullFUState.
Definition: FUState.hh:177