- private WireArrayInput outI;
- private WireArray[] inputs;
- private int[] beginningIndex;
+ private WireArrayEnd outI;
+ private WireArray[] inputs;
+ private int[] beginningIndex;
+
+ /**
+ *
+ * @param union The output of merging n {@link WireArray}s into one. Must have length = a1.length() + a2.length() + ... + an.length().
+ * @param inputs The inputs to be merged into the union
+ */
+ public Merger(WireArray union, WireArray... inputs)
+ {
+ this.inputs = inputs;
+ this.outI = union.createInput();
+ this.beginningIndex = new int[inputs.length];