OpenASIP  2.0
GlobalPackage.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 GlobalPackage.hh
26  *
27  * Declaration of GlobalPackage 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 GLOBALPACKAGE_HH
35 #define GLOBALPACKAGE_HH
36 
37 #include <string>
38 
39 namespace ProGe {
40 
41 /*
42  * Class that represents global package (global_pkg) and holds definitions of
43  * core specific constants.
44  */
46 public:
47  GlobalPackage() = delete;
48  GlobalPackage(const std::string& entityName);
49  virtual ~GlobalPackage();
50 
51  const std::string name() const;
52 
53  // Predefined constants //
54  const std::string fetchBlockAddressWidth() const;
55  const std::string fetchBlockDataWidth() const;
56  const std::string fetchBlockMAUWidth() const;
57  const std::string instructionDataWidth() const;
58 
59 
60  // Interface to add constants into this package //
61 
62  // Interface to generate package //
63  //todo migrate code from ProcessorGenerator
64  //todo void write(targetdir, hdl) const;
65 
66 
67 private:
68 
69  /// The entity name
70  std::string entityName_;
71 
72 };
73 
74 } /* namespace ProGe */
75 
76 #endif /* GLOBALPACKAGE_HH */
ProGe::GlobalPackage::fetchBlockDataWidth
const std::string fetchBlockDataWidth() const
Definition: GlobalPackage.cc:65
ProGe::GlobalPackage
Definition: GlobalPackage.hh:45
ProGe::GlobalPackage::fetchBlockMAUWidth
const std::string fetchBlockMAUWidth() const
Definition: GlobalPackage.cc:73
ProGe::GlobalPackage::instructionDataWidth
const std::string instructionDataWidth() const
Definition: GlobalPackage.cc:81
ProGe::GlobalPackage::~GlobalPackage
virtual ~GlobalPackage()
Definition: GlobalPackage.cc:41
ProGe::GlobalPackage::entityName_
std::string entityName_
The entity name.
Definition: GlobalPackage.hh:70
ProGe::GlobalPackage::fetchBlockAddressWidth
const std::string fetchBlockAddressWidth() const
Definition: GlobalPackage.cc:56
ProGe
Definition: FUGen.hh:54
ProGe::GlobalPackage::name
const std::string name() const
Definition: GlobalPackage.cc:47
ProGe::GlobalPackage::GlobalPackage
GlobalPackage()=delete