|
||||||||||
| 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.MemorySignalSet
public final class MemorySignalSet
Represents a set of signals: write, read and fetch.
The signal write determines whether the content of the register MDR should be written to the memory to
the address defined by MAR.
The signal read determines whether content of the memory at the address defined by MAR should be written
into the register MDR.
The signal read determines whether content of the program memory at the address defined by PC should be
written into the register MBR.
| 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 |
isFetch()
Returns whether the signal fetch is set. |
boolean |
isRead()
Returns whether the signal read is set. |
boolean |
isWrite()
Returns whether the signal write is set. |
MemorySignalSet |
setFetch(boolean fetch)
Sets a new value for the signal fetch. |
MemorySignalSet |
setRead(boolean read)
Sets a new value for the signal read. |
MemorySignalSet |
setWrite(boolean write)
Sets a new value for the signal write. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public boolean isWrite()
write is set.
true, if the signal write is set.public MemorySignalSet setWrite(boolean write)
write.
write - the new value for the signal write.
public boolean isRead()
read is set.
true, if the signal read is set.public MemorySignalSet setRead(boolean read)
read.
read - the new value for the signal read.
public boolean isFetch()
fetch is set.
true, if the signal fetch is set.public MemorySignalSet setFetch(boolean fetch)
fetch.
fetch - the new value for the signal fetch.
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 | |||||||||