diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/systemc/core/sc_module.cc | 28 | ||||
-rw-r--r-- | src/systemc/ext/core/sc_module.hh | 6 |
2 files changed, 34 insertions, 0 deletions
diff --git a/src/systemc/core/sc_module.cc b/src/systemc/core/sc_module.cc index 42fff3271..175b9db63 100644 --- a/src/systemc/core/sc_module.cc +++ b/src/systemc/core/sc_module.cc @@ -210,6 +210,34 @@ sc_module::operator () (const sc_bind_proxy &p001, _gem5_module->bindPorts(proxies); } +sc_module & +sc_module::operator << (sc_interface &iface) +{ + (*this)(iface); + return *this; +} + +sc_module & +sc_module::operator << (sc_port_base &pb) +{ + (*this)(pb); + return *this; +} + +sc_module & +sc_module::operator , (sc_interface &iface) +{ + (*this)(iface); + return *this; +} + +sc_module & +sc_module::operator , (sc_port_base &pb) +{ + (*this)(pb); + return *this; +} + const std::vector<sc_object *> & sc_module::get_child_objects() const { diff --git a/src/systemc/ext/core/sc_module.hh b/src/systemc/ext/core/sc_module.hh index d318a755e..dea728fba 100644 --- a/src/systemc/ext/core/sc_module.hh +++ b/src/systemc/ext/core/sc_module.hh @@ -166,6 +166,12 @@ class sc_module : public sc_object const sc_bind_proxy &p063 = SC_BIND_PROXY_NIL, const sc_bind_proxy &p064 = SC_BIND_PROXY_NIL); + // Deprecated + sc_module &operator << (sc_interface &); + sc_module &operator << (sc_port_base &); + sc_module &operator , (sc_interface &); + sc_module &operator , (sc_port_base &); + virtual const std::vector<sc_object *> &get_child_objects() const; virtual const std::vector<sc_event *> &get_child_events() const; |