diff --git a/src/systemc/core/port.hh b/src/systemc/core/port.hh index eb8dbfef31..bf3b73a84a 100644 --- a/src/systemc/core/port.hh +++ b/src/systemc/core/port.hh @@ -144,7 +144,10 @@ class Port void bind(::sc_core::sc_interface *interface) { - bindings.push_back(new Binding(interface)); + if (bindings.empty()) + addInterface(interface); + else + bindings.push_back(new Binding(interface)); } void