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 |
---|---|
boolean |
equals(java.lang.Object o) |
MmuAddressInstance |
getAddress()
Returns the input parameter.
|
java.math.BigInteger |
getAddress(java.math.BigInteger tag,
java.math.BigInteger index,
java.math.BigInteger offset)
Returns the address for the given tag, index and offset.
|
AddressView<java.math.BigInteger> |
getAddressView()
Returns the address view.
|
java.util.List<MmuBuffer> |
getChildren() |
java.math.BigInteger |
getIndex(java.math.BigInteger address)
Returns the address index.
|
MmuExpression |
getIndexExpression()
Returns the index calculation function.
|
java.math.BigInteger |
getIndexMask() |
MmuBuffer.Kind |
getKind()
Returns buffer kind (whether it is stand-alone, mapped to memory/register).
|
java.util.Collection<MmuBinding> |
getMatchBindings() |
java.math.BigInteger |
getOffset(java.math.BigInteger address)
Returns the address offset.
|
MmuExpression |
getOffsetExpression()
Returns the offset calculation function.
|
java.math.BigInteger |
getOffsetMask() |
MmuBuffer |
getParent() |
long |
getSets()
Returns the number of sets.
|
java.math.BigInteger |
getTag(java.math.BigInteger address)
Returns the address tag.
|
MmuExpression |
getTagExpression()
Returns the tag calculation function.
|
java.math.BigInteger |
getTagMask() |
long |
getWays()
Returns the number of ways (associativity).
|
int |
hashCode() |
boolean |
isFake() |
boolean |
isParent() |
boolean |
isReplaceable()
Checks whether the buffer support data replacement.
|
boolean |
isView() |
protected void |
setMatchBindings(java.util.Collection<MmuBinding> matchBindings) |
java.lang.String |
toString() |
addField, addField, bindings, getBitSize, getBuffer, getFieldCount, getFields, getInstance, getName, setBuffer
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()
protected final void setMatchBindings(java.util.Collection<MmuBinding> matchBindings)
public final AddressView<java.math.BigInteger> getAddressView()
public final java.math.BigInteger getTag(java.math.BigInteger address)
address
- the address.public final java.math.BigInteger getIndex(java.math.BigInteger address)
address
- the address.public final java.math.BigInteger getOffset(java.math.BigInteger address)
address
- the address.public final java.math.BigInteger getAddress(java.math.BigInteger tag, java.math.BigInteger index, java.math.BigInteger offset)
tag
- the tag.index
- the index.offset
- the offset.public final java.math.BigInteger getTagMask()
public final java.math.BigInteger getIndexMask()
public final java.math.BigInteger 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()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object