diff options
author | Gabe Black <gabeblack@google.com> | 2018-09-15 15:24:28 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-10-09 21:52:42 +0000 |
commit | dd017903991f51e1fa8df8dbc21cbb4a1501c1c1 (patch) | |
tree | 39f7e475414aaeef75dbb2bb2d9f7f7b30ff367f /src/systemc/ext/channel/sc_out_rv.hh | |
parent | fad9488643dbf09e4d99b89b6b775fd6f1b24ba6 (diff) | |
download | gem5-dd017903991f51e1fa8df8dbc21cbb4a1501c1c1.tar.xz |
systemc: Implement the sc_signal_rv channel and ports.
Change-Id: Id1a3fd2ded224bbe94a4a65e0acf34a3547aedcc
Reviewed-on: https://gem5-review.googlesource.com/c/12813
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc/ext/channel/sc_out_rv.hh')
-rw-r--r-- | src/systemc/ext/channel/sc_out_rv.hh | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/systemc/ext/channel/sc_out_rv.hh b/src/systemc/ext/channel/sc_out_rv.hh index af5b05526..ace1f05c5 100644 --- a/src/systemc/ext/channel/sc_out_rv.hh +++ b/src/systemc/ext/channel/sc_out_rv.hh @@ -56,33 +56,33 @@ class sc_out_rv : public sc_inout_rv<W> virtual ~sc_out_rv() {}; sc_out_rv<W> & - operator = (const sc_dt::sc_lv<W> &) + operator = (const sc_dt::sc_lv<W> &l) { - sc_channel_warn_unimpl(__PRETTY_FUNCTION__); + (*this)->write(l); return *this; } sc_out_rv<W> & - operator = (const sc_signal_in_if<sc_dt::sc_lv<W>> &) + operator = (const sc_signal_in_if<sc_dt::sc_lv<W>> &i) { - sc_channel_warn_unimpl(__PRETTY_FUNCTION__); + (*this)->write(i.read()); return *this; } sc_out_rv<W> & - operator = (const sc_port<sc_signal_in_if<sc_dt::sc_lv<W>>, 1> &) + operator = (const sc_port<sc_signal_in_if<sc_dt::sc_lv<W>>, 1> &p) { - sc_channel_warn_unimpl(__PRETTY_FUNCTION__); + (*this)->write(p->read()); return *this; } sc_out_rv<W> & - operator = (const sc_port<sc_signal_inout_if<sc_dt::sc_lv<W>>, 1> &) + operator = (const sc_port<sc_signal_inout_if<sc_dt::sc_lv<W>>, 1> &p) { - sc_channel_warn_unimpl(__PRETTY_FUNCTION__); + (*this)->write(p->read()); return *this; } sc_out_rv<W> & - operator = (const sc_out_rv<W> &) + operator = (const sc_out_rv<W> &p) { - sc_channel_warn_unimpl(__PRETTY_FUNCTION__); + (*this)->write(p->read()); return *this; } |