Example #1
0
        public Xor(LogicGate LG1, LogicGate LG2)
        {
            bool p = LG1.ToBool();
            bool q = LG2.ToBool();

            this.c = XOR(p, q);
        }
Example #2
0
        public Mux(LogicGate LG1, LogicGate LG2, bool sel)
        {
            bool p = LG1.ToBool();
            bool q = LG2.ToBool();

            this.c = MUX(p, q, sel);
        }
Example #3
0
        public Nand(LogicGate LG1, LogicGate LG2)
        {
            bool p = LG1.ToBool();
            bool q = LG2.ToBool();

            this.c = NAND(p, q);
        }
Example #4
0
 public Or(LogicGate LG1, LogicGate LG2)
 {
     bool p = LG1.ToBool();
     bool q = LG2.ToBool();
     this.c = OR(p, q);
 }
Example #5
0
 public Nand(LogicGate LG1, LogicGate LG2)
 {
     bool p = LG1.ToBool();
     bool q = LG2.ToBool();
     this.c = NAND(p, q);
 }
Example #6
0
        public Not(LogicGate LG)
        {
            bool p = LG.ToBool();

            this.c = NOT(p);
        }
Example #7
0
 public Not(LogicGate LG)
 {
     bool p = LG.ToBool();
     this.c = NOT(p);
 }
Example #8
0
 public Mux(LogicGate LG1, LogicGate LG2, bool sel)
 {
     bool p = LG1.ToBool();
     bool q = LG2.ToBool();
     this.c = MUX(p, q, sel);
 }