OpenASIP  2.0
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
IPXactInterface Class Referenceabstract

#include <IPXactInterface.hh>

Inheritance diagram for IPXactInterface:
Inheritance graph
Collaboration diagram for IPXactInterface:
Collaboration graph

Public Member Functions

 IPXactInterface ()
 
virtual ~IPXactInterface ()
 
virtual bool mapPortsToInterface (const ProGe::NetlistBlock &toplevel)=0
 
virtual TCEString instanceName () const
 
virtual IPXact::Vlnv busType () const
 
virtual IPXact::Vlnv busAbstractionType () const
 
virtual IPXactModel::BusMode busMode () const
 
virtual const PlatInt::SignalMappingListinterfaceMapping () const
 
virtual void addSignalMapping (const TCEString &actualSignal, const TCEString &busSignal)
 
void setInstanceName (const TCEString &name)
 

Protected Member Functions

void setBusMode (IPXactModel::BusMode mode)
 
void setBusType (const TCEString &vendor, const TCEString &library, const TCEString &name, const TCEString &version)
 
void setBusAbsType (const TCEString &vendor, const TCEString &library, const TCEString &name, const TCEString &version)
 

Private Attributes

TCEString instanceName_
 Instance Name. More...
 
IPXactModel::BusMode busMode_
 Bus mode. More...
 
IPXact::Vlnv busType_
 Vendor,Library,Name,Version of the bus type. More...
 
IPXact::Vlnv busAbstractionType_
 Vendor,Library,Name,Version of the bus abstraction type. More...
 
PlatInt::SignalMappingList interfaceMap_
 Mapping of actual port names and interface port names. More...
 

Detailed Description

Definition at line 41 of file IPXactInterface.hh.

Constructor & Destructor Documentation

◆ IPXactInterface()

IPXactInterface::IPXactInterface ( )

Definition at line 36 of file IPXactInterface.cc.

36  :
38  busAbstractionType_("","","",""), interfaceMap_() {
39 }

◆ ~IPXactInterface()

IPXactInterface::~IPXactInterface ( )
virtual

Definition at line 41 of file IPXactInterface.cc.

41  {
42 
43  for (unsigned int i = 0; i < interfaceMap_.size(); i++) {
44  delete interfaceMap_.at(i);
45  }
46 }

References interfaceMap_.

Member Function Documentation

◆ addSignalMapping()

void IPXactInterface::addSignalMapping ( const TCEString actualSignal,
const TCEString busSignal 
)
virtual

Definition at line 79 of file IPXactInterface.cc.

81  {
82 
83  SignalMapping* signalMap = new SignalMapping(
84  pair<TCEString,TCEString>(actualSignal, busSignal));
85  interfaceMap_.push_back(signalMap);
86 }

References interfaceMap_.

Referenced by IPXactModel::extractPortMap(), IPXactResetInterface::mapPortsToInterface(), IPXactClkInterface::mapPortsToInterface(), and IPXactHibiInterface::mapPortsToInterface().

◆ busAbstractionType()

IPXact::Vlnv IPXactInterface::busAbstractionType ( ) const
virtual

Definition at line 60 of file IPXactInterface.cc.

60  {
61 
62  return busAbstractionType_;
63 }

References busAbstractionType_.

Referenced by IPXactModel::addBusInterfaceObject().

◆ busMode()

IPXactModel::BusMode IPXactInterface::busMode ( ) const
virtual

Definition at line 66 of file IPXactInterface.cc.

66  {
67 
68  assert(busMode_ != IPXactModel::INVALID && "Bus mode not set!");
69  return busMode_;
70 }

References assert, busMode_, and IPXactModel::INVALID.

Referenced by IPXactModel::addBusInterfaceObject().

◆ busType()

IPXact::Vlnv IPXactInterface::busType ( ) const
virtual

Definition at line 54 of file IPXactInterface.cc.

54  {
55 
56  return busType_;
57 }

References busType_.

Referenced by IPXactModel::addBusInterfaceObject().

◆ instanceName()

TCEString IPXactInterface::instanceName ( ) const
virtual

Definition at line 49 of file IPXactInterface.cc.

49  {
50  return instanceName_;
51 }

References instanceName_.

Referenced by IPXactModel::addBusInterfaceObject().

◆ interfaceMapping()

const PlatInt::SignalMappingList & IPXactInterface::interfaceMapping ( ) const
virtual

Definition at line 73 of file IPXactInterface.cc.

73  {
74 
75  return interfaceMap_;
76 }

References interfaceMap_.

Referenced by IPXactModel::addBusInterfaceObject(), and IPXactHibiInterface::mapPortsToInterface().

◆ mapPortsToInterface()

virtual bool IPXactInterface::mapPortsToInterface ( const ProGe::NetlistBlock toplevel)
pure virtual

◆ setBusAbsType()

void IPXactInterface::setBusAbsType ( const TCEString vendor,
const TCEString library,
const TCEString name,
const TCEString version 
)
protected

◆ setBusMode()

void IPXactInterface::setBusMode ( IPXactModel::BusMode  mode)
protected

◆ setBusType()

void IPXactInterface::setBusType ( const TCEString vendor,
const TCEString library,
const TCEString name,
const TCEString version 
)
protected

◆ setInstanceName()

void IPXactInterface::setInstanceName ( const TCEString name)

Member Data Documentation

◆ busAbstractionType_

IPXact::Vlnv IPXactInterface::busAbstractionType_
private

Vendor,Library,Name,Version of the bus abstraction type.

Definition at line 91 of file IPXactInterface.hh.

Referenced by busAbstractionType(), and setBusAbsType().

◆ busMode_

IPXactModel::BusMode IPXactInterface::busMode_
private

Bus mode.

Definition at line 87 of file IPXactInterface.hh.

Referenced by busMode(), and setBusMode().

◆ busType_

IPXact::Vlnv IPXactInterface::busType_
private

Vendor,Library,Name,Version of the bus type.

Definition at line 89 of file IPXactInterface.hh.

Referenced by busType(), and setBusType().

◆ instanceName_

TCEString IPXactInterface::instanceName_
private

Instance Name.

Definition at line 85 of file IPXactInterface.hh.

Referenced by instanceName(), and setInstanceName().

◆ interfaceMap_

PlatInt::SignalMappingList IPXactInterface::interfaceMap_
private

Mapping of actual port names and interface port names.

Definition at line 93 of file IPXactInterface.hh.

Referenced by addSignalMapping(), interfaceMapping(), and ~IPXactInterface().


The documentation for this class was generated from the following files:
mode
mode
Definition: tceopgen.cc:45
IPXactInterface::busMode_
IPXactModel::BusMode busMode_
Bus mode.
Definition: IPXactInterface.hh:87
IPXactInterface::busAbstractionType_
IPXact::Vlnv busAbstractionType_
Vendor,Library,Name,Version of the bus abstraction type.
Definition: IPXactInterface.hh:91
IPXactInterface::instanceName_
TCEString instanceName_
Instance Name.
Definition: IPXactInterface.hh:85
IPXactInterface::interfaceMap_
PlatInt::SignalMappingList interfaceMap_
Mapping of actual port names and interface port names.
Definition: IPXactInterface.hh:93
IPXact::Vlnv::version
TCEString version
Entity version.
Definition: Vlnv.hh:62
PlatInt::SignalMapping
std::pair< TCEString, TCEString > SignalMapping
Definition: PlatformIntegratorTypes.hh:42
IPXact::Vlnv::vendor
TCEString vendor
Vendor name.
Definition: Vlnv.hh:56
IPXactModel::INVALID
@ INVALID
Definition: IPXactModel.hh:51
assert
#define assert(condition)
Definition: Application.hh:86
IPXact::Vlnv::library
TCEString library
Library name.
Definition: Vlnv.hh:58
IPXactInterface::busType_
IPXact::Vlnv busType_
Vendor,Library,Name,Version of the bus type.
Definition: IPXactInterface.hh:89
IPXact::Vlnv::name
TCEString name
Entity name.
Definition: Vlnv.hh:60