Interface BufferObserver
-
- All Known Implementing Classes:
Cache
,Memory
,MmuMapping
,RegisterMapping
,Segment
public interface BufferObserver
The role ofBufferObserver
interface is to provide information on buffer state to engines that interact with MMU model.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isHit(ru.ispras.fortress.data.types.bitvector.BitVector address)
Checks whether the given address causes a hit.ru.ispras.fortress.util.Pair<ru.ispras.fortress.data.types.bitvector.BitVector,ru.ispras.fortress.data.types.bitvector.BitVector>
seeData(ru.ispras.fortress.data.types.bitvector.BitVector index, ru.ispras.fortress.data.types.bitvector.BitVector way)
Returns data and associated address without changing the state.
-
-
-
Method Detail
-
isHit
boolean isHit(ru.ispras.fortress.data.types.bitvector.BitVector address)
Checks whether the given address causes a hit.- Parameters:
address
- Address to be checked.- Returns:
true
if the address causes a hit;false
otherwise.
-
seeData
ru.ispras.fortress.util.Pair<ru.ispras.fortress.data.types.bitvector.BitVector,ru.ispras.fortress.data.types.bitvector.BitVector> seeData(ru.ispras.fortress.data.types.bitvector.BitVector index, ru.ispras.fortress.data.types.bitvector.BitVector way)
Returns data and associated address without changing the state.- Parameters:
index
- Set index.way
- Line index.- Returns:
- Pair(Address, Data) or
null
if it is not found.
-
-