|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.croesch.micro_debug.mic1.shifter.Shifter
public final class Shifter
This class represents a shifter for 32 bit values. It is based on the description for the shifter of the CISC-processor in the script of the lecture 'Rechnertechnik' of Karl Stroetmann.
| Constructor Summary | |
|---|---|
Shifter()
|
|
| Method Summary | |
|---|---|
void |
calculate()
Performs calculation of the output signals based on the current values of input signals. |
int |
getOutput()
Returns the calculated output. |
void |
setInput(int value)
Sets the value for the input of the shifter. |
void |
setSLL8(boolean valueForSll8)
Sets the value for the control line SLL8. |
void |
setSRA1(boolean valueForSra1)
Sets the value for the control line SRA1. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Shifter()
| Method Detail |
|---|
public void setSLL8(boolean valueForSll8)
valueForSll8 - true, if the control bit SLL8 is setpublic void setSRA1(boolean valueForSra1)
valueForSra1 - true, if the control bit SRA1 is setpublic int getOutput()
public void calculate()
public void setInput(int value)
value - 32-bit input value for the shifter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||