gem5 v24.0.0.0
Loading...
Searching...
No Matches
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)
 
bool functionalRead (Packet *pkt, WriteMask &mask)
 
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

◆ functionalRead()

◆ functionalWrite()

◆ getSize()

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

Definition at line 61 of file flitBuffer.hh.

References m_buffer.

◆ getTopFlit()

◆ insert()

◆ 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()

◆ 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 88 of file flitBuffer.hh.

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


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

Generated on Tue Jun 18 2024 16:24:22 for gem5 by doxygen 1.11.0