- Bit[] result = in[0].getValues();
- for (int i = 1; i < in.length; i++)
- result = op.execute(result, in[i].getValues());
- outI.feedSignals(result);
- }
-
- protected interface Operation
- {
- public Bit[] execute(Bit[] a, Bit[] b);
+ BitVectorMutator mutator = BitVectorMutator.empty();
+ for (WireEnd w : in)
+ op.apply(mutator, w.getValues());
+ out.feedSignals(mutator.get());