projects
/
Mograsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SimpleRectangularSubmodelComponent now supports pin names
[Mograsim.git]
/
net.mograsim.logic.ui
/
src
/
net
/
mograsim
/
logic
/
ui
/
model
/
components
/
mi
/
nandbased
/
GUImux1_4.java
diff --git
a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUImux1_4.java
b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUImux1_4.java
index
6e2be51
..
e648e1c
100644
(file)
--- a/
net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUImux1_4.java
+++ b/
net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUImux1_4.java
@@
-7,33
+7,14
@@
import net.mograsim.logic.ui.model.wires.GUIWire;
import net.mograsim.logic.ui.model.wires.Pin;
import net.mograsim.logic.ui.model.wires.WireCrossPoint;
import net.mograsim.logic.ui.model.wires.Pin;
import net.mograsim.logic.ui.model.wires.WireCrossPoint;
-/**
- * @formatter:off
- * Inputs:
- * 0: select
- * 1: I0_0
- * 2: I0_1
- * 3: I0_2
- * 4: I0_3
- * 5: I1_0
- * 6: I1_1
- * 7: I1_2
- * 8: I1_3
- * Outputs:
- * 0: Y0
- * 1: Y1
- * 2: Y2
- * 3: Y3
- * @formatter:on
- */
public class GUImux1_4 extends SimpleRectangularSubmodelComponent
{
public GUImux1_4(ViewModelModifiable model)
{
super(model, 1, "GUImux1_4");
setSubmodelScale(.4);
public class GUImux1_4 extends SimpleRectangularSubmodelComponent
{
public GUImux1_4(ViewModelModifiable model)
{
super(model, 1, "GUImux1_4");
setSubmodelScale(.4);
- setInput
Count(9
);
- setOutput
Count(4
);
+ setInput
Pins("S0", "I0_1", "I0_2", "I0_3", "I0_4", "I1_1", "I1_2", "I1_3", "I1_4"
);
+ setOutput
Pins("Y1", "Y2", "Y3", "Y4"
);
initSubmodelComponents();
}
initSubmodelComponents();
}
@@
-67,9
+48,9
@@
public class GUImux1_4 extends SimpleRectangularSubmodelComponent
mux2.moveTo(30, 42.5);
mux3.moveTo(30, 77.5);
mux4.moveTo(30, 112.5);
mux2.moveTo(30, 42.5);
mux3.moveTo(30, 77.5);
mux4.moveTo(30, 112.5);
- cp1.moveTo(25, 12.5);
- cp2.moveTo(25, 47.5);
- cp3.moveTo(25, 82.5);
+ cp1.move
Center
To(25, 12.5);
+ cp2.move
Center
To(25, 47.5);
+ cp3.move
Center
To(25, 82.5);
new GUIWire(submodelModifiable, S0, cp1, new Point[0]);
new GUIWire(submodelModifiable, cp1, mux1.getInputPins().get(0), new Point[0]);
new GUIWire(submodelModifiable, S0, cp1, new Point[0]);
new GUIWire(submodelModifiable, cp1, mux1.getInputPins().get(0), new Point[0]);