X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.core%2Fsrc%2Fnet%2Fmograsim%2Flogic%2Fcore%2Fcomponents%2FConnector.java;h=528852ed3b287812903dbaccaad7566e6fb8324a;hb=3e6ac3d7fd389191d02c1c6982fbf093421ce4f2;hp=7315e1351371a1cc2eb7b1883841d3a18f7c321c;hpb=2e7dc40f788b00146f2d0805fecd9d23adbda363;p=Mograsim.git diff --git a/net.mograsim.logic.core/src/net/mograsim/logic/core/components/Connector.java b/net.mograsim.logic.core/src/net/mograsim/logic/core/components/Connector.java index 7315e135..528852ed 100644 --- a/net.mograsim.logic.core/src/net/mograsim/logic/core/components/Connector.java +++ b/net.mograsim.logic.core/src/net/mograsim/logic/core/components/Connector.java @@ -17,8 +17,8 @@ public class Connector extends Component implements LogicObserver public Connector(Timeline timeline, ReadWriteEnd a, ReadWriteEnd b) { super(timeline); - if (a.length() != b.length()) - throw new IllegalArgumentException(String.format("WireArray width does not match: %d, %d", a.length(), b.length())); + if (a.width() != b.width()) + throw new IllegalArgumentException(String.format("WireArray width does not match: %d, %d", a.width(), b.width())); this.a = a; this.b = b; a.registerObserver(this);