28#ifndef __SYSTEMC_EXT_CHANNEL_SC_FIFO_HH__
29#define __SYSTEMC_EXT_CHANNEL_SC_FIFO_HH__
72 std::string tn(iface_type_name);
85 "sc_fifo<T> port not recognized");
117 operator T() {
return read(); }
161 print(std::ostream &os=std::cout)
const
163 for (typename ::std::list<T>::iterator pos =
_entries.begin();
165 os << *pos << ::std::endl;
169 dump(std::ostream &os=std::cout)
const
171 os <<
"name = " <<
name() << std::endl;
173 for (typename ::std::list<T>::iterator pos =
_entries.begin();
175 os <<
"value[" << idx++ <<
"] = " << *pos << ::std::endl;
178 virtual const char *
kind()
const {
return "sc_fifo"; }
virtual int num_available() const
virtual const sc_event & data_written_event() const
sc_fifo< T > & operator=(const T &t)
virtual int num_free() const
virtual void print(std::ostream &os=std::cout) const
virtual const sc_event & data_read_event() const
sc_gem5::InternalScEvent _dataWriteEvent
virtual void write(const T &t)
virtual const char * kind() const
virtual void dump(std::ostream &os=std::cout) const
virtual bool nb_read(T &t)
virtual bool nb_write(const T &t)
sc_gem5::InternalScEvent _dataReadEvent
virtual void register_port(sc_port_base &port, const char *iface_type_name)
sc_fifo(const sc_fifo< T > &)
sc_fifo(const char *name, int size=16)
const char * name() const
std::ostream & operator<<(std::ostream &os, sc_status s)
#define SC_REPORT_ERROR(msg_type, msg)