Overview

Namespaces

  • Csim
    • Controller
    • Model
    • Util
  • PHP

Classes

  • Cache
  • CacheCell
  • CacheLayout
  • Execution
  • Instruction
  • InstructionType
  • Set
  • SimulationState

Exceptions

  • InvalidInstructionException
  • Overview
  • Namespace
  • Class
  • Tree

Class Set

Represents one set in a cache.

Namespace: Csim\Model
Located at classes/Csim/Model/Set.php
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\CacheCell
A 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.
csim-jquery-nophpfw API documentation generated by ApiGen 2.8.0