Timeline now passed via constructor
[Mograsim.git] / era.mi / src / era / mi / logic / components / Demux.java
index 0a48cb9..c67756a 100644 (file)
@@ -2,6 +2,7 @@ package era.mi.logic.components;
 \r
 import java.util.List;\r
 \r
+import era.mi.logic.timeline.Timeline;\r
 import era.mi.logic.wires.Wire;\r
 import era.mi.logic.wires.Wire.ReadEnd;\r
 import era.mi.logic.wires.Wire.ReadWriteEnd;\r
@@ -27,9 +28,9 @@ public class Demux extends BasicComponent
         * @param select  Indexes the output array to which the input is mapped. Must have enough bits to index all outputs.\r
         * @param outputs One of these outputs receives the input signal, depending on the select bits\r
         */\r
-       public Demux(int processTime, ReadEnd in, ReadEnd select, ReadWriteEnd... outputs)\r
+       public Demux(Timeline timeline, int processTime, ReadEnd in, ReadEnd select, ReadWriteEnd... outputs)\r
        {\r
-               super(processTime);\r
+               super(timeline, processTime);\r
                outputSize = in.length();\r
 \r
                this.in = in;\r