|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hades.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 AccessMemory
public void swapCaches()
swapCaches
in class AccessMemory
public void unswapCaches()
unswapCaches
in class AccessMemory
public int translateAddress(int adr)
translateAddress
in class AccessMemory
public int translateWordAddress(int adr)
translateWordAddress
in class AccessMemory
public int translateInstrAdr(int adr)
translateInstrAdr
in class AccessMemory
public int translateDataAdr(int adr)
translateDataAdr
in class AccessMemory
public void readInstr()
readInstr
in class AccessMemory
public int fetchInstr()
fetchInstr
in class AccessMemory
public void readWord(int adr)
readWord
in class AccessMemory
public int getReadResult()
getReadResult
in class AccessMemory
public void writeWord(int adr, int value)
writeWord
in class AccessMemory
public boolean beginCycle()
beginCycle
in class AccessMemory
public void endCycle()
endCycle
in class AccessMemory
public int getWordWidth()
getWordWidth
in interface Memory
getWordWidth
in class AccessMemory
public int getMemorySize()
getMemorySize
in interface Memory
getMemorySize
in class AccessMemory
public int readMemory(int address)
readMemory
in interface Memory
readMemory
in class AccessMemory
public void writeMemory(int address, int word)
writeMemory
in interface Memory
writeMemory
in class AccessMemory
public void setEntry(int entry, int globalPointer)
setEntry
in interface Memory
setEntry
in class AccessMemory
public void installEntryHandler(EntryHandler newEntryHandler)
installEntryHandler
in interface Memory
installEntryHandler
in class AccessMemory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |