|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthades.models.mips.mipsmemory.AccessMemory
hades.models.mips.mipsmemory.FastAccessMemory
Do the same like AccessMemory - without the layers below for fast operation
| Field Summary | |
protected int |
dataResult
|
protected EntryHandler |
entryHandler
|
protected boolean |
entryHandlerInstalled
|
protected int |
instrResult
|
static int |
INTERNAL_MEM_SIZE
|
protected int[] |
internalMem
|
| Fields inherited from class hades.models.mips.mipsmemory.AccessMemory |
bigEndian, byteReadMask, byteWriteMask, data, dataCache, dataMask, dataShift, dcache, DCACHE_SIZE, dcacheSelection, debug, dispatcher, halfwordReadMask, halfwordWriteMask, icache, ICACHE_SIZE, icacheSelection, instr, instrCache, lastdcache, lasticache, mem, MEMORY_SIZE, mmu, partHandler, partWordByte, partWordFirst, partWordTriple, partWordWrite, physicalDataAdr, physicalInstrAdr, realDataCache, realInstrCache, stack, STACK_SIZE, tinyMemory, translateable, translation, triplebyteReadMask, triplebyteWriteMask, virtualDataAdr, virtualInstrAdr |
| Constructor Summary | |
FastAccessMemory(PartHandler newPartHandler)
|
|
| Method Summary | |
boolean |
beginCycle()
Cycle |
void |
endCycle()
|
int |
fetchInstr()
|
int |
getMemorySize()
Capacity of the memory in words |
int |
getReadResult()
|
int |
getWordWidth()
Witdh of one word in bits |
void |
installEntryHandler(EntryHandler newEntryHandler)
setEntry() calles this EntryHandler |
void |
invalidateCaches()
|
void |
readInstr()
Instruction fetch, always 32 bit |
int |
readMemory(int address)
Read a word from the memory |
void |
readWord(int adr)
Load data |
void |
setEntry(int entry,
int globalPointer)
Set the entry address if memory contains a executable program |
void |
swapCaches()
|
int |
translateAddress(int adr)
Address translation |
int |
translateDataAdr(int adr)
|
int |
translateInstrAdr(int adr)
|
int |
translateWordAddress(int adr)
|
void |
unswapCaches()
|
void |
writeMemory(int address,
int word)
Write a word into the memory |
void |
writeWord(int adr,
int value)
Store data |
| Methods inherited from class hades.models.mips.mipsmemory.AccessMemory |
getBigEndian, getLog, initCacheSelection, por, reset, setBigEndian, setLog, translateAddress |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int[] internalMem
public static final int INTERNAL_MEM_SIZE
protected EntryHandler entryHandler
protected boolean entryHandlerInstalled
protected int instrResult
protected int dataResult
| Constructor Detail |
public FastAccessMemory(PartHandler newPartHandler)
| Method Detail |
public void invalidateCaches()
invalidateCaches in class AccessMemorypublic void swapCaches()
swapCaches in class AccessMemorypublic void unswapCaches()
unswapCaches in class AccessMemorypublic int translateAddress(int adr)
translateAddress in class AccessMemorypublic int translateWordAddress(int adr)
translateWordAddress in class AccessMemorypublic int translateInstrAdr(int adr)
translateInstrAdr in class AccessMemorypublic int translateDataAdr(int adr)
translateDataAdr in class AccessMemorypublic void readInstr()
readInstr in class AccessMemorypublic int fetchInstr()
fetchInstr in class AccessMemorypublic void readWord(int adr)
readWord in class AccessMemorypublic int getReadResult()
getReadResult in class AccessMemory
public void writeWord(int adr,
int value)
writeWord in class AccessMemorypublic boolean beginCycle()
beginCycle in class AccessMemorypublic void endCycle()
endCycle in class AccessMemorypublic int getWordWidth()
getWordWidth in interface MemorygetWordWidth in class AccessMemorypublic int getMemorySize()
getMemorySize in interface MemorygetMemorySize in class AccessMemorypublic int readMemory(int address)
readMemory in interface MemoryreadMemory in class AccessMemory
public void writeMemory(int address,
int word)
writeMemory in interface MemorywriteMemory in class AccessMemory
public void setEntry(int entry,
int globalPointer)
setEntry in interface MemorysetEntry in class AccessMemorypublic void installEntryHandler(EntryHandler newEntryHandler)
installEntryHandler in interface MemoryinstallEntryHandler in class AccessMemory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||