OpenASIP
2.0
|
#include <SOPCInterface.hh>
Classes | |
struct | SOPCPort |
Public Member Functions | |
SOPCInterface (TCEString name, TCEString declaration) | |
virtual | ~SOPCInterface () |
void | setProperty (const TCEString &propertyName, const TCEString &propertyValue) |
void | setProperty (const TCEString &propertyName, int propertyValue) |
void | setPort (const TCEString &hdlName, const TCEString &interfaceName, ProGe::Direction direction, int width) |
TCEString | name () const |
bool | hasPorts () const |
virtual void | writeInterface (std::ostream &stream) const |
Static Public Attributes | |
static const TCEString | SOPC_ADD_INTERFACE |
static const TCEString | SOPC_SET_INT_PROPERTY |
static const TCEString | SOPC_ADD_INT_PORT |
static const TCEString | SOPC_ASSOCIATED_CLOCK |
static const TCEString | SOPC_MASTER_INT_NAME = "avalon_master" |
static const TCEString | SOPC_MASTER_INT_DECLR = "avalon start" |
static const TCEString | SOPC_CLOCK_INT_NAME = "clock_reset" |
static const TCEString | SOPC_CLOCK_INT_DECLR = "clock end" |
static const TCEString | SOPC_EXPORT_INT_NAME = "conduit_interface" |
static const TCEString | SOPC_EXPORT_INT_DECLR = "conduit end" |
static const TCEString | SOPC_EXPORT_NAME = "export" |
static const TCEString | SOPC_IRQ_RECV_INT_NAME = "interrupt_recv" |
static const TCEString | SOPC_IRQ_RECV_INT_DECLR = "interrupt start" |
static const TCEString | SOPC_INPUT = "Input" |
static const TCEString | SOPC_OUTPUT = "Output" |
static const TCEString | SOPC_BIDIR = "Bidir" |
Protected Types | |
typedef std::map< TCEString, TCEString > | PropertyMap |
typedef std::vector< SOPCPort > | PortList |
Protected Member Functions | |
const PropertyMap * | properties () const |
const PortList * | ports () const |
void | writeProperties (std::ostream &stream) const |
void | writePorts (std::ostream &stream) const |
Private Member Functions | |
SOPCInterface () | |
SOPCInterface (const SOPCInterface &old) | |
SOPCInterface & | operator= (SOPCInterface old) |
Private Attributes | |
TCEString | name_ |
TCEString | declaration_ |
PropertyMap | properties_ |
PortList | ports_ |
Definition at line 41 of file SOPCInterface.hh.
|
protected |
Definition at line 99 of file SOPCInterface.hh.
|
protected |
Definition at line 98 of file SOPCInterface.hh.
Definition at line 66 of file SOPCInterface.cc.
|
virtual |
Definition at line 70 of file SOPCInterface.cc.
|
private |
Referenced by AvalonMMMasterInterface::addIrqInterface().
|
private |
bool SOPCInterface::hasPorts | ( | ) | const |
Definition at line 104 of file SOPCInterface.cc.
References ports_.
Referenced by SOPCBuilderFileGenerator::writeInterfaces().
TCEString SOPCInterface::name | ( | ) | const |
Definition at line 98 of file SOPCInterface.cc.
References name_.
Referenced by AvalonMMMasterInterface::addIrqInterface(), AvalonMMMasterInterface::AvalonMMMasterInterface(), and SOPCBuilderFileGenerator::SOPCBuilderFileGenerator().
|
private |
|
protected |
Definition at line 127 of file SOPCInterface.cc.
References ports_.
|
protected |
Definition at line 121 of file SOPCInterface.cc.
References properties_.
void SOPCInterface::setPort | ( | const TCEString & | hdlName, |
const TCEString & | interfaceName, | ||
ProGe::Direction | direction, | ||
int | width | ||
) |
Definition at line 90 of file SOPCInterface.cc.
References ports_.
Referenced by AvalonMMMasterInterface::addIrqInterface(), AvalonMMMasterInterface::addPort(), SOPCBuilderFileGenerator::exportSignal(), and SOPCBuilderFileGenerator::SOPCBuilderFileGenerator().
Definition at line 73 of file SOPCInterface.cc.
References properties_.
Referenced by AvalonMMMasterInterface::addIrqInterface(), AvalonMMMasterInterface::AvalonMMMasterInterface(), setProperty(), and SOPCBuilderFileGenerator::SOPCBuilderFileGenerator().
void SOPCInterface::setProperty | ( | const TCEString & | propertyName, |
int | propertyValue | ||
) |
Definition at line 81 of file SOPCInterface.cc.
References setProperty(), and Conversion::toString().
|
virtual |
Reimplemented in AvalonMMMasterInterface.
Definition at line 110 of file SOPCInterface.cc.
References declaration_, name_, SOPC_ADD_INTERFACE, writePorts(), and writeProperties().
Referenced by AvalonMMMasterInterface::writeInterface(), and SOPCBuilderFileGenerator::writeInterfaces().
|
protected |
Definition at line 147 of file SOPCInterface.cc.
References assert, ProGe::BIDIR, ProGe::IN, name_, ProGe::OUT, ports_, SOPC_ADD_INT_PORT, SOPC_BIDIR, SOPC_INPUT, and SOPC_OUTPUT.
Referenced by writeInterface().
|
protected |
Definition at line 134 of file SOPCInterface.cc.
References name_, properties_, and SOPC_SET_INT_PROPERTY.
Referenced by writeInterface().
|
private |
Definition at line 115 of file SOPCInterface.hh.
Referenced by writeInterface().
|
private |
Definition at line 114 of file SOPCInterface.hh.
Referenced by name(), writeInterface(), writePorts(), and writeProperties().
|
private |
Definition at line 117 of file SOPCInterface.hh.
Referenced by hasPorts(), ports(), setPort(), and writePorts().
|
private |
Definition at line 116 of file SOPCInterface.hh.
Referenced by properties(), setProperty(), and writeProperties().
|
static |
Definition at line 69 of file SOPCInterface.hh.
Referenced by writePorts().
|
static |
Definition at line 67 of file SOPCInterface.hh.
Referenced by writeInterface().
|
static |
Definition at line 70 of file SOPCInterface.hh.
Referenced by AvalonMMMasterInterface::addIrqInterface(), AvalonMMMasterInterface::AvalonMMMasterInterface(), and SOPCBuilderFileGenerator::SOPCBuilderFileGenerator().
|
static |
Definition at line 87 of file SOPCInterface.hh.
Referenced by writePorts().
|
static |
Definition at line 76 of file SOPCInterface.hh.
|
static |
Definition at line 75 of file SOPCInterface.hh.
|
static |
Definition at line 79 of file SOPCInterface.hh.
|
static |
Definition at line 78 of file SOPCInterface.hh.
|
static |
Definition at line 80 of file SOPCInterface.hh.
Referenced by SOPCBuilderFileGenerator::exportSignal().
|
static |
Definition at line 85 of file SOPCInterface.hh.
Referenced by writePorts().
|
static |
Definition at line 83 of file SOPCInterface.hh.
Referenced by AvalonMMMasterInterface::addIrqInterface().
|
static |
Definition at line 82 of file SOPCInterface.hh.
Referenced by AvalonMMMasterInterface::addIrqInterface().
|
static |
Definition at line 73 of file SOPCInterface.hh.
Referenced by SOPCBuilderFileGenerator::handleAvalonSignal().
|
static |
Definition at line 72 of file SOPCInterface.hh.
Referenced by SOPCBuilderFileGenerator::handleAvalonSignal().
|
static |
Definition at line 86 of file SOPCInterface.hh.
Referenced by writePorts().
|
static |
Definition at line 68 of file SOPCInterface.hh.
Referenced by writeProperties().