X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.model.am2900%2Fsrc%2Fnet%2Fmograsim%2Flogic%2Fmodel%2Fexamples%2FGUIComponentTestbench.java;h=ec395c04cd643b1f3326b977c778e9f587244792;hb=d4e7fabad51c0334ef1776564c87da38ab3c2089;hp=1c17ac3e38d30f224c7eab105196b19ca5ec2b17;hpb=62467eaf4814d04961cca4ec7a88ddc5530a4ac4;p=Mograsim.git diff --git a/net.mograsim.logic.model.am2900/src/net/mograsim/logic/model/examples/GUIComponentTestbench.java b/net.mograsim.logic.model.am2900/src/net/mograsim/logic/model/examples/GUIComponentTestbench.java index 1c17ac3e..ec395c04 100644 --- a/net.mograsim.logic.model.am2900/src/net/mograsim/logic/model/examples/GUIComponentTestbench.java +++ b/net.mograsim.logic.model.am2900/src/net/mograsim/logic/model/examples/GUIComponentTestbench.java @@ -1,11 +1,11 @@ package net.mograsim.logic.model.examples; import java.util.ArrayList; -import java.util.Arrays; import java.util.Comparator; import java.util.List; import net.mograsim.logic.model.SimpleLogicUIStandalone; +import net.mograsim.logic.model.am2900.components.GUIdff4_finewe; import net.mograsim.logic.model.model.ViewModelModifiable; import net.mograsim.logic.model.model.components.GUIComponent; import net.mograsim.logic.model.model.components.atomic.GUIBitDisplay; @@ -14,7 +14,6 @@ import net.mograsim.logic.model.model.components.atomic.SimpleRectangularHardcod import net.mograsim.logic.model.model.components.atomic.SimpleRectangularHardcodedGUIComponent.Usage; import net.mograsim.logic.model.model.wires.GUIWire; import net.mograsim.logic.model.model.wires.Pin; -import net.mograsim.logic.model.serializing.IndirectGUIComponentCreator; public class GUIComponentTestbench { @@ -26,8 +25,8 @@ public class GUIComponentTestbench @SuppressWarnings("unused") // for GUIWires being created public static void createTestbench(ViewModelModifiable model) { - GUIComponent comp = IndirectGUIComponentCreator.createComponent(model, "file:components/am2910/GUIAm2910.json", "Am2910"); -// GUIComponent comp = new GUImux4_12(model, "c"); +// GUIComponent comp = IndirectGUIComponentCreator.createComponent(model, "file:components/GUIdff4.json", "dff4"); + GUIComponent comp = new GUIdff4_finewe(model, "dff4_finewe"); // guess which pins are outputs and which are inputs // TODO this code exists four times... but it seems too "hacky" to put it in a helper class @@ -51,9 +50,6 @@ public class GUIComponentTestbench inputPinNames.sort(Comparator.comparing(comp::getPin, Comparator.comparing(Pin::getRelY))); outputPinNames.sort(Comparator.comparing(comp::getPin, Comparator.comparing(Pin::getRelY))); - inputPinNames = Arrays.asList("C", "D", "_RLD", "_CC", "_CCEN", "I", "CI"); - outputPinNames = Arrays.asList("_FULL", "_PL", "_MAP", "_VECT", "Y"); - comp.moveTo(100, 0); for (int i = 0; i < inputPinNames.size(); i++) {