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