hades.models.pic
Class PicWordReg

java.lang.Object
  extended byhades.models.pic.PicWordReg
All Implemented Interfaces:
PicReg
Direct Known Subclasses:
PicByteReg, PicEecon1Reg, PicIntConReg, PicPcReg, PicPortReg, PicTimerReg

public class PicWordReg
extends java.lang.Object
implements PicReg

PicWordReg - Combine some PicBitRegs. This class is the base class to all special function registers and is able to handle all different StdLogic1164-values.


Field Summary
protected  int size
           
 
Constructor Summary
PicWordReg(PicBreakPoint newBp)
           
PicWordReg(PicBreakPoint newBp, int bitSize)
           
 
Method Summary
 boolean getBit(int selectedBit)
          test a specified bit
 int getBreakPoint()
          Get BreakPoint returns the value that has been set by setBreakPoint
 int getSize()
          How many bits are accessable with read() and write() ?
 int getSizeAll()
          How many bits are accessable with readAll() and writeAll() ?
 boolean isDirty()
           
 void por()
          Power-on-reset
 int read()
          Read the normal content of the register
 int readAll()
          Read the extended content of the register
 void reset()
          Normal reset, often this will be the same as por()
 void resetDirtyFlag()
           
 void setBit(int selectedBit, boolean newValue)
          set a specified bit
 void setBreakPoint(int value)
          Set BreakPoint: value >= 0 : break if content equals value value = -1 : no breakpoint value = -2 : break if content has changed
 void setDirtyFlag(boolean b)
           
protected  void testBreakPoint()
           
 void write(int newValue)
          write a new value into the register
 void writeAll(int newValue)
          Write the extended content of the register
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

size

protected int size
Constructor Detail

PicWordReg

public PicWordReg(PicBreakPoint newBp)

PicWordReg

public PicWordReg(PicBreakPoint newBp,
                  int bitSize)
Method Detail

getSize

public int getSize()
Description copied from interface: PicReg
How many bits are accessable with read() and write() ?

Specified by:
getSize in interface PicReg

getSizeAll

public int getSizeAll()
Description copied from interface: PicReg
How many bits are accessable with readAll() and writeAll() ?

Specified by:
getSizeAll in interface PicReg

isDirty

public boolean isDirty()

resetDirtyFlag

public void resetDirtyFlag()

setDirtyFlag

public void setDirtyFlag(boolean b)

por

public void por()
Description copied from interface: PicReg
Power-on-reset

Specified by:
por in interface PicReg

reset

public void reset()
Description copied from interface: PicReg
Normal reset, often this will be the same as por()

Specified by:
reset in interface PicReg

read

public int read()
Description copied from interface: PicReg
Read the normal content of the register

Specified by:
read in interface PicReg

readAll

public int readAll()
Description copied from interface: PicReg
Read the extended content of the register

Specified by:
readAll in interface PicReg

write

public void write(int newValue)
write a new value into the register

Specified by:
write in interface PicReg

writeAll

public void writeAll(int newValue)
Description copied from interface: PicReg
Write the extended content of the register

Specified by:
writeAll in interface PicReg

setBit

public void setBit(int selectedBit,
                   boolean newValue)
set a specified bit

Specified by:
setBit in interface PicReg

getBit

public boolean getBit(int selectedBit)
test a specified bit

Specified by:
getBit in interface PicReg

setBreakPoint

public void setBreakPoint(int value)
Description copied from interface: PicReg
Set BreakPoint: value >= 0 : break if content equals value value = -1 : no breakpoint value = -2 : break if content has changed

Specified by:
setBreakPoint in interface PicReg

getBreakPoint

public int getBreakPoint()
Description copied from interface: PicReg
Get BreakPoint returns the value that has been set by setBreakPoint

Specified by:
getBreakPoint in interface PicReg

testBreakPoint

protected void testBreakPoint()