#include <UniversalFUPort.hh>
|
| | UniversalFUPort (const std::string &name, int width, UniversalFunctionUnit &parent, bool isTriggering, bool setsOpcode) |
| |
| virtual | ~UniversalFUPort () |
| |
| virtual void | setName (const std::string &name) |
| |
| virtual void | setWidth (int width) |
| |
| virtual void | setTriggering (bool triggers) |
| |
| virtual void | setOpcodeSetting (bool setsOpcode) |
| |
| virtual void | loadState (const ObjectState *state) |
| |
| | FUPort (const std::string &name, int width, FunctionUnit &parent, bool triggers, bool setsOpcode, bool noRegister=false) |
| |
| | FUPort (const ObjectState *state, Unit &parent) |
| |
| virtual | ~FUPort () |
| |
| virtual bool | isTriggering () const |
| |
| virtual bool | isOpcodeSetting () const |
| |
| void | setTriggering (bool triggers) |
| |
| virtual ObjectState * | saveState () const |
| |
| std::string | bindingString () const |
| |
| void | updateBindingString () const |
| |
| bool | isArchitectureEqual (FUPort *port) |
| |
| bool | noRegister () const |
| |
| void | setNoRegister (bool noRegister) |
| |
| virtual | ~BaseFUPort () |
| |
| FunctionUnit * | parentUnit () const |
| |
| virtual int | width () const |
| |
| void | setWidth (int width) |
| |
| | Port (const std::string &name, Unit &parentUnit) |
| |
| | Port (const ObjectState *state, Unit &parentUnit) |
| |
| virtual | ~Port () |
| |
| virtual std::string | name () const |
| |
| virtual void | attachSocket (Socket &socket) |
| |
| virtual void | detachSocket (Socket &socket) |
| |
| virtual void | detachAllSockets () |
| |
| Unit * | parentUnit () const |
| |
| virtual Socket * | inputSocket () const |
| |
| virtual Socket * | outputSocket () const |
| |
| virtual Socket * | unconnectedSocket (int index) const |
| |
| virtual int | socketCount () const |
| |
| virtual bool | isConnectedTo (const Socket &socket) const |
| |
| virtual bool | isOutput () const |
| |
| virtual bool | isInput () const |
| |
| virtual | ~Serializable () |
| |
|
| static const std::string | OSNAME_FUPORT = "fu_port" |
| | ObjectState name for FUPort.
|
| |
| static const std::string | OSKEY_TRIGGERING = "triggering" |
| | ObjectState attribute key for triggering feature.
|
| |
| static const std::string | OSKEY_OPCODE_SETTING = "oc_setting" |
| | ObjectState attribute key for operand code setting feature.
|
| |
| static const std::string | OSKEY_NO_REGISTER = "no_register" |
| | ObjectState attribute key for noRegister setting feature.
|
| |
| static const std::string | OSKEY_WIDTH = "width" |
| | ObjectState attribute key for bit width of the port.
|
| |
| static const std::string | OSNAME_PORT = "port" |
| | ObjectState name for Port.
|
| |
| static const std::string | OSKEY_NAME = "name" |
| | ObjectState attribute key for the name of the port.
|
| |
| static const std::string | OSKEY_FIRST_SOCKET = "1_socket" |
| | ObjectState attribute key for the name of the connected socket.
|
| |
| static const std::string | OSKEY_SECOND_SOCKET = "2_socket" |
| | ObjectState attribute key for the name of the other connected socket.
|
| |
| | FUPort (const std::string &name, int width, FunctionUnit &parent, bool triggers, bool setsOpcode, bool noRegister, bool dummy) |
| |
| | BaseFUPort (const std::string &name, int width, FunctionUnit &parent) |
| |
| | BaseFUPort (const ObjectState *state, Unit &parent) |
| |
| | Port (const std::string &name, FunctionUnit &parentUnit) |
| |
| | SubComponent () |
| |
| virtual | ~SubComponent () |
| |
| | MachinePart () |
| |
| virtual | ~MachinePart () |
| |
UniversalFUPort class represents a port of UniversalFunctionUnit. The port is similar to normal FUPort but there can be several operation code setting UniversalFUPorts in UniversalFunctionUnit. UniversalFUPort is a fixed port. Its properties cannot be changes after it is created.
Definition at line 47 of file UniversalFUPort.hh.
◆ UniversalFUPort()
| UniversalFUPort::UniversalFUPort |
( |
const std::string & |
name, |
|
|
int |
width, |
|
|
UniversalFunctionUnit & |
parent, |
|
|
bool |
isTriggering, |
|
|
bool |
setsOpcode |
|
) |
| |
The constructor.
- Parameters
-
| name | Name of the port. |
| width | Bit width of the port. |
| parent | The function unit to which the port belongs. |
| isTriggering | If true, writing (or reading) this port starts the execution of a new operation. |
| setsOpcode | If true, writing (or reading) this port selects the operation to be executed. Opcode-setting ports must be triggering. |
- Exceptions
-
Definition at line 56 of file UniversalFUPort.cc.
virtual int width() const
virtual bool isTriggering() const
FUPort(const std::string &name, int width, FunctionUnit &parent, bool triggers, bool setsOpcode, bool noRegister=false)
virtual std::string name() const
◆ ~UniversalFUPort()
| UniversalFUPort::~UniversalFUPort |
( |
| ) |
|
|
virtual |
◆ loadState()
| void UniversalFUPort::loadState |
( |
const ObjectState * |
state | ) |
|
|
virtual |
Aborts the program. It is not allowed to load the state of UniversalFUPort from an ObjectState tree. DO NOT CALL THIS METDOD!
- Parameters
-
- Exceptions
-
Reimplemented from TTAMachine::FUPort.
Definition at line 139 of file UniversalFUPort.cc.
139 {
140 const string procName = "UniversalFUPort::loadState";
141 const string errorMsg =
142 "Tried to load state of UniversalFUPort from an ObjectState tree!";
145}
static void abortProgram() __attribute__((noreturn))
static void writeToErrorLog(const std::string fileName, const int lineNumber, const std::string functionName, const std::string message, const int neededVerbosity=0)
References Application::abortProgram(), and Application::writeToErrorLog().
◆ setName()
| void UniversalFUPort::setName |
( |
const std::string & |
name | ) |
|
|
virtual |
◆ setOpcodeSetting()
| void UniversalFUPort::setOpcodeSetting |
( |
bool |
setsOpcode | ) |
|
|
virtual |
◆ setTriggering()
| void UniversalFUPort::setTriggering |
( |
bool |
triggers | ) |
|
|
virtual |
◆ setWidth()
| void UniversalFUPort::setWidth |
( |
int |
width | ) |
|
|
virtual |
The documentation for this class was generated from the following files: