Class BufferInstanceProxy<E,A>
- java.lang.Object
-
- ru.ispras.microtesk.mmu.model.sim.BufferInstanceProxy<E,A>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Buffer<E,A>
get()
boolean
isHit(A address)
Checks whether the given address hits the buffer.static <E,A>
Buffer<E,A>of(java.util.List<? extends Buffer<E,A>> items)
E
readEntry(A address)
Reads the entry associated w/ the given address from the buffer.void
resetState()
Resets the state of the buffer.void
writeEntry(A address, int lower, int upper, ru.ispras.fortress.data.types.bitvector.BitVector newData)
Writes the data associated w/ the given address into the given field of the entry.void
writeEntry(A address, ru.ispras.fortress.data.types.bitvector.BitVector newEntry)
Writes the entry associated w/ the given address into the buffer.
-
-
-
Method Detail
-
isHit
public boolean isHit(A address)
Description copied from interface:Buffer
Checks whether the given address hits the buffer.
-
readEntry
public E readEntry(A address)
Description copied from interface:Buffer
Reads the entry associated w/ the given address from the buffer.
-
writeEntry
public void writeEntry(A address, ru.ispras.fortress.data.types.bitvector.BitVector newEntry)
Description copied from interface:Buffer
Writes the entry associated w/ the given address into the buffer.Note that an incoming entry is not necessarily of the
E
type. It may be returned from the previous- or next-level cache unit (thus, be different). It is the method's responsibility to convert the entry to the specified type.- Specified by:
writeEntry
in interfaceBuffer<E,A>
- Parameters:
address
- the address.newEntry
- the new entry.
-
writeEntry
public void writeEntry(A address, int lower, int upper, ru.ispras.fortress.data.types.bitvector.BitVector newData)
Description copied from interface:Buffer
Writes the data associated w/ the given address into the given field of the entry.- Specified by:
writeEntry
in interfaceBuffer<E,A>
- Parameters:
address
- the address.lower
- the lower bit.upper
- the upper bit.newData
- the new data.
-
resetState
public void resetState()
Description copied from interface:Buffer
Resets the state of the buffer.- Specified by:
resetState
in interfaceBuffer<E,A>
-
-