OpenASIP  2.0
IPXactInterface.hh
Go to the documentation of this file.
1 /*
2  Copyright (c) 2002-2011 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 IPXactInterface.hh
26  *
27  * Declaration of IPXactInterface class.
28  *
29  * @author Otto Esko 2011 (otto.esko-no.spam-tut.fi)
30  * @note rating: red
31  */
32 #ifndef TTA_IP_XACT_INTERFACE_HH
33 #define TTA_IP_XACT_INTERFACE_HH
34 
35 #include <string>
36 #include "IPXactModel.hh"
37 #include "NetlistBlock.hh"
38 #include "Vlnv.hh"
40 
42 public:
43 
45 
46  virtual ~IPXactInterface();
47 
48  virtual bool mapPortsToInterface(const ProGe::NetlistBlock& toplevel) = 0;
49 
50  virtual TCEString instanceName() const;
51 
52  virtual IPXact::Vlnv busType() const;
53 
54  virtual IPXact::Vlnv busAbstractionType() const;
55 
56  virtual IPXactModel::BusMode busMode() const;
57 
58  virtual const PlatInt::SignalMappingList& interfaceMapping() const;
59 
60  virtual void addSignalMapping(
61  const TCEString& actualSignal,
62  const TCEString& busSignal);
63 
64  void setInstanceName(const TCEString& name);
65 
66 protected:
67 
69 
70  void setBusType(
71  const TCEString& vendor,
72  const TCEString& library,
73  const TCEString& name,
74  const TCEString& version);
75 
76  void setBusAbsType(
77  const TCEString& vendor,
78  const TCEString& library,
79  const TCEString& name,
80  const TCEString& version);
81 
82 private:
83 
84  /// Instance Name
86  /// Bus mode
88  /// Vendor,Library,Name,Version of the bus type
90  /// Vendor,Library,Name,Version of the bus abstraction type
92  /// Mapping of actual port names and interface port names
94 };
95 
96 #endif
IPXactInterface::mapPortsToInterface
virtual bool mapPortsToInterface(const ProGe::NetlistBlock &toplevel)=0
IPXactInterface::instanceName
virtual TCEString instanceName() const
Definition: IPXactInterface.cc:49
Vlnv.hh
IPXactInterface::setInstanceName
void setInstanceName(const TCEString &name)
Definition: IPXactInterface.cc:89
mode
mode
Definition: tceopgen.cc:45
ProGe::NetlistBlock
Definition: NetlistBlock.hh:61
IPXact::Vlnv
Definition: Vlnv.hh:41
IPXactInterface::addSignalMapping
virtual void addSignalMapping(const TCEString &actualSignal, const TCEString &busSignal)
Definition: IPXactInterface.cc:79
IPXactInterface::busMode_
IPXactModel::BusMode busMode_
Bus mode.
Definition: IPXactInterface.hh:87
PlatformIntegratorTypes.hh
IPXactInterface::busAbstractionType_
IPXact::Vlnv busAbstractionType_
Vendor,Library,Name,Version of the bus abstraction type.
Definition: IPXactInterface.hh:91
IPXactInterface::busMode
virtual IPXactModel::BusMode busMode() const
Definition: IPXactInterface.cc:66
PlatInt::SignalMappingList
std::vector< SignalMapping * > SignalMappingList
Definition: PlatformIntegratorTypes.hh:44
IPXactInterface::IPXactInterface
IPXactInterface()
Definition: IPXactInterface.cc:36
IPXactInterface::instanceName_
TCEString instanceName_
Instance Name.
Definition: IPXactInterface.hh:85
IPXactInterface::busAbstractionType
virtual IPXact::Vlnv busAbstractionType() const
Definition: IPXactInterface.cc:60
IPXactInterface::interfaceMap_
PlatInt::SignalMappingList interfaceMap_
Mapping of actual port names and interface port names.
Definition: IPXactInterface.hh:93
IPXactInterface::busType
virtual IPXact::Vlnv busType() const
Definition: IPXactInterface.cc:54
IPXactInterface::setBusMode
void setBusMode(IPXactModel::BusMode mode)
Definition: IPXactInterface.cc:95
IPXactInterface
Definition: IPXactInterface.hh:41
IPXactModel::BusMode
BusMode
Definition: IPXactModel.hh:50
IPXactModel.hh
NetlistBlock.hh
IPXactInterface::setBusType
void setBusType(const TCEString &vendor, const TCEString &library, const TCEString &name, const TCEString &version)
Definition: IPXactInterface.cc:101
IPXactInterface::busType_
IPXact::Vlnv busType_
Vendor,Library,Name,Version of the bus type.
Definition: IPXactInterface.hh:89
TCEString
Definition: TCEString.hh:53
IPXactInterface::interfaceMapping
virtual const PlatInt::SignalMappingList & interfaceMapping() const
Definition: IPXactInterface.cc:73
IPXactInterface::~IPXactInterface
virtual ~IPXactInterface()
Definition: IPXactInterface.cc:41
IPXactInterface::setBusAbsType
void setBusAbsType(const TCEString &vendor, const TCEString &library, const TCEString &name, const TCEString &version)
Definition: IPXactInterface.cc:114