X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.ui%2Fsrc%2Fnet%2Fmograsim%2Flogic%2Fui%2Fexamples%2FSubmodelComponentTestbench.java;h=0987f7fa9a6148044d39fba82c26c57a7547073d;hb=308a75c597a6c40722f16b9f69babccf8c4ab640;hp=958759243f87cf52a80944413a17db886d824da2;hpb=d5eb9ff2f85d32391833f08591653f52205adc68;p=Mograsim.git diff --git a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/examples/SubmodelComponentTestbench.java b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/examples/SubmodelComponentTestbench.java index 95875924..0987f7fa 100644 --- a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/examples/SubmodelComponentTestbench.java +++ b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/examples/SubmodelComponentTestbench.java @@ -21,17 +21,17 @@ public class SubmodelComponentTestbench SimpleRectangularSubmodelComponent comp = new GUIAm2901ALUFuncDecode(model); comp.moveTo(100, 0); - for (int i = 0; i < comp.getInputPins().size(); i++) + for (int i = 0; i < comp.getInputPinNames().size(); i++) { GUIManualSwitch sw = new GUIManualSwitch(model); sw.moveTo(0, 20 * i); - new GUIWire(model, comp.getInputPins().get(i), sw.getOutputPin()); + new GUIWire(model, comp.getPin(comp.getInputPinNames().get(i)), sw.getOutputPin()); } - for (int i = 0; i < comp.getOutputPins().size(); i++) + for (int i = 0; i < comp.getOutputPinNames().size(); i++) { GUIBitDisplay bd = new GUIBitDisplay(model); bd.moveTo(200, 20 * i); - new GUIWire(model, comp.getOutputPins().get(i), bd.getInputPin()); + new GUIWire(model, comp.getPin(comp.getOutputPinNames().get(i)), bd.getInputPin()); } } } \ No newline at end of file