0% found this document useful (0 votes)
3 views4 pages

4.4 Logic Gate

Uploaded by

Malika Malik
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views4 pages

4.4 Logic Gate

Uploaded by

Malika Malik
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

What is a Logic Gate?

A logic gate is an electronic component or circuit that performs a logical operation on one or
more binary inputs and produces a single binary output. It operates on the principle of Boolean
algebra.
Binary Inputs and Outputs
• Binary values: Only two values are used — 0 (LOW or FALSE) and 1 (HIGH or
TRUE).
• Inputs: Signals or data (usually 1 or 2 bits).
• Output: Result of the logical operation, also a binary value.

Types of Logic Gates


Gate Symbol Operation Description
AND · or & A·B Output is 1 only if both inputs are 1.
OR + A+ B Output is 1 if at least one input is 1.
NOT ¬ or ! ¬A Inverts the input (0 becomes 1, 1 becomes 0).
NAND ¬(A·B) NOT AND Opposite of AND — output is 0 only if both inputs are 1.
NOR ¬(A+B) NOT OR Opposite of OR — output is 1 only if both inputs are 0.
XOR ⊕ A⊕ B Output is 1 if only one input is 1, not both.
XNOR ≡ ¬(A ⊕ B) Output is 1 if both inputs are the same.

What is a Truth Table?


A truth table is a chart used to list all possible input combinations to a logic gate and show the
corresponding output for each combination.
It is an easy way to visualize how a logic gate works.

1|Page
Truth Tables of Basic Gates
1. AND Gate
A B A · B (Output)
0 0 0
0 1 0
1 0 0
1 1 1

2. OR Gate
A B A + B (Output)
0 0 0
0 1 1
1 0 1
1 1 1

3. NOT Gate
A ¬A (Output)
0 1
1 0

4. NAND Gate
A B ¬(A · B)
0 0 1
0 1 1
1 0 1
1 1 0

2|Page
5. NOR Gate
A B ¬(A + B)
0 0 1
0 1 0
1 0 0
1 1 0

6. XOR Gate
A B A⊕ B
0 0 0
0 1 1
1 0 1
1 1 0

7. XNOR Gate
A B ¬(A ⊕ B)

0 0 1
0 1 0
1 0 0
1 1 1

Applications of Logic Gates


• Computers and CPUs
• Digital calculators
• Digital watches and clocks
• Traffic light controllers
• Security systems
• Control systems in robotics

3|Page
Summary
Concept Description
Logic Gate Performs a Boolean operation on binary inputs.
Truth Table Lists all possible inputs and corresponding output values.
Binary Logic Only 0 and 1 values are used to represent logic states.

4|Page

You might also like