|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthades.models.mips.core.Decoder
The decoder is able to identify an instruction and give back the right instruction object to the caller.
Constructor Summary | |
Decoder(PartHandler newPartHandler,
Splitter newSplitter,
int newInstrFrameNumber)
Initialization |
Method Summary | |
BaseInstr |
decode()
decode is able to return an instruction object when the splitter has splitted a valid instruction word. |
boolean |
getLog()
|
BaseInstr |
getNopInstr()
For initialization it is possible to get the NOP instruction object |
protected void |
initDecode()
|
void |
por()
Power on reset or hardware reset |
void |
reset()
software reset |
void |
setLog(boolean newDebug)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected PartHandler partHandler
protected int instrFrameNumber
protected boolean debug
protected BaseInstr[] instrDecode
protected BaseInstr[] specialDecode
protected BaseInstr[] branchDecode
protected Splitter splitter
protected static final int OP_SPECIAL
protected static final int OP_BCOND
protected static final int OP_J
protected static final int OP_JAL
protected static final int OP_BEQ
protected static final int OP_BNE
protected static final int OP_BLEZ
protected static final int OP_BGTZ
protected static final int OP_ADDI
protected static final int OP_ADDIU
protected static final int OP_SLTI
protected static final int OP_SLTIU
protected static final int OP_ANDI
protected static final int OP_ORI
protected static final int OP_XORI
protected static final int OP_LUI
protected static final int OP_COP0
protected static final int OP_COP1
protected static final int OP_COP2
protected static final int OP_COP3
protected static final int OP_LB
protected static final int OP_LH
protected static final int OP_LWL
protected static final int OP_LW
protected static final int OP_LBU
protected static final int OP_LHU
protected static final int OP_LWR
protected static final int OP_SB
protected static final int OP_SH
protected static final int OP_SWL
protected static final int OP_SW
protected static final int OP_SWR
protected static final int OP_LWC0
protected static final int OP_LWC1
protected static final int OP_LWC2
protected static final int OP_LWC3
protected static final int OP_SWC0
protected static final int OP_SWC1
protected static final int OP_SWC2
protected static final int OP_SWC3
protected static final int OP_NOP
protected static final int OP_SLL
protected static final int OP_SRL
protected static final int OP_SRA
protected static final int OP_SLLV
protected static final int OP_SRLV
protected static final int OP_SRAV
protected static final int OP_JR
protected static final int OP_JALR
protected static final int OP_SYSCALL
protected static final int OP_BREAK
protected static final int OP_MFHI
protected static final int OP_MTHI
protected static final int OP_MFLO
protected static final int OP_MTLO
protected static final int OP_MULT
protected static final int OP_MULTU
protected static final int OP_DIV
protected static final int OP_DIVU
protected static final int OP_ADD
protected static final int OP_ADDU
protected static final int OP_SUB
protected static final int OP_SUBU
protected static final int OP_AND
protected static final int OP_OR
protected static final int OP_XOR
protected static final int OP_NOR
protected static final int OP_SLT
protected static final int OP_SLTU
protected static final int OP_BLTZ
protected static final int OP_BGEZ
protected static final int OP_BLTZAL
protected static final int OP_BGEZAL
protected LoadWordInstr loadWordInstr
protected LoadHalfInstr loadHalfInstr
protected LoadHalfUInstr loadHalfUInstr
protected LoadByteInstr loadByteInstr
protected LoadByteUInstr loadByteUInstr
protected StoreWordInstr storeWordInstr
protected StoreHalfInstr storeHalfInstr
protected StoreByteInstr storeByteInstr
protected LoadWordLeftInstr loadWordLeftInstr
protected LoadWordRightInstr loadWordRightInstr
protected StoreWordLeftInstr storeWordLeftInstr
protected StoreWordRightInstr storeWordRightInstr
protected AddImmInstr addImmInstr
protected AddImmUInstr addImmUInstr
protected SetOnLessImmInstr setOnLessImmInstr
protected SetOnLessImmUInstr setOnLessImmUInstr
protected AndImmInstr andImmInstr
protected OrImmInstr orImmInstr
protected XOrImmInstr xorImmInstr
protected LoadUpperImmInstr loadUpperImmInstr
protected AddInstr addInstr
protected AddUInstr addUInstr
protected SubInstr subInstr
protected SubUInstr subUInstr
protected SetOnLessInstr setOnLessInstr
protected SetOnLessUInstr setOnLessUInstr
protected AndInstr andInstr
protected OrInstr orInstr
protected XOrInstr xorInstr
protected NOrInstr norInstr
protected ShiftLeftLogicalInstr shiftLeftLogicalInstr
protected ShiftRightLogicalInstr shiftRightLogicalInstr
protected ShiftRightArithInstr shiftRightArithInstr
protected ShiftLeftLogicalVarInstr shiftLeftLogicalVarInstr
protected ShiftRightLogicalVarInstr shiftRightLogicalVarInstr
protected ShiftRightArithVarInstr shiftRightArithVarInstr
protected MultInstr multInstr
protected MultUInstr multUInstr
protected DivInstr divInstr
protected DivUInstr divUInstr
protected MoveFromLoInstr moveFromLoInstr
protected MoveFromHiInstr moveFromHiInstr
protected MoveToLoInstr moveToLoInstr
protected MoveToHiInstr moveToHiInstr
protected LoadWordToCoInstr loadWordToCo0Instr
protected LoadWordToCoInstr loadWordToCo1Instr
protected LoadWordToCoInstr loadWordToCo2Instr
protected LoadWordToCoInstr loadWordToCo3Instr
protected StoreWordFromCoInstr storeWordFromCo0Instr
protected StoreWordFromCoInstr storeWordFromCo1Instr
protected StoreWordFromCoInstr storeWordFromCo2Instr
protected StoreWordFromCoInstr storeWordFromCo3Instr
protected CoprocInstr coproc0Instr
protected CoprocInstr coproc1Instr
protected CoprocInstr coproc2Instr
protected CoprocInstr coproc3Instr
protected JumpInstr jumpInstr
protected JumpAndLinkInstr jumpAndLinkInstr
protected JumpRegInstr jumpRegInstr
protected JumpRegAndLinkInstr jumpRegAndLinkInstr
protected BranchEqualInstr branchEqualInstr
protected BranchNotEqualInstr branchNotEqualInstr
protected BranchLessInstr branchLessInstr
protected BranchLessAndLinkInstr branchLessAndLinkInstr
protected BranchLessEqualInstr branchLessEqualInstr
protected BranchGreaterInstr branchGreaterInstr
protected BranchGreaterEqualInstr branchGreaterEqualInstr
protected BranchGreaterEqualAndLinkInstr branchGreaterEqualAndLinkInstr
protected BreakInstr breakInstr
protected SysCallInstr sysCallInstr
protected NopInstr nopInstr
protected IllegalInstr illegalInstr
Constructor Detail |
public Decoder(PartHandler newPartHandler, Splitter newSplitter, int newInstrFrameNumber)
Method Detail |
protected void initDecode()
public void por()
por
in interface Resetable
public void reset()
reset
in interface Resetable
public BaseInstr getNopInstr()
public BaseInstr decode()
public void setLog(boolean newDebug)
public boolean getLog()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |