fifo Class Reference

#include <fifo.h>

Inheritance diagram for fifo:

sc_module write_if read_if sc_module write_if read_if sc_interface sc_interface sc_interface sc_interface sc_object sc_interface sc_interface sc_interface sc_interface sc_object 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::compute_stats  )  [inline, private]
 

int fifo::num_available  )  [inline, virtual]
 

Implements read_if.

int fifo::num_available  )  [inline, virtual]
 

Implements read_if.

void fifo::pkt_in const pkt data_pkt  ) 
 

pkt fifo::pkt_out  ) 
 

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

Implements read_if.

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

Implements read_if.

void fifo::reset  )  [inline, virtual]
 

Implements write_if.

void fifo::reset  )  [inline, virtual]
 

Implements write_if.

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

Implements write_if.

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

Implements write_if.


Member Data Documentation

int fifo::average [private]
 

char* fifo::data [private]
 

char fifo::data[max] [private]
 

bool fifo::empty
 

int fifo::first [private]
 

bool fifo::full
 

sc_time fifo::last_time [private]
 

int fifo::max_used [private]
 

int fifo::num_elements [private]
 

int fifo::num_read [private]
 

sc_uint<3> fifo::pntr
 

sc_event fifo::read_event [private]
 

pkt fifo::regs[4]
 

int fifo::size [private]
 

sc_event fifo::write_event [private]
 


The documentation for this class was generated from the following files:
Generated on Wed Oct 5 13:09:43 2005 for SystemC by  doxygen 1.4.4