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,
BufferDependency[][] dependencies) |
MemoryAccessStructure(MemoryAccess access1,
MemoryAccess access2,
BufferDependency 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.
|
BufferDependency[][] |
getDependencies()
Returns the dependencies between all memory accesses.
|
BufferDependency |
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.
|
BufferUnitedDependency |
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, BufferDependency[][] dependencies)
public MemoryAccessStructure(MemoryAccess access1, MemoryAccess access2, BufferDependency 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 BufferDependency 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 BufferDependency[][] getDependencies()
public BufferUnitedDependency 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