Class Set
Represents one set in a cache.
Methods summary
public
|
#
__construct( Csim\Model\CacheLayout $layout )
Constructs a new Set with the specified layout. The newly constructed set is
not mapped to any address.
Constructs a new Set with the specified layout. The newly constructed set is
not mapped to any address.
|
public
integer
|
#
loadAddress( integer $address )
Loads the specified address.
Loads the specified address.
Parameters
- $address
integer $address The address that shall be loaded.
Returns
integer The index of the block with the newly loaded address.
|
public
Csim\Model\CacheCell
|
#
addressLocation( Csim\Model\Instruction $instruction )
Returns the location of the specified address in this set if the set contains
that address, otherwise returns NULL.
Returns the location of the specified address in this set if the set contains
that address, otherwise returns NULL.
Returns
Csim\Model\CacheCellA CacheCell with set number equal to zero and index/offset set to the cell where
the searched address was found. Returns NULL if the address was not found.
|