Ex.04 Ex-Or & Ex-Nor
Ex.04 Ex-Or & Ex-Nor
EQUIPMENTS REQUIRED:
1. DC power supply +5V
2. Digital Board DB 03
THEORY: The XOR gate (sometimes EOR gate or EXOR gate) is a digital
logic gate that implements an exclusive disjunction; that is, it behaves according to
the truth table shown on the right. A true output (1) results if one, and only one, of
the inputs to the gate is true (1). If both inputs are false (0) or both are true (1), a
false output (0) results. A way to remember XOR is "one or the other but not both".
It represents the inequality function, i.e., the output is HIGH (1) if the inputs are
not alike otherwise the output is LOW (0).
This function is addition modulo 2. As a result, XOR gates are used to implement
binary addition in computers. A half adder consists of an XOR gate and an AND
gate.
If a specific type of gate is not available, it can be constructed from other available
gates. An XOR gate can be trivially constructed from an XNOR gate followed by a
NOT gate. If we consider the expression, we can construct an XOR gate directly
using AND, OR and NOT gates. However, this approach requires five gates of
three different kinds.
An XOR gate can be made from four NAND or five NOR gates in the
configurations shown below. In fact, both NAND and NOR gates are so-called
"universal gates," and any logical function can be constructed from either NAND
logic or NOR logic alone.
INPUT OUTPUT
A B A XOR B
0 0 0
0 1 1
1 0 1
1 1 0
INPUT OUTPUT
A B A XOR B
0 0 1
0 1 0
1 0 0
1 1 1
PROCEDURE: 1.Connect +5V and ground to their indicated position on
digital lab or from external DC power supply.
2. Connect inputs as per truth table to input A and B on DB03 boards. Switch on
the power supply.