#include <sc_fifo.h>
Inheritance diagram for sc_fifo< T >:


Public Methods | |
| sc_fifo (int size_=16) | |
| sc_fifo (const char *name_, int size_=16) | |
| virtual | ~sc_fifo () |
| virtual void | register_port (sc_port_base &, const char *) |
| virtual void | read (T &) |
| virtual T | read () |
| virtual bool | nb_read (T &) |
| virtual int | num_available () const |
| virtual const sc_event & | data_written_event () const |
| virtual void | write (const T &) |
| virtual bool | nb_write (const T &) |
| virtual int | num_free () const |
| virtual const sc_event & | data_read_event () const |
| operator T () | |
| sc_fifo< T > & | operator= (const T &a) |
| void | trace (sc_trace_file *tf) const |
| virtual void | print (ostream &) const |
| virtual void | dump (ostream &) const |
| virtual const char * | kind () const |
Protected Methods | |
| virtual void | update () |
| void | init (int) |
| void | buf_init (int) |
| bool | buf_write (const T &) |
| bool | buf_read (T &) |
Protected Attributes | |
| int | m_size |
| T * | m_buf |
| int | m_free |
| int | m_ri |
| int | m_wi |
| sc_port_base * | m_reader |
| sc_port_base * | m_writer |
| int | m_num_readable |
| int | m_num_read |
| int | m_num_written |
| sc_event | m_data_read_event |
| sc_event | m_data_written_event |
|
||||||||||
|
Definition at line 66 of file sc_fifo.h. References sc_fifo< T >::init(). |
|
||||||||||||||||
|
Definition at line 70 of file sc_fifo.h. References sc_fifo< T >::init(). |
|
|||||||||
|
Definition at line 77 of file sc_fifo.h. References sc_fifo< T >::m_buf. |
|
||||||||||
|
Definition at line 369 of file sc_fifo.h. References sc_fifo< T >::m_buf, sc_fifo< T >::m_free, sc_fifo< T >::m_ri, sc_fifo< T >::m_size, sc_fifo< T >::m_wi, and SC_REPORT_ERROR. Referenced by sc_fifo< T >::init(). |
|
||||||||||
|
Definition at line 398 of file sc_fifo.h. References sc_fifo< T >::m_buf, sc_fifo< T >::m_free, sc_fifo< T >::m_ri, and sc_fifo< T >::m_size. Referenced by sc_fifo< T >::nb_read(), and sc_fifo< T >::read(). |
|
||||||||||
|
Definition at line 384 of file sc_fifo.h. References sc_fifo< T >::m_buf, sc_fifo< T >::m_free, sc_fifo< T >::m_size, and sc_fifo< T >::m_wi. Referenced by sc_fifo< T >::nb_write(), and sc_fifo< T >::write(). |
|
|||||||||
|
Implements sc_fifo_nonblocking_out_if< T >. Definition at line 121 of file sc_fifo.h. References sc_fifo< T >::m_data_read_event. |
|
|||||||||
|
Implements sc_fifo_nonblocking_in_if< T >. Definition at line 102 of file sc_fifo.h. References sc_fifo< T >::m_data_written_event. |
|
||||||||||
|
Reimplemented from sc_object. Definition at line 314 of file sc_fifo.h. References sc_fifo< T >::m_buf, sc_fifo< T >::m_free, sc_fifo< T >::m_ri, sc_fifo< T >::m_size, sc_fifo< T >::m_wi, and sc_object::name(). |
|
||||||||||
|
Definition at line 353 of file sc_fifo.h. References sc_fifo< T >::buf_init(), sc_fifo< T >::m_num_read, sc_fifo< T >::m_num_readable, sc_fifo< T >::m_num_written, sc_fifo< T >::m_reader, and sc_fifo< T >::m_writer. Referenced by sc_fifo< T >::sc_fifo(). |
|
|||||||||
|
Reimplemented from sc_prim_channel. |
|
||||||||||
|
Implements sc_fifo_nonblocking_in_if< T >. Definition at line 237 of file sc_fifo.h. References sc_fifo< T >::buf_read(), sc_fifo< T >::m_num_read, sc_fifo< T >::num_available(), and sc_prim_channel::request_update(). |
|
||||||||||
|
Implements sc_fifo_nonblocking_out_if< T >. Definition at line 269 of file sc_fifo.h. References sc_fifo< T >::buf_write(), sc_fifo< T >::m_num_written, sc_fifo< T >::num_free(), and sc_prim_channel::request_update(). |
|
|||||||||
|
Implements sc_fifo_in_if< T >. Definition at line 96 of file sc_fifo.h. References sc_fifo< T >::m_num_read, and sc_fifo< T >::m_num_readable. Referenced by sc_fifo< T >::nb_read(), and sc_fifo< T >::read(). |
|
|||||||||
|
Implements sc_fifo_out_if< T >. Definition at line 115 of file sc_fifo.h. References sc_fifo< T >::m_num_readable, sc_fifo< T >::m_num_written, and sc_fifo< T >::m_size. Referenced by sc_fifo< T >::nb_write(), and sc_fifo< T >::write(). |
|
|||||||||
|
Definition at line 127 of file sc_fifo.h. References sc_fifo< T >::read(). |
|
||||||||||
|
Definition at line 131 of file sc_fifo.h. References sc_fifo< T >::write(). |
|
||||||||||
|
Reimplemented from sc_object. Definition at line 300 of file sc_fifo.h. References sc_fifo< T >::m_buf, sc_fifo< T >::m_free, sc_fifo< T >::m_ri, sc_fifo< T >::m_size, and sc_fifo< T >::m_wi. |
|
|||||||||
|
Implements sc_fifo_blocking_in_if< T >. Definition at line 225 of file sc_fifo.h. Referenced by sc_fifo< T >::operator T(). |
|
||||||||||
|
Implements sc_fifo_blocking_in_if< T >. Definition at line 212 of file sc_fifo.h. References sc_fifo< T >::buf_read(), sc_fifo< T >::m_data_written_event, sc_fifo< T >::m_num_read, sc_fifo< T >::num_available(), sc_prim_channel::request_update(), and sc_prim_channel::wait(). |
|
||||||||||||||||
|
Reimplemented from sc_interface. Definition at line 187 of file sc_fifo.h. References sc_fifo< T >::m_reader, sc_fifo< T >::m_writer, and SC_REPORT_ERROR. |
|
||||||||||
|
Reimplemented from sc_object. Definition at line 284 of file sc_fifo.h. References sc_fifo< T >::m_buf, sc_fifo< T >::m_size, sc_object::name(), and sprintf(). |
|
|||||||||
|
Reimplemented from sc_prim_channel. Definition at line 332 of file sc_fifo.h. References sc_fifo< T >::m_data_read_event, sc_fifo< T >::m_data_written_event, sc_fifo< T >::m_free, sc_fifo< T >::m_num_read, sc_fifo< T >::m_num_readable, sc_fifo< T >::m_num_written, sc_fifo< T >::m_size, and sc_event::notify_delayed(). |
|
||||||||||
|
Implements sc_fifo_blocking_out_if< T >. Definition at line 254 of file sc_fifo.h. References sc_fifo< T >::buf_write(), sc_fifo< T >::m_data_read_event, sc_fifo< T >::m_num_written, sc_fifo< T >::num_free(), sc_prim_channel::request_update(), and sc_prim_channel::wait(). Referenced by sc_fifo< T >::operator=(). |
|
|||||
|
Definition at line 159 of file sc_fifo.h. Referenced by sc_fifo< T >::buf_init(), sc_fifo< T >::buf_read(), sc_fifo< T >::buf_write(), sc_fifo< T >::dump(), sc_fifo< T >::print(), sc_fifo< T >::trace(), and sc_fifo< T >::~sc_fifo(). |
|
|||||
|
Definition at line 171 of file sc_fifo.h. Referenced by sc_fifo< T >::data_read_event(), sc_fifo< T >::update(), and sc_fifo< T >::write(). |
|
|||||
|
Definition at line 172 of file sc_fifo.h. Referenced by sc_fifo< T >::data_written_event(), sc_fifo< T >::read(), and sc_fifo< T >::update(). |
|
|||||
|
Definition at line 160 of file sc_fifo.h. Referenced by sc_fifo< T >::buf_init(), sc_fifo< T >::buf_read(), sc_fifo< T >::buf_write(), sc_fifo< T >::dump(), sc_fifo< T >::print(), and sc_fifo< T >::update(). |
|
|||||
|
Definition at line 168 of file sc_fifo.h. Referenced by sc_fifo< T >::init(), sc_fifo< T >::nb_read(), sc_fifo< T >::num_available(), sc_fifo< T >::read(), and sc_fifo< T >::update(). |
|
|||||
|
Definition at line 167 of file sc_fifo.h. Referenced by sc_fifo< T >::init(), sc_fifo< T >::num_available(), sc_fifo< T >::num_free(), and sc_fifo< T >::update(). |
|
|||||
|
Definition at line 169 of file sc_fifo.h. Referenced by sc_fifo< T >::init(), sc_fifo< T >::nb_write(), sc_fifo< T >::num_free(), sc_fifo< T >::update(), and sc_fifo< T >::write(). |
|
|||||
|
Definition at line 164 of file sc_fifo.h. Referenced by sc_fifo< T >::init(), and sc_fifo< T >::register_port(). |
|
|||||
|
Definition at line 161 of file sc_fifo.h. Referenced by sc_fifo< T >::buf_init(), sc_fifo< T >::buf_read(), sc_fifo< T >::dump(), and sc_fifo< T >::print(). |
|
|||||
|
Definition at line 158 of file sc_fifo.h. Referenced by sc_fifo< T >::buf_init(), sc_fifo< T >::buf_read(), sc_fifo< T >::buf_write(), sc_fifo< T >::dump(), sc_fifo< T >::num_free(), sc_fifo< T >::print(), sc_fifo< T >::trace(), and sc_fifo< T >::update(). |
|
|||||
|
Definition at line 162 of file sc_fifo.h. Referenced by sc_fifo< T >::buf_init(), sc_fifo< T >::buf_write(), sc_fifo< T >::dump(), and sc_fifo< T >::print(). |
|
|||||
|
Definition at line 165 of file sc_fifo.h. Referenced by sc_fifo< T >::init(), and sc_fifo< T >::register_port(). |
1.2.18