public ALU(int iSize) { Size = iSize; InputX = new WireSet(Size); InputY = new WireSet(Size); ZeroX = new Wire(); ZeroY = new Wire(); NotX = new Wire(); NotY = new Wire(); F = new Wire(); NotOutput = new Wire(); Output = new WireSet(Size); Zero = new Wire(); Negative = new Wire(); ZeroX.ConnectOutput(this); ZeroY.ConnectOutput(this); NotX.ConnectOutput(this); NotY.ConnectOutput(this); F.ConnectOutput(this); NotOutput.ConnectOutput(this); InputX.ConnectOutput(this); InputY.ConnectOutput(this); }
public BitwiseMux(int iSize) : base(iSize) { Control = new Wire(); Control.ConnectOutput(this); Input1.ConnectOutput(this); Input2.ConnectOutput(this); }
public BooleanGate() { Input1 = new Wire(); Input2 = new Wire(); Output = new Wire(); Input1.ConnectOutput(this); Input2.ConnectOutput(this); }
public NotGate() { NOT_GATES++; Input = new Wire(); Output = new Wire(); Input.ConnectOutput(this); Input.Value = 0; }
public Demux() { Input = new Wire(); Output1 = new Wire(); Output2 = new Wire(); Control = new Wire(); Input.ConnectOutput(this); Control.ConnectOutput(this); }
public MuxGate() { Control = new Wire(); Control.ConnectOutput(this); }