Skip to content

Class simtix::mem::NBHBCacheImpl

ClassList > simtix > mem > NBHBCacheImpl

Inherited by the following classes: simtix::mem::NBHBCache::Impl

Public Types

Type Name
typedef MemoryInterface::OnResp OnResp
typedef MemoryInterface::Payload Payload
typedef MemoryInterface::RespStatus RespStatus

Public Functions

Type Name
bool ForwardRequest (const Payload & payload, OnResp on_resp, bool is_write)
NBHBCacheImpl (const std::string & name, MemoryInterface * next_level, const NBHBCache::Param & param)

Protected Attributes

Type Name
std::vector< bool > bank_occupied_
std::deque< Cache > banks_
const size_t kBanks
const size_t kBlockSizeBytes
const std::string name_
MemoryInterface * next_level_
std::shared_ptr< Stat > stat_

Protected Functions

Type Name
void ResetStat ()
uint64_t ToBankIndex (uint64_t addr)

Public Types Documentation

typedef OnResp

using simtix::mem::NBHBCacheImpl::OnResp =  MemoryInterface::OnResp;

typedef Payload

using simtix::mem::NBHBCacheImpl::Payload =  MemoryInterface::Payload;

typedef RespStatus

using simtix::mem::NBHBCacheImpl::RespStatus =  MemoryInterface::RespStatus;

Public Functions Documentation

function ForwardRequest

bool simtix::mem::NBHBCacheImpl::ForwardRequest (
    const Payload & payload,
    OnResp on_resp,
    bool is_write
) 

function NBHBCacheImpl

inline simtix::mem::NBHBCacheImpl::NBHBCacheImpl (
    const std::string & name,
    MemoryInterface * next_level,
    const NBHBCache::Param & param
) 

Protected Attributes Documentation

variable bank_occupied_

std::vector<bool> simtix::mem::NBHBCacheImpl::bank_occupied_;

variable banks_

std::deque<Cache> simtix::mem::NBHBCacheImpl::banks_;

variable kBanks

const size_t simtix::mem::NBHBCacheImpl::kBanks;

variable kBlockSizeBytes

const size_t simtix::mem::NBHBCacheImpl::kBlockSizeBytes;

variable name_

const std::string simtix::mem::NBHBCacheImpl::name_;

variable next_level_

MemoryInterface* simtix::mem::NBHBCacheImpl::next_level_;

variable stat_

std::shared_ptr<Stat> simtix::mem::NBHBCacheImpl::stat_;

Protected Functions Documentation

function ResetStat

inline void simtix::mem::NBHBCacheImpl::ResetStat () 

function ToBankIndex

inline uint64_t simtix::mem::NBHBCacheImpl::ToBankIndex (
    uint64_t addr
) 


The documentation for this class was generated from the following file projects/simtix/src/simtix/mem/nbhb_cache/nbhb_cache.h