added demux; added getAllInputs() and getAllOutputs() for all components
[Mograsim.git] / era.mi / src / era / mi / logic / tests / Connector.java
index c843237..fe6d40d 100644 (file)
@@ -1,5 +1,6 @@
 package era.mi.logic.tests;\r
 \r
+import era.mi.logic.Bit;\r
 import era.mi.logic.Simulation;\r
 import era.mi.logic.wires.WireArray;\r
 import era.mi.logic.wires.WireArray.WireArrayInput;\r
@@ -15,7 +16,7 @@ public class Connector implements WireArrayObserver
        public Connector(WireArray a, WireArray b)\r
        {\r
                if (a.length != b.length)\r
-                       throw new IllegalArgumentException("WireArray width does not match: " + a.length + ", " + b.length);\r
+                       throw new IllegalArgumentException(String.format("WireArray width does not match: %o, %o", a.length, b.length));\r
                this.a = a;\r
                this.b = b;\r
                a.addObserver(this);\r
@@ -25,7 +26,7 @@ public class Connector implements WireArrayObserver
        }\r
 \r
        @Override\r
-       public void update(WireArray initiator)\r
+       public void update(WireArray initiator, Bit[] oldValues)\r
        {\r
                Simulation.TIMELINE.addEvent((e) ->\r
                {\r