An XOR (exclusive OR) gate is a digital logic gate that outputs true (1) when the number of true inputs is odd. It is commonly used in arithmetic and error detection circuits.
Truth Table: | A | B | Output (A ⊕ B) | |—|—|—————–| | 0 | 0 | 0 | | 0 | 1 | 1 | | 1 | 0 | 1 | | 1 | 1 | 0 |
Logic Diagram: The XOR gate has two inputs and one output, represented by a curved line, indicating its function.
Implementation: XOR gates are typically implemented using NAND gates or NOR gates in digital circuits.