gem5  v20.0.0.3
Public Member Functions | Private Attributes | List of all members
flitBuffer Class Reference

#include <flitBuffer.hh>

Public Member Functions

 flitBuffer ()
 
 flitBuffer (int maximum_size)
 
bool isReady (Cycles 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::vector< flit * > m_buffer
 
int max_size
 

Detailed Description

Definition at line 41 of file flitBuffer.hh.

Constructor & Destructor Documentation

◆ flitBuffer() [1/2]

flitBuffer::flitBuffer ( )

Definition at line 33 of file flitBuffer.cc.

References INFINITE_, and max_size.

◆ flitBuffer() [2/2]

flitBuffer::flitBuffer ( int  maximum_size)

Definition at line 38 of file flitBuffer.cc.

References max_size.

Member Function Documentation

◆ functionalWrite()

uint32_t flitBuffer::functionalWrite ( Packet pkt)

◆ getSize()

int flitBuffer::getSize ( ) const
inline

Definition at line 52 of file flitBuffer.hh.

References m_buffer.

Referenced by NetworkInterface::wakeup().

◆ getTopFlit()

flit* flitBuffer::getTopFlit ( )
inline

◆ insert()

void flitBuffer::insert ( flit flt)
inline

◆ isEmpty()

bool flitBuffer::isEmpty ( )

Definition at line 44 of file flitBuffer.cc.

References m_buffer.

◆ isFull()

bool flitBuffer::isFull ( )

Definition at line 67 of file flitBuffer.cc.

References m_buffer, and max_size.

◆ isReady()

bool flitBuffer::isReady ( Cycles  curTime)

◆ peekTopFlit()

flit* flitBuffer::peekTopFlit ( )
inline

◆ print()

void flitBuffer::print ( std::ostream &  out) const

Definition at line 61 of file flitBuffer.cc.

References m_buffer.

Referenced by operator<<().

◆ setMaxSize()

void flitBuffer::setMaxSize ( int  maximum)

Definition at line 73 of file flitBuffer.cc.

References max_size.

Member Data Documentation

◆ m_buffer

std::vector<flit *> flitBuffer::m_buffer
private

◆ max_size

int flitBuffer::max_size
private

Definition at line 80 of file flitBuffer.hh.

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


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

Generated on Fri Jul 3 2020 15:53:14 for gem5 by doxygen 1.8.13