X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.model.am2900%2Ftest%2Fnet%2Fmograsim%2Flogic%2Fmodel%2Fam2900%2FAm2901Testbench.java;h=731147ceae43bcc42f1c5f9f4bb4e4ebe1e77c33;hb=2c37e56abf272af5bd59f062ea45c2f452d6446e;hp=a5b6b8a754396c7e11ddb69232ffccfa67f13f67;hpb=d091dac791bc2b86a035ef78f8aa7c1401a7e0da;p=Mograsim.git diff --git a/net.mograsim.logic.model.am2900/test/net/mograsim/logic/model/am2900/Am2901Testbench.java b/net.mograsim.logic.model.am2900/test/net/mograsim/logic/model/am2900/Am2901Testbench.java index a5b6b8a7..731147ce 100644 --- a/net.mograsim.logic.model.am2900/test/net/mograsim/logic/model/am2900/Am2901Testbench.java +++ b/net.mograsim.logic.model.am2900/test/net/mograsim/logic/model/am2900/Am2901Testbench.java @@ -31,7 +31,7 @@ public class Am2901Testbench comp.moveTo(240, 0); - GUIManualSwitch enable = new GUIManualSwitch(model); + GUIManualSwitch enable = new GUIManualSwitch(model, 1); WireCrossPoint wcp0 = new WireCrossPoint(model, 1); GUINotGate not1 = new GUINotGate(model, 1); GUINotGate not2 = new GUINotGate(model, 1); @@ -71,7 +71,7 @@ public class Am2901Testbench WireCrossPoint wcp = new WireCrossPoint(model, 1); GUIComponent d_ff = IndirectGUIComponentCreator.createComponent(model, "GUIdff"); - GUIManualSwitch sw = new GUIManualSwitch(model); + GUIManualSwitch sw = new GUIManualSwitch(model, 1); tool.connect(last, wcp); tool.connect(wcp, d_ff, "C"); @@ -84,19 +84,19 @@ public class Am2901Testbench sw.moveTo(x, y + 7.5); wcp.moveTo(160, y); d_ff.moveTo(170, y); - label.moveTo(x - 25, y + 15); + label.moveTo(x - 48, y + 8); } for (int i = 0; i < outputPinNames.size(); i++) { double x = 300 + 75 * (i % 2); double y = 10 * i - 2.5; - GUIBitDisplay bd = new GUIBitDisplay(model); + GUIBitDisplay bd = new GUIBitDisplay(model, 1); bd.moveTo(x, y); tool.connect(bd.getInputPin(), comp, outputPinNames.get(i)); TextComponent label = new TextComponent(model, outputPinNames.get(i)); - label.moveTo(x + 50, y + 8); + label.moveTo(x + 25, y); } } } \ No newline at end of file