OpenASIP 2.2
Loading...
Searching...
No Matches
TCEDBGController.hh
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.hh
25 * @author Kalle Raiskila 2014
26 *
27 * Stand-in replacement for the FPGA controller in the HardwareDebugger branch
28 * on launchpad.
29 * Minimum implementation to get TCE to compile.
30 */
31
32#include "RemoteController.hh"
33
34#ifndef TTA_DBG_CONTROLLER
35#define TTA_DBG_CONTROLLER
36
38public:
44
45 virtual void writeMem(Word address, MAU data, const AddressSpace&);
46 virtual MAU readMem(Word address, const AddressSpace&);
47 virtual void writeIMem(const char *data, int size);
48
49 virtual void step(double count = 1);
50
51 virtual void next(int count = 1);
52
53 virtual void run();
54
55 virtual void runUntil(UIntWord address);
56
57 virtual void reset();
58
59 virtual std::string registerFileValue(
60 const std::string& rfName,
61 int registerIndex = -1);
62
64 const std::string& iuName, int index = -1);
65
66 virtual SimValue FUPortValue(
67 const std::string& fuName,
68 const std::string& portName);
69
70 virtual InstructionAddress programCounter() const;
71
72};
73
74/* vim: set ts=4 expandtab */
75#endif
Word UIntWord
Definition BaseType.hh:144
Word MinimumAddressableUnit
Type for storing a MAU (must be unsigned type!). This limits the maximum size of the simulated minimu...
Definition BaseType.hh:184
UInt32 InstructionAddress
Definition BaseType.hh:175
TTAMachine::Machine * machine
the architecture definition of the estimated processor
find Finds info of the inner loops in the program
virtual void writeIMem(const char *data, int size)
virtual void next(int count=1)
virtual std::string registerFileValue(const std::string &rfName, int registerIndex=-1)
MinimumAddressableUnit MAU
virtual SimValue immediateUnitRegisterValue(const std::string &iuName, int index=-1)
virtual SimValue FUPortValue(const std::string &fuName, const std::string &portName)
virtual void step(double count=1)
virtual MAU readMem(Word address, const AddressSpace &)
virtual InstructionAddress programCounter() const
virtual void writeMem(Word address, MAU data, const AddressSpace &)
virtual void runUntil(UIntWord address)
virtual void reset()
virtual void run()
virtual SimulatorFrontend & frontend()