import net.mograsim.logic.ui.model.components.GUIBitDisplay;
import net.mograsim.logic.ui.model.components.GUIManualSwitch;
import net.mograsim.logic.ui.model.components.SimpleRectangularSubmodelComponent;
-import net.mograsim.logic.ui.model.components.mi.nandbased.GUInot4;
+import net.mograsim.logic.ui.model.components.mi.nandbased.GUImux1;
import net.mograsim.logic.ui.model.wires.GUIWire;
public class SubmodelComponentTestbench
@SuppressWarnings("unused") // for GUIWires being created
public static void createTestbench(ViewModelModifiable model)
{
- SimpleRectangularSubmodelComponent comp = new GUInot4(model);
+ SimpleRectangularSubmodelComponent comp = new GUImux1(model);
comp.moveTo(100, 0);
for (int i = 0; i < comp.getInputPins().size(); i++)
new GUIWire(submodelModifiable, nandS0.getOutputPin(), nandI0.getInputPins().get(0));
new GUIWire(submodelModifiable, I0, nandI0.getInputPins().get(1), new Point[0]);
- new GUIWire(submodelModifiable, cp1, nandI1.getInputPins().get(0),
- new Point(cp1.getPin().getPos().x, nandI1.getInputPins().get(0).getPos().y));
+ new GUIWire(submodelModifiable, cp1, nandI1.getInputPins().get(0), new Point(5, 52));
new GUIWire(submodelModifiable, I1, nandI1.getInputPins().get(1), new Point[0]);
new GUIWire(submodelModifiable, nandI0.getOutputPin(), nandY.getInputPins().get(0));