鼠标单击逻辑输入切换 0|1 状态
异或门的符号为 或门 符号输入处再添加一道弧线.
异或门的输出等价于将两个输入分别接入一个或门和一个与非门, 再对这两者输出结果取与的结果.
读者可对照着 或门, 与非门 和 与门 的真值表在示例电路中验证这一点.
https://cc.xiaogd.net/?startCircuitLink=https://book.xiaogd.net/code-hlchs-examples/assets/circuit/code-hlchs-ch12-02-xor.txt
https://cc.xiaogd.net/?startCircuitLink=https://book.xiaogd.net/code-hlchs-examples/assets/circuit/code-hlchs-ch12-03-half-adder-internal.txt
https://cc.xiaogd.net/?startCircuitLink=https://book.xiaogd.net/code-hlchs-examples/assets/circuit/code-hlchs-ch12-04-half-adder.txt