Module::Module(const char *name) :
_name(name), _sc_mod(nullptr), _obj(nullptr), _ended(false),
- _deprecatedConstructor(false)
+ _deprecatedConstructor(false), bindingIndex(0)
{
panic_if(_new_module, "Previous module not finished.\n");
_new_module = this;
auto proxyIt = proxies.begin();
auto portIt = ports.begin();
+ portIt += bindingIndex;
for (; proxyIt != proxies.end(); proxyIt++, portIt++) {
auto proxy = *proxyIt;
auto port = *portIt;
else
port->vbind(*proxy->port());
}
+ bindingIndex += proxies.size();
}
void
std::vector<::sc_core::sc_port_base *> ports;
std::vector<::sc_core::sc_export_base *> exports;
+ int bindingIndex;
+
void beforeEndOfElaboration();
void endOfElaboration();
void startOfSimulation();