Go to the documentation of this file.
28 #ifndef __SYSTEMC_EXT_CHANNEL_SC_FIFO_HH__
29 #define __SYSTEMC_EXT_CHANNEL_SC_FIFO_HH__
34 #include "../core/sc_module.hh"
35 #include "../core/sc_prim.hh"
36 #include "../utils/sc_report_handler.hh"
71 std::string tn(iface_type_name);
84 "sc_fifo<T> port not recognized");
116 operator T() {
return read(); }
162 for (typename ::std::list<T>::iterator pos =
_entries.begin();
164 os << *pos << ::std::endl;
170 os <<
"name = " <<
name() << std::endl;
172 for (typename ::std::list<T>::iterator pos =
_entries.begin();
174 os <<
"value[" << idx++ <<
"] = " << *pos << ::std::endl;
177 virtual const char *
kind()
const {
return "sc_fifo"; }
216 inline std::ostream &
225 #endif //__SYSTEMC_EXT_CHANNEL_SC_FIFO_HH__
virtual void print(std::ostream &os=std::cout) const
sc_fifo(const sc_fifo< T > &)
const char SC_ID_MORE_THAN_ONE_FIFO_WRITER_[]
sc_fifo< T > & operator=(const T &t)
virtual const char * kind() const
const sc_time SC_ZERO_TIME
virtual const sc_event & data_read_event() const
virtual void write(const T &t)
virtual void dump(std::ostream &os=std::cout) const
#define SC_REPORT_ERROR(msg_type, msg)
std::ostream & operator<<(std::ostream &os, sc_status s)
virtual void register_port(sc_port_base &port, const char *iface_type_name)
const char * sc_gen_unique_name(const char *seed)
sc_fifo(const char *name, int size=16)
const char SC_ID_MORE_THAN_ONE_FIFO_READER_[]
virtual bool nb_read(T &t)
sc_gem5::InternalScEvent _dataWriteEvent
const char * name() const
virtual const sc_event & data_written_event() const
virtual int num_free() const
const char SC_ID_BIND_IF_TO_PORT_[]
sc_gem5::InternalScEvent _dataReadEvent
virtual int num_available() const
virtual bool nb_write(const T &t)
Generated on Wed Sep 30 2020 14:02:15 for gem5 by doxygen 1.8.17