|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthades.models.mips.memory.BreakPointMemory
hades.models.mips.mipsmemory.TinyBPMemory
Memory implementation as a simple array with no wait states. The memory is organized in words in order to serve word requests fast.
Field Summary | |
protected boolean |
currentlyReading
|
protected boolean |
debug
|
protected boolean |
finished
|
protected int |
memorySize
|
protected java.lang.String |
name
|
protected int |
nextAdr
|
protected int |
nextData
|
protected int |
result
|
protected int |
totalWaitstates
|
protected int |
waiting
|
protected int |
waitstates
|
Fields inherited from class hades.models.mips.memory.BreakPointMemory |
BP_IDLE, BP_READALL, BP_READVAL, BP_WRITEALL, BP_WRITEVAL, bpHandler, bpHandlerInstalled, mem, readBP, readVal, writeBP, writeVal |
Constructor Summary | |
TinyBPMemory(ResetHandler resetHandler,
int newMemorySize,
int newWaitstates,
java.lang.String newName)
Waitstates are given to test memory accesses with many waitstates. |
Method Summary | |
boolean |
beginCycle()
beginCycle has to do nothing because this memory doesn?t needs extra cycles for memory access |
void |
endCycle()
end of a cycle, all core actions are done, memory actions can complete |
boolean |
finished()
request end of read or write access |
boolean |
getHit(int adr)
Is data present at the specified address? |
boolean |
getLog()
Get debug mode |
int |
getMemorySize()
Capacity of the memory in words |
java.lang.String |
getName()
get the name of this memory |
int |
getReadResult()
get result |
int |
getWordWidth()
Witdh of one word in bits |
void |
por()
Power on reset or hardware reset |
void |
read(int adr,
boolean burst)
Drive busses for read access |
int |
readMemory(int address)
Read a word from the memory |
void |
reset()
software reset |
void |
setLog(boolean newDebug)
Enable or disable logging output |
void |
setName(java.lang.String newName)
Set the name of this memory |
java.lang.String |
statistics()
|
void |
write(int adr,
int data)
Drive busses for write access |
void |
writeMemory(int address,
int word)
Write a word into the memory |
Methods inherited from class hades.models.mips.memory.BreakPointMemory |
getMemory, getReadBPMemory, getReadValMemory, getWriteBPMemory, getWriteValMemory, installBreakPointHandler, installEntryHandler, setEntry, setReadBP, setWriteBP |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface hades.models.mips.memory.Memory |
installEntryHandler, setEntry |
Field Detail |
protected int nextAdr
protected int nextData
protected int result
protected boolean currentlyReading
protected int memorySize
protected int waitstates
protected int waiting
protected boolean finished
protected int totalWaitstates
protected java.lang.String name
protected boolean debug
Constructor Detail |
public TinyBPMemory(ResetHandler resetHandler, int newMemorySize, int newWaitstates, java.lang.String newName)
Method Detail |
public void por()
por
in interface Resetable
public void reset()
reset
in interface Resetable
public boolean beginCycle()
beginCycle
in interface MipsMemory
public void endCycle()
MipsMemory
endCycle
in interface MipsMemory
public boolean finished()
MipsMemory
finished
in interface MipsMemory
public java.lang.String statistics()
public boolean getHit(int adr)
MipsMemory
getHit
in interface MipsMemory
public java.lang.String getName()
MipsMemory
getName
in interface MipsMemory
public void setName(java.lang.String newName)
MipsMemory
setName
in interface MipsMemory
public void write(int adr, int data)
write
in interface MipsMemory
public void read(int adr, boolean burst)
read
in interface MipsMemory
public int getReadResult()
getReadResult
in interface MipsMemory
public int getWordWidth()
getWordWidth
in interface Memory
getWordWidth
in class BreakPointMemory
public int getMemorySize()
getMemorySize
in interface Memory
getMemorySize
in class BreakPointMemory
public int readMemory(int address)
readMemory
in interface Memory
readMemory
in class BreakPointMemory
public void writeMemory(int address, int word)
writeMemory
in interface Memory
writeMemory
in class BreakPointMemory
public void setLog(boolean newDebug)
Memory
setLog
in interface Memory
setLog
in class BreakPointMemory
public boolean getLog()
Memory
getLog
in interface Memory
getLog
in class BreakPointMemory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |