Go to the documentation of this file.
28 #ifndef __SYSTEMC_EXT_CHANNEL_SC_IN_HH__
29 #define __SYSTEMC_EXT_CHANNEL_SC_IN_HH__
33 #include "../core/sc_event.hh"
34 #include "../core/sc_main.hh"
35 #include "../core/sc_port.hh"
36 #include "../utils/sc_trace_file.hh"
47 class sc_in :
public sc_port<sc_signal_in_if<T>, 1>
119 sc_trace(params->tf, (*this)->read(), params->name);
124 const T &
read()
const {
return (*this)->read(); }
125 operator const T& ()
const {
return (*this)->read(); }
131 return (*this)->value_changed_event();
133 bool event()
const {
return (*this)->event(); }
136 virtual const char *
kind()
const {
return "sc_in"; }
263 sc_trace(params->tf, (*this)->read(), params->name);
268 const bool &
read()
const {
return (*this)->read(); }
269 operator const bool& ()
const {
return (*this)->read(); }
275 return (*this)->value_changed_event();
280 return (*this)->posedge_event();
285 return (*this)->negedge_event();
288 bool event()
const {
return (*this)->event(); }
289 bool posedge()
const {
return (*this)->posedge(); }
290 bool negedge()
const {
return (*this)->negedge(); }
296 virtual const char *
kind()
const {
return "sc_in"; }
319 const std::string &
name)
329 public sc_port<sc_signal_in_if<sc_dt::sc_logic>, 1>
431 sc_trace(params->tf, (*this)->read(), params->name);
443 return (*this)->value_changed_event();
448 bool event()
const {
return (*this)->event(); }
449 bool posedge()
const {
return (*this)->posedge(); }
450 bool negedge()
const {
return (*this)->negedge(); }
456 virtual const char *
kind()
const {
return "sc_in"; }
480 const std::string &
name)
490 #endif //__SYSTEMC_EXT_CHANNEL_SC_IN_HH__
const sc_event & default_event() const
sc_in(sc_port_b< sc_signal_in_if< bool > > &parent)
sc_event_finder_t< sc_signal_in_if< sc_dt::sc_logic > > _posFinder
sc_status sc_get_status()
sc_event_finder_t< sc_signal_in_if< sc_dt::sc_logic > > _negFinder
void operator()(const sc_signal_in_if< T > &i)
sc_event_finder & pos() const
sc_event_finder_t< sc_signal_in_if< bool > > _negFinder
sc_in(const sc_signal_in_if< T > &interface)
sc_in(sc_port< sc_signal_in_if< sc_dt::sc_logic >, 1 > &parent)
const sc_event & posedge_event() const
virtual void bind(sc_port< sc_signal_in_if< T >, 1 > &i)
sc_in(const char *name, sc_port_b< sc_signal_in_if< bool > > &parent)
sc_in(const char *name, const sc_signal_in_if< T > &interface)
sc_event_finder_t< sc_signal_in_if< bool > > _valueChangedFinder
const sc_event & value_changed_event() const
sc_in(const char *name, const sc_signal_in_if< bool > &interface)
sc_event_finder & value_changed() const
void bind(sc_interface &)
const sc_event & negedge_event() const
sc_trace_params_vec traceParamsVec
void add_trace(sc_trace_file *tf, const std::string &name) const
const sc_event & negedge_event() const
sc_trace_params_vec traceParamsVec
sc_in(const sc_signal_in_if< sc_dt::sc_logic > &interface)
sc_in(const char *name, sc_port_b< sc_signal_in_if< sc_dt::sc_logic > > &parent)
sc_event_finder & pos() const
sc_in(const char *name, sc_port< sc_signal_in_if< T >, 1 > &parent)
sc_in(const char *name, const sc_signal_in_if< sc_dt::sc_logic > &interface)
sc_in(const char *name, sc_port< sc_signal_in_if< sc_dt::sc_logic >, 1 > &parent)
virtual void bind(const sc_signal_in_if< sc_dt::sc_logic > &i)
virtual const char * kind() const
sc_event_finder_t< sc_signal_in_if< sc_dt::sc_logic > > _valueChangedFinder
sc_event_finder & neg() const
virtual void bind(sc_port< sc_signal_in_if< sc_dt::sc_logic >, 1 > &i)
sc_event_finder & value_changed() const
virtual const char * kind() const
virtual void bind(sc_port< sc_signal_inout_if< sc_dt::sc_logic >, 1 > &p)
sc_in(sc_port_b< sc_signal_in_if< T > > &parent)
void add_trace(sc_trace_file *tf, const std::string &name) const
sc_in(sc_port< sc_signal_in_if< T >, 1 > &parent)
void sc_trace(sc_trace_file *tf, const sc_in< T > &i, const std::string &name)
const sc_event & value_changed_event() const
sc_in(const sc_signal_in_if< bool > &interface)
sc_in(sc_port< sc_signal_in_if< bool >, 1 > &parent)
const std::string & name()
sc_event_finder_t< sc_signal_in_if< bool > > _posFinder
const sc_event & default_event() const
sc_event_finder_t< sc_signal_in_if< T > > _valueChangedFinder
virtual void end_of_elaboration()
sc_event_finder & value_changed() const
sc_in(const char *name, sc_port< sc_signal_in_if< bool >, 1 > &parent)
void add_trace(sc_trace_file *tf, const std::string &name) const
virtual void bind(sc_port< sc_signal_in_if< bool >, 1 > &p)
virtual const char * kind() const
const sc_dt::sc_logic & read() const
void sc_trace< bool >(sc_trace_file *tf, const sc_in< bool > &i, const std::string &name)
sc_event_finder & neg() const
const sc_event & value_changed_event() const
virtual void bind(sc_port< sc_signal_inout_if< T >, 1 > &p)
virtual void bind(const sc_signal_in_if< T > &i)
sc_trace_params_vec traceParamsVec
const sc_event & posedge_event() const
virtual void bind(sc_port< sc_signal_inout_if< bool >, 1 > &p)
virtual void end_of_elaboration()
virtual void bind(const sc_signal_in_if< bool > &i)
sc_in(sc_port_b< sc_signal_in_if< sc_dt::sc_logic > > &parent)
virtual void end_of_elaboration()
const bool & read() const
sc_in< T > & operator=(const sc_in< T > &)
sc_in(const char *name, sc_port_b< sc_signal_in_if< T > > &parent)
const sc_event & default_event() const
Generated on Wed Sep 30 2020 14:02:15 for gem5 by doxygen 1.8.17