gem5  v21.1.0.2
Public Member Functions | Private Attributes | List of all members
gem5::ruby::garnet::flitBuffer Class Reference

#include <flitBuffer.hh>

Public Member Functions

 flitBuffer ()
 
 flitBuffer (int maximum_size)
 
bool isReady (Tick curTime)
 
bool isEmpty ()
 
void print (std::ostream &out) const
 
bool isFull ()
 
void setMaxSize (int maximum)
 
int getSize () const
 
flitgetTopFlit ()
 
flitpeekTopFlit ()
 
void insert (flit *flt)
 
uint32_t functionalWrite (Packet *pkt)
 

Private Attributes

std::deque< flit * > m_buffer
 
int max_size
 

Detailed Description

Definition at line 50 of file flitBuffer.hh.

Constructor & Destructor Documentation

◆ flitBuffer() [1/2]

gem5::ruby::garnet::flitBuffer::flitBuffer ( )

Definition at line 43 of file flitBuffer.cc.

References INFINITE_, and max_size.

◆ flitBuffer() [2/2]

gem5::ruby::garnet::flitBuffer::flitBuffer ( int  maximum_size)

Definition at line 48 of file flitBuffer.cc.

References max_size.

Member Function Documentation

◆ functionalWrite()

uint32_t gem5::ruby::garnet::flitBuffer::functionalWrite ( Packet pkt)

◆ getSize()

int gem5::ruby::garnet::flitBuffer::getSize ( ) const
inline

Definition at line 61 of file flitBuffer.hh.

References m_buffer.

◆ getTopFlit()

flit* gem5::ruby::garnet::flitBuffer::getTopFlit ( )
inline

◆ insert()

void gem5::ruby::garnet::flitBuffer::insert ( flit flt)
inline

◆ isEmpty()

bool gem5::ruby::garnet::flitBuffer::isEmpty ( )

◆ isFull()

bool gem5::ruby::garnet::flitBuffer::isFull ( )

Definition at line 77 of file flitBuffer.cc.

References m_buffer, and max_size.

◆ isReady()

bool gem5::ruby::garnet::flitBuffer::isReady ( Tick  curTime)

◆ peekTopFlit()

flit* gem5::ruby::garnet::flitBuffer::peekTopFlit ( )
inline

◆ print()

void gem5::ruby::garnet::flitBuffer::print ( std::ostream &  out) const

Definition at line 71 of file flitBuffer.cc.

References m_buffer.

Referenced by gem5::ruby::garnet::operator<<().

◆ setMaxSize()

void gem5::ruby::garnet::flitBuffer::setMaxSize ( int  maximum)

Definition at line 83 of file flitBuffer.cc.

References max_size.

Member Data Documentation

◆ m_buffer

std::deque<flit *> gem5::ruby::garnet::flitBuffer::m_buffer
private

◆ max_size

int gem5::ruby::garnet::flitBuffer::max_size
private

Definition at line 87 of file flitBuffer.hh.

Referenced by flitBuffer(), isFull(), and setMaxSize().


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

Generated on Tue Sep 21 2021 12:32:10 for gem5 by doxygen 1.8.17