Class CacheLayout
Holds sizes of cache parts.
public
|
#
__construct( mixed $associativity, mixed $block_count, mixed $block_size )
Constructs a new instance with the specified associativity, block count and block size. |
public
integer
|
|
public
integer
|
|
public
integer
|
|
public
integer
|
|
public
integer
|
|
public
integer
|
|
public
integer
|
#
getTagBitMask( )
Returns an integer with all bits in the tag part of an address set to one and all other bits set to zero. |
public
integer
|
#
getIndexBitMask( )
Returns an integer with all bits in the block index part of an address set to one and all other bits set to zero. |
public
integer
|
#
getOffsetBitMask( )
Returns an integer with all bits in the block offset part of an address set to one and all other bits set to zero. |
integer |
LOG_BASE
|
2 |
|
integer |
ADDRESS_SIZE
|
32 |