Modifier and Type | Class and Description |
---|---|
static class |
MmuBuffer.Kind
Describes buffer type.
|
Constructor and Description |
---|
MmuBuffer(java.lang.String name,
MmuBuffer.Kind kind,
long ways,
long sets,
MmuAddressInstance address,
MmuExpression tagExpression,
MmuExpression indexExpression,
MmuExpression offsetExpression,
java.util.Collection<MmuBinding> matchBindings,
boolean replaceable,
MmuBuffer parent) |
Modifier and Type | Method and Description |
---|---|
MmuAddressInstance |
getAddress()
Returns the input parameter.
|
long |
getAddress(long tag,
long index,
long offset)
Returns the address for the given tag, index and offset.
|
AddressView<java.lang.Long> |
getAddressView()
Returns the address view.
|
java.util.List<MmuBuffer> |
getChildren() |
long |
getIndex(long address)
Returns the address index.
|
MmuExpression |
getIndexExpression()
Returns the index calculation function.
|
long |
getIndexMask() |
MmuBuffer.Kind |
getKind()
Returns buffer kind (whether it is stand-alone, mapped to memory/register).
|
java.util.Collection<MmuBinding> |
getMatchBindings(MemoryAccessStack stack) |
long |
getOffset(long address)
Returns the address offset.
|
MmuExpression |
getOffsetExpression()
Returns the offset calculation function.
|
long |
getOffsetMask() |
MmuBuffer |
getParent() |
long |
getSets()
Returns the number of sets.
|
long |
getTag(long address)
Returns the address tag.
|
MmuExpression |
getTagExpression()
Returns the tag calculation function.
|
long |
getTagMask() |
long |
getWays()
Returns the number of ways (associativity).
|
boolean |
isFake() |
boolean |
isParent() |
boolean |
isReplaceable()
Checks whether the buffer support data replacement.
|
boolean |
isView() |
protected void |
setMatchBindings(java.util.Collection<MmuBinding> matchBindings) |
addField, addField, bindings, getBitSize, getBuffer, getFieldCount, getFields, getInstance, getName, setBuffer, toString
public MmuBuffer(java.lang.String name, MmuBuffer.Kind kind, long ways, long sets, MmuAddressInstance address, MmuExpression tagExpression, MmuExpression indexExpression, MmuExpression offsetExpression, java.util.Collection<MmuBinding> matchBindings, boolean replaceable, MmuBuffer parent)
public final MmuBuffer.Kind getKind()
public final long getWays()
public final long getSets()
public final MmuAddressInstance getAddress()
public final MmuExpression getTagExpression()
public final MmuExpression getIndexExpression()
public final MmuExpression getOffsetExpression()
public final java.util.Collection<MmuBinding> getMatchBindings(MemoryAccessStack stack)
protected final void setMatchBindings(java.util.Collection<MmuBinding> matchBindings)
public final AddressView<java.lang.Long> getAddressView()
public final long getTag(long address)
address
- the address.public final long getIndex(long address)
address
- the address.public final long getOffset(long address)
address
- the address.public final long getAddress(long tag, long index, long offset)
tag
- the tag.index
- the index.offset
- the offset.public final long getTagMask()
public final long getIndexMask()
public final long getOffsetMask()
public final boolean isFake()
public final boolean isReplaceable()
true
if the buffer supports data replacement; false
otherwise.public final boolean isView()
public final MmuBuffer getParent()
public final boolean isParent()
public final java.util.List<MmuBuffer> getChildren()