45reportError(
const char *
id,
const char *add_msg,
46 const char *
name,
const char *kind)
63 reportError(SC_ID_INSERT_PORT_,
"simulation running",
67 reportError(SC_ID_INSERT_PORT_,
"elaboration done",
73 reportError(SC_ID_PORT_OUTSIDE_MODULE_,
nullptr,
name(),
kind());
75 m->ports.push_back(
this);
76 _gem5Port = new ::sc_gem5::Port(
this, max_size);
87 static bool warned =
false;
90 "interface and/or port binding in port constructors "
99 std::ostringstream
ss;
101 ss << add_msg <<
": ";
102 ss <<
"port '" <<
name() <<
"' (" <<
kind() <<
")";
const char * name() const
const char * kind() const
::sc_gem5::Port * _gem5Port
void bind(sc_interface &)
void report_error(const char *id, const char *add_msg) const
void warn_port_constructor() const
sc_port_base(const char *name, int n, sc_port_policy p)
void bind(::sc_core::sc_interface *interface)
std::string csprintf(const char *format, const Args &...args)
static Module * pickParentModule()
#define SC_REPORT_INFO(msg_type, msg)
#define SC_REPORT_ERROR(msg_type, msg)
const std::string & name()