Go to the documentation of this file.
89 return csprintf(
"%s compressed: %d size: %llu decompression latency: %d",
97 for (
const auto& blk :
blks) {
98 if (blk->isValid() && (blk != ignored_blk)) {
113 return (compressed_size <= (
blkSize * 8) /
blks.size());
bool canCoAllocate(const std::size_t compressed_size) const
Checks whether a superblock can co-allocate given compressed data block.
@ BlkCompressed
block holds compressed data
std::size_t _size
Set size, in bits, of this compressed block's data.
std::size_t getSizeBits() const
std::vector< SectorSubBlk * > blks
List of blocks associated to this sector.
std::size_t blkSize
Block size, in bytes.
State status
The current status of this block.
Cycles getDecompressionLatency() const
Get number of cycles needed to decompress this block.
void setBlkSize(const std::size_t blk_size)
Set block size.
bool isCompressed() const
Check if this block holds compressed data.
void setDecompressionLatency(const Cycles lat)
Set number of cycles needed to decompress this block.
Cycles _decompressionLatency
Number of cycles needed to decompress this block.
void setCompressed()
Set compression bit.
void setUncompressed()
Clear compression bit.
Copyright (c) 2018 Inria All rights reserved.
std::string print() const override
Pretty-print sector offset and other CacheBlk information.
void setSizeBits(const std::size_t size)
Set size, in bits, of this compressed block's data.
bool isCompressed(const CompressionBlk *ignored_blk=nullptr) const
Returns whether the superblock contains compressed blocks or not.
Cycles is a wrapper class for representing cycle counts, i.e.
A sector is composed of sub-blocks, and each sub-block has information regarding its sector and a poi...
A superblock is composed of sub-blocks, and each sub-block has information regarding its superblock a...
std::string csprintf(const char *format, const Args &...args)
std::string print() const override
Pretty-print sector offset and other CacheBlk information.
Generated on Wed Sep 30 2020 14:02:12 for gem5 by doxygen 1.8.17