OpenASIP
2.0
|
#include <BusState.hh>
Public Member Functions | |
BusState (int width) | |
virtual | ~BusState () |
virtual void | setValue (const SimValue &value) |
void | setValueInlined (const SimValue &value) |
void | clear () |
void | setSquashed (bool isSquashed) |
bool | isSquashed () const |
int | width () const |
Public Member Functions inherited from RegisterState | |
RegisterState (int width, bool constantZero=false) | |
RegisterState (SimValue &sharedRegister) | |
virtual | ~RegisterState () |
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 () |
Private Member Functions | |
BusState (const BusState &) | |
Copying not allowed. More... | |
BusState & | operator= (const BusState &) |
Assignment not allowed. More... | |
Private Attributes | |
std::string | name_ |
Name of the bus. More... | |
int | width_ |
Width of the bus. More... | |
bool | squashed_ |
True in case this bus was squashed the last time a move was executed in this bus. More... | |
Additional Inherited Members | |
Protected Attributes inherited from RegisterState | |
SimValue & | value_ |
Value of the RegisterState. More... | |
Models the state of the bus.
Definition at line 48 of file BusState.hh.
BusState::BusState | ( | int | width | ) |
|
virtual |
|
private |
Copying not allowed.
void BusState::clear | ( | ) |
bool BusState::isSquashed | ( | ) | const |
Returns true if the last executed move scheduled to this bus was squashed.
isSquashed | True in case this bus was squashed. |
Definition at line 88 of file BusState.cc.
References squashed_.
Referenced by BusTracker::handleEvent(), and setSquashed().
void BusState::setSquashed | ( | bool | isSquashed | ) |
Sets whether the last executed move scheduled to this bus was squashed.
isSquashed | True in case this bus was squashed. |
Definition at line 78 of file BusState.cc.
References isSquashed(), and squashed_.
Referenced by ExecutableMove::evaluateGuard().
|
virtual |
Sets the value of the bus.
Does not extend the value.
value | New value. |
Reimplemented from RegisterState.
Reimplemented in NullBusState.
Definition at line 68 of file BusState.cc.
References RegisterState::setValue(), and RegisterState::value().
void BusState::setValueInlined | ( | const SimValue & | value | ) |
Referenced by ExecutableMove::executeRead().
int BusState::width | ( | ) | const |
Returns width of the modeled bus.
Definition at line 96 of file BusState.cc.
References RegisterState::value(), and SimValue::width().
Referenced by BusTracker::handleEvent().
|
private |
Name of the bus.
Definition at line 70 of file BusState.hh.
|
private |
True in case this bus was squashed the last time a move was executed in this bus.
Definition at line 75 of file BusState.hh.
Referenced by isSquashed(), and setSquashed().
|
private |
Width of the bus.
Definition at line 72 of file BusState.hh.