public final class InstructionCall
extends java.lang.Object
InstructionCall
class provides methods to run execution
simulation of some instruction within the processor model.Constructor and Description |
---|
InstructionCall(TemporaryVariables temporaryVariables,
IsaPrimitive instruction)
Creates an instruction call object based on an nML operation.
|
Modifier and Type | Method and Description |
---|---|
void |
execute(ProcessingElement processingElement)
Runs simulation of a corresponding instruction described within the model.
|
int |
getByteSize()
Returns the size of the instruction in bytes.
|
java.lang.String |
getImage()
Returns image (binary representation) of the instruction call.
|
IsaPrimitive |
getRootPrimitive()
Returns the root of the primitive tree that describes the instruction.
|
java.lang.String |
getText()
Return the assembly code for the specified call (for example, the addition instruction
of a MIPS processor: addu $1, $1, $2).
|
java.lang.String |
toString() |
public InstructionCall(TemporaryVariables temporaryVariables, IsaPrimitive instruction)
instruction
- The root operation of the nML operation hierarchy.temporaryVariables
- Temporary variables.java.lang.IllegalArgumentException
- if any of the parameters equals null
.public IsaPrimitive getRootPrimitive()
public void execute(ProcessingElement processingElement)
processingElement
- Processing element instance.public java.lang.String getText()
public java.lang.String getImage()
public int getByteSize()
public java.lang.String toString()
toString
in class java.lang.Object