Otawa  0.10
otawa::sim::TrivialSimulator Class Reference

The trivial simulator is a simplistic simulator with a fixed execution time for each instruction (defined by otawa::sim::INSTRUCTION_TIME). More...

#include <otawa/sim/TrivialSimulator.h>

Inheritance diagram for otawa::sim::TrivialSimulator:
otawa::sim::Simulator

Public Member Functions

 TrivialSimulator (void)
 Build a trivial simulator. More...
 
virtual Stateinstantiate (WorkSpace *fw, const PropList &props=PropList::EMPTY)
 This method instantiate a new simulator using the given framework. More...
 

Detailed Description

The trivial simulator is a simplistic simulator with a fixed execution time for each instruction (defined by otawa::sim::INSTRUCTION_TIME).

It only accepts structural simulator (otawa::sim::IS_STRUCTURAL) wtihout management of memory and control (otawa::sim::USE_MEMORY and otawa::sim::USE_CONTROL).

Constructor & Destructor Documentation

otawa::sim::TrivialSimulator::TrivialSimulator ( void  )

Build a trivial simulator.

Member Function Documentation

State * otawa::sim::TrivialSimulator::instantiate ( WorkSpace fw,
const PropList props = PropList::EMPTY 
)
virtual

This method instantiate a new simulator using the given framework.

It must be implemented by actual simulator plugins.

Parameters
fwFramework to use.
propsProperties for tuning the built simulator.
Returns
The instantiated simulator.
Exceptions
otawa::sim::ExceptionIf there is an error.

Implements otawa::sim::Simulator.

References otawa::sim::INSTRUCTION_TIME, otawa::sim::IS_FUNCTIONAL, otawa::sim::USE_CONTROL, and otawa::sim::USE_MEMORY.


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