Buffer
Buffer is used to store Flit
s for one virtual channel.
Method
void Reserve(std::size_t bms)
Reserves capacity for the Buffer
Method
std::size_t GetCapacity()
Returns capacity of the Buffer
Method
std::size_t GetFreeSlots()
Returns current number of free slots
Method
bool Full()
Returns true if Buffer
is full
Method
bool Empty()
Returns true if Buffer
is empty
Method
void Clear()
Clears the Buffer
Method
void Push(const Flit& flit)
Appends Flit
to the end of the Buffer
Method
Flit Pop()
Remove and return front Flit
from the Buffer
Method
Flit Front()
Returns front Flit
from the Buffer
Method
std::int32_t Size()
Returns number of the Flit
s in the Buffer
Method
double GetOldest()
Returns timestamp of the oldest Flit
in the Buffer
Method
double GetOldestAccepted()
Returns accepted timestamp of the oldest Flit
in the Buffer
Method
double GetLoad()
Returns the share of Buffer
load