OpenASIP 2.2
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
CustomDBGController Class Reference

#include <CustomDBGController.hh>

Inheritance diagram for CustomDBGController:
Inheritance graph
Collaboration diagram for CustomDBGController:
Collaboration graph

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 MemorySystemmemorySystem (int coreId=-1)
 
virtual SimulatorFrontendfrontend ()
 
virtual bool automaticFinishImpossible () const
 
virtual std::set< InstructionAddressfindProgramExitPoints (const TTAProgram::Program &program, const TTAMachine::Machine &machine) const
 

Additional Inherited Members

- Protected Types inherited from TTASimulationController
typedef std::set< StopReasonStopReasonContainer
 The container type for reasons why simulation stop was requested.
 
- Protected Member Functions inherited from TTASimulationController
 TTASimulationController (const TTASimulationController &)
 Copying not allowed.
 
TTASimulationControlleroperator= (const TTASimulationController &)
 Assignment not allowed.
 
- Protected Attributes inherited from RemoteController
std::set< InstructionAddressexitPoints
 
std::ostringstream imemImage
 
- Protected Attributes inherited from TTASimulationController
SimulatorFrontendfrontend_
 Reference to the simulator frontend.
 
const TTAMachine::MachinesourceMachine_
 The simulated Machine Object Model.
 
const TTAProgram::Programprogram_
 Program object model of the simulated program.
 
bool stopRequested_
 Flag indicating that simulation should stop.
 
StopReasonContainer stopReasons_
 The set of reasons the simulation was stopped.
 
SimulationStatus state_
 The current state of the simulation.
 
ClockCycleCount clockCount_
 How many clock cycles have been simulated.
 
std::vector< InstructionAddresslastExecutedInstruction_
 The address of the last executed instruction.
 
InstructionAddress initialPC_
 The address of the first executed instruction.
 
bool automaticFinishImpossible_
 If this is true, simulation cannot be finished automatically.
 
InstructionAddress firstIllegalInstructionIndex_
 The index of the first illegal instruction in the instruction sequence.
 

Detailed Description

Definition at line 35 of file CustomDBGController.hh.

Member Typedef Documentation

◆ MAU

Definition at line 37 of file CustomDBGController.hh.

Constructor & Destructor Documentation

◆ CustomDBGController()

CustomDBGController::CustomDBGController ( SimulatorFrontend frontend,
const TTAMachine::Machine machine,
const TTAProgram::Program program 
)

Definition at line 46 of file CustomDBGController.cc.

49 :
51 _WHERE();
52 // Write instructions to TTA memory. This is not done by TCE in the
53 // simulator modes. At some later point in time TCE fills the global
54 // data memory.
55}
#define _WHERE()
TTAMachine::Machine * machine
the architecture definition of the estimated processor
find Finds info of the inner loops in the program
virtual SimulatorFrontend & frontend()

References _WHERE.

Member Function Documentation

◆ FUPortValue()

SimValue CustomDBGController::FUPortValue ( const std::string &  fuName,
const std::string &  portName 
)
virtual

Implements RemoteController.

Definition at line 131 of file CustomDBGController.cc.

133 {
134 SimValue rv;
135 return rv;
136}

◆ immediateUnitRegisterValue()

SimValue CustomDBGController::immediateUnitRegisterValue ( const std::string &  iuName,
int  index = -1 
)
virtual

Implements RemoteController.

Definition at line 123 of file CustomDBGController.cc.

125 {
126 SimValue rv;
127 return rv;
128}

◆ next()

void CustomDBGController::next ( int  count = 1)
virtual

Implements RemoteController.

Definition at line 89 of file CustomDBGController.cc.

89 {
90 _WHERE();
91 abortWithError("Unimplemented.");
92}
#define abortWithError(message)

References _WHERE, and abortWithError.

◆ programCounter()

InstructionAddress CustomDBGController::programCounter ( ) const
virtual

Implements RemoteController.

Definition at line 139 of file CustomDBGController.cc.

139 {
140 _WHERE();
141 abortWithError("Unimplemented.");
142 return 0;
143}

References _WHERE, and abortWithError.

◆ readMem()

MAU CustomDBGController::readMem ( Word  address,
const AddressSpace  
)
virtual

Read data from physical memory.

Parameters
addressTTA's view of the memory address from which to read @space the address space from which to read the data.
Returns
one MAU of data to write. (TODO: is return value masked or not?)

Implements RemoteController.

Definition at line 67 of file CustomDBGController.cc.

69 {
70 abortWithError("Unimplemented.");
71 return 0;
72}

References abortWithError.

◆ registerFileValue()

std::string CustomDBGController::registerFileValue ( const std::string &  rfName,
int  registerIndex = -1 
)
virtual

Implements RemoteController.

Definition at line 113 of file CustomDBGController.cc.

115 {
116 std::string rv="hello";
117 _WHERE();
118 abortWithError("Unimplemented.");
119 return rv;
120}

References _WHERE, and abortWithError.

◆ reset()

void CustomDBGController::reset ( )
virtual

Implements RemoteController.

Definition at line 107 of file CustomDBGController.cc.

107 {
108 _WHERE();
109 abortWithError("Unimplemented.");
110}

References _WHERE, and abortWithError.

◆ run()

void CustomDBGController::run ( )
virtual

Implements RemoteController.

Definition at line 95 of file CustomDBGController.cc.

95 {
96 _WHERE();
97 abortWithError("Unimplemented.");
98}

References _WHERE, and abortWithError.

◆ runUntil()

void CustomDBGController::runUntil ( UIntWord  address)
virtual

Implements RemoteController.

Definition at line 101 of file CustomDBGController.cc.

101 {
102 _WHERE();
103 abortWithError("Unimplemented.");
104}

References _WHERE, and abortWithError.

◆ step()

void CustomDBGController::step ( double  count = 1)
virtual

Implements RemoteController.

Definition at line 83 of file CustomDBGController.cc.

83 {
84 _WHERE();
85 abortWithError("Unimplemented.");
86}

References _WHERE, and abortWithError.

◆ writeIMem()

void CustomDBGController::writeIMem ( const char *  data,
int  size 
)
virtual

Write to phyical instruction memory.

Parameters
addressTTA'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.

77 {
78 _WHERE();
79 abortWithError("Unimplemented.");
80}

References _WHERE, and abortWithError.

◆ writeMem()

void CustomDBGController::writeMem ( Word  address,
MAU  data,
const AddressSpace  
)
virtual

Write data to physical memory.

Parameters
addressTTA'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.

61 {
62 _WHERE();
63 abortWithError("Unimplemented.");
64}

References _WHERE, and abortWithError.


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