hades.models.mips.instr
Class BranchLinkBaseInstr

java.lang.Object
  extended byhades.models.mips.instr.BaseInstr
      extended byhades.models.mips.instr.BranchLinkBaseInstr
All Implemented Interfaces:
Resetable
Direct Known Subclasses:
BranchGreaterEqualAndLinkInstr, BranchLessAndLinkInstr

public class BranchLinkBaseInstr
extends BaseInstr
implements Resetable

This is the base class to all ALU using instructions in register format


Field Summary
protected  boolean branchTaken
           
protected  int linkReg
           
 
Fields inherited from class hades.models.mips.instr.BaseInstr
breakpoint, dataMmuAdr, dataRealAdr, dataValue, instrFrameNumber, instrLongFormat, instrName, instrShortFormat, isJump, partHandler, reg, regWritten, result, splitter
 
Constructor Summary
BranchLinkBaseInstr(PartHandler newPartHandler, Splitter newSplitter)
           
 
Method Summary
protected  void branch()
          Calculate branch destination and jump
 int writeRegister()
          Skeletons for pipeline methods
 
Methods inherited from class hades.models.mips.instr.BaseInstr
calcAlu, getBreakpoint, getInstrLongFormat, getInstrName, getInstrShortFormat, getIsJump, giveDataAdr, init, operateData, por, reset, setBreakpoint, setInstrFrameNumber, translateDataAdr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hades.models.mips.core.Resetable
por, reset
 

Field Detail

branchTaken

protected boolean branchTaken

linkReg

protected int linkReg
Constructor Detail

BranchLinkBaseInstr

public BranchLinkBaseInstr(PartHandler newPartHandler,
                           Splitter newSplitter)
Method Detail

writeRegister

public int writeRegister()
Skeletons for pipeline methods

Overrides:
writeRegister in class BaseInstr

branch

protected void branch()
Calculate branch destination and jump