public Xor(LogicGate LG1, LogicGate LG2) { bool p = LG1.ToBool(); bool q = LG2.ToBool(); this.c = XOR(p, q); }
public Mux(LogicGate LG1, LogicGate LG2, bool sel) { bool p = LG1.ToBool(); bool q = LG2.ToBool(); this.c = MUX(p, q, sel); }
public Nand(LogicGate LG1, LogicGate LG2) { bool p = LG1.ToBool(); bool q = LG2.ToBool(); this.c = NAND(p, q); }
public Or(LogicGate LG1, LogicGate LG2) { bool p = LG1.ToBool(); bool q = LG2.ToBool(); this.c = OR(p, q); }
public Not(LogicGate LG) { bool p = LG.ToBool(); this.c = NOT(p); }