diff options
Diffstat (limited to 'src/systemc')
-rw-r--r-- | src/systemc/core/port.hh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/systemc/core/port.hh b/src/systemc/core/port.hh index eb8dbfef3..bf3b73a84 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 |