ProcessorCacheImpl

class ProcessorCacheImpl(val level: Byte, val associativity: Byte, val lineSize: Short, val cacheSize: Int, val type: CacheType) : ProcessorCache

ProcessorCacheImpl is an implementation of the ProcessorCache interface that represents a processor's cache with its associated properties such as level, associativity, line size, cache size, and type.

This implementation provides the specific values for each of these properties for a given cache.

Author

N7ghtm4r3

See also

Constructors

Link copied to clipboard
constructor(level: Byte, associativity: Byte, lineSize: Short, cacheSize: Int, type: CacheType)

Properties

Link copied to clipboard
open override val associativity: Byte

associativity the associativity of the cache (e.g., direct-mapped, 2-way, 4-way)

Link copied to clipboard
open override val cacheSize: Int

cacheSize the total size of the cache in bytes

Link copied to clipboard
open override val level: Byte

level the level of the processor cache (e.g., L1, L2, L3)

Link copied to clipboard
open override val lineSize: Short

lineSize the size of a cache line in bytes

Link copied to clipboard
open override val type: CacheType

type the type of the cache (e.g., unified, instruction, data, or trace)