Inbuf Class Reference

#include <network.h>

Collaboration diagram for Inbuf:

Collaboration graph
[legend]

Public Member Functions

 Inbuf ()
bool isempty ()
bool isfull ()
int num_entry ()
bool deq ()
bool enq (flit_t)
flit_thead ()
void rtcomp (uint032_t id)

Data Fields

flit_t buf [BUF_SIZE]
uint008_t request

Static Public Attributes

static const int BUF_SIZE = 4

Constructor & Destructor Documentation

Inbuf::Inbuf (  ) 

Inbuf constructor


Member Function Documentation

bool Inbuf::isempty (  ) 

check whether the buffer has one or more flits or not

Returns:
0: not empty, 1: empty

bool Inbuf::isfull (  ) 

check whether the buffer has full flits or not

Returns:
0: not full, 1: full

int Inbuf::num_entry (  ) 

get the number of flits saved in the buffer

Returns:
the number of flits

bool Inbuf::deq (  ) 

dequeue a flit from the buffer

Returns:
true: succeed, false: failed

bool Inbuf::enq ( flit_t  data  ) 

enqueue a flit into the buffer

Parameters:
data flit to be enqueued
Returns:
true: succeed, false: failed

flit_t * Inbuf::head (  ) 

get the flit saved at the head of the buffer

Returns:
flit_t*

void Inbuf::rtcomp ( uint032_t  id  ) 

routing computation


Field Documentation

const int Inbuf::BUF_SIZE = 4 [static]

uint008_t Inbuf::request


The documentation for this class was generated from the following files:

Generated on Mon Mar 29 19:17:58 2010 for SimMc by  doxygen 1.5.6