OpenASIP  2.0
GlobalPackage.cc
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.cc
26  *
27  * Implementation 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 #include "GlobalPackage.hh"
35 
36 namespace ProGe {
37 
38 GlobalPackage::GlobalPackage(const std::string& entityName)
39  : entityName_(entityName) {}
40 
42 
43 /**
44  * Return name of this package.
45  */
46 const std::string
48  return entityName_ + "_globals";
49 }
50 
51 /**
52  * Returns name of the constant that defines address width of instruction
53  * block visible outside the core.
54  */
55 const std::string
57  return "IMEMADDRWIDTH";
58 }
59 
60 /**
61  * Returns name of the constant that defines instruction block width visible
62  * outside the core.
63  */
64 const std::string
66  return "IMEMDATAWIDTH";
67 }
68 
69 /**
70  * Returns name of the constant that defines instruction block width in MAUs.
71  */
72 const std::string
74  return "IMEMWIDTHINMAUS";
75 }
76 
77 /**
78  * Return name of the constant that defines raw width of instruction.
79  */
80 const std::string
82  return "INSTRUCTIONWIDTH";
83 }
84 
85 // todo package writer
86 
87 } /* namespace ProGe */
ProGe::GlobalPackage::fetchBlockDataWidth
const std::string fetchBlockDataWidth() const
Definition: GlobalPackage.cc:65
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
GlobalPackage.hh
ProGe
Definition: FUGen.hh:54
ProGe::GlobalPackage::name
const std::string name() const
Definition: GlobalPackage.cc:47
ProGe::GlobalPackage::GlobalPackage
GlobalPackage()=delete