A working mode for the hardware memory.
More...
#include <otawa/hard/Memory.h>
|
| SERIALIZABLE (Mode, field("name", _name)&field("latency", _latency)&field("static_power", _static_power)&field("dynamic_power", _dynamic_power)&field("transitions", _transitions)) |
|
A working mode for the hardware memory.
- Author
- H. Cassé casse.nosp@m.@iri.nosp@m.t.fr
otawa::hard::Mode::Mode |
( |
void |
| ) |
|
|
inline |
Constructor with default initialization:
- no name,
- latency to 1 cycle,
- static power to 0,
- dynamic power to 0,
- no transition available.
int otawa::hard::Mode::dynamicPower |
( |
void |
| ) |
const |
|
inline |
Get the dynamic power consumed by this memory.
- Returns
- Dynamic power.
int otawa::hard::Mode::latency |
( |
void |
| ) |
const |
|
inline |
Get the latency to access the memory in this mode.
- Returns
- Access latency (in cycles).
const string & otawa::hard::Mode::name |
( |
void |
| ) |
const |
|
inline |
Get the mode name.
- Returns
- Mode name.
otawa::hard::Mode::SERIALIZABLE |
( |
Mode |
, |
|
|
field("name", _name)&field("latency", _latency)&field("static_power", _static_power)&field("dynamic_power", _dynamic_power)&field("transitions", _transitions) |
|
|
) |
| |
|
private |
int otawa::hard::Mode::staticPower |
( |
void |
| ) |
const |
|
inline |
Get the static power consumed by this memory.
- Returns
- Static power.
Get the mode transition table (may be empty).
- Returns
- Mode transition table.
int otawa::hard::Mode::_dynamic_power |
|
private |
int otawa::hard::Mode::_latency |
|
private |
string otawa::hard::Mode::_name |
|
private |
int otawa::hard::Mode::_static_power |
|
private |
The documentation for this class was generated from the following files: