OpenASIP  2.0
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"
42 #include "CompiledSimCompiler.hh"
43 #include "PluginTools.hh"
44 
45 class MemorySystem;
46 class SimulatorFrontend;
48 
49 /// Type for the jump table
50 typedef std::vector<SimulateFunction> JumpTable;
51 
52 
54 public:
55  friend class CompiledSimulation;
57 private:
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
CompiledSimulationPimpl::CompiledSimulationPimpl
CompiledSimulationPimpl()
Definition: CompiledSimulationPimpl.cc:44
CompiledSimulationPimpl::operator=
CompiledSimulationPimpl & operator=(const CompiledSimulationPimpl &)
Assignment not allowed.
PluginTools
Definition: PluginTools.hh:53
CompiledSimulationPimpl::Symbols
std::map< std::string, SimValue * > Symbols
Type for symbol map: string = symbolname, SimValue* = value location.
Definition: CompiledSimulationPimpl.hh:72
CompiledSimulationPimpl::memorySystem_
MemorySystem * memorySystem_
The memory system.
Definition: CompiledSimulationPimpl.hh:65
CompiledSimulationPimpl::~CompiledSimulationPimpl
~CompiledSimulationPimpl()
Definition: CompiledSimulationPimpl.cc:51
CompiledSimulationPimpl::controller_
CompiledSimController * controller_
Simulation controller.
Definition: CompiledSimulationPimpl.hh:69
CompiledSimCompiler
Definition: CompiledSimCompiler.hh:41
JumpTable
std::vector< SimulateFunction > JumpTable
Type for the jump table.
Definition: CompiledSimulationPimpl.hh:47
CompiledSimulationPimpl
Definition: CompiledSimulationPimpl.hh:53
CompiledSimulationPimpl::jumpTable_
JumpTable jumpTable_
The jump table.
Definition: CompiledSimulationPimpl.hh:76
CompiledSimulationPimpl::frontend_
SimulatorFrontend * frontend_
The simulator frontend.
Definition: CompiledSimulationPimpl.hh:67
CompiledSimulationPimpl::exitPoints_
std::set< InstructionAddress > exitPoints_
Program exit points in a set.
Definition: CompiledSimulationPimpl.hh:79
CompiledSimulationPimpl::symbols_
Symbols symbols_
A Symbol map for easily getting the SimValues out of the simulation.
Definition: CompiledSimulationPimpl.hh:74
MemorySystem
Definition: MemorySystem.hh:55
PluginTools.hh
CompiledSimulation.hh
CompiledSimCompiler.hh
CompiledSimulationPimpl::compiler_
CompiledSimCompiler compiler_
The Compiled Simulation compiler.
Definition: CompiledSimulationPimpl.hh:82
CompiledSimulation
Definition: CompiledSimulation.hh:112
CompiledSimulationPimpl::pluginTools_
PluginTools pluginTools_
Plugintools used to load the compiled .so files.
Definition: CompiledSimulationPimpl.hh:84
CompiledSimController
Definition: CompiledSimController.hh:52
SimulatorFrontend
Definition: SimulatorFrontend.hh:89