X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=era.mi%2Fsrc%2Fera%2Fmi%2Flogic%2Ftests%2FConnector.java;h=5e9c5761c19ebcfeae35ee58e916011857e92ec0;hb=2174689b35611c63b60f61c1e076ebb689977a6a;hp=fe6d40d4bddb040f64a8d0dc1cc84c1462df39d3;hpb=f2284b0dcfb187ed6473d0a9903eb99ef31d49c5;p=Mograsim.git diff --git a/era.mi/src/era/mi/logic/tests/Connector.java b/era.mi/src/era/mi/logic/tests/Connector.java index fe6d40d4..5e9c5761 100644 --- a/era.mi/src/era/mi/logic/tests/Connector.java +++ b/era.mi/src/era/mi/logic/tests/Connector.java @@ -3,22 +3,22 @@ package era.mi.logic.tests; import era.mi.logic.Bit; import era.mi.logic.Simulation; import era.mi.logic.wires.WireArray; -import era.mi.logic.wires.WireArray.WireArrayInput; +import era.mi.logic.wires.WireArray.WireArrayEnd; import era.mi.logic.wires.WireArrayObserver; public class Connector implements WireArrayObserver { private final WireArray a; - private final WireArray b; - private final WireArrayInput aI; - private final WireArrayInput bI; +// private final WireArray b; + private final WireArrayEnd aI; + private final WireArrayEnd bI; public Connector(WireArray a, WireArray b) { if (a.length != b.length) - throw new IllegalArgumentException(String.format("WireArray width does not match: %o, %o", a.length, b.length)); + throw new IllegalArgumentException(String.format("WireArray width does not match: %d, %d", a.length, b.length)); this.a = a; - this.b = b; +// this.b = b; a.addObserver(this); b.addObserver(this); aI = a.createInput();