59 :
Port(name, *static_cast<
Unit*>(&parent)), width_(width) {
61 string procName =
"BaseFUPort::BaseFUPort";
62 throw OutOfRange(__FILE__, __LINE__, procName);
77 :
Port(state, parent) {
123 string procName =
"FUPort::setWidth";
124 throw OutOfRange(__FILE__, __LINE__, procName);
168 const string procName =
"BaseFUPort::loadStateWithoutReferences";
std::string errorMessage() const
void setAttribute(const std::string &name, const std::string &value)
int intAttribute(const std::string &name) const
FunctionUnit * parentUnit() const
virtual int width() const
void loadStateWithoutReferences(const ObjectState *state)
virtual void loadState(const ObjectState *state)
BaseFUPort(const std::string &name, int width, FunctionUnit &parent)
static const std::string OSKEY_WIDTH
ObjectState attribute key for bit width of the port.
virtual ObjectState * saveState() const
int width_
Bit width of the port.
Unit * parentUnit() const
virtual ObjectState * saveState() const
virtual void loadState(const ObjectState *state)