|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthades.models.mips.mipsmemory.HadesInterface
Upper part of the HADES interface: State machine for memory access
Field Summary | |
protected int |
addr23
|
protected boolean |
burstWait
|
protected boolean |
debug
|
protected static int |
DMA
|
protected static int |
DMAEND
|
protected static int |
IDLE
|
protected IDTR3051 |
idt
|
protected int |
lastWriteAdr
|
protected java.lang.String |
name
|
protected int |
nextResult
|
protected static int |
READADR
|
protected static int |
READBURSTDATA
|
protected static int |
READBURSTWAIT
|
protected static int |
READDATA
|
protected static int |
READWAIT
|
protected int |
requestAdr
|
protected int |
requestData
|
protected boolean |
requestIsBurst
|
protected boolean |
requestIsWrite
|
protected boolean |
requestPresent
|
protected int |
resultAdr
|
protected static int |
RESULTBUFSIZE
|
protected boolean |
resultIsBurst
|
protected int[] |
results
|
protected int |
resultsPresent
|
protected int |
size
|
protected int |
state
|
protected static int |
WRITEADR
|
protected static int |
WRITEDATA
|
protected static int |
WRITEEND1
|
protected static int |
WRITEEND2
|
protected boolean |
wrNearPossible
|
Constructor Summary | |
protected |
HadesInterface(java.lang.String newName,
IDTR3051 newIdt)
|
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 |
protected java.lang.String |
getStateString()
|
int |
getWordWidth()
Witdh of one word in bits |
protected void |
giveAddress(int adr)
|
void |
installEntryHandler(EntryHandler entryHandler)
setEntry() calles this EntryHandler |
protected boolean |
nextBurstWord()
|
void |
por()
Hardware reset or power on reset |
void |
read(int adr,
boolean burst)
Drive busses for read access |
int |
readMemory(int adr)
Read a word from the memory |
void |
reset()
Software reset, initiated by a special assembly statement or an operating system call |
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 |
setMemorySize(int newSize)
|
void |
setName(java.lang.String newName)
Set the name of this memory |
protected void |
startDMA()
|
protected void |
startRead()
|
protected void |
startWrite()
|
void |
write(int adr,
int value)
Drive busses for write access |
void |
writeMemory(int adr,
int value)
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 boolean requestPresent
protected boolean requestIsWrite
protected boolean requestIsBurst
protected int requestAdr
protected int requestData
protected int resultsPresent
protected int nextResult
protected static final int RESULTBUFSIZE
protected int resultAdr
protected boolean resultIsBurst
protected int[] results
protected boolean burstWait
protected boolean wrNearPossible
protected int lastWriteAdr
protected static final int IDLE
protected static final int WRITEADR
protected static final int WRITEDATA
protected static final int WRITEEND1
protected static final int WRITEEND2
protected static final int READADR
protected static final int READWAIT
protected static final int READDATA
protected static final int READBURSTWAIT
protected static final int READBURSTDATA
protected static final int DMA
protected static final int DMAEND
protected int state
protected int addr23
protected boolean debug
protected java.lang.String name
protected IDTR3051 idt
protected int size
Constructor Detail |
protected HadesInterface(java.lang.String newName, IDTR3051 newIdt)
Method Detail |
public void por()
Resetable
por
in interface Resetable
public void reset()
Resetable
reset
in interface Resetable
protected java.lang.String getStateString()
protected void giveAddress(int adr)
protected boolean nextBurstWord()
protected void startDMA()
protected void startWrite()
protected void startRead()
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 write(int adr, int value)
MipsMemory
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 void setMemorySize(int newSize)
public int getMemorySize()
Memory
getMemorySize
in interface Memory
public int readMemory(int adr)
Memory
readMemory
in interface Memory
public void writeMemory(int adr, int value)
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
public void setLog(boolean newDebug)
Memory
setLog
in interface Memory
public boolean getLog()
Memory
getLog
in interface Memory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |