Otawa  0.10
otawa::hard::Mode Class Reference

A working mode for the hardware memory. More...

#include <otawa/hard/Memory.h>

Public Member Functions

 Mode (void)
 Constructor with default initialization: More...
 
const stringname (void) const
 Get the mode name. More...
 
int latency (void) const
 Get the latency to access the memory in this mode. More...
 
int staticPower (void) const
 Get the static power consumed by this memory. More...
 
int dynamicPower (void) const
 Get the dynamic power consumed by this memory. More...
 
const Table< ModeTransition > & transitions (void) const
 Get the mode transition table (may be empty). More...
 

Private Member Functions

 SERIALIZABLE (Mode, field("name", _name)&field("latency", _latency)&field("static_power", _static_power)&field("dynamic_power", _dynamic_power)&field("transitions", _transitions))
 

Private Attributes

string _name
 
int _latency
 
int _static_power
 
int _dynamic_power
 
AllocatedTable< ModeTransition_transitions
 

Detailed Description

A working mode for the hardware memory.

Author
H. Cassé casse.nosp@m.@iri.nosp@m.t.fr

Constructor & Destructor Documentation

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.

Member Function Documentation

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.
const Table< ModeTransition > & otawa::hard::Mode::transitions ( void  ) const
inline

Get the mode transition table (may be empty).

Returns
Mode transition table.

Member Data Documentation

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
AllocatedTable<ModeTransition> otawa::hard::Mode::_transitions
private

The documentation for this class was generated from the following files: