public final class MmuSubsystem
extends java.lang.Object
MmuSubsystem
describes a memory management unit (MMU).
The description includes a set of buffers and a network (directed acyclic graph with one source and multiple sink nodes) of actions.
Modifier and Type | Class and Description |
---|---|
static class |
MmuSubsystem.Builder |
static interface |
MmuSubsystem.Holder
The
MmuSubsystem.Holder interface must be implemented by classes generated
by the MMU translator which hold MMU specifications. |
Modifier and Type | Method and Description |
---|---|
java.util.Set<MmuAction> |
getActions()
Returns the set of actions registered in the memory management unit.
|
MmuAddressInstance |
getAddress(java.lang.String name)
Returns an address registered in the MMU by its name.
|
java.util.Collection<MmuAddressInstance> |
getAddresses()
Returns the collection of addresses registered in the MMU.
|
MmuBuffer |
getBuffer(java.lang.String name)
Returns a buffer registered in the MMU by its name.
|
java.util.Collection<MmuBuffer> |
getBuffers()
Returns the collection of buffers registered in the MMU.
|
MmuOperation |
getOperation(java.lang.String name)
Returns an operation registered in the MMU by its name.
|
java.util.Collection<MmuOperation> |
getOperations()
Returns the collection of operations registered in the MMU.
|
MmuAddressInstance |
getPhysicalAddress() |
RegionSettings |
getRegion(java.lang.String name) |
java.util.Collection<RegionSettings> |
getRegions() |
MmuSegment |
getSegment(java.lang.String name)
Returns a segment registered in the MMU by its name.
|
java.util.Collection<MmuSegment> |
getSegments()
Returns the collection of segments registered in the MMU.
|
java.util.List<MmuAddressInstance> |
getSortedListOfAddresses() |
java.util.List<MmuBuffer> |
getSortedListOfBuffers() |
MmuAction |
getStartAction()
Returns the initial (root) action of the memory management unit.
|
MmuBuffer |
getTargetBuffer()
Returns the target buffer (the main memory device).
|
java.util.List<MmuTransition> |
getTransitions(MmuAction action)
Returns the list of transitions for the given action of the memory management unit.
|
IntegerVariable |
getVariable(java.lang.String name) |
MmuAddressInstance |
getVirtualAddress() |
void |
setSettings(GeneratorSettings settings) |
java.lang.String |
toString() |
public void setSettings(GeneratorSettings settings)
public IntegerVariable getVariable(java.lang.String name)
public java.util.Collection<MmuAddressInstance> getAddresses()
public java.util.List<MmuAddressInstance> getSortedListOfAddresses()
public MmuAddressInstance getAddress(java.lang.String name)
name
- the name of the address.null
it is undefined.public MmuAddressInstance getVirtualAddress()
public MmuAddressInstance getPhysicalAddress()
public MmuBuffer getTargetBuffer()
public java.util.Collection<MmuOperation> getOperations()
public MmuOperation getOperation(java.lang.String name)
name
- the name of the operation.null
if it is undefined.public java.util.Collection<MmuSegment> getSegments()
public MmuSegment getSegment(java.lang.String name)
name
- the name of the segment.null
if it is undefined.public java.util.Collection<RegionSettings> getRegions()
public RegionSettings getRegion(java.lang.String name)
public java.util.Collection<MmuBuffer> getBuffers()
public java.util.List<MmuBuffer> getSortedListOfBuffers()
public MmuBuffer getBuffer(java.lang.String name)
name
- the name of the buffer.null
if it is undefined.public java.util.Set<MmuAction> getActions()
public java.util.List<MmuTransition> getTransitions(MmuAction action)
action
- the action.java.lang.IllegalArgumentException
- if action
is null.public MmuAction getStartAction()
public java.lang.String toString()
toString
in class java.lang.Object