|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthades.models.pic.PicStack
PicStack - Hardware stack for Call/Return.
Field Summary | |
PicBreakPoint |
bp
|
PicWordReg[] |
stack
|
int |
stackPtr
|
int |
stackSize
|
int |
wordWidth
|
Constructor Summary | |
PicStack(PicBreakPoint newBp)
Default-Stack has 8 entries with 13 bit |
|
PicStack(PicBreakPoint newBp,
int newSize,
int bitWidth)
|
Method Summary | |
int |
getMemorySize()
Capacity of the memory in words |
int |
getStackPointer()
|
int |
getWordWidth()
Witdh of one word in bits |
int |
pop()
Get a value from the stack |
void |
por()
|
void |
push(int value)
Put a value into the stack |
int |
readMemory(int address)
Read a word from the memory |
int |
readMemoryOld(int address)
|
void |
reset()
Clear the stack |
void |
writeMemory(int address,
int word)
Write a word into the memory |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public PicWordReg[] stack
public int stackPtr
public int stackSize
public int wordWidth
public PicBreakPoint bp
Constructor Detail |
public PicStack(PicBreakPoint newBp)
public PicStack(PicBreakPoint newBp, int newSize, int bitWidth)
Method Detail |
public void por()
public void reset()
public void push(int value)
public int pop()
public int getWordWidth()
PicMemory
getWordWidth
in interface PicMemory
public int getMemorySize()
PicMemory
getMemorySize
in interface PicMemory
public int readMemoryOld(int address)
public int readMemory(int address)
PicMemory
readMemory
in interface PicMemory
public void writeMemory(int address, int word)
PicMemory
writeMemory
in interface PicMemory
public int getStackPointer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |