OpenASIP
2.0
|
#include <CustomDBGController.hh>
Public Types | |
typedef MinimumAddressableUnit | MAU |
Public Types inherited from RemoteController | |
typedef MinimumAddressableUnit | MAU |
Public Types inherited from TTASimulationController | |
enum | SimulationStatus { STA_INITIALIZING, STA_INITIALIZED, STA_RUNNING, STA_STOPPED, STA_FINISHED } |
The states of simulation. More... | |
Public Member Functions | |
CustomDBGController (SimulatorFrontend &frontend, const TTAMachine::Machine &machine, const TTAProgram::Program &program) | |
virtual void | writeMem (Word address, MAU data, const AddressSpace &) |
virtual MAU | readMem (Word address, const AddressSpace &) |
virtual void | writeIMem (const char *data, int size) |
virtual void | step (double count=1) |
virtual void | next (int count=1) |
virtual void | run () |
virtual void | runUntil (UIntWord address) |
virtual void | reset () |
virtual std::string | registerFileValue (const std::string &rfName, int registerIndex=-1) |
virtual SimValue | immediateUnitRegisterValue (const std::string &iuName, int index=-1) |
virtual SimValue | FUPortValue (const std::string &fuName, const std::string &portName) |
virtual InstructionAddress | programCounter () const |
Public Member Functions inherited from RemoteController | |
RemoteController (SimulatorFrontend &frontend, const TTAMachine::Machine &machine, const TTAProgram::Program &program) | |
virtual void | loadIMemImage () |
Public Member Functions inherited from TTASimulationController | |
TTASimulationController (SimulatorFrontend &frontend, const TTAMachine::Machine &machine, const TTAProgram::Program &program) | |
virtual | ~TTASimulationController () |
virtual void | prepareToStop (StopReason reason) |
virtual unsigned int | stopReasonCount () const |
virtual StopReason | stopReason (unsigned int index) const |
virtual SimulationStatus | state () const |
virtual InstructionAddress | lastExecutedInstruction (int coreId=-1) const |
virtual ClockCycleCount | clockCount () const |
virtual MemorySystem & | memorySystem (int coreId=-1) |
virtual SimulatorFrontend & | frontend () |
virtual bool | automaticFinishImpossible () const |
virtual std::set< InstructionAddress > | findProgramExitPoints (const TTAProgram::Program &program, const TTAMachine::Machine &machine) const |
Additional Inherited Members | |
Protected Types inherited from TTASimulationController | |
typedef std::set< StopReason > | StopReasonContainer |
The container type for reasons why simulation stop was requested. More... | |
Protected Member Functions inherited from TTASimulationController | |
TTASimulationController (const TTASimulationController &) | |
Copying not allowed. More... | |
TTASimulationController & | operator= (const TTASimulationController &) |
Assignment not allowed. More... | |
Protected Attributes inherited from RemoteController | |
std::set< InstructionAddress > | exitPoints |
std::ostringstream | imemImage |
Protected Attributes inherited from TTASimulationController | |
SimulatorFrontend & | frontend_ |
Reference to the simulator frontend. More... | |
const TTAMachine::Machine & | sourceMachine_ |
The simulated Machine Object Model. More... | |
const TTAProgram::Program & | program_ |
Program object model of the simulated program. More... | |
bool | stopRequested_ |
Flag indicating that simulation should stop. More... | |
StopReasonContainer | stopReasons_ |
The set of reasons the simulation was stopped. More... | |
SimulationStatus | state_ |
The current state of the simulation. More... | |
ClockCycleCount | clockCount_ |
How many clock cycles have been simulated. More... | |
std::vector< InstructionAddress > | lastExecutedInstruction_ |
The address of the last executed instruction. More... | |
InstructionAddress | initialPC_ |
The address of the first executed instruction. More... | |
bool | automaticFinishImpossible_ |
If this is true, simulation cannot be finished automatically. More... | |
InstructionAddress | firstIllegalInstructionIndex_ |
The index of the first illegal instruction in the instruction sequence. More... | |
Definition at line 35 of file CustomDBGController.hh.
Definition at line 37 of file CustomDBGController.hh.
CustomDBGController::CustomDBGController | ( | SimulatorFrontend & | frontend, |
const TTAMachine::Machine & | machine, | ||
const TTAProgram::Program & | program | ||
) |
|
virtual |
Implements RemoteController.
Definition at line 131 of file CustomDBGController.cc.
|
virtual |
Implements RemoteController.
Definition at line 123 of file CustomDBGController.cc.
|
virtual |
Implements RemoteController.
Definition at line 89 of file CustomDBGController.cc.
References _WHERE, and abortWithError.
|
virtual |
Implements RemoteController.
Definition at line 139 of file CustomDBGController.cc.
References _WHERE, and abortWithError.
|
virtual |
Read data from physical memory.
address | TTA's view of the memory address from which to read @space the address space from which to read the data. |
Implements RemoteController.
Definition at line 67 of file CustomDBGController.cc.
References abortWithError.
|
virtual |
Implements RemoteController.
Definition at line 113 of file CustomDBGController.cc.
References _WHERE, and abortWithError.
|
virtual |
Implements RemoteController.
Definition at line 107 of file CustomDBGController.cc.
References _WHERE, and abortWithError.
|
virtual |
Implements RemoteController.
Definition at line 95 of file CustomDBGController.cc.
References _WHERE, and abortWithError.
|
virtual |
Implements RemoteController.
Definition at line 101 of file CustomDBGController.cc.
References _WHERE, and abortWithError.
|
virtual |
Implements RemoteController.
Definition at line 83 of file CustomDBGController.cc.
References _WHERE, and abortWithError.
|
virtual |
Write to phyical instruction memory.
address | TTA's view of the memory address to which to write @data buffer of raw data to write to instruction memory @size the size of the data buffer, in bytes |
Implements RemoteController.
Definition at line 75 of file CustomDBGController.cc.
References _WHERE, and abortWithError.
|
virtual |
Write data to physical memory.
address | TTA's view of the memory address to which to write @data one MAU of data to write. Needs to be masked, if MAU is less than maximum MAU size. @space the address space in which to write the data. |
Implements RemoteController.
Definition at line 58 of file CustomDBGController.cc.
References _WHERE, and abortWithError.