#include <network.h>
Public Member Functions | |
Inbuf () | |
bool | isempty () |
bool | isfull () |
int | num_entry () |
bool | deq () |
bool | enq (flit_t) |
flit_t * | head () |
void | rtcomp (uint032_t id) |
Data Fields | |
flit_t | buf [BUF_SIZE] |
uint008_t | request |
Static Public Attributes | |
static const int | BUF_SIZE = 4 |
Inbuf::Inbuf | ( | ) |
Inbuf constructor
bool Inbuf::isempty | ( | ) |
check whether the buffer has one or more flits or not
bool Inbuf::isfull | ( | ) |
check whether the buffer has full flits or not
int Inbuf::num_entry | ( | ) |
get the number of flits saved in the buffer
bool Inbuf::deq | ( | ) |
dequeue a flit from the buffer
bool Inbuf::enq | ( | flit_t | data | ) |
enqueue a flit into the buffer
data | flit to be enqueued |
flit_t * Inbuf::head | ( | ) |
get the flit saved at the head of the buffer
void Inbuf::rtcomp | ( | uint032_t | id | ) |
routing computation
const int Inbuf::BUF_SIZE = 4 [static] |
uint008_t Inbuf::request |