#include <tlm_fifo.h>
Public Member Functions | |
tlm_fifo (int size_=1) | |
tlm_fifo (const char *name_, int size_=1) | |
virtual | ~tlm_fifo () |
T | get (tlm_tag< T > *t=0) |
bool | nb_get (T &) |
bool | nb_can_get (tlm_tag< T > *t=0) const |
const sc_core::sc_event & | ok_to_get (tlm_tag< T > *t=0) const |
T | peek (tlm_tag< T > *t=0) const |
bool | nb_peek (T &) const |
bool | nb_can_peek (tlm_tag< T > *t=0) const |
const sc_core::sc_event & | ok_to_peek (tlm_tag< T > *t=0) const |
void | put (const T &) |
bool | nb_put (const T &) |
bool | nb_can_put (tlm_tag< T > *t=0) const |
const sc_core::sc_event & | ok_to_put (tlm_tag< T > *t=0) const |
void | nb_expand (unsigned int n=1) |
void | nb_unbound (unsigned int n=16) |
bool | nb_reduce (unsigned int n=1) |
bool | nb_bound (unsigned int n) |
bool | nb_peek (T &, int n) const |
bool | nb_poke (const T &, int n=0) |
int | used () const |
int | size () const |
void | debug () const |
const char * | kind () const |
Static Public Attributes | |
static const char *const | kind_string = "tlm_fifo" |
Protected Member Functions | |
sc_core::sc_event & | read_event (tlm_tag< T > *t=0) |
void | update () |
void | init (int) |
Protected Attributes | |
circular_buffer< T > * | buffer |
int | m_size |
int | m_num_readable |
int | m_num_read |
int | m_num_written |
bool | m_expand |
int | m_num_read_no_notify |
sc_core::sc_event | m_data_read_event |
sc_core::sc_event | m_data_written_event |
Definition at line 43 of file tlm_fifo.h.
tlm::tlm_fifo< T >::tlm_fifo | ( | int | size_ = 1 |
) | [inline, explicit] |
Definition at line 52 of file tlm_fifo.h.
tlm::tlm_fifo< T >::tlm_fifo | ( | const char * | name_, | |
int | size_ = 1 | |||
) | [inline, explicit] |
Definition at line 59 of file tlm_fifo.h.
virtual tlm::tlm_fifo< T >::~tlm_fifo | ( | ) | [inline, virtual] |
Definition at line 68 of file tlm_fifo.h.
void tlm::tlm_fifo< T >::debug | ( | ) | const [inline, virtual] |
T tlm::tlm_fifo< T >::get | ( | tlm_tag< T > * | t = 0 |
) | [inline, virtual] |
void tlm::tlm_fifo< T >::init | ( | int | size_ | ) | [inline, protected] |
Definition at line 210 of file tlm_fifo.h.
const char* tlm::tlm_fifo< T >::kind | ( | ) | const [inline] |
Definition at line 144 of file tlm_fifo.h.
bool tlm::tlm_fifo< T >::nb_bound | ( | unsigned int | n | ) | [inline] |
Definition at line 72 of file tlm_fifo_resize.h.
bool tlm::tlm_fifo< T >::nb_can_get | ( | tlm_tag< T > * | t = 0 |
) | const [inline, virtual] |
bool tlm::tlm_fifo< T >::nb_can_peek | ( | tlm_tag< T > * | t = 0 |
) | const [inline, virtual] |
bool tlm::tlm_fifo< T >::nb_can_put | ( | tlm_tag< T > * | t = 0 |
) | const [inline, virtual] |
void tlm::tlm_fifo< T >::nb_expand | ( | unsigned int | n = 1 |
) | [inline] |
Definition at line 32 of file tlm_fifo_resize.h.
bool tlm::tlm_fifo< T >::nb_get | ( | T & | val_ | ) | [inline, virtual] |
bool tlm::tlm_fifo< T >::nb_peek | ( | T & | t, | |
int | n | |||
) | const [inline, virtual] |
bool tlm::tlm_fifo< T >::nb_peek | ( | T & | t | ) | const [inline, virtual] |
bool tlm::tlm_fifo< T >::nb_poke | ( | const T & | t, | |
int | n = 0 | |||
) | [inline, virtual] |
bool tlm::tlm_fifo< T >::nb_put | ( | const T & | val_ | ) | [inline, virtual] |
bool tlm::tlm_fifo< T >::nb_reduce | ( | unsigned int | n = 1 |
) | [inline] |
Definition at line 59 of file tlm_fifo_resize.h.
void tlm::tlm_fifo< T >::nb_unbound | ( | unsigned int | n = 16 |
) | [inline] |
Definition at line 43 of file tlm_fifo_resize.h.
const sc_core::sc_event& tlm::tlm_fifo< T >::ok_to_get | ( | tlm_tag< T > * | t = 0 |
) | const [inline, virtual] |
const sc_core::sc_event& tlm::tlm_fifo< T >::ok_to_peek | ( | tlm_tag< T > * | t = 0 |
) | const [inline, virtual] |
const sc_core::sc_event& tlm::tlm_fifo< T >::ok_to_put | ( | tlm_tag< T > * | t = 0 |
) | const [inline, virtual] |
T tlm::tlm_fifo< T >::peek | ( | tlm_tag< T > * | t = 0 |
) | const [inline, virtual] |
void tlm::tlm_fifo< T >::put | ( | const T & | val_ | ) | [inline, virtual] |
sc_core::sc_event& tlm::tlm_fifo< T >::read_event | ( | tlm_tag< T > * | t = 0 |
) | [inline, protected] |
Definition at line 149 of file tlm_fifo.h.
int tlm::tlm_fifo< T >::size | ( | ) | const [inline, virtual] |
void tlm::tlm_fifo< T >::update | ( | ) | [inline, protected] |
Definition at line 236 of file tlm_fifo.h.
int tlm::tlm_fifo< T >::used | ( | ) | const [inline, virtual] |
circular_buffer<T>* tlm::tlm_fifo< T >::buffer [protected] |
Definition at line 163 of file tlm_fifo.h.
const char *const tlm::tlm_fifo< T >::kind_string = "tlm_fifo" [inline, static] |
Definition at line 142 of file tlm_fifo.h.
sc_core::sc_event tlm::tlm_fifo< T >::m_data_read_event [protected] |
Definition at line 173 of file tlm_fifo.h.
sc_core::sc_event tlm::tlm_fifo< T >::m_data_written_event [protected] |
Definition at line 174 of file tlm_fifo.h.
bool tlm::tlm_fifo< T >::m_expand [protected] |
Definition at line 170 of file tlm_fifo.h.
int tlm::tlm_fifo< T >::m_num_read [protected] |
Definition at line 168 of file tlm_fifo.h.
int tlm::tlm_fifo< T >::m_num_read_no_notify [protected] |
Definition at line 171 of file tlm_fifo.h.
int tlm::tlm_fifo< T >::m_num_readable [protected] |
Definition at line 167 of file tlm_fifo.h.
int tlm::tlm_fifo< T >::m_num_written [protected] |
Definition at line 169 of file tlm_fifo.h.
int tlm::tlm_fifo< T >::m_size [protected] |
Definition at line 165 of file tlm_fifo.h.