X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.ui%2Fsrc%2Fnet%2Fmograsim%2Flogic%2Fui%2Fmodel%2Fcomponents%2Fmi%2Fnandbased%2FGUIsel2_4.java;h=f20bbb11e2fa00dfd34396a4f26f25381e11469f;hb=ae74a6a022756a4cc7ee5b453ad7a68e13832788;hp=9e0729fdc62dd39dcbc055fb96b8b7d0558f5ea9;hpb=35629e23b0cd8a168cb1f34736ac2687de128f44;p=Mograsim.git diff --git a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIsel2_4.java b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIsel2_4.java index 9e0729fd..f20bbb11 100644 --- a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIsel2_4.java +++ b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIsel2_4.java @@ -14,8 +14,8 @@ public class GUIsel2_4 extends SimpleRectangularSubmodelComponent { super(model, 1, "GUIsel2_4"); setSubmodelScale(.4); - setInputCount(10); - setOutputCount(4); + setInputPins("SA", "SB", "A1", "A2", "A3", "A4", "B1", "B2", "B3", "B4"); + setOutputPins("Y1", "Y2", "Y3", "Y4"); initSubmodelComponents(); } @@ -75,8 +75,6 @@ public class GUIsel2_4 extends SimpleRectangularSubmodelComponent cpB2.moveCenterTo(5, 92.5); cpA3.moveCenterTo(7.5, 117.5); cpB3.moveCenterTo(5, 142.5); - Point a4 = new Point(7.5, 167.5); - Point b4 = new Point(5, 192.5); new GUIWire(submodelModifiable, A1, nandA1.getInputPins().get(0), new Point(15, 62.5), new Point(15, 7.5)); new GUIWire(submodelModifiable, A2, nandA2.getInputPins().get(0), new Point(17.5, 87.5), new Point(17.5, 57.5)); @@ -93,21 +91,21 @@ public class GUIsel2_4 extends SimpleRectangularSubmodelComponent new GUIWire(submodelModifiable, cpA2, cpA3); new GUIWire(submodelModifiable, cpA2, nandA2.getInputPins().get(1)); new GUIWire(submodelModifiable, cpA3, nandA3.getInputPins().get(1)); - new GUIWire(submodelModifiable, cpA3, nandA4.getInputPins().get(1), a4); + new GUIWire(submodelModifiable, cpA3, nandA4.getInputPins().get(1), new Point(7.5, 167.5)); new GUIWire(submodelModifiable, cpB1, cpB2); new GUIWire(submodelModifiable, cpB1, nandB1.getInputPins().get(1)); new GUIWire(submodelModifiable, cpB2, cpB3); new GUIWire(submodelModifiable, cpB2, nandB2.getInputPins().get(1)); new GUIWire(submodelModifiable, cpB3, nandB3.getInputPins().get(1)); - new GUIWire(submodelModifiable, cpB3, nandB4.getInputPins().get(1), b4); - new GUIWire(submodelModifiable, nandA1.getOutputPin(), nandY1.getInputPins().get(0), new Point(40, 12.5), new Point(40, 7.5)); - new GUIWire(submodelModifiable, nandB1.getOutputPin(), nandY1.getInputPins().get(1), new Point(40, 37.5), new Point(40, 17.5)); - new GUIWire(submodelModifiable, nandA2.getOutputPin(), nandY2.getInputPins().get(0), new Point(42.5, 62.5), new Point(42.5, 32.5)); - new GUIWire(submodelModifiable, nandB2.getOutputPin(), nandY2.getInputPins().get(1), new Point(45, 87.5), new Point(45, 42.5)); - new GUIWire(submodelModifiable, nandA3.getOutputPin(), nandY3.getInputPins().get(0), new Point(47.5, 112.5), new Point(47.5, 57.5)); - new GUIWire(submodelModifiable, nandB3.getOutputPin(), nandY3.getInputPins().get(1), new Point(50, 137.5), new Point(50, 67.5)); - new GUIWire(submodelModifiable, nandA4.getOutputPin(), nandY4.getInputPins().get(0), new Point(52.5, 162.5), new Point(52.5, 82.5)); - new GUIWire(submodelModifiable, nandB4.getOutputPin(), nandY4.getInputPins().get(1), new Point(55, 187.5), new Point(55, 92.5)); + new GUIWire(submodelModifiable, cpB3, nandB4.getInputPins().get(1), new Point(5, 192.5)); + new GUIWire(submodelModifiable, nandA1.getOutputPin(), nandY1.getInputPins().get(0), new Point(42.5, 12.5), new Point(42.5, 7.5)); + new GUIWire(submodelModifiable, nandB1.getOutputPin(), nandY1.getInputPins().get(1), new Point(45, 37.5), new Point(45, 17.5)); + new GUIWire(submodelModifiable, nandA2.getOutputPin(), nandY2.getInputPins().get(0), new Point(47.5, 62.5), new Point(47.5, 32.5)); + new GUIWire(submodelModifiable, nandB2.getOutputPin(), nandY2.getInputPins().get(1), new Point(50, 87.5), new Point(50, 42.5)); + new GUIWire(submodelModifiable, nandA3.getOutputPin(), nandY3.getInputPins().get(0), new Point(52.5, 112.5), new Point(52.5, 57.5)); + new GUIWire(submodelModifiable, nandB3.getOutputPin(), nandY3.getInputPins().get(1), new Point(55, 137.5), new Point(55, 67.5)); + new GUIWire(submodelModifiable, nandA4.getOutputPin(), nandY4.getInputPins().get(0), new Point(57.5, 162.5), new Point(57.5, 82.5)); + new GUIWire(submodelModifiable, nandB4.getOutputPin(), nandY4.getInputPins().get(1), new Point(60, 187.5), new Point(60, 92.5)); new GUIWire(submodelModifiable, nandY1.getOutputPin(), Y1, new Point[0]); new GUIWire(submodelModifiable, nandY2.getOutputPin(), Y2, new Point[0]); new GUIWire(submodelModifiable, nandY3.getOutputPin(), Y3, new Point[0]);