Go to the documentation of this file.
34 #ifndef COMPILED_SIM_CONTROLLER_HH
35 #define COMPILED_SIM_CONTROLLER_HH
39 #include <boost/shared_ptr.hpp>
58 bool leaveDirty=
false);
62 virtual void step(
double count = 1);
64 virtual void next(
int count = 1);
88 bool dynamicCompilation,
92 const std::string& rfName,
93 int registerIndex = -1);
96 const std::string& iuName,
int index = -1);
99 const std::string& fuName,
100 const std::string& portName);
virtual MemorySystem & memorySystem(int coreId=-1)
std::string compiledSimulationPath_
Path to the generated simulation files.
UInt32 InstructionAddress
virtual void next(int count=1)
TTAMachine::Machine * machine
the architecture definition of the estimated processor
std::map< InstructionAddress, InstructionAddress > AddressMap
A type for storing address-to-address combinations.
virtual SimValue FUPortValue(const std::string &fuName, const std::string &portName)
virtual ClockCycleCount clockCount() const
CompiledSimulation *() SimulationGetterFunction(const TTAMachine::Machine &machine, InstructionAddress entryAddress, InstructionAddress lastInstruction, SimulatorFrontend &frontend, CompiledSimController &controller, MemorySystem &memorySystem, bool dynamicCompilation, ProcedureBBRelations &procedureBBRelations)
Function type for the getSimulation() function.
virtual void prepareToStop(StopReason reason)
virtual InstructionAddress lastExecutedInstruction() const
virtual SimValue immediateUnitRegisterValue(const std::string &iuName, int index=-1)
ProcedureBBRelations procedureBBRelations_
A struct for tracking basic blocks and their relation to their procedures.
virtual void deleteGeneratedFiles()
PluginTools pluginTools_
Used for loading the compiled simulation plugin.
virtual std::string registerFileValue(const std::string &rfName, int registerIndex=-1)
virtual InstructionAddress programCounter() const
virtual ~CompiledSimController()
StopReason
The reasons to stop simulation.
bool leaveDirty_
True, if the simulation should leave all the generated code files.
virtual void step(double count=1)
virtual SimulatorFrontend & frontend()
virtual void runUntil(UIntWord address)
int instanceId_
The unique identifier for this simulation engine. Used for enabling multiple compiled engines in the ...
InstructionAddress basicBlockStart(InstructionAddress address) const
const TTAProgram::Program & program() const
virtual boost::shared_ptr< CompiledSimulation > compiledSimulation()
boost::shared_ptr< CompiledSimulation > simulation_
Pointer to the loaded simulation.
CycleCount ClockCycleCount
Alias for ClockCycleCount.
CompiledSimController & operator=(const CompiledSimController &)
Assignment not allowed.
A struct for tracking basic blocks and their relation to their procedures.
CompiledSimCodeGenerator::AddressMap basicBlocks_
A map containing the basic blocks' start..end pairs.
CompiledSimController(SimulatorFrontend &frontend, const TTAMachine::Machine &machine, const TTAProgram::Program &program, bool leaveDirty=false)