|
||||||||||
| 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.MicroInstruction
public final class MicroInstruction
Represents an instruction in the micro code. Based on the implementation of Ray Ontko.
MicroInstruction This class represents an instruction which might appear in the Mic-1 control store.
Ray Ontko
1998.09.01 Created
| Constructor Summary | |
|---|---|
MicroInstruction(int addr,
JMPSignalSet jmpSet,
ALUSignalSet aluSet,
CBusSignalSet cBusSet,
MemorySignalSet memSet,
Register b)
Constructs a single mic1-instruction. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
ALUSignalSet |
getAluSignals()
Returns the ALUSignalSet of this instruction. |
Register |
getbBusSelect()
Returns the value that defines the register that'll be written on the B-Bus. |
CBusSignalSet |
getCBusSignals()
Returns the CBusSignalSet of this instruction. |
JMPSignalSet |
getJmpSignals()
Returns the JMPSignalSet of this instruction. |
MemorySignalSet |
getMemorySignals()
Returns the MemorySignalSet of this instruction. |
int |
getNextAddress()
Returns the next address of this instruction. |
int |
hashCode()
|
boolean |
isNopOrHalt()
Returns whether this instruction simply points to another one without changing something. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MicroInstruction(int addr,
JMPSignalSet jmpSet,
ALUSignalSet aluSet,
CBusSignalSet cBusSet,
MemorySignalSet memSet,
Register b)
addr - contains the MIR[35:27]. Only the lowest nine bits are fetched, it contains the value that is used to
calculate next value of MPC.jmpSet - MIR[26:24]: set of bits that are basic for calculation of next MPCaluSet - MIR[23:16]: set of bits that are responsible for the behavior of the ALU and the shiftercBusSet - MIR[15:7]: set of bits that are responsible for the registers that are filled with the C-Bus valuememSet - MIR[6:4]: set of bits that are responsible for communication with external memory (main memory and
program memory) details see the comments of the fields or the script of Karl Stroetmann.b - contains the MIR[3:0]. Only the lowest four bits are fetched, it contains the bits that are used to define
which register's value is written to the B-Bus.| Method Detail |
|---|
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic JMPSignalSet getJmpSignals()
JMPSignalSet of this instruction.
JMPSignalSet of this instruction.public ALUSignalSet getAluSignals()
ALUSignalSet of this instruction.
ALUSignalSet of this instruction.public CBusSignalSet getCBusSignals()
CBusSignalSet of this instruction.
CBusSignalSet of this instruction.public MemorySignalSet getMemorySignals()
MemorySignalSet of this instruction.
MemorySignalSet of this instruction.public int getNextAddress()
public Register getbBusSelect()
Mic1BBusRegister that defines the register being written on the B-Bus.public boolean isNopOrHalt()
true, if this instruction is simply like goto 0x..
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||