Go to the documentation of this file.
28 #ifndef __SYSTEMC_EXT_CHANNEL_SC_INOUT_HH__
29 #define __SYSTEMC_EXT_CHANNEL_SC_INOUT_HH__
33 #include "../core/sc_event.hh"
34 #include "../core/sc_main.hh"
35 #include "../core/sc_port.hh"
36 #include "../dt/bit/sc_logic.hh"
37 #include "../utils/sc_trace_file.hh"
115 sc_trace(params->tf, (*this)->read(), params->name);
120 const T &
read()
const {
return (*this)->read(); }
121 operator const T& ()
const {
return (*this)->read(); }
133 (*this)->write(
i.read());
139 (*this)->write(
p->read());
145 (*this)->write(
p->read());
151 (*this)->write(
p->read());
159 return (*this)->value_changed_event();
161 bool event()
const {
return (*this)->event(); }
164 virtual const char *
kind()
const {
return "sc_inout"; }
279 sc_trace(params->tf, (*this)->read(), params->name);
284 const bool &
read()
const {
return (*this)->read(); }
285 operator const bool& ()
const {
return (*this)->read(); }
287 void write(
const bool &
b) { (*this)->write(
b); }
297 (*this)->write(
i.read());
303 (*this)->write(
p->read());
309 (*this)->write(
p->read());
315 (*this)->write(
p->read());
323 return (*this)->value_changed_event();
327 bool event()
const {
return (*this)->event(); }
328 bool posedge()
const {
return (*this)->posedge(); }
329 bool negedge()
const {
return (*this)->negedge(); }
335 virtual const char *
kind()
const {
return "sc_inout"; }
367 public sc_port<sc_signal_inout_if<sc_dt::sc_logic>, 1>
469 sc_trace(params->tf, (*this)->read(), params->name);
487 (*this)->write(
i.read());
493 (*this)->write(
p->read());
499 (*this)->write(
p->read());
505 (*this)->write(
p->read());
513 return (*this)->value_changed_event();
517 bool event()
const {
return (*this)->event(); }
518 bool posedge()
const {
return (*this)->posedge(); }
519 bool negedge()
const {
return (*this)->negedge(); }
525 virtual const char *
kind()
const {
return "sc_inout"; }
559 #endif //__SYSTEMC_EXT_CHANNEL_SC_INOUT_HH__
sc_event_finder & neg() const
sc_inout(const char *name, sc_port< sc_signal_inout_if< bool >, 1 > &parent)
sc_trace_params_vec traceParamsVec
const sc_event & value_changed_event() const
sc_inout(sc_port< sc_signal_inout_if< T >, 1 > &parent)
sc_event_finder_t< sc_signal_inout_if< sc_dt::sc_logic > > _valueChangedFinder
sc_status sc_get_status()
sc_inout(const char *name, const sc_signal_inout_if< bool > &interface)
void initialize(const sc_dt::sc_logic &l)
sc_inout(const char *name, const sc_signal_inout_if< T > &interface)
sc_event_finder & pos() const
sc_inout(sc_port_b< sc_signal_inout_if< sc_dt::sc_logic > > &parent)
sc_event_finder & pos() const
void add_trace(sc_trace_file *tf, const std::string &name) const
virtual const char * kind() const
void initialize(const T &t)
const sc_event & value_changed_event() const
void write(const bool &b)
const sc_event & default_event() const
sc_event_finder & neg() const
const bool & read() const
virtual void end_of_elaboration()
sc_event_finder & value_changed() const
sc_inout(sc_port_b< sc_signal_inout_if< T > > &parent)
const sc_event & default_event() const
void add_trace(sc_trace_file *tf, const std::string &name) const
const sc_event & value_changed_event() const
void initialize(const sc_signal_in_if< bool > &i)
sc_inout(const char *name, sc_port_b< sc_signal_inout_if< T > > &parent)
sc_event_finder_t< sc_signal_inout_if< T > > _valueChangedFinder
sc_inout(const char *name, sc_port< sc_signal_inout_if< sc_dt::sc_logic >, 1 > &parent)
void initialize(const sc_signal_in_if< sc_dt::sc_logic > &i)
void initialize(const sc_signal_in_if< T > &i)
sc_event_finder & value_changed() const
const sc_event & posedge_event() const
const sc_event & negedge_event() const
sc_inout(const char *name, sc_port_b< sc_signal_inout_if< sc_dt::sc_logic > > &parent)
virtual void end_of_elaboration()
void sc_trace(sc_trace_file *tf, const sc_in< T > &i, const std::string &name)
virtual const char * kind() const
const std::string & name()
const sc_event & negedge_event() const
sc_event_finder_t< sc_signal_inout_if< sc_dt::sc_logic > > _posFinder
virtual void end_of_elaboration()
sc_inout(const sc_signal_inout_if< T > &interface)
sc_event_finder_t< sc_signal_inout_if< sc_dt::sc_logic > > _negFinder
const sc_event & posedge_event() const
sc_inout(const char *name)
virtual const char * kind() const
const sc_event & default_event() const
void sc_trace< bool >(sc_trace_file *tf, const sc_in< bool > &i, const std::string &name)
sc_dt::sc_logic * initValue
sc_inout(sc_port_b< sc_signal_inout_if< bool > > &parent)
void add_trace(sc_trace_file *tf, const std::string &name) const
sc_inout(const char *name, sc_port< sc_signal_inout_if< T >, 1 > &parent)
const sc_dt::sc_logic & read() const
sc_inout(const sc_signal_inout_if< bool > &interface)
sc_trace_params_vec traceParamsVec
const char * name() const
sc_event_finder_t< sc_signal_inout_if< bool > > _posFinder
sc_inout(sc_port< sc_signal_inout_if< sc_dt::sc_logic >, 1 > &parent)
void initialize(const bool &b)
sc_inout(const char *name, const sc_signal_inout_if< sc_dt::sc_logic > &interface)
sc_inout(sc_port< sc_signal_inout_if< bool >, 1 > &parent)
sc_inout(const sc_signal_inout_if< sc_dt::sc_logic > &interface)
sc_event_finder_t< sc_signal_inout_if< bool > > _valueChangedFinder
sc_inout(const char *name)
sc_inout(const char *name, sc_port_b< sc_signal_inout_if< bool > > &parent)
void write(const sc_dt::sc_logic &l)
sc_inout(const char *name)
sc_event_finder_t< sc_signal_inout_if< bool > > _negFinder
sc_inout< T > & operator=(const T &t)
sc_trace_params_vec traceParamsVec
sc_event_finder & value_changed() const
Generated on Wed Sep 30 2020 14:02:15 for gem5 by doxygen 1.8.17