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

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

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

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

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