OpenASIP
2.0
|
#include <NullRegisterFile.hh>
Public Member Functions | |
virtual Machine * | machine () const |
virtual void | ensureRegistration (const Component &component) const |
virtual bool | isRegistered () const |
virtual bool | hasPort (const std::string &name) const |
virtual int | portCount () const |
virtual void | setMachine (Machine &mach) |
virtual void | unsetMachine () |
virtual int | numberOfRegisters () const |
virtual int | width () const |
virtual void | setNumberOfRegisters (int registers) |
virtual void | setWidth (int width) |
virtual int | maxReads () const |
virtual int | maxWrites () const |
virtual RegisterFile::Type | type () const |
virtual bool | isNormal () const |
virtual bool | isVolatile () const |
virtual bool | isReserved () const |
virtual TCEString | name () const |
virtual void | setName (const std::string &name) |
virtual void | setMaxReads (int reads) |
virtual void | setMaxWrites (int maxWrites) |
virtual void | setType (RegisterFile::Type type) |
virtual int | guardLatency () const |
virtual void | setGuardLatency (int latency) |
virtual ObjectState * | saveState () const |
virtual void | loadState (const ObjectState *state) |
Public Member Functions inherited from TTAMachine::RegisterFile | |
RegisterFile (const std::string &name, unsigned int size, unsigned int width, unsigned int maxReads, unsigned int maxwrites, unsigned int guardLatency, Type type, bool zeroRegister=false) | |
RegisterFile (const ObjectState *state) | |
virtual | ~RegisterFile () |
virtual RegisterFile * | copy () const |
virtual bool | isArchitectureEqual (const RegisterFile &rf) const |
virtual bool | isUsedAsGuard () const |
virtual bool | zeroRegister () const |
virtual void | setZeroRegister (const bool &value) |
Port * | firstReadPort () const |
Port * | firstWritePort () const |
Public Member Functions inherited from TTAMachine::BaseRegisterFile | |
virtual | ~BaseRegisterFile () |
virtual int | size () const |
virtual RFPort * | port (const std::string &name) const |
virtual RFPort * | port (int index) const |
Public Member Functions inherited from TTAMachine::Unit | |
virtual | ~Unit () |
virtual int | outputPortCount (bool countBidir=false) const |
virtual int | inputPortCount (bool countBidir=false) const |
virtual int | bidirPortCount () const |
Public Member Functions inherited from TTAMachine::Component | |
virtual | ~Component () |
Public Member Functions inherited from Serializable | |
virtual | ~Serializable () |
Static Public Member Functions | |
static NullRegisterFile & | instance () |
Private Member Functions | |
NullRegisterFile () | |
virtual | ~NullRegisterFile () |
Static Private Attributes | |
static NullRegisterFile | instance_ |
The only instance. More... | |
Additional Inherited Members | |
Public Types inherited from TTAMachine::RegisterFile | |
enum | Type { NORMAL, RESERVED, VOLATILE } |
Type of the register file indicates how the RF is used. More... | |
Static Public Attributes inherited from TTAMachine::RegisterFile | |
static const std::string | OSNAME_REGISTER_FILE = "reg_file" |
ObjectState name for RegisterFile. More... | |
static const std::string | OSKEY_TYPE = "type" |
ObjectState attribute key for register file type. More... | |
static const std::string | OSVALUE_NORMAL = "normal" |
ObjectState attribute value for normal register file type. More... | |
static const std::string | OSVALUE_RESERVED = "reserved" |
ObjectState attribute value for reserved register file type. More... | |
static const std::string | OSVALUE_VOLATILE = "volatile" |
ObjectState attribute value for volatile register file type. More... | |
static const std::string | OSKEY_MAX_READS = "max_r" |
ObjectState attribute key for maximum simultaneous readers. More... | |
static const std::string | OSKEY_MAX_WRITES = "max_w" |
ObjectState attribute key for maximum simultaneous writers. More... | |
static const std::string | OSKEY_GUARD_LATENCY = "g_latency" |
ObjectState attribute key for the guard latency. More... | |
static const std::string | OSKEY_ZERO_REGISTER = "zero_register" |
ObjectState attribute key for zero register flag. More... | |
Static Public Attributes inherited from TTAMachine::BaseRegisterFile | |
static const std::string | OSNAME_BASE_REGISTER_FILE = "baseregfile" |
ObjectState name for BaseRegisterFile. More... | |
static const std::string | OSKEY_SIZE = "size" |
ObjectState attribute key for the number of registers. More... | |
static const std::string | OSKEY_WIDTH = "width" |
ObjectState attribute key for bit width of the registers. More... | |
Static Public Attributes inherited from TTAMachine::Unit | |
static const std::string | OSNAME_UNIT = "unit" |
ObjectState name for Unit. More... | |
Static Public Attributes inherited from TTAMachine::Component | |
static const std::string | OSNAME_COMPONENT = "component" |
ObjectState name for component. More... | |
static const std::string | OSKEY_NAME = "name" |
ObjectState attribute key for the name of the component. More... | |
Protected Member Functions inherited from TTAMachine::BaseRegisterFile | |
BaseRegisterFile (const std::string &name, int size, int width) | |
BaseRegisterFile (const ObjectState *state) | |
Protected Member Functions inherited from TTAMachine::Unit | |
Unit (const std::string &name) | |
Unit (const ObjectState *state) | |
virtual void | removePort (Port &port) |
Protected Member Functions inherited from TTAMachine::Component | |
Component (const std::string &name) | |
Component (const ObjectState *state) | |
void | internalSetMachine (Machine &machine) |
void | internalUnsetMachine () |
Protected Member Functions inherited from TTAMachine::MachinePart | |
MachinePart () | |
virtual | ~MachinePart () |
Null version of RegisterFile class. This is a singleton class.
Definition at line 43 of file NullRegisterFile.hh.
|
private |
The constructor.
Definition at line 42 of file NullRegisterFile.cc.
|
privatevirtual |
|
virtual |
Aborts the program with error message.
IllegalRegistration | Never thrown. |
Reimplemented from TTAMachine::Component.
Definition at line 81 of file NullRegisterFile.cc.
References abortWithError.
|
virtual |
Aborts the program with error message.
Reimplemented from TTAMachine::RegisterFile.
Definition at line 314 of file NullRegisterFile.cc.
References abortWithError.
|
virtual |
Aborts the program with error message.
Reimplemented from TTAMachine::Unit.
Definition at line 103 of file NullRegisterFile.cc.
References abortWithError.
|
static |
Returns the only instance of NullRegisterFile.
Definition at line 58 of file NullRegisterFile.cc.
References instance_.
|
virtual |
Aborts the program with error message.
Reimplemented from TTAMachine::RegisterFile.
Definition at line 226 of file NullRegisterFile.cc.
References abortWithError.
|
virtual |
Aborts the program with error message.
Reimplemented from TTAMachine::Component.
Definition at line 91 of file NullRegisterFile.cc.
References abortWithError.
|
virtual |
Aborts the program with error message.
Reimplemented from TTAMachine::RegisterFile.
Definition at line 250 of file NullRegisterFile.cc.
References abortWithError.
|
virtual |
Aborts the program with error message.
Reimplemented from TTAMachine::RegisterFile.
Definition at line 238 of file NullRegisterFile.cc.
References abortWithError.
|
virtual |
Aborts the program with error message.
ObjectStateLoadingException | Never thrown. |
Reimplemented from TTAMachine::RegisterFile.
Definition at line 348 of file NullRegisterFile.cc.
References abortWithError.
|
virtual |
Aborts the program with error message.
Reimplemented from TTAMachine::Component.
Definition at line 69 of file NullRegisterFile.cc.
References abortWithError.
|
virtual |
Aborts the program with error message.
Reimplemented from TTAMachine::RegisterFile.
Definition at line 190 of file NullRegisterFile.cc.
References abortWithError.
|
virtual |
Aborts the program with error message.
Reimplemented from TTAMachine::RegisterFile.
Definition at line 202 of file NullRegisterFile.cc.
References abortWithError.
|
virtual |
Aborts the program with error message.
Reimplemented from TTAMachine::Component.
Definition at line 262 of file NullRegisterFile.cc.
References abortWithError.
|
virtual |
Aborts the program with error message.
Reimplemented from TTAMachine::BaseRegisterFile.
Definition at line 146 of file NullRegisterFile.cc.
References abortWithError.
|
virtual |
Aborts the program with error message.
Reimplemented from TTAMachine::Unit.
Definition at line 115 of file NullRegisterFile.cc.
References abortWithError.
|
virtual |
Aborts the program with error message.
Reimplemented from TTAMachine::RegisterFile.
Definition at line 336 of file NullRegisterFile.cc.
References abortWithError.
|
virtual |
Aborts the program with error message.
OutOfRange | Never thrown. |
Reimplemented from TTAMachine::RegisterFile.
Definition at line 326 of file NullRegisterFile.cc.
References abortWithError.
|
virtual |
Aborts the program with error message.
ComponentAlreadyExists | Never thrown. |
Reimplemented from TTAMachine::Unit.
Definition at line 127 of file NullRegisterFile.cc.
References abortWithError.
|
virtual |
Aborts the program with error message.
OutOfRange | Never thrown. |
Reimplemented from TTAMachine::RegisterFile.
Definition at line 285 of file NullRegisterFile.cc.
References abortWithError.
|
virtual |
Aborts the program with error message.
OutOfRange | Never thrown. |
Reimplemented from TTAMachine::RegisterFile.
Definition at line 295 of file NullRegisterFile.cc.
References abortWithError.
|
virtual |
Aborts the program with error message.
ComponentAlreadyExists | Never thrown. |
InvalidName | Never thrown. |
Reimplemented from TTAMachine::RegisterFile.
Definition at line 275 of file NullRegisterFile.cc.
References abortWithError.
|
virtual |
Aborts the program with error message.
OutOfRange | Never thrown. |
Reimplemented from TTAMachine::RegisterFile.
Definition at line 170 of file NullRegisterFile.cc.
References abortWithError.
|
virtual |
Aborts the program with error message.
Reimplemented from TTAMachine::RegisterFile.
Definition at line 303 of file NullRegisterFile.cc.
References abortWithError.
|
virtual |
Aborts the program with error message.
OutOfRange | Never thrown. |
Reimplemented from TTAMachine::BaseRegisterFile.
Definition at line 180 of file NullRegisterFile.cc.
References abortWithError.
|
virtual |
Aborts the program with error message.
Reimplemented from TTAMachine::RegisterFile.
Definition at line 214 of file NullRegisterFile.cc.
References abortWithError, and TTAMachine::RegisterFile::NORMAL.
|
virtual |
Aborts the program with error message.
Reimplemented from TTAMachine::RegisterFile.
Definition at line 135 of file NullRegisterFile.cc.
References abortWithError.
|
virtual |
Aborts the program with error message.
Reimplemented from TTAMachine::BaseRegisterFile.
Definition at line 158 of file NullRegisterFile.cc.
References abortWithError.
|
staticprivate |