hades.models.mips.core
Class Splitter

java.lang.Object
  extended byhades.models.mips.core.Splitter
All Implemented Interfaces:
Resetable

public class Splitter
extends java.lang.Object
implements Resetable

Split one instruction word into parts for further use by the instruction execution unit


Field Summary
protected  int destReg
           
protected  int function
           
protected  int immediate
           
protected  int immediateSigned
           
protected  int instruction
           
protected  int opcode
           
protected  PartHandler partHandler
           
protected  Registers reg
           
protected  int shiftAmount
           
protected  int sourceReg
           
protected  int target
           
protected  int targetReg
           
 
Constructor Summary
Splitter(PartHandler newPartHandler)
          initialization
 
Method Summary
 java.lang.String formatOperands(java.lang.String format)
          Format instruction operands for disassembling
 int getDestReg()
           
 int getFunction()
           
 int getImmediate()
           
 int getImmediateSigned()
           
 int getInstruction()
          Access methods for instruction parts
 int getOpcode()
           
 int getShiftAmount()
           
 int getSourceReg()
           
 int getTarget()
           
 int getTargetReg()
           
 void por()
          Power on reset or hardware reset
 void reset()
          software reset
 void splitInstruction(int newInstruction)
          Split one instruction into parts
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

partHandler

protected PartHandler partHandler

reg

protected Registers reg

instruction

protected int instruction

opcode

protected int opcode

sourceReg

protected int sourceReg

targetReg

protected int targetReg

immediate

protected int immediate

immediateSigned

protected int immediateSigned

target

protected int target

destReg

protected int destReg

shiftAmount

protected int shiftAmount

function

protected int function
Constructor Detail

Splitter

public Splitter(PartHandler newPartHandler)
initialization

Method Detail

por

public void por()
Power on reset or hardware reset

Specified by:
por in interface Resetable

reset

public void reset()
software reset

Specified by:
reset in interface Resetable

splitInstruction

public void splitInstruction(int newInstruction)
Split one instruction into parts


formatOperands

public java.lang.String formatOperands(java.lang.String format)
Format instruction operands for disassembling


getInstruction

public int getInstruction()
Access methods for instruction parts


getOpcode

public int getOpcode()

getSourceReg

public int getSourceReg()

getTargetReg

public int getTargetReg()

getImmediate

public int getImmediate()

getImmediateSigned

public int getImmediateSigned()

getTarget

public int getTarget()

getDestReg

public int getDestReg()

getShiftAmount

public int getShiftAmount()

getFunction

public int getFunction()