OpenASIP 2.2
Loading...
Searching...
No Matches
CompiledSimulationPimpl.hh
Go to the documentation of this file.
1/*
2 Copyright (c) 2002-2009 Tampere University.
3
4 This file is part of TTA-Based Codesign Environment (TCE).
5
6 Permission is hereby granted, free of charge, to any person obtaining a
7 copy of this software and associated documentation files (the "Software"),
8 to deal in the Software without restriction, including without limitation
9 the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 and/or sell copies of the Software, and to permit persons to whom the
11 Software is furnished to do so, subject to the following conditions:
12
13 The above copyright notice and this permission notice shall be included in
14 all copies or substantial portions of the Software.
15
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 DEALINGS IN THE SOFTWARE.
23 */
24/**
25 * @file CompiledSimulationPimpl.hh
26 *
27 * Declaration of CompiledSimulationPimpl (private implementation) class.
28 *
29 * @author Viljami Korhonen 2008 (viljami.korhonen-no.spam-tut.fi)
30 * @note rating: red
31 */
32
33#ifndef COMPILED_SIMULATION_PIMPL_HH
34#define COMPILED_SIMULATION_PIMPL_HH
35
36#include <map>
37#include <string>
38#include <vector>
39#include <set>
40
41#include "CompiledSimulation.hh"
43#include "PluginTools.hh"
44
45class MemorySystem;
48
49/// Type for the jump table
50typedef std::vector<SimulateFunction> JumpTable;
51
52
54public:
55 friend class CompiledSimulation;
57private:
59 /// Copying not allowed.
61 /// Assignment not allowed.
63
64 /// The memory system
66 /// The simulator frontend
68 /// Simulation controller
70
71 /// Type for symbol map: string = symbolname, SimValue* = value location
72 typedef std::map<std::string, SimValue*> Symbols;
73 /// A Symbol map for easily getting the SimValues out of the simulation
75 /// The jump table
77
78 /// Program exit points in a set
79 std::set<InstructionAddress> exitPoints_;
80
81 /// The Compiled Simulation compiler
83 /// Plugintools used to load the compiled .so files
85};
86
87
88#endif
std::vector< SimulateFunction > JumpTable
Type for the jump table.
MemorySystem * memorySystem_
The memory system.
std::set< InstructionAddress > exitPoints_
Program exit points in a set.
CompiledSimController * controller_
Simulation controller.
Symbols symbols_
A Symbol map for easily getting the SimValues out of the simulation.
CompiledSimulationPimpl(const CompiledSimulationPimpl &)
Copying not allowed.
CompiledSimulationPimpl & operator=(const CompiledSimulationPimpl &)
Assignment not allowed.
std::map< std::string, SimValue * > Symbols
Type for symbol map: string = symbolname, SimValue* = value location.
CompiledSimCompiler compiler_
The Compiled Simulation compiler.
SimulatorFrontend * frontend_
The simulator frontend.
JumpTable jumpTable_
The jump table.
PluginTools pluginTools_
Plugintools used to load the compiled .so files.