|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthades.models.mips.core.InstrFrame
Execution unit, handles all pipeline stages and dispatches them to other units
Field Summary | |
BaseInstr |
aktInstr
|
int |
aktPipeStage
|
protected Coprocessor[] |
coproc
|
protected boolean |
debug
|
Decoder |
decoder
|
int |
instrFrameNumber
|
int |
instruction
|
boolean |
isBreakpoint
|
boolean |
isDelaySlot
|
boolean |
isJumpInstr
|
int[] |
lastPipeStatus
|
protected AccessMemory |
mem
|
BaseInstr |
nopInstr
|
protected PartHandler |
partHandler
|
static int |
PIPE_CALC_ALU
|
static int |
PIPE_DECODE1
|
static int |
PIPE_DECODE2
|
static int |
PIPE_FETCH_INSTR
|
static int |
PIPE_GIVE_DATA_ADR
|
static int |
PIPE_GIVE_INSTR_ADR
|
static int |
PIPE_IDLE
|
static int |
PIPE_OPERATE_DATA
|
static int |
PIPE_SIZE
|
static int |
PIPE_TRANS_DATA_ADR
|
static int |
PIPE_TRANS_INSTR_ADR
|
static int |
PIPE_WRITE_REG
|
java.lang.String[] |
pipeStageName
|
int |
realInstrAdr
|
protected Registers |
reg
|
Splitter |
splitter
|
boolean |
valid
|
int |
virtualInstrAdr
|
Constructor Summary | |
InstrFrame(PartHandler newPartHandler,
int frameNumber)
Initialization |
Method Summary | |
void |
beginDisassemble()
Befoe disassemble() can be used beginDisassemble() has to be called in order to save the splitters state |
void |
calcAlu()
|
void |
decodeInstr()
|
java.lang.String |
disassemble(int instruction)
Disassemble one instruction word |
java.lang.String |
disassembleName(int instruction)
Get only the name of the instruction |
java.lang.String |
disassembleOperands(int instruction)
Get only the operands of the instruction |
void |
doNothing()
Maintenance |
void |
endDisassemble()
After the last call of disassemble() endDisassemble() has to be called in order to restore the splitters state |
void |
fetchInstr()
|
void |
finishInstr()
|
boolean |
getBreakpoint()
Internal Breakpoint detection |
boolean |
getLog()
|
void |
giveDataAdr()
|
void |
giveInstrAdr()
|
void |
operateData()
|
void |
por()
Power on reset or hardware reset |
void |
reset()
software reset |
void |
setLog(boolean newDebug)
|
void |
setValid(boolean newValid)
Instruction will only be executed when its valid-flag is set |
void |
translateDataAdr()
|
void |
translateInstrAdr()
Pipeline stages |
void |
writeRegister()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public int instrFrameNumber
public BaseInstr aktInstr
public BaseInstr nopInstr
public int realInstrAdr
public int virtualInstrAdr
public boolean valid
public boolean isDelaySlot
public boolean isJumpInstr
public boolean isBreakpoint
protected boolean debug
public int aktPipeStage
public int[] lastPipeStatus
public java.lang.String[] pipeStageName
public Splitter splitter
public Decoder decoder
public int instruction
protected PartHandler partHandler
protected Registers reg
protected AccessMemory mem
protected Coprocessor[] coproc
public static final int PIPE_IDLE
public static final int PIPE_TRANS_INSTR_ADR
public static final int PIPE_GIVE_INSTR_ADR
public static final int PIPE_FETCH_INSTR
public static final int PIPE_DECODE1
public static final int PIPE_DECODE2
public static final int PIPE_CALC_ALU
public static final int PIPE_TRANS_DATA_ADR
public static final int PIPE_GIVE_DATA_ADR
public static final int PIPE_OPERATE_DATA
public static final int PIPE_WRITE_REG
public static final int PIPE_SIZE
Constructor Detail |
public InstrFrame(PartHandler newPartHandler, int frameNumber)
Method Detail |
public void por()
por
in interface Resetable
public void reset()
reset
in interface Resetable
public void doNothing()
public void setValid(boolean newValid)
public boolean getBreakpoint()
public void setLog(boolean newDebug)
public boolean getLog()
public void beginDisassemble()
public java.lang.String disassemble(int instruction)
public java.lang.String disassembleName(int instruction)
public java.lang.String disassembleOperands(int instruction)
public void endDisassemble()
public void translateInstrAdr()
public void giveInstrAdr()
public void fetchInstr()
public void decodeInstr()
public void calcAlu()
public void translateDataAdr()
public void giveDataAdr()
public void operateData()
public void writeRegister()
public void finishInstr()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |