hades.models.mips.mipsmemory
Interface MipsMemory

All Superinterfaces:
Memory
All Known Implementing Classes:
Cache, HadesInterface, MemoryDispatcher, NullMemory, TinyBPMemory, TinyMemory

public interface MipsMemory
extends Memory

Low level interface for memory access, implemented by the different caches and the interface to HADES. Only word accesses on word aligned addresses are allowed.


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?
 java.lang.String getName()
          get the name of this memory
 int getReadResult()
          get the result of the last read operation
 void read(int adr, boolean burst)
          Drive busses for read access
 void setName(java.lang.String newName)
          Set the name of this memory
 void write(int adr, int data)
          Drive busses for write access
 
Methods inherited from interface hades.models.mips.memory.Memory
getLog, getMemorySize, getWordWidth, installEntryHandler, readMemory, setEntry, setLog, writeMemory
 

Method Detail

beginCycle

public boolean beginCycle()
next cycle, perform access to lower layer if needed, wait returned


endCycle

public void endCycle()
end of a cycle, all core actions are done, memory actions can complete


finished

public boolean finished()
request end of read or write access


getHit

public boolean getHit(int adr)
Is data present at the specified address?


getName

public java.lang.String getName()
get the name of this memory


setName

public void setName(java.lang.String newName)
Set the name of this memory


write

public void write(int adr,
                  int data)
Drive busses for write access


read

public void read(int adr,
                 boolean burst)
Drive busses for read access


getReadResult

public int getReadResult()
get the result of the last read operation