|
OpenASIP 2.2
|
#include <RegisterState.hh>


Public Member Functions | |
| 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 | |
| SimValue & | value_ |
| Value of the RegisterState. | |
Private Member Functions | |
| RegisterState (const RegisterState &) | |
| Copying not allowed. | |
| RegisterState & | operator= (const RegisterState &) |
| Assignment not allowed. | |
Private Attributes | |
| bool | shared_ |
| Is the storage of this RegisterState shared with someone else? | |
| bool | constantZero_ |
| Is this register constant zero? | |
Class that represents the contents of a register.
Definition at line 50 of file RegisterState.hh.
| RegisterState::RegisterState | ( | int | width, |
| bool | constantZero = false |
||
| ) |
Constructor.
| width | The width of the register. |
| constantZero | Tells whether the register is constant zero |
Definition at line 50 of file RegisterState.cc.
| RegisterState::RegisterState | ( | SimValue & | sharedRegister | ) |
Constructor for RegisterState which shares the actual register storage.
| sharedRegister | The register which is shared with this. |
Definition at line 60 of file RegisterState.cc.
|
virtual |
|
private |
Copying not allowed.
|
private |
Assignment not allowed.
|
virtual |
Sets the value for the register.
| value | Value to be set. |
Implements WritableState.
Reimplemented in BusState, NullBusState, OpcodeSettingVirtualInputPortState, NullPortState, NullRegisterState, and TriggeringInputPortState.
Definition at line 80 of file RegisterState.cc.
References constantZero_, value(), and value_.
Referenced by SimpleOperationExecutor::advanceClock(), ExecutingOperation::PendingResult::advanceCycle(), RFTestbenchGenerator::createStimulus(), SimProgramBuilder::processMove(), BusState::setValue(), OpcodeSettingVirtualInputPortState::setValue(), TriggeringInputPortState::setValue(), and FUTestbenchGenerator::writeInputPortStimulus().

|
virtual |
Returns the value of the register.
Implements ReadableState.
Reimplemented in NullBusState, OpcodeSettingVirtualInputPortState, NullPortState, and NullRegisterState.
Definition at line 92 of file RegisterState.cc.
References value_.
Referenced by RFTestbenchGenerator::createStimulus(), ProximBusDetailsCmd::Do(), ProximFUDetailsCmd::Do(), ProximFUPortDetailsCmd::Do(), ProximRFDetailsCmd::Do(), InfoSegmentsCommand::execute(), ExecutableMove::executeWrite(), BusTracker::handleEvent(), ProximRegisterWindow::loadRegisterFile(), FUTestbenchGenerator::readValuesFromOutPorts(), BusState::setValue(), setValue(), TriggeringInputPortState::setValue(), MultiLatencyOperationExecutor::startOperation(), SimpleOperationExecutor::startOperation(), ProximPortWindow::update(), OpcodeSettingVirtualInputPortState::value(), BusState::width(), and FUTestbenchGenerator::writeInputPortStimulus().
|
private |
Is this register constant zero?
Definition at line 73 of file RegisterState.hh.
Referenced by setValue().
|
private |
Is the storage of this RegisterState shared with someone else?
Definition at line 71 of file RegisterState.hh.
Referenced by ~RegisterState().
|
protected |
Value of the RegisterState.
Definition at line 63 of file RegisterState.hh.
Referenced by setValue(), value(), and ~RegisterState().