OpenASIP  2.0
Public Member Functions | Static Private Attributes | List of all members
IPXactClkInterface Class Reference

#include <IPXactClkInterface.hh>

Inheritance diagram for IPXactClkInterface:
Inheritance graph
Collaboration diagram for IPXactClkInterface:
Collaboration graph

Public Member Functions

 IPXactClkInterface ()
 
virtual ~IPXactClkInterface ()
 
virtual bool mapPortsToInterface (const ProGe::NetlistBlock &toplevel)
 
- Public Member Functions inherited from IPXactInterface
 IPXactInterface ()
 
virtual ~IPXactInterface ()
 
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)
 

Static Private Attributes

static const TCEString TTA_CLK_PORT = "clk"
 
static const TCEString SPIRIT_CLK_PORT = "CLK"
 
static const TCEString DEFAULT_INSTANCE_NAME = "clk_in"
 
static const TCEString VENDOR = "TUT"
 
static const TCEString LIBRARY ="ip.hwp.interface"
 
static const TCEString NAME ="clock.busdef"
 
static const TCEString BUS_VERSION = "1.0"
 
static const TCEString ABS_VENDOR
 
static const TCEString ABS_LIBRARY
 
static const TCEString ABS_NAME = "clock.absDef"
 
static const TCEString ABS_VERSION
 
static const IPXactModel::BusMode DEFAULT_BUS_MODE
 

Additional Inherited Members

- Protected Member Functions inherited from IPXactInterface
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)
 

Detailed Description

Definition at line 37 of file IPXactClkInterface.hh.

Constructor & Destructor Documentation

◆ IPXactClkInterface()

IPXactClkInterface::IPXactClkInterface ( )

◆ ~IPXactClkInterface()

IPXactClkInterface::~IPXactClkInterface ( )
virtual

Definition at line 62 of file IPXactClkInterface.cc.

62  {
63 }

Member Function Documentation

◆ mapPortsToInterface()

bool IPXactClkInterface::mapPortsToInterface ( const ProGe::NetlistBlock toplevel)
virtual

Implements IPXactInterface.

Definition at line 66 of file IPXactClkInterface.cc.

66  {
67  for (size_t i = 0; i < toplevel.portCount(); i++) {
68  if (toplevel.port(i).name() == TTA_CLK_PORT) {
70  return true;
71  }
72  }
73  TCEString msg = "Clock port " + TTA_CLK_PORT + " not found!";
74  InvalidData exc(__FILE__, __LINE__, "IPXactClkInterface", msg);
75  throw exc;
76  return false;
77 }

References IPXactInterface::addSignalMapping(), ProGe::NetlistPort::name(), ProGe::NetlistBlock::port(), ProGe::NetlistBlock::portCount(), SPIRIT_CLK_PORT, and TTA_CLK_PORT.

Here is the call graph for this function:

Member Data Documentation

◆ ABS_LIBRARY

const TCEString IPXactClkInterface::ABS_LIBRARY
staticprivate
Initial value:

Definition at line 57 of file IPXactClkInterface.hh.

Referenced by IPXactClkInterface().

◆ ABS_NAME

const TCEString IPXactClkInterface::ABS_NAME = "clock.absDef"
staticprivate

Definition at line 58 of file IPXactClkInterface.hh.

Referenced by IPXactClkInterface().

◆ ABS_VENDOR

const TCEString IPXactClkInterface::ABS_VENDOR
staticprivate
Initial value:

Definition at line 56 of file IPXactClkInterface.hh.

Referenced by IPXactClkInterface().

◆ ABS_VERSION

const TCEString IPXactClkInterface::ABS_VERSION
staticprivate
Initial value:

Definition at line 59 of file IPXactClkInterface.hh.

Referenced by IPXactClkInterface().

◆ BUS_VERSION

const TCEString IPXactClkInterface::BUS_VERSION = "1.0"
staticprivate

Definition at line 55 of file IPXactClkInterface.hh.

Referenced by IPXactClkInterface().

◆ DEFAULT_BUS_MODE

const IPXactModel::BusMode IPXactClkInterface::DEFAULT_BUS_MODE
staticprivate
Initial value:

Definition at line 61 of file IPXactClkInterface.hh.

Referenced by IPXactClkInterface().

◆ DEFAULT_INSTANCE_NAME

const TCEString IPXactClkInterface::DEFAULT_INSTANCE_NAME = "clk_in"
staticprivate

Definition at line 51 of file IPXactClkInterface.hh.

Referenced by IPXactClkInterface().

◆ LIBRARY

const TCEString IPXactClkInterface::LIBRARY ="ip.hwp.interface"
staticprivate

Definition at line 53 of file IPXactClkInterface.hh.

Referenced by IPXactClkInterface().

◆ NAME

const TCEString IPXactClkInterface::NAME ="clock.busdef"
staticprivate

Definition at line 54 of file IPXactClkInterface.hh.

Referenced by IPXactClkInterface().

◆ SPIRIT_CLK_PORT

const TCEString IPXactClkInterface::SPIRIT_CLK_PORT = "CLK"
staticprivate

Definition at line 49 of file IPXactClkInterface.hh.

Referenced by mapPortsToInterface().

◆ TTA_CLK_PORT

const TCEString IPXactClkInterface::TTA_CLK_PORT = "clk"
staticprivate

Definition at line 48 of file IPXactClkInterface.hh.

Referenced by mapPortsToInterface().

◆ VENDOR

const TCEString IPXactClkInterface::VENDOR = "TUT"
staticprivate

Definition at line 52 of file IPXactClkInterface.hh.

Referenced by IPXactClkInterface().


The documentation for this class was generated from the following files:
IPXactModel::SLAVE
@ SLAVE
Definition: IPXactModel.hh:54
IPXactInterface::setInstanceName
void setInstanceName(const TCEString &name)
Definition: IPXactInterface.cc:89
IPXactClkInterface::DEFAULT_BUS_MODE
static const IPXactModel::BusMode DEFAULT_BUS_MODE
Definition: IPXactClkInterface.hh:61
IPXactInterface::addSignalMapping
virtual void addSignalMapping(const TCEString &actualSignal, const TCEString &busSignal)
Definition: IPXactInterface.cc:79
IPXactClkInterface::ABS_VENDOR
static const TCEString ABS_VENDOR
Definition: IPXactClkInterface.hh:56
IPXactInterface::IPXactInterface
IPXactInterface()
Definition: IPXactInterface.cc:36
IPXactClkInterface::SPIRIT_CLK_PORT
static const TCEString SPIRIT_CLK_PORT
Definition: IPXactClkInterface.hh:49
IPXactClkInterface::VENDOR
static const TCEString VENDOR
Definition: IPXactClkInterface.hh:52
ProGe::NetlistBlock::portCount
virtual size_t portCount() const
Definition: BaseNetlistBlock.cc:248
IPXactClkInterface::ABS_VERSION
static const TCEString ABS_VERSION
Definition: IPXactClkInterface.hh:59
IPXactInterface::setBusMode
void setBusMode(IPXactModel::BusMode mode)
Definition: IPXactInterface.cc:95
IPXactClkInterface::BUS_VERSION
static const TCEString BUS_VERSION
Definition: IPXactClkInterface.hh:55
IPXactClkInterface::ABS_LIBRARY
static const TCEString ABS_LIBRARY
Definition: IPXactClkInterface.hh:57
InvalidData
Definition: Exception.hh:149
IPXactClkInterface::NAME
static const TCEString NAME
Definition: IPXactClkInterface.hh:54
IPXactInterface::setBusType
void setBusType(const TCEString &vendor, const TCEString &library, const TCEString &name, const TCEString &version)
Definition: IPXactInterface.cc:101
ProGe::NetlistPort::name
std::string name() const
Definition: NetlistPort.cc:283
IPXactClkInterface::LIBRARY
static const TCEString LIBRARY
Definition: IPXactClkInterface.hh:53
TCEString
Definition: TCEString.hh:53
IPXactClkInterface::TTA_CLK_PORT
static const TCEString TTA_CLK_PORT
Definition: IPXactClkInterface.hh:48
IPXactInterface::setBusAbsType
void setBusAbsType(const TCEString &vendor, const TCEString &library, const TCEString &name, const TCEString &version)
Definition: IPXactInterface.cc:114
ProGe::NetlistBlock::port
virtual NetlistPort * port(const std::string &portName, bool partialMatch=true)
Definition: NetlistBlock.cc:97
IPXactClkInterface::ABS_NAME
static const TCEString ABS_NAME
Definition: IPXactClkInterface.hh:58
IPXactClkInterface::DEFAULT_INSTANCE_NAME
static const TCEString DEFAULT_INSTANCE_NAME
Definition: IPXactClkInterface.hh:51