WireArray(Input) is now Wire(End); all in-/outputs are now WireEnds
[Mograsim.git] / era.mi / src / era / mi / logic / components / gates / XorGate.java
1 package era.mi.logic.components.gates;
2
3 import era.mi.logic.Util;
4 import era.mi.logic.wires.Wire.WireEnd;
5
6 /**
7  * Outputs 1 when the number of 1 inputs is odd.
8  * 
9  * @author Fabian Stemmler
10  */
11 public class XorGate extends MultiInputGate
12 {
13         public XorGate(int processTime, WireEnd out, WireEnd... in)
14         {
15                 super(processTime, Util::xor, out, in);
16         }
17
18 }