Averest


cacheBlock Type

a cache block consists of the following components:

  • valid indicates that the block is used (i.e. holds data)
  • dirty indicates that the block in cache has been modified, i.e., it is no longer consistent with the main memory and must therefore be written back before another block is replacing it
  • tag is the tag of the cache block to reconstruct its address
  • data holds the bytes of the cache block (its size is param.BlockSize)

Record fields

Record Field Description

data

Full Usage: data

Field type: block
Modifiers: mutable

Field type: block

dirty

Full Usage: dirty

Field type: bool
Modifiers: mutable

Field type: bool

tag

Full Usage: tag

Field type: uint32
Modifiers: mutable

Field type: uint32

valid

Full Usage: valid

Field type: bool
Modifiers: mutable

Field type: bool