OpenASIP 2.2
Loading...
Searching...
No Matches
ProGeContext.hh
Go to the documentation of this file.
1/*
2 Copyright (c) 2002-2015 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 ProGeContext.hh
26 *
27 * Declaration of ProGeContext class.
28 *
29 * Created on: 9.6.2015
30 * @author Henry Linjamäki 2015 (henry.linjamaki-no.spam-tut.fi)
31 * @note rating: red
32 */
33
34#ifndef PROGECONTEXT_HH
35#define PROGECONTEXT_HH
36
37#include <string>
38#include <memory>
39
40#include "ProGeTypes.hh"
41
42#include "Machine.hh"
44
45namespace TTAMachine {
46 class Machine;
47}
48
49namespace IDF {
50 class MachineImplementation;
51}
52
53namespace ProGe {
54
55class GlobalPackage;
56
57/*
58 * Class that bundles all information that are needed to processor generation.
59 */
61public:
62 ProGeContext() = delete;
66 const std::string& progeOutputDirectory,
67 const std::string& sharedOutputDirectory,
68 const std::string& coreEntityName,
70 int imemWidthInMAUs);
71
72 virtual ~ProGeContext();
73
74 const TTAMachine::Machine& adf() const;
75 const IDF::MachineImplementation& idf() const;
76 const std::string& outputDirectory() const;
77 const std::string& sharedDeirectory() const;
78 const std::string& coreEntityName() const;
79 HDL targetHDL() const;
80
81 const GlobalPackage& globalPackage() const;
82
83
84private:
85
86 /// The ADF.
88 /// The IDF.
90 /// The target base directory under where generated files are placed.
91 const std::string& progeOutputDirectory_;
92 /// The target base directory for files that are shared across multiple
93 /// TTAs.
94 const std::string& sharedOutputDirectory_;
95 /// The entity name of the cores.
96 const std::string entityName_;
97 /// The target language of generated files.
99 // The instruction fetch block width in MAUs.
100 //int imemWidthInMAUs_;
101 /// The package that defines (multi)core wide constants.
102 std::unique_ptr<GlobalPackage> globalPackage_;
103
104};
105
106} /* namespace ProGe */
107
108#endif /* PROGECONTEXT_HH */
const std::string entityName_
The entity name of the cores.
const std::string & progeOutputDirectory_
The target base directory under where generated files are placed.
const std::string & coreEntityName() const
const std::string & sharedOutputDirectory_
The target base directory for files that are shared across multiple TTAs.
const std::string & sharedDeirectory() const
const IDF::MachineImplementation & idf() const
const IDF::MachineImplementation & idf_
The IDF.
const TTAMachine::Machine & adf() const
std::unique_ptr< GlobalPackage > globalPackage_
The package that defines (multi)core wide constants.
HDL hdl_
The target language of generated files.
const GlobalPackage & globalPackage() const
const std::string & outputDirectory() const
const TTAMachine::Machine & adf_
The ADF.
HDL targetHDL() const
Definition FUGen.hh:54
HDL
HDLs supported by ProGe.
Definition ProGeTypes.hh:40