gem5  v20.1.0.0
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 (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::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 34 of file flitBuffer.cc.

References INFINITE_, and max_size.

◆ flitBuffer() [2/2]

flitBuffer::flitBuffer ( int  maximum_size)

Definition at line 39 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 NetworkBridge::wakeup().

◆ getTopFlit()

flit* flitBuffer::getTopFlit ( )
inline

◆ insert()

void flitBuffer::insert ( flit flt)
inline

◆ isEmpty()

bool flitBuffer::isEmpty ( )

Definition at line 45 of file flitBuffer.cc.

References m_buffer.

Referenced by NetworkLink::wakeup().

◆ isFull()

bool flitBuffer::isFull ( )

Definition at line 68 of file flitBuffer.cc.

References m_buffer, and max_size.

◆ isReady()

bool flitBuffer::isReady ( Tick  curTime)

◆ peekTopFlit()

flit* flitBuffer::peekTopFlit ( )
inline

◆ print()

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

Definition at line 62 of file flitBuffer.cc.

References m_buffer.

Referenced by operator<<().

◆ setMaxSize()

void flitBuffer::setMaxSize ( int  maximum)

Definition at line 74 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 Wed Sep 30 2020 14:02:24 for gem5 by doxygen 1.8.17