|
||||||||||
| 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.ALUSignalSet
public final class ALUSignalSet
Represents a set of signals: SLL8, SRA1, F0, F1, ENA
, ENB, INVA and INC.
The signals determine the behavior of ALU and Shifter.
| 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 |
isEnA()
Returns whether the signal ENA is set. |
boolean |
isEnB()
Returns whether the signal ENB is set. |
boolean |
isF0()
Returns whether the signal F0 is set. |
boolean |
isF1()
Returns whether the signal F1 is set. |
boolean |
isInc()
Returns whether the signal INC is set. |
boolean |
isInvA()
Returns whether the signal INVA is set. |
boolean |
isSLL8()
Returns whether the signal SLL8 is set. |
boolean |
isSRA1()
Returns whether the signal SRA1 is set. |
ALUSignalSet |
setEnA(boolean value)
Sets a new value for the signal ENA. |
ALUSignalSet |
setEnB(boolean value)
Sets a new value for the signal ENB. |
ALUSignalSet |
setF0(boolean value)
Sets a new value for the signal F0. |
ALUSignalSet |
setF1(boolean value)
Sets a new value for the signal F1. |
ALUSignalSet |
setInc(boolean value)
Sets a new value for the signal INC. |
ALUSignalSet |
setInvA(boolean value)
Sets a new value for the signal INVA. |
ALUSignalSet |
setSLL8(boolean value)
Sets a new value for the signal SLL8. |
ALUSignalSet |
setSRA1(boolean value)
Sets a new value for the signal SRA1. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public ALUSignalSet setSLL8(boolean value)
SLL8.
value - the new value for the signal SLL8.
public boolean isSLL8()
SLL8 is set.
true, if the signal SLL8 is set.public ALUSignalSet setSRA1(boolean value)
SRA1.
value - the new value for the signal SRA1.
public boolean isSRA1()
SRA1 is set.
true, if the signal SRA1 is set.public ALUSignalSet setF0(boolean value)
F0.
value - the new value for the signal F0.
public boolean isF0()
F0 is set.
true, if the signal F0 is set.public ALUSignalSet setF1(boolean value)
F1.
value - the new value for the signal F1.
public boolean isF1()
F1 is set.
true, if the signal F1 is set.public ALUSignalSet setEnA(boolean value)
ENA.
value - the new value for the signal ENA.
public boolean isEnA()
ENA is set.
true, if the signal ENA is set.public ALUSignalSet setEnB(boolean value)
ENB.
value - the new value for the signal ENB.
public boolean isEnB()
ENB is set.
true, if the signal ENB is set.public ALUSignalSet setInvA(boolean value)
INVA.
value - the new value for the signal INVA.
public boolean isInvA()
INVA is set.
true, if the signal INVA is set.public ALUSignalSet setInc(boolean value)
INC.
value - the new value for the signal INC.
public boolean isInc()
INC is set.
true, if the signal INC 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 | |||||||||