OpenASIP
2.0
|
#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. More... | |
Private Member Functions | |
RegisterState (const RegisterState &) | |
Copying not allowed. More... | |
RegisterState & | operator= (const RegisterState &) |
Assignment not allowed. More... | |
Private Attributes | |
bool | shared_ |
Is the storage of this RegisterState shared with someone else? More... | |
bool | constantZero_ |
Is this register constant zero? More... | |
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 NullBusState, NullRegisterState, NullPortState, OpcodeSettingVirtualInputPortState, TriggeringInputPortState, and BusState.
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(), TriggeringInputPortState::setValue(), OpcodeSettingVirtualInputPortState::setValue(), and FUTestbenchGenerator::writeInputPortStimulus().
|
virtual |
Returns the value of the register.
Implements ReadableState.
Reimplemented in NullBusState, NullRegisterState, NullPortState, and OpcodeSettingVirtualInputPortState.
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(), SimpleOperationExecutor::startOperation(), MultiLatencyOperationExecutor::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().