OpenASIP
2.0
|
#include <PortState.hh>
Public Member Functions | |
PortState (FUState &parent, int width) | |
PortState (FUState &parent, SimValue &sharedRegister) | |
virtual | ~PortState () |
virtual FUState & | parent () const |
Public Member Functions inherited from RegisterState | |
RegisterState (int width, bool constantZero=false) | |
RegisterState (SimValue &sharedRegister) | |
virtual | ~RegisterState () |
virtual void | setValue (const SimValue &value) |
virtual const SimValue & | value () const |
Public Member Functions inherited from StateData | |
StateData () | |
virtual | ~StateData () |
Public Member Functions inherited from WritableState | |
WritableState () | |
virtual | ~WritableState () |
Public Member Functions inherited from ReadableState | |
ReadableState () | |
virtual | ~ReadableState () |
Protected Attributes | |
FUState * | parent_ |
Parent of the port. More... | |
Protected Attributes inherited from RegisterState | |
SimValue & | value_ |
Value of the RegisterState. More... | |
Private Member Functions | |
PortState (const PortState &) | |
Copying not allowed. More... | |
PortState & | operator= (const PortState &) |
Assignment not allowed. More... | |
Models port of function unit.
Definition at line 51 of file PortState.hh.
PortState::PortState | ( | FUState & | parent, |
int | width | ||
) |
Constructor.
parent | The parent FU state object of the port. |
width | The bit width of the port. |
Definition at line 51 of file PortState.cc.
Constructor for RegisterState which shares the actual register storage.
parent | The parent FU state object of the port. |
sharedRegister | The register which is shared with this. |
Definition at line 61 of file PortState.cc.
|
virtual |
|
private |
Copying not allowed.
|
virtual |
Returns the parent of the port.
Reimplemented in NullPortState.
Definition at line 80 of file PortState.cc.
References parent_.
Referenced by OperationExecutor::addBinding().
|
protected |
Parent of the port.
Definition at line 61 of file PortState.hh.
Referenced by parent(), TriggeringInputPortState::setValue(), and OpcodeSettingVirtualInputPortState::setValue().