fifo Class Reference

#include <fifo.h>

Inheritance diagram for fifo:

sc_core::sc_module write_if read_if sc_core::sc_module write_if read_if sc_core::sc_interface sc_core::sc_interface sc_core::sc_interface sc_core::sc_interface sc_core::sc_process_host sc_core::sc_interface sc_core::sc_interface sc_core::sc_interface sc_core::sc_interface sc_core::sc_process_host List of all members.

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

Member Enumeration Documentation

enum fifo::e [private]

Enumerator:
max 


Constructor & Destructor Documentation

fifo::fifo (  )  [inline]

fifo::fifo ( sc_module_name  name  )  [inline]

fifo::fifo ( sc_module_name  name,
int  size_ 
) [inline]

fifo::~fifo (  )  [inline]


Member Function Documentation

void fifo::pkt_in ( const pkt data_pkt  ) 

pkt fifo::pkt_out (  ) 

void fifo::write ( char  c  )  [inline, virtual]

Implements write_if.

void fifo::read ( char &  c  )  [inline, virtual]

Implements read_if.

void fifo::reset (  )  [inline, virtual]

Implements write_if.

int fifo::num_available (  )  [inline, virtual]

Implements read_if.

void fifo::write ( char  c  )  [inline, virtual]

Implements write_if.

void fifo::read ( char &  c  )  [inline, virtual]

Implements read_if.

void fifo::reset (  )  [inline, virtual]

Implements write_if.

int fifo::num_available (  )  [inline, virtual]

Implements read_if.

void fifo::compute_stats (  )  [inline, private]


Member Data Documentation

pkt fifo::regs[4]

bool fifo::full

bool fifo::empty

sc_uint<3> fifo::pntr

char fifo::data[max] [private]

int fifo::num_elements [private]

int fifo::first [private]

sc_event fifo::write_event [private]

sc_event fifo::read_event [private]

char* fifo::data [private]

int fifo::size [private]

int fifo::num_read [private]

int fifo::max_used [private]

int fifo::average [private]

sc_time fifo::last_time [private]


The documentation for this class was generated from the following files:
Generated by
Matthieu Moy <Matthieu.Moy@st.com>
Back to Pinapa Home Page