|
OpenASIP 2.2
|
#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. | |
| BusState & | operator= (const BusState &) |
| Assignment not allowed. | |
Private Attributes | |
| std::string | name_ |
| Name of the bus. | |
| int | width_ |
| Width of the bus. | |
| bool | squashed_ |
| True in case this bus was squashed the last time a move was executed in this bus. | |
Additional Inherited Members | |
Protected Attributes inherited from RegisterState | |
| SimValue & | value_ |
| Value of the RegisterState. | |
Models the state of the bus.
Definition at line 48 of file BusState.hh.
| BusState::BusState | ( | int | width | ) |
Constructor.
| width | Bit width of the bus. |
Definition at line 50 of file BusState.cc.
|
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.