14#ifndef SIMICS_SYSTEMC_AWARENESS_SC_PORT_CONNECTION_H
15#define SIMICS_SYSTEMC_AWARENESS_SC_PORT_CONNECTION_H
39 typedef std::pair<sc_core::sc_interface *, std::string>
keytype;
40 typedef std::vector<sc_core::sc_port_base *>
valuetype;
43 void init(sc_core::sc_object *
object,
51 static std::map<keytype, valuetype>
ports_;
56 Item(sc_core::sc_interface *iface)
57 : iface_(iface), port_(NULL) {}
58 Item(sc_core::sc_port_base *port)
59 : iface_(NULL), port_(port) {}
61 sc_core::sc_interface* iface_;
62 sc_core::sc_port_base* port_;
65 int countLevels(sc_core::sc_object *
object);
66 std::string extractStem(sc_core::sc_object *
object);
67 conf_object_t *ifaceToObj(sc_core::sc_interface *iface);
68 bool compareStem(std::string stem, sc_core::sc_object *
object);
69 std::vector<Item> bind_info_;
70 sc_core::sc_port_base *base_;
71 std::string base_typename_;
72 int max_number_of_proxies_;
Definition: sc_port_connection.h:37
int max_number_of_proxies() override
static std::map< keytype, valuetype > ports_
Definition: sc_port_connection.h:51
void init(sc_core::sc_object *object, iface::SimulationInterface *simulation)
virtual ~ScPortConnection()
std::pair< sc_core::sc_interface *, std::string > keytype
Definition: sc_port_connection.h:39
std::vector< sc_core::sc_port_base * > valuetype
Definition: sc_port_connection.h:40
std::vector< conf_object_t * > port_to_proxies() override
const char * if_typename() override
Definition: sc_port_interface.h:25
Interface to the SystemC simulation.
Definition: simulation_interface.h:25