public final class MemoryAccessStructure
extends java.lang.Object
MemoryAccessStructure describes a memory access structure, i.e. a sequence of memory
accesses (executions) linked with a number of memory-related dependencies.| Constructor and Description |
|---|
MemoryAccessStructure(java.util.List<MemoryAccess> accesses,
MemoryDependency[][] dependencies) |
MemoryAccessStructure(MemoryAccess access1,
MemoryAccess access2,
MemoryDependency dependency) |
| Modifier and Type | Method and Description |
|---|---|
MemoryAccess |
getAccess(int i)
Returns the
i-th memory access of the structure. |
java.util.List<MemoryAccess> |
getAccesses()
Returns all memory accesses of the structure.
|
MemoryDependency[][] |
getDependencies()
Returns the dependencies between all memory accesses.
|
MemoryDependency |
getDependency(int i,
int j)
Returns the dependency of the
j-th memory access on the i-th memory access. |
MmuSubsystem |
getSubsystem()
Returns the memory subsystem specification.
|
MemoryUnitedDependency |
getUnitedDependency(int j)
Returns the united dependency of the
j-th memory access on the previous accesses. |
int |
size()
Returns the number of memory accesses in the structure.
|
java.lang.String |
toString() |
public MemoryAccessStructure(java.util.List<MemoryAccess> accesses, MemoryDependency[][] dependencies)
public MemoryAccessStructure(MemoryAccess access1, MemoryAccess access2, MemoryDependency dependency)
public MmuSubsystem getSubsystem()
public int size()
public MemoryAccess getAccess(int i)
i-th memory access of the structure.i - the index of the memory access to be returned.public java.util.List<MemoryAccess> getAccesses()
public MemoryDependency getDependency(int i, int j)
j-th memory access on the i-th memory access.
There is a restriction: i < j.
i - the index of the primary memory access.j - the index of the secondary memory access.public MemoryDependency[][] getDependencies()
public MemoryUnitedDependency getUnitedDependency(int j)
j-th memory access on the previous accesses.j - the index of the memory access.public java.lang.String toString()
toString in class java.lang.Object