Go to the documentation of this file.
43 "set_interface_property";
67 name_(name), declaration_(declaration) {
93 SOPCPort port = {hdlName, interfaceName, direction, width};
113 <<
"# " <<
name_ << endl
136 PropertyMap::const_iterator iter =
properties_.begin();
140 <<
" " << iter->second << endl;
149 for (
unsigned int i = 0; i <
ports_.size(); i++) {
152 <<
ports_.at(i).hdlName <<
" " <<
ports_.at(i).interfaceName
161 assert(
false &&
"Invalid port direction");
163 stream <<
ports_.at(i).width << endl;
const PropertyMap * properties() const
void setProperty(const TCEString &propertyName, const TCEString &propertyValue)
static const TCEString SOPC_ADD_INT_PORT
static const TCEString SOPC_ASSOCIATED_CLOCK
std::vector< SOPCPort > PortList
static const TCEString SOPC_CLOCK_INT_DECLR
static const TCEString SOPC_IRQ_RECV_INT_NAME
@ BIDIR
Bidirectional port.
virtual void writeInterface(std::ostream &stream) const
static std::string toString(const T &source)
static const TCEString SOPC_ADD_INTERFACE
#define assert(condition)
static const TCEString SOPC_EXPORT_NAME
void writePorts(std::ostream &stream) const
void setPort(const TCEString &hdlName, const TCEString &interfaceName, ProGe::Direction direction, int width)
static const TCEString SOPC_MASTER_INT_DECLR
const PortList * ports() const
static const TCEString SOPC_IRQ_RECV_INT_DECLR
static const TCEString SOPC_BIDIR
static const TCEString SOPC_EXPORT_INT_NAME
static const TCEString SOPC_SET_INT_PROPERTY
static const TCEString SOPC_MASTER_INT_NAME
static const TCEString SOPC_OUTPUT
static const TCEString SOPC_CLOCK_INT_NAME
static const TCEString SOPC_EXPORT_INT_DECLR
static const TCEString SOPC_INPUT
std::map< TCEString, TCEString > PropertyMap
void writeProperties(std::ostream &stream) const
Direction
Direction of the port.