Class Execution
Describes one simulated instruction and the simulation result.
Methods summary
public
|
#
__construct( Csim\Model\Instruction $instruction, boolean $isHit, Csim\Model\CacheCell $location )
Creates a new instance representing the simulation of the specified
instruction.
Creates a new instance representing the simulation of the specified
instruction.
Parameters
- $instruction
Csim\Model\Instruction $instruction The simulated instruction.
- $isHit
boolean $isHit true if the specified instruction hit in the cache, false if it did not.
- $location
Csim\Model\CacheCell $location Specifies where the searched data was found if the instruction hit.
Specifies where new data was loaded if the instruction missed.
|
public
boolean
|
#
isHit( )
Return true if this instruction hit in the cache.
Return true if this instruction hit in the cache.
Returns
boolean
|
public
Csim\Model\CacheCell
|
#
getLocation( )
Return the hit/miss cache location of this instruction.
Return the hit/miss cache location of this instruction.
Returns
|
public
Csim\Model\Instruction
|
#
getInstruction( )
Return the executed instruction.
Return the executed instruction.
Returns
|