OpenASIP  2.0
TCEDBGController.cc
Go to the documentation of this file.
1 /*
2  This file is part of TTA-Based Codesign Environment (TCE).
3 
4  Permission is hereby granted, free of charge, to any person obtaining a
5  copy of this software and associated documentation files (the "Software"),
6  to deal in the Software without restriction, including without limitation
7  the rights to use, copy, modify, merge, publish, distribute, sublicense,
8  and/or sell copies of the Software, and to permit persons to whom the
9  Software is furnished to do so, subject to the following conditions:
10 
11  The above copyright notice and this permission notice shall be included in
12  all copies or substantial portions of the Software.
13 
14  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17  THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20  DEALINGS IN THE SOFTWARE.
21 */
22 
23 /**
24  * @file TCEDBGController.cc
25  *
26  * Stand-in replacement for the FPGA controller in the HardwareDebugger branch on
27  * launchpad. Minimum implementation to get TCE to compile.
28  *
29  * @author Kalle Raiskila 2014
30  */
31 
32 #include "TCEDBGController.hh"
33 #include "SimValue.hh"
34 
36 
38  SimulatorFrontend& frontend,
40  const TTAProgram::Program& program) :
41  RemoteController(frontend, machine, program) {
42 }
43 
44 void
46  Word /*address*/,
47  MAU /*data*/,
48  const AddressSpace& /*space*/) {
49 }
50 
51 MAU
53  Word /*address*/,
54  const AddressSpace& /*space*/) {
55  return 0;
56 }
57 
58 void
60  const char *,
61  int /*size*/) {
62 }
63 
64 void
65 TCEDBGController::step(double /*count = 1*/) {}
66 
67 void
68 TCEDBGController::next(int /*count = 1*/) {}
69 
70 void
72 
73 void
75 
76 void
78 }
79 
80 std::string
82  const std::string& /*rfName*/,
83  int /*registerIndex = -1*/) {
84  std::string rv="hello";
85  return rv;
86 }
87 
90  const std::string& /*iuName*/, int /*index = -1*/) {
91  SimValue rv;
92  return rv;
93 }
94 
97  const std::string& /*fuName*/,
98  const std::string& /*portName*/) {
99  SimValue rv;
100  return rv;
101 }
102 
105  return 0;
106 }
107 
108 /* vim: set ts=4 expandtab: */
UIntWord
Word UIntWord
Definition: BaseType.hh:144
TTAProgram::Program
Definition: Program.hh:63
InstructionAddress
UInt32 InstructionAddress
Definition: BaseType.hh:175
machine
TTAMachine::Machine * machine
the architecture definition of the estimated processor
Definition: EstimatorCmdLineUI.cc:59
TTAMachine::AddressSpace
Definition: AddressSpace.hh:51
TCEDBGController::writeIMem
virtual void writeIMem(const char *data, int size)
Definition: TCEDBGController.cc:59
TCEDBGController::registerFileValue
virtual std::string registerFileValue(const std::string &rfName, int registerIndex=-1)
Definition: TCEDBGController.cc:81
RemoteController
Definition: RemoteController.hh:48
TCEDBGController::next
virtual void next(int count=1)
Definition: TCEDBGController.cc:68
TCEDBGController.hh
SimValue
Definition: SimValue.hh:96
TCEDBGController::programCounter
virtual InstructionAddress programCounter() const
Definition: TCEDBGController.cc:104
MinimumAddressableUnit
Word MinimumAddressableUnit
Type for storing a MAU (must be unsigned type!). This limits the maximum size of the simulated minimu...
Definition: BaseType.hh:184
TCEDBGController::reset
virtual void reset()
Definition: TCEDBGController.cc:77
TCEDBGController::FUPortValue
virtual SimValue FUPortValue(const std::string &fuName, const std::string &portName)
Definition: TCEDBGController.cc:96
MAU
MinimumAddressableUnit MAU
Definition: TCEDBGController.cc:35
MAU
MinimumAddressableUnit MAU
Definition: CustomDBGController.cc:44
TCEDBGController::TCEDBGController
TCEDBGController(SimulatorFrontend &frontend, const TTAMachine::Machine &machine, const TTAProgram::Program &program)
Definition: TCEDBGController.cc:37
TCEDBGController::readMem
virtual MAU readMem(Word address, const AddressSpace &)
Definition: TCEDBGController.cc:52
SimValue.hh
TCEDBGController::runUntil
virtual void runUntil(UIntWord address)
Definition: TCEDBGController.cc:74
RemoteController::MAU
MinimumAddressableUnit MAU
Definition: RemoteController.hh:50
TCEDBGController::step
virtual void step(double count=1)
Definition: TCEDBGController.cc:65
program
find Finds info of the inner loops in the program
Definition: InnerLoopFinder.cc:80
TCEDBGController::writeMem
virtual void writeMem(Word address, MAU data, const AddressSpace &)
Definition: TCEDBGController.cc:45
TCEDBGController::immediateUnitRegisterValue
virtual SimValue immediateUnitRegisterValue(const std::string &iuName, int index=-1)
Definition: TCEDBGController.cc:89
SimulatorFrontend
Definition: SimulatorFrontend.hh:89
TCEDBGController::run
virtual void run()
Definition: TCEDBGController.cc:71
TTAMachine::Machine
Definition: Machine.hh:73