Go to the documentation of this file.
61 :
Unit(name), size_(size), width_(width) {
77 :
Unit(state), size_(0), width_(0) {
98 string procName =
"BaseRegisterFile::setNumberOfRegisters";
99 throw OutOfRange(__FILE__, __LINE__, procName);
114 string procName =
"BaseRegisterFile::setWidth";
115 throw OutOfRange(__FILE__, __LINE__, procName);
195 string procName =
"BaseRegisterFile::loadStateWithoutReferences";
virtual void setWidth(int width)
static const std::string OSKEY_SIZE
ObjectState attribute key for the number of registers.
virtual TCEString name() const
virtual ~BaseRegisterFile()
int size_
Number of registers in the register file.
virtual void loadState(const ObjectState *state)
virtual void loadState(const ObjectState *state)
BaseRegisterFile(const std::string &name, int size, int width)
void setName(const std::string &name)
#define assert(condition)
virtual ObjectState * saveState() const
static const std::string OSKEY_WIDTH
ObjectState attribute key for bit width of the registers.
virtual Port * port(const std::string &name) const
void loadStateWithoutReferences(const ObjectState *state)
virtual void setNumberOfRegisters(int registers)
virtual RFPort * port(const std::string &name) const
virtual ObjectState * saveState() const
static const std::string OSNAME_BASE_REGISTER_FILE
ObjectState name for BaseRegisterFile.
int width_
Bit width of the registers in the register file.
int intAttribute(const std::string &name) const
virtual int width() const
void setAttribute(const std::string &name, const std::string &value)