コード例 #1
0
ファイル: Xor.cs プロジェクト: georgemhall/CompuNAND
        public Xor(LogicGate LG1, LogicGate LG2)
        {
            bool p = LG1.ToBool();
            bool q = LG2.ToBool();

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

            this.c = MUX(p, q, sel);
        }
コード例 #3
0
ファイル: Nand.cs プロジェクト: georgemhall/CompuNAND
        public Nand(LogicGate LG1, LogicGate LG2)
        {
            bool p = LG1.ToBool();
            bool q = LG2.ToBool();

            this.c = NAND(p, q);
        }
コード例 #4
0
ファイル: Or.cs プロジェクト: technikalmind/CompuNAND
 public Or(LogicGate LG1, LogicGate LG2)
 {
     bool p = LG1.ToBool();
     bool q = LG2.ToBool();
     this.c = OR(p, q);
 }
コード例 #5
0
ファイル: Nand.cs プロジェクト: technikalmind/CompuNAND
 public Nand(LogicGate LG1, LogicGate LG2)
 {
     bool p = LG1.ToBool();
     bool q = LG2.ToBool();
     this.c = NAND(p, q);
 }
コード例 #6
0
        public Not(LogicGate LG)
        {
            bool p = LG.ToBool();

            this.c = NOT(p);
        }
コード例 #7
0
ファイル: Not.cs プロジェクト: technikalmind/CompuNAND
 public Not(LogicGate LG)
 {
     bool p = LG.ToBool();
     this.c = NOT(p);
 }
コード例 #8
0
ファイル: Mux.cs プロジェクト: technikalmind/CompuNAND
 public Mux(LogicGate LG1, LogicGate LG2, bool sel)
 {
     bool p = LG1.ToBool();
     bool q = LG2.ToBool();
     this.c = MUX(p, q, sel);
 }