projects
/
Mograsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implemented GUIAm2910RegCntr
[Mograsim.git]
/
net.mograsim.logic.model.am2900
/
src
/
net
/
mograsim
/
logic
/
model
/
am2900
/
components
/
am2910
/
GUIAm2910InstrPLA.java
diff --git
a/net.mograsim.logic.model.am2900/src/net/mograsim/logic/model/am2900/components/am2910/GUIAm2910InstrPLA.java
b/net.mograsim.logic.model.am2900/src/net/mograsim/logic/model/am2900/components/am2910/GUIAm2910InstrPLA.java
index
9dd05b9
..
b112d03
100644
(file)
--- a/
net.mograsim.logic.model.am2900/src/net/mograsim/logic/model/am2900/components/am2910/GUIAm2910InstrPLA.java
+++ b/
net.mograsim.logic.model.am2900/src/net/mograsim/logic/model/am2900/components/am2910/GUIAm2910InstrPLA.java
@@
-41,7
+41,7
@@
public class GUIAm2910InstrPLA extends SimpleRectangularHardcodedGUIComponent
}
@Override
}
@Override
- protected
void recalculate(
Map<String, ReadEnd> readEnds, Map<String, ReadWriteEnd> readWriteEnds)
+ protected
Object recalculate(Object lastState,
Map<String, ReadEnd> readEnds, Map<String, ReadWriteEnd> readWriteEnds)
{
ReadEnd PASS = readEnds.get("PASS");
ReadEnd I3 = readEnds.get("I3");
{
ReadEnd PASS = readEnds.get("PASS");
ReadEnd I3 = readEnds.get("I3");
@@
-218,6
+218,7
@@
public class GUIAm2910InstrPLA extends SimpleRectangularHardcodedGUIComponent
case 9 + 16:
case 12 + 16:
case 14 + 16:
case 9 + 16:
case 12 + 16:
case 14 + 16:
+ // HOLD
STKI1Val = ZERO;
STKI0Val = ZERO;
break;
STKI1Val = ZERO;
STKI0Val = ZERO;
break;
@@
-226,11
+227,13
@@
public class GUIAm2910InstrPLA extends SimpleRectangularHardcodedGUIComponent
case 1 + 16:
case 4 + 16:
case 5 + 16:
case 1 + 16:
case 4 + 16:
case 5 + 16:
+ // PUSH
STKI1Val = ZERO;
STKI0Val = ONE;
break;
case 0:
case 0 + 16:
STKI1Val = ZERO;
STKI0Val = ONE;
break;
case 0:
case 0 + 16:
+ // CLEAR
STKI1Val = ONE;
STKI0Val = ZERO;
break;
STKI1Val = ONE;
STKI0Val = ZERO;
break;
@@
-238,6
+241,7
@@
public class GUIAm2910InstrPLA extends SimpleRectangularHardcodedGUIComponent
case 11 + 16:
case 13 + 16:
case 15 + 16:
case 11 + 16:
case 13 + 16:
case 15 + 16:
+ // POP
STKI1Val = ONE;
STKI0Val = ONE;
break;
STKI1Val = ONE;
STKI0Val = ONE;
break;
@@
-254,5
+258,6
@@
public class GUIAm2910InstrPLA extends SimpleRectangularHardcodedGUIComponent
STKI1.feedSignals(STKI1Val);
}
}
STKI1.feedSignals(STKI1Val);
}
}
+ return null;
}
}
\ No newline at end of file
}
}
\ No newline at end of file