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=34154e60b57ffbee0de382200b48eb374eaa6c8e;hb=284a6d007a3f47d9901459fac6640335a21a37f7;hp=7939eaec19997a366db93cf97e25a92cc9b68e26;hpb=c84bfeca6264b1c02ed500fb0a2f421133b9766f;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 7939eaec..34154e60 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 @@ -52,7 +52,7 @@ public class Am2901Testbench Pin last = and.getPin("Y"); // guess which pins are outputs and which are inputs - // TODO this code exists three times... but it seems too "hacky" to put it in a helper class + // TODO this code exists four times... but it seems too "hacky" to put it in a helper class List inputPinNames = new ArrayList<>(); List outputPinNames = new ArrayList<>(); for (Pin p : comp.getPins().values()) @@ -84,7 +84,7 @@ 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++) @@ -96,7 +96,7 @@ public class Am2901Testbench 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