Otawa  0.10
otawa::hard::ModeTransition Class Reference

Representation of a memory bank transition. More...

#include <otawa/hard/Memory.h>

Public Member Functions

 ModeTransition (void)
 Build a default transition mode with : More...
 
int latency (void) const
 Get the latency of the transition. More...
 
int power (void) const
 Get the power consumed by the transition. More...
 
const Modedest (void) const
 Get the destination mode of the transition. More...
 

Private Member Functions

 SERIALIZABLE (ModeTransition, field("latency", _latency)&field("power", _power)&field("dest", _dest))
 

Private Attributes

int _latency
 
int _power
 
const Mode_dest
 

Detailed Description

Representation of a memory bank transition.

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

Constructor & Destructor Documentation

otawa::hard::ModeTransition::ModeTransition ( void  )
inline

Build a default transition mode with :

  • latency to 1,
  • power to 0,
  • no destination mode.

Member Function Documentation

const Mode * otawa::hard::ModeTransition::dest ( void  ) const
inline

Get the destination mode of the transition.

Returns
Destination mode.
int otawa::hard::ModeTransition::latency ( void  ) const
inline

Get the latency of the transition.

Returns
Transition latency (in cyles).
int otawa::hard::ModeTransition::power ( void  ) const
inline

Get the power consumed by the transition.

Returns
Consumed power.
otawa::hard::ModeTransition::SERIALIZABLE ( ModeTransition  ,
field("latency", _latency)&field("power", _power)&field("dest", _dest)   
)
private

Member Data Documentation

const Mode* otawa::hard::ModeTransition::_dest
private
int otawa::hard::ModeTransition::_latency
private
int otawa::hard::ModeTransition::_power
private

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