| Constructor and Description |
|---|
MachineImpl(ModuleExecution module,
Face face) |
| Modifier and Type | Method and Description |
|---|---|
TargetInterface |
getInterface(Target target)
Get an interface that allows reading and writing to all valid
Targets, including virtual ones. |
MachineState |
getState()
Get the state of the machine, i.e.
|
void |
onWriteCompleted(Port port)
Inform the active instruction that a write operation was completed.
|
boolean |
step()
Advance the virtual machine, ensures the machine's state is valid after
the instruction finishes.
|
public MachineImpl(ModuleExecution module, Face face)
public boolean step()
public void onWriteCompleted(Port port)
Instructions are expected to wait / loop until a write operation they initiated has been completed.
port - the port on which the write operation was completed.public MachineState getState()
Machinepublic TargetInterface getInterface(Target target)
MachineTargets, including virtual ones. A TargetInterface is
basically a Pipe wrapper and register wrapper
in one.getInterface in interface Machinetarget - the target to get the interface for.