hades.models.mips.core
Class Core

java.lang.Object
  extended byhades.models.mips.core.Core
All Implemented Interfaces:
EntryHandler, Resetable

public class Core
extends java.lang.Object
implements Resetable, EntryHandler

All core parts including pipeline, registers, execution unit and memory managing unit are implemented here


Field Summary
 Copro0 copro0
           
 Coprocessor[] coproc
           
protected  long cycleCounter
           
protected  boolean debug
           
 boolean firstHalf
           
 InstrFrame[] instr
           
 int instrPtr
           
 InstrFrame iPtr0
           
 InstrFrame iPtr1
           
 InstrFrame iPtr2
           
 InstrFrame iPtr3
           
 InstrFrame iPtr4
           
 InstrFrame iPtr5
           
 InstrFrame iPtr6
           
 InstrFrame iPtr7
           
 AccessMemory mem
           
 PartHandler partHandler
           
 Registers reg
           
 InstrFrame tmp
           
 
Constructor Summary
Core(ResetHandler resetHandler, MipsMemory hadesInterface, boolean standalone, boolean fastAccessMemory)
           
 
Method Summary
 boolean cycle()
          Perform a half pipeline stage, if returns true, then internal breakpoint (SYSCALL) ocurred
 long getCycleCounter()
           
 boolean getLog()
           
static void main(java.lang.String[] argv)
           
 void por()
          Power on reset or hardware reset
 void reset()
          software reset
 void setCycleCounter(long newCycleCounter)
           
 void setEntry(int entry, int globalPointer)
          EntryHandler interface, sets entry address if new file is loaded
 void setLog(boolean newDebug)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mem

public AccessMemory mem

reg

public Registers reg

instr

public InstrFrame[] instr

coproc

public Coprocessor[] coproc

partHandler

public PartHandler partHandler

copro0

public Copro0 copro0

instrPtr

public int instrPtr

iPtr0

public InstrFrame iPtr0

iPtr1

public InstrFrame iPtr1

iPtr2

public InstrFrame iPtr2

iPtr3

public InstrFrame iPtr3

iPtr4

public InstrFrame iPtr4

iPtr5

public InstrFrame iPtr5

iPtr6

public InstrFrame iPtr6

iPtr7

public InstrFrame iPtr7

tmp

public InstrFrame tmp

firstHalf

public boolean firstHalf

debug

protected boolean debug

cycleCounter

protected long cycleCounter
Constructor Detail

Core

public Core(ResetHandler resetHandler,
            MipsMemory hadesInterface,
            boolean standalone,
            boolean fastAccessMemory)
Method Detail

por

public void por()
Power on reset or hardware reset

Specified by:
por in interface Resetable

reset

public void reset()
software reset

Specified by:
reset in interface Resetable

setEntry

public void setEntry(int entry,
                     int globalPointer)
EntryHandler interface, sets entry address if new file is loaded

Specified by:
setEntry in interface EntryHandler

cycle

public boolean cycle()
Perform a half pipeline stage, if returns true, then internal breakpoint (SYSCALL) ocurred


setLog

public void setLog(boolean newDebug)

getLog

public boolean getLog()

setCycleCounter

public void setCycleCounter(long newCycleCounter)

getCycleCounter

public long getCycleCounter()

main

public static void main(java.lang.String[] argv)