38#ifndef __MEM_RUBY_STRUCTURES_TBESTORAGE_HH__
39#define __MEM_RUBY_STRUCTURES_TBESTORAGE_HH__
43#include <unordered_map>
185 assert(iter->second > 0);
187 if (iter->second == 0) {
bool areNSlotsAvailable(int n, Tick current_time=0) const
std::stack< int > m_slots_avail
void addEntryToSlot(int slot)
int slotsAvailable() const
TBEStorage(statistics::Group *parent, int number_of_TBEs)
void removeEntryFromSlot(int slot)
float utilization() const
std::unordered_map< int, int > m_slots_used
gem5::ruby::TBEStorage::TBEStorageStats m_stats
A stat that calculates the per tick average of a value.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
uint64_t Tick
Tick count type.
Declaration of Statistics objects.
statistics::Average avg_reserved
statistics::Average avg_size
TBEStorageStats(statistics::Group *parent)
statistics::Average avg_util