Skip to main content

Short note: Logic gates

Short answer

Logic gates are digital circuit elements that perform Boolean operations on binary inputs. Basic gates include AND, OR, NOT, NAND, NOR, XOR, XNOR; NAND and NOR are universal gates. They are used in adders, counters, memories, and control circuits.

Write a short note on Logic Gates.

Logic gates are the basic building blocks of digital circuits. A gate has one or more binary inputs (0 or 1) and gives one binary output according to a logical rule. They are made from transistors and diodes in ICs (TTL, CMOS).

GateExpressionOutput is 1 when
ANDY=A⋅BY=A\cdot Ball inputs are 1
ORY=A+BY=A+Bat least one input is 1
NOTY=AˉY=\bar Athe input is 0 (inverter)
NANDY=A⋅B‾Y=\overline{A\cdot B}at least one input is 0
NORY=A+B‾Y=\overline{A+B}all inputs are 0
XORY=A⊕BY=A\oplus Binputs are different
XNORY=A⊕B‾Y=\overline{A\oplus B}inputs are the same

Truth table for two-input gates:

ABANDORNANDNORXORXNOR
00001101
01011010
10011010
11110001

NAND and NOR are called universal gates, because any logic function can be built using only one of them. Gates are used in adders, counters, memories, alarms and control circuits.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Basic Electrical and Electronics Engineering chapter 3 questions →