|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthades.models.mips.mipsmemory.NullMemory
This MipsMemory ignores every write access and always returns 0 on read requests. Its purpose is to provide address space that is not implemented and will be ignored.
Field Summary | |
protected java.lang.String |
name
|
protected boolean |
reportAccess
|
protected int |
size
|
Constructor Summary | |
NullMemory(ResetHandler resetHandler,
int newSize,
java.lang.String newName,
boolean newReportAccess)
|
Method Summary | |
boolean |
beginCycle()
next cycle, perform access to lower layer if needed, wait returned |
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 the result of the last read operation |
int |
getWordWidth()
Witdh of one word in bits |
void |
installEntryHandler(EntryHandler entryHandler)
setEntry() calles this EntryHandler |
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 |
setEntry(int entry,
int globalPointer)
Set the entry address and the global pointer if memory contains a executable program |
void |
setLog(boolean newDebug)
Enable or disable logging output |
void |
setName(java.lang.String newName)
Set the name of this memory |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int size
protected java.lang.String name
protected boolean reportAccess
Constructor Detail |
public NullMemory(ResetHandler resetHandler, int newSize, java.lang.String newName, boolean newReportAccess)
Method Detail |
public void por()
por
in interface Resetable
public void reset()
reset
in interface Resetable
public boolean beginCycle()
MipsMemory
beginCycle
in interface MipsMemory
public void endCycle()
MipsMemory
endCycle
in interface MipsMemory
public boolean finished()
MipsMemory
finished
in interface MipsMemory
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 setLog(boolean newDebug)
Memory
setLog
in interface Memory
public boolean getLog()
Memory
getLog
in interface Memory
public void write(int adr, int data)
write
in interface MipsMemory
public void read(int adr, boolean burst)
MipsMemory
read
in interface MipsMemory
public int getReadResult()
MipsMemory
getReadResult
in interface MipsMemory
public int getWordWidth()
Memory
getWordWidth
in interface Memory
public int getMemorySize()
Memory
getMemorySize
in interface Memory
public int readMemory(int address)
Memory
readMemory
in interface Memory
public void writeMemory(int address, int word)
Memory
writeMemory
in interface Memory
public void setEntry(int entry, int globalPointer)
Memory
setEntry
in interface Memory
public void installEntryHandler(EntryHandler entryHandler)
Memory
installEntryHandler
in interface Memory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |