OpenASIP
2.0
|
#include <RegisterFileState.hh>
Public Member Functions | |
RegisterFileState (int size, int width, bool zeroRegister=false) | |
virtual | ~RegisterFileState () |
virtual RegisterState & | registerState (int index) |
virtual std::size_t | registerCount () const |
Private Member Functions | |
RegisterFileState (const RegisterFileState &) | |
Copying not allowed. More... | |
RegisterFileState & | operator= (const RegisterFileState) |
Assignment not allowed. More... | |
Private Attributes | |
std::vector< RegisterState * > | registerStates_ |
Contains all the registers of the state. More... | |
bool | zeroRegister_ |
Class that manages RegisterState objects.
Definition at line 49 of file RegisterFileState.hh.
|
explicit |
Constructor.
size | The size of the RegisterFileState. |
width | Width of the registers. |
zeroRegister | Tells whether the first index is hardcoded to zero |
Definition at line 54 of file RegisterFileState.cc.
References registerStates_, and zeroRegister_.
|
virtual |
Destructor.
Definition at line 69 of file RegisterFileState.cc.
References SequenceTools::deleteAllItems(), and registerStates_.
|
private |
Copying not allowed.
|
private |
Assignment not allowed.
|
virtual |
Returns the count of registers in the register file.
Definition at line 95 of file RegisterFileState.cc.
References registerStates_.
Referenced by ProximRFDetailsCmd::Do(), and ProximRegisterWindow::loadRegisterFile().
|
virtual |
Returns RegisterState with a given index.
index | Index of the wanted RegisterState. |
OutOfRange | If index is out of range. |
Reimplemented in NullRegisterFileState.
Definition at line 81 of file RegisterFileState.cc.
References __func__, and registerStates_.
Referenced by MachineStateBuilder::buildMachineState(), RFTestbenchGenerator::createStimulus(), ProximRFDetailsCmd::Do(), SimulatorFrontend::findBooleanRegister(), SimulatorFrontend::findRegister(), ProximRegisterWindow::loadRegisterFile(), and SimProgramBuilder::processBidirTerminal().
|
private |
Contains all the registers of the state.
Definition at line 66 of file RegisterFileState.hh.
Referenced by registerCount(), RegisterFileState(), registerState(), and ~RegisterFileState().
|
private |
Definition at line 68 of file RegisterFileState.hh.
Referenced by RegisterFileState().