OpenASIP
2.0
|
#include <OpcodeSettingVirtualInputPortState.hh>
Public Member Functions | |
OpcodeSettingVirtualInputPortState (Operation &operation, OperationExecutor &executor, FUState &parent, InputPortState &real) | |
OpcodeSettingVirtualInputPortState (Operation &operation, FUState &parent, InputPortState &real) | |
virtual | ~OpcodeSettingVirtualInputPortState () |
virtual void | setValue (const SimValue &value) |
virtual const SimValue & | value () const |
InputPortState * | realPort () const |
Public Member Functions inherited from InputPortState | |
InputPortState (FUState &parent, int width) | |
InputPortState (FUState &parent, SimValue ®isterToUse) | |
virtual | ~InputPortState () |
Public Member Functions inherited from PortState | |
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 () |
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 () |
Private Member Functions | |
OpcodeSettingVirtualInputPortState (const OpcodeSettingVirtualInputPortState &) | |
Copying not allowed. More... | |
OpcodeSettingVirtualInputPortState & | operator= (const OpcodeSettingVirtualInputPortState &) |
Assignment not allowed. More... | |
Private Attributes | |
Operation & | operation_ |
Operation of the port. More... | |
OperationExecutor * | executor_ |
Operation executor used to execute the operation in the target FU, this is an optimization to avoid searching for the executor every time the operation is triggered. More... | |
InputPortState & | real_ |
Real input port. More... | |
Additional Inherited Members | |
Protected Attributes inherited from PortState | |
FUState * | parent_ |
Parent of the port. More... | |
Protected Attributes inherited from RegisterState | |
SimValue & | value_ |
Value of the RegisterState. More... | |
Operation setting input port state.
Port is virtual, that is it doesn't model real input port state. It has a pointer to the real port in which value is really set.
Definition at line 51 of file OpcodeSettingVirtualInputPortState.hh.
OpcodeSettingVirtualInputPortState::OpcodeSettingVirtualInputPortState | ( | Operation & | operation, |
OperationExecutor & | executor, | ||
FUState & | parent, | ||
InputPortState & | real | ||
) |
Constructor.
Operation | Operation of the port. |
executor | OperationExecutor to use to execute the operation when it's triggered. |
parent | Parent function unit. |
real | The real port in which this port belongs to. |
Definition at line 68 of file OpcodeSettingVirtualInputPortState.cc.
OpcodeSettingVirtualInputPortState::OpcodeSettingVirtualInputPortState | ( | Operation & | operation, |
FUState & | parent, | ||
InputPortState & | real | ||
) |
Constructor.
Operation | Operation of the port. |
parent | Parent function unit. |
real | The real port in which this port belongs to. |
Definition at line 50 of file OpcodeSettingVirtualInputPortState.cc.
|
virtual |
|
private |
Copying not allowed.
|
private |
Assignment not allowed.
InputPortState * OpcodeSettingVirtualInputPortState::realPort | ( | ) | const |
Returns the real port.
Definition at line 116 of file OpcodeSettingVirtualInputPortState.cc.
References real_.
|
virtual |
Sets the value of the port and sets operation to function unit.
Reimplemented from RegisterState.
Definition at line 89 of file OpcodeSettingVirtualInputPortState.cc.
References executor_, operation_, PortState::parent_, real_, FUState::setOperation(), FUState::setTriggered(), RegisterState::setValue(), and value().
|
virtual |
Returns the value of the parent port.
Reimplemented from RegisterState.
Definition at line 106 of file OpcodeSettingVirtualInputPortState.cc.
References real_, and RegisterState::value().
Referenced by setValue().
|
private |
Operation executor used to execute the operation in the target FU, this is an optimization to avoid searching for the executor every time the operation is triggered.
Definition at line 83 of file OpcodeSettingVirtualInputPortState.hh.
Referenced by setValue().
|
private |
Operation of the port.
Definition at line 79 of file OpcodeSettingVirtualInputPortState.hh.
Referenced by setValue().
|
private |
Real input port.
Definition at line 85 of file OpcodeSettingVirtualInputPortState.hh.
Referenced by realPort(), setValue(), and value().