#include <rc_fifo.h>
Definition at line 50 of file rc_fifo.h.
Public Member Functions | |
rc_fifo (int size_=16) | |
rc_fifo (const char *name_, int size_=16) | |
virtual const char * | kind () const |
virtual void | register_port (sc_port_base &port_, const char *if_name_) |
virtual void | read (T &value) |
virtual T | read () |
virtual bool | nb_read (T &value) |
virtual int | num_available () const |
virtual void | write (const T &value) |
virtual bool | nb_write (const T &value) |
virtual int | num_free () const |
virtual const sc_event & | data_written_event () const |
virtual const sc_event & | data_read_event () const |
operator T () | |
rc_fifo< T > & | operator= (const T &value) |
virtual void | print (std::ostream &os=std::cout) const |
virtual void | dump (std::ostream &os=std::cout) const |
Protected Member Functions | |
virtual void | update () |
RC_ON_INIT_RESETTABLE () | |
RC_ON_RESET () | |
Protected Attributes | |
std::deque< T > | m_deque |
const unsigned int | m_max_size |
unsigned int | m_num_read |
unsigned int | m_num_written |
sc_event | m_data_read_event |
sc_event | m_data_written_event |
const sc_port_base * | m_reader_port |
const sc_port_base * | m_writer_port |
std::vector< T > | m_reset_values |
Private Member Functions | |
rc_fifo (const rc_fifo< T > &other) | |
rc_fifo< T > & | operator= (const rc_fifo< T > &other) |
rc_fifo | ( | const char * | name_, | |
int | size_ = 16 | |||
) | [inline, explicit] |
void register_port | ( | sc_port_base & | port_, | |
const char * | if_name_ | |||
) | [inline, virtual] |
T read | ( | ) | [inline, virtual] |
void write | ( | const T & | value | ) | [inline, virtual] |
virtual const sc_event& data_written_event | ( | ) | const [inline, virtual] |
virtual const sc_event& data_read_event | ( | ) | const [inline, virtual] |
void print | ( | std::ostream & | os = std::cout |
) | const [inline, virtual] |
void dump | ( | std::ostream & | os = std::cout |
) | const [inline, virtual] |
RC_ON_INIT_RESETTABLE | ( | ) | [inline, protected] |
RC_ON_RESET | ( | ) | [inline, protected] |
std::deque<T> m_deque [protected] |
Definition at line 129 of file rc_fifo.h.
Referenced by rc_fifo::dump(), rc_fifo::nb_read(), rc_fifo::nb_write(), rc_fifo::num_available(), rc_fifo::num_free(), rc_fifo::print(), rc_fifo::RC_ON_INIT_RESETTABLE(), rc_fifo::RC_ON_RESET(), rc_fifo::read(), and rc_fifo::write().
const unsigned int m_max_size [protected] |
unsigned int m_num_read [protected] |
Definition at line 131 of file rc_fifo.h.
Referenced by rc_fifo::nb_read(), rc_fifo::RC_ON_RESET(), rc_fifo::read(), and rc_fifo::update().
unsigned int m_num_written [protected] |
Definition at line 132 of file rc_fifo.h.
Referenced by rc_fifo::nb_write(), rc_fifo::num_available(), rc_fifo::RC_ON_RESET(), rc_fifo::update(), and rc_fifo::write().
sc_event m_data_read_event [protected] |
Definition at line 134 of file rc_fifo.h.
Referenced by rc_fifo::data_read_event(), rc_fifo::RC_ON_RESET(), rc_fifo::update(), and rc_fifo::write().
sc_event m_data_written_event [protected] |
Definition at line 135 of file rc_fifo.h.
Referenced by rc_fifo::data_written_event(), rc_fifo::RC_ON_RESET(), rc_fifo::read(), and rc_fifo::update().
const sc_port_base* m_reader_port [protected] |
const sc_port_base* m_writer_port [protected] |
std::vector<T> m_reset_values [protected] |
Definition at line 140 of file rc_fifo.h.
Referenced by rc_fifo::RC_ON_INIT_RESETTABLE(), and rc_fifo::RC_ON_RESET().