|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthades.models.pic.PicExec
PicExec - the execution unit used in the PIC16C84. This class concludes all the parts needed to simulate this chip except the io.
Field Summary | |
int |
action
|
PicAlu |
alu
|
static int |
ALUACTION
The four different instruction types |
static int |
BITACTION
|
PicBreakPoint |
breakPoint
|
PicClocking |
clocking
|
PicDecode |
decode
|
PicEeprom |
eeprom
|
PicEprom |
eprom
The rt-elements |
PicEpromBreakPoints |
epromBreakPoints
|
static int |
JUMPACTION
|
static int |
LITERALACTION
|
PicWordReg |
nextInstruction
Instruction pipeline |
PicWordReg |
nextJump
|
int |
operand
|
PicRegBank |
regBank
|
PicRegBankBreakPoints |
regBankBreakPoints
|
int |
result
|
PicBitReg |
skip
|
PicBitReg |
sleep
Sleep Mode |
PicStack |
stack
|
PicWdt |
wdt
|
PicByteReg |
workReg
|
Constructor Summary | |
PicExec()
|
Method Summary | |
void |
advance()
Increment clocking depending on sleep-mode |
void |
buildRegBank(PicBreakPoint breakPoint,
PicEpromBreakPoints epromBreakPoints)
|
void |
clock()
this method has to be called to execute the different quarter cycles |
void |
fetchNextInstruction(int nextInstr)
Get the next instruction or trash the pipeline |
void |
firstCycle()
First quarter cycle, increment program-counter and decode instruction |
void |
fourthCycle()
Fourth quarter cycle, write alu-result and fetch next instruction |
void |
incPc()
increment program-counter or jump |
void |
por()
Power-on-reset, just call the por()-method of all included parts |
void |
reset()
Reset, just call the reset()-method of all included parts |
void |
secondCycle()
Second quarter cycle, read the operands for third cycle |
void |
thirdCycle()
Third quarter cycle, use ALU and increment timer0 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int ALUACTION
public static final int BITACTION
public static final int JUMPACTION
public static final int LITERALACTION
public PicEprom eprom
public PicAlu alu
public PicDecode decode
public PicRegBank regBank
public PicByteReg workReg
public PicClocking clocking
public PicStack stack
public PicEeprom eeprom
public PicWdt wdt
public PicBreakPoint breakPoint
public PicRegBankBreakPoints regBankBreakPoints
public PicEpromBreakPoints epromBreakPoints
public PicWordReg nextInstruction
public PicWordReg nextJump
public PicBitReg skip
public int operand
public int action
public int result
public PicBitReg sleep
Constructor Detail |
public PicExec()
Method Detail |
public void buildRegBank(PicBreakPoint breakPoint, PicEpromBreakPoints epromBreakPoints)
public void por()
public void reset()
public void fetchNextInstruction(int nextInstr)
public void incPc()
public void firstCycle()
public void secondCycle()
public void thirdCycle()
public void fourthCycle()
public void advance()
public void clock()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |