hades.models.mips.memory
Interface Memory

All Known Subinterfaces:
MipsMemory
All Known Implementing Classes:
AccessMemory, BaseMemory, BreakPointMemory, Cache, Coprocessor, HadesInterface, MemoryDispatcher, NullMemory, TinyBPMemory, TinyMemory

public interface Memory

All memory type parts (caches, registers) are accessable with Memory, this gives advantages in displaying each with the same gui-element. The read and write methods override all limitations like write-protection, bit masking or bank switching


Method Summary
 boolean getLog()
          Get debug mode
 int getMemorySize()
          Capacity of the memory in words
 int getWordWidth()
          Witdh of one word in bits
 void installEntryHandler(EntryHandler entryHandler)
          setEntry() calles this EntryHandler
 int readMemory(int address)
          Read a word from the memory
 void setEntry(int entry, int globalPointer)
          Set the entry address and the global pointer if memory contains a executable program
 void setLog(boolean newLog)
          Enable or disable logging output
 void writeMemory(int address, int word)
          Write a word into the memory
 

Method Detail

getWordWidth

public int getWordWidth()
Witdh of one word in bits


getMemorySize

public int getMemorySize()
Capacity of the memory in words


readMemory

public int readMemory(int address)
Read a word from the memory


writeMemory

public void writeMemory(int address,
                        int word)
Write a word into the memory


setEntry

public void setEntry(int entry,
                     int globalPointer)
Set the entry address and the global pointer if memory contains a executable program


installEntryHandler

public void installEntryHandler(EntryHandler entryHandler)
setEntry() calles this EntryHandler


setLog

public void setLog(boolean newLog)
Enable or disable logging output


getLog

public boolean getLog()
Get debug mode