Go to the documentation of this file.
33 #ifndef TTA_CONTROL_UNIT_HH
34 #define TTA_CONTROL_UNIT_HH
45 class SpecialRegisterPort;
virtual void unsetMachine()
void loadStateWithoutReferences(const ObjectState *state)
virtual TCEString name() const
int delaySlots_
Number of delay instruction slots on the transport pipeline.
int globalGuardLatency_
The global guard latency.
virtual ObjectState * saveState() const
static const std::string OSKEY_RA_PORT
ObjectState attribute key for the name of the return address port.
virtual BaseFUPort * port(const std::string &name) const
void setGlobalGuardLatency(int latency)
static const std::string OSKEY_GUARD_LATENCY
ObjectState attribute key for the global guard latency.
virtual ControlUnit * copy() const
SpecialRegisterPort * raPort_
The return address port.
SpecialRegisterPort * specialRegisterPort(int index) const
int specialRegisterPortCount() const
ControlUnit(const std::string &name, int delaySlots, int globalGuardLatency)
virtual void loadState(const ObjectState *state)
virtual void removePort(Port &port)
void unsetReturnAddressPort()
void setDelaySlots(int delaySlots)
static const std::string OSKEY_DELAY_SLOTS
ObjectState attribute key for the number of delay slots.
bool hasSpecialRegisterPort(const std::string &name) const
virtual void setMachine(Machine &mach)
static bool hasLocalGuardLatencyOfZero(const Machine &machine)
virtual Machine * machine() const
void setReturnAddressPort(const SpecialRegisterPort &port)
static const std::string OSNAME_CONTROL_UNIT
ObjectState name for ControlUnit.
int globalGuardLatency() const
SpecialRegisterPort * returnAddressPort() const
bool hasReturnAddressPort() const