#include <fifo.h>

Public Member Functions | |
| fifo () | |
| void | pkt_in (const pkt &data_pkt) |
| pkt | pkt_out () |
| fifo (sc_module_name name) | |
| void | write (char c) |
| void | read (char &c) |
| void | reset () |
| int | num_available () |
| fifo (sc_module_name name, int size_) | |
| ~fifo () | |
| void | write (char c) |
| void | read (char &c) |
| void | reset () |
| int | num_available () |
Public Attributes | |
| pkt | regs [4] |
| bool | full |
| bool | empty |
| sc_uint< 3 > | pntr |
Private Types | |
| enum | e { max = 10 } |
Private Member Functions | |
| void | compute_stats () |
Private Attributes | |
| char | data [max] |
| int | num_elements |
| int | first |
| sc_event | write_event |
| sc_event | read_event |
| char * | data |
| int | size |
| int | num_read |
| int | max_used |
| int | average |
| sc_time | last_time |
enum fifo::e [private] |
| fifo::fifo | ( | sc_module_name | name | ) | [inline] |
| fifo::fifo | ( | sc_module_name | name, | |
| int | size_ | |||
| ) | [inline] |
References average, data, first, last_time, max_used, num_elements, num_read, sc_core::SC_ZERO_TIME, and size.
| void fifo::compute_stats | ( | ) | [inline, private] |
| int fifo::num_available | ( | ) | [inline, virtual] |
| int fifo::num_available | ( | ) | [inline, virtual] |
| void fifo::pkt_in | ( | const pkt & | data_pkt | ) |
| pkt fifo::pkt_out | ( | ) |
| void fifo::read | ( | char & | c | ) | [inline, virtual] |
Implements read_if.
References compute_stats(), data, first, last_time, sc_core::sc_event::notify(), num_elements, read_event, sc_core::sc_time_stamp(), size, sc_core::sc_module::wait(), and write_event.
| void fifo::read | ( | char & | c | ) | [inline, virtual] |
Implements read_if.
References data, first, max, sc_core::sc_event::notify(), num_elements, read_event, sc_core::sc_module::wait(), and write_event.
| void fifo::reset | ( | ) | [inline, virtual] |
| void fifo::reset | ( | ) | [inline, virtual] |
| void fifo::write | ( | char | c | ) | [inline, virtual] |
Implements write_if.
References data, first, sc_core::sc_event::notify(), num_elements, read_event, size, sc_core::sc_module::wait(), and write_event.
| void fifo::write | ( | char | c | ) | [inline, virtual] |
Implements write_if.
References data, first, max, sc_core::sc_event::notify(), num_elements, read_event, sc_core::sc_module::wait(), and write_event.
int fifo::average [private] |
Referenced by compute_stats(), fifo(), and ~fifo().
char* fifo::data [private] |
char fifo::data[max] [private] |
| bool fifo::empty |
Referenced by mcast_pkt_switch::entry(), fifo(), pkt_in(), and pkt_out().
int fifo::first [private] |
| bool fifo::full |
Referenced by mcast_pkt_switch::entry(), fifo(), and pkt_in().
sc_time fifo::last_time [private] |
int fifo::max_used [private] |
Referenced by compute_stats(), fifo(), and ~fifo().
int fifo::num_elements [private] |
Referenced by compute_stats(), fifo(), num_available(), read(), reset(), and write().
int fifo::num_read [private] |
Referenced by compute_stats(), fifo(), and ~fifo().
| sc_uint<3> fifo::pntr |
Referenced by mcast_pkt_switch::entry(), fifo(), pkt_in(), and pkt_out().
sc_event fifo::read_event [private] |
| pkt fifo::regs[4] |
int fifo::size [private] |
sc_event fifo::write_event [private] |