Fixed calculations concerning U, tests work now just like before
[Mograsim.git] / era.mi / src / era / mi / logic / tests / Connector.java
index 7887ff2..9a8d3fc 100644 (file)
@@ -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();