You are on page 1of 3

LOGIC GATES, Truth tables, Boolean Algebra, AND,

OR, NOT, NAND & NOR gates

Logic Gates
A logic gate is the basic building block of any digital system. It is an
electronic circuit with one or more inputs and one output. The
relationship between the input and the output is based on a certain
logic. There are seven types of basic logic gates: AND gate, OR gate,
NOT gate, NOR gate, NAND gate, exclusive OR gate, and exclusive NOR
gate.

OR Gate
The OR gate has two inputs and one output. It shows whether there is a
signal in input A or input B. The output is 0 if there is no signal in both
inputs, and 1 if there is a signal in at least one input.

Truth Table:

 A = 0, B = 0, Y = 0
 A = 1, B = 0, Y = 1
 A = 0, B = 1, Y = 1
 A = 1, B = 1, Y = 1
AND Gate
The AND gate also has two inputs and one output. It only gives an
output if both inputs have a signal.

Truth Table:

 A = 0, B = 0, Y = 0
 A = 1, B = 0, Y = 0
 A = 0, B = 1, Y = 0
 A = 1, B = 1, Y = 1
NOT Gate
The NOT gate, or inverter, outputs the opposite state of its input. If the
input is 1, the output is 0, and vice versa.
NOR Gate
The NOR gate is a combination of the OR gate and the NOT gate. The
output of the OR gate is passed through the NOT gate, resulting in the
opposite output.

Truth Table (based on OR gate's truth table):

 A = 0, B = 0, Y = 1
 A = 1, B = 0, Y = 0
 A = 0, B = 1, Y = 0
 A = 1, B = 1, Y = 0
NAND Gate
The NAND gate is a combination of the AND gate and the NOT gate.
The output of the AND gate is passed through the NOT gate, resulting
in the opposite output.

Truth Table (based on AND gate's truth table):

 A = 0, B = 0, Y = 1
 A = 1, B = 0, Y = 1
 A = 0, B = 1, Y = 1
 A = 1, B = 1, Y = 0
Exclusive OR Gate
The exclusive OR gate gives an output when there is a signal in only one
of the inputs. It does not provide an output if both inputs are the same
(either both 0 or both 1).

Truth Table:

 A = 0, B = 0, Y = 0
 A = 1, B = 0, Y = 1
 A = 0, B = 1, Y = 1
 A = 1, B = 1, Y = 0
In digital logic, there are several types of logic gates. Two common
types are the exclusive OR (XOR) gate and the exclusive NOR (XNOR)
gate.

XOR Gate
The XOR gate has two inputs, A and B, and one output. The output is
high (1) only if one of the inputs is high, but not both. If both inputs are
low (0) or both inputs are high (1), the output is low (0).

The truth table for the XOR gate is as follows:

A B Output
000
011
101
110
XNOR Gate
The XNOR gate is the complement of the XOR gate. It has the same
inputs, A and B, and one output. The output is low (0) only if one of the
inputs is high, but not both. If both inputs are low (0) or both inputs are
high (1), the output is high (1).

The truth table for the XNOR gate is as follows:

A B Output
001
010
100
111
The XOR gate and XNOR gate are important components in digital
circuits. They are used in various applications, such as arithmetic
circuits, error detection circuits, and data transmission.

Thank you for reading! For more educational content, subscribe to my


channel and leave a like. Your support is greatly appreciated!

You might also like