Go to the documentation of this file.
39 TCEString machineFile,
bool useCompiledSimulation) {
42 useCompiledSimulation ?
60 bool useCompiledSimulation,
bool useDetailedSimulation) {
63 useCompiledSimulation ?
std::string procedureName() const
const TTAProgram::Program & program() const
@ SIM_COMPILED
Compiled, faster simulation.
TTAMachine::Machine * machine
the architecture definition of the estimated processor
bool isInitialized() const
@ SRE_USER_REQUESTED
User requested the simulation to stop explicitly, e.g., by pressing ctrl-c in the CLI.
const TTAMachine::Machine & machine() const
bool isSimulationStopped() const
void initializeDataMemories(const TTAMachine::AddressSpace *onlyOne=NULL)
MemorySystem & memorySystem()
SimulatorFrontend * simFront_
unsigned int stopReasonCount() const
std::string fileName() const
virtual void loadMachine(const std::string &fileName)
const TTAMachine::Machine & machine() const
uint64_t cycleCount() const
virtual void loadProgram(const std::string &fileName)
@ SRE_RUNTIME_ERROR
A fatal runtime error occured in the simulated program.
virtual bool unregisterEventListener(int event, Listener *listener)
std::string errorMessage() const
virtual bool registerEventListener(int event, Listener *listener)
bool isSimulationRunning() const
ClockCycleCount cycleCount() const
virtual void step(double count=1)
MemorySystem & memorySystem(int coreId=-1)
SimulationEventHandler & eventHandler()
MachineState & machineState(int core=-1)
FUState & fuState(const std::string &name)
void loadProgram(const std::string &fileName)
void setZeroFillMemoriesOnReset(bool val)
void setDetailedSimulation(bool val)
bool hadRuntimeError() const
StopReason stopReason(unsigned int index) const
virtual ~SimpleSimulatorFrontend()
find Finds info of the inner loops in the program
bool hasSimulationEnded() const
const TTAProgram::Program & program() const
void initializeDataMemories(const TTAMachine::AddressSpace *onlyOne=NULL)
bool isSimulationInitialized() const
SimpleSimulatorFrontend(TCEString machineFile, bool useCompiledSimulation=false)
virtual void setOperationSimulator(const TCEString &fuName, DetailedOperationSimulator &sim)
void prepareToStop(StopReason reason)
@ SIM_NORMAL
Default, interpreted simulation (debugging engine).