|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.croesch.micro_debug.mic1.controlstore.CBusSignalSet
public final class CBusSignalSet
Represents a set of signals: H , CPP , MAR , MDR ,
OPC , PC , SP , TOS and LV.
The signals determine whether the result of ALU/Shifter should be written into the specific register.
| Method Summary | |
|---|---|
void |
copyOf(com.github.croesch.micro_debug.mic1.controlstore.SignalSet set)
Copies all signals from the given set to this set. |
boolean |
equals(Object obj)
|
int |
getSize()
Returns the number of signals this set contains. |
int |
hashCode()
|
boolean |
isAnythingSet()
Returns whether any of the signals is set. |
boolean |
isCpp()
Returns whether the signal CPP is set. |
boolean |
isH()
Returns whether the signal H is set. |
boolean |
isLv()
Returns whether the signal LV is set. |
boolean |
isMar()
Returns whether the signal MAR is set. |
boolean |
isMdr()
Returns whether the signal MDR is set. |
boolean |
isOpc()
Returns whether the signal OPC is set. |
boolean |
isPc()
Returns whether the signal PC is set. |
boolean |
isSp()
Returns whether the signal SP is set. |
boolean |
isTos()
Returns whether the signal TOS is set. |
CBusSignalSet |
setCpp(boolean value)
Sets a new value for the signal CPP. |
CBusSignalSet |
setH(boolean value)
Sets a new value for the signal H. |
CBusSignalSet |
setLv(boolean value)
Sets a new value for the signal LV. |
CBusSignalSet |
setMar(boolean value)
Sets a new value for the signal MAR. |
CBusSignalSet |
setMdr(boolean value)
Sets a new value for the signal MDR. |
CBusSignalSet |
setOpc(boolean value)
Sets a new value for the signal OPC. |
CBusSignalSet |
setPc(boolean value)
Sets a new value for the signal PC. |
CBusSignalSet |
setSp(boolean value)
Sets a new value for the signal SP. |
CBusSignalSet |
setTos(boolean value)
Sets a new value for the signal TOS. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public CBusSignalSet setH(boolean value)
H.
value - the new value for the signal H.
public boolean isH()
H is set.
true, if the signal H is set.public CBusSignalSet setOpc(boolean value)
OPC.
value - the new value for the signal OPC.
public boolean isOpc()
OPC is set.
true, if the signal OPC is set.public CBusSignalSet setTos(boolean value)
TOS.
value - the new value for the signal TOS.
public boolean isTos()
TOS is set.
true, if the signal TOS is set.public CBusSignalSet setCpp(boolean value)
CPP.
value - the new value for the signal CPP.
public boolean isCpp()
CPP is set.
true, if the signal CPP is set.public CBusSignalSet setLv(boolean value)
LV.
value - the new value for the signal LV.
public boolean isLv()
LV is set.
true, if the signal LV is set.public CBusSignalSet setSp(boolean value)
SP.
value - the new value for the signal SP.
public boolean isSp()
SP is set.
true, if the signal SP is set.public CBusSignalSet setPc(boolean value)
PC.
value - the new value for the signal PC.
public boolean isPc()
PC is set.
true, if the signal PC is set.public CBusSignalSet setMdr(boolean value)
MDR.
value - the new value for the signal MDR.
public boolean isMdr()
MDR is set.
true, if the signal MDR is set.public CBusSignalSet setMar(boolean value)
MAR.
value - the new value for the signal MAR.
public boolean isMar()
MAR is set.
true, if the signal MAR is set.public final int getSize()
SignalSet#Mic1SignalSet(int)public final boolean isAnythingSet()
true, if at least one of the signals is set,false otherwise.public void copyOf(com.github.croesch.micro_debug.mic1.controlstore.SignalSet set)
null or the number of signals
are different to the signals in this object, nothing is done.
set - the set to fetch the signals frompublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||