Docsity

Logic Gates Introduction, Summaries of Electronics

Toggle sidebar
bg1
DIGITAL LOGIC DESIGN — GATES
Detailed Exam / Trick-MCQ Summary
1. What are Logic Gates?
Gates are the building blocks of all digital circuits.
They are called “Gates” because they control the flow of signals/information.
They are called “Binary Gates” because they deal with binary numbers: 0 and 1.
They are called “Logic Gates” because their operation is based on logic.
Gates are decision-making elements and can be used to turn devices ON/OFF.
Gates are electronic circuits that combine digital signals according to Boolean Algebra.
Gates are two-state / bi-state devices: they remain in one of two states, such as ON or OFF.
MCQ TRAP: ⚠A gate is an electronic CIRCUIT, not an electronic component. Diodes, transistors, resistors and switches
are components.
Gates can be constructed from different electronic components and are commonly available as Integrated Circuits
(ICs).
An IC may contain a few or a large number of gates, of similar or different types.
2. General Properties of Gates
Every gate has exactly ONE output.
Except one gate, all other listed gates have a minimum of TWO inputs.
Inputs and outputs are digital: Low/High, Logic 0/1, Binary 0/1.
MCQ TRAP: ⚠The one-input exception is the NOT gate.
Gate Minimum inputs Outputs
NOT 1 1
OR 2 1
AND 2 1
NOR 2 1
NAND 2 1
XOR 2 1
XNOR 2 1
3. Seven Types & Classification
Seven gates: NOT, OR, AND, NOR, NAND, XOR (Exclusive OR), XNOR (Exclusive NOR).
Category Gates Why
Fundamental NOT, OR, AND Can be used to construct the other gates.
Universal NOR, NAND Any one of them can be used to construct
all gates.
Exclusive XOR, XNOR Specific functions related to logical
inequality/equality.
4. NOT Gate
Has exactly ONE input and ONE output.
Inverts the input; therefore it is also called an Inverter.
1 → 0 and 0 → 1.
It is called NOT because the output is NOT similar/equal to the input.
Expression: Y = Ā
A Y
0 1
1 0
MCQ TRAP: ⚠NOT is the one-input exception among the listed gates.
Digital Logic Design — Gates | Exam-focused summary
pf3
pf4
pf5

Partial preview of the text

Download Logic Gates Introduction and more Summaries Electronics in PDF only on Docsity!

DIGITAL LOGIC DESIGN — GATES

Detailed Exam / Trick-MCQ Summary

1. What are Logic Gates?

 Gates are the building blocks of all digital circuits.

 They are called “Gates” because they control the flow of signals/information.

 They are called “Binary Gates” because they deal with binary numbers: 0 and 1.

 They are called “Logic Gates” because their operation is based on logic.

 Gates are decision-making elements and can be used to turn devices ON/OFF.

 Gates are electronic circuits that combine digital signals according to Boolean Algebra.

 Gates are two-state / bi-state devices: they remain in one of two states, such as ON or OFF.

⚠ MCQ TRAP: A gate is an electronic CIRCUIT, not an electronic component. Diodes, transistors, resistors and switches

are components.

 Gates can be constructed from different electronic components and are commonly available as Integrated Circuits

(ICs).

 An IC may contain a few or a large number of gates, of similar or different types.

2. General Properties of Gates

 Every gate has exactly ONE output.

 Except one gate, all other listed gates have a minimum of TWO inputs.

 Inputs and outputs are digital: Low/High, Logic 0/1, Binary 0/1.

⚠ MCQ TRAP: The one-input exception is the NOT gate.

Gate Minimum inputs Outputs NOT 1 1 OR 2 1 AND 2 1 NOR 2 1 NAND 2 1 XOR 2 1 XNOR 2 1

3. Seven Types & Classification

 Seven gates: NOT, OR, AND, NOR, NAND, XOR (Exclusive OR), XNOR (Exclusive NOR).

Category Gates Why Fundamental NOT, OR, AND Can be used to construct the other gates. Universal NOR, NAND Any one of them can be used to construct all gates. Exclusive XOR, XNOR Specific functions related to logical inequality/equality.

4. NOT Gate

 Has exactly ONE input and ONE output.

 Inverts the input; therefore it is also called an Inverter.

 1 → 0 and 0 → 1.

 It is called NOT because the output is NOT similar/equal to the input.

Expression: Y = Ā

A Y

⚠ MCQ TRAP: NOT is the one-input exception among the listed gates.

5. OR Gate

 Has two or more inputs and one output.

 If ANY ONE OR MORE inputs are 1, output is 1.

 Only when ALL inputs are 0 does output become 0.

Expression: Y = A + B

A B Y

 Memory: OR = at least ONE 1.

6. AND Gate

 Has two or more inputs and one output.

 If ANY input is 0, output is 0.

 Output is 1 ONLY when ALL inputs are 1.

Expression: Y = A·B (or AB)

A B Y

 Memory: AND = ALL must be 1.

7. NOR Gate

 NOR = NOT OR.

 Perform OR first, then invert.

 If ANY input is 1 → output 0.

 Only ALL inputs 0 → output 1.

Expression: Y = ¬(A + B)

A B Y

 Memory: NOR = OR's opposite.

8. NAND Gate

 NAND = NOT AND.

 Perform AND first, then invert.

 If ANY input is 0 → output 1.

 Only ALL inputs 1 → output 0.

Expression: Y = ¬(A·B)

A B Y

 Memory: NAND = AND's opposite.

9. NOR vs NAND Input condition NOR NAND All inputs 0 1 1

 E = 1 (HIGH) → output follows the input.

 Internally, the slide describes buffers as two NOT gates connected back-to-back.

⚠ MCQ TRAP: Enable = 0 does NOT mean output = 0. It means HIGH IMPEDANCE.

15. IEEE Symbols

 IEEE provides two types of gate symbols:

 1) Distinctive Shape — traditional schematics; used for simple drawings.

 2) Rectangular Shape — rectangular outlines for all gate types; supports a wider range of devices.

⚠ MCQ TRAP: Rectangular Shape is the one with rectangular outlines for all types of gates.

16. Logic Problem 1 — Seat Belt Alarm

 Ignition ON → sensor = 1; OFF → 0.

 Seat belt buckled → sensor = 0; unbuckled → 1.

 Alarm turns ON when ignition is ON AND belt is unbuckled.

 Therefore the function is a 2-input AND gate.

Ignition A Belt B Alarm Y 0 0 0 0 1 0 1 0 0 1 1 1

⚠ MCQ TRAP: Translate the physical condition into its sensor logic BEFORE choosing the gate.

17. Logic Problem 2 — Chemical Tanks

 Tank level ≥ 40% → sensor = 1.

 Tank level < 40% → sensor = 0.

 Green LED is ON only when BOTH tanks are ≥ 40% → AND.

 Red LED is ON when either/both tank levels are below 40% → NAND for the given sensor logic.

Tank A Tank B Green Y1 Red Y 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0

⚠ MCQ TRAP: Do not automatically pick OR for the red condition. The sensor's 0/1 definition matters.

18. Logic Problem 3 — Aircraft Landing Gear

 There are 3 gear sensors.

 Properly extended gear → sensor = LOW (0).

 Gear not properly extended → sensor = HIGH (1).

 Green LED turns ON when ALL 3 gears are properly extended → only input 000 produces 1 → 3-input NOR.

 Red LED turns ON if ANY gear fails to extend → any input 1 produces 1 → 3-input OR.

G1 G2 G3 Green Red 0 0 0 1 0 0 0 1 0 1 0 1 0 0 1 0 1 1 0 1 1 0 0 0 1 1 0 1 0 1 1 1 0 0 1 1 1 1 0 1

⚠ MCQ TRAP: Again: properly extended = 0. Failure = 1. That inversion is the trick.

19. FINAL MCQ CHEAT SHEET Gate Output = 1 when... Special name / fact NOT Input = 0 Inverter OR At least one 1 — AND All 1 —

NOR All 0 NOT OR; Universal NAND At least one 0 NOT AND; Universal XOR (2-input) Inputs different Inequality / Anti-Coincidence XOR (multiple) Odd number of 1s — XNOR (2-input) Inputs same Equivalence Buffer Output follows input when enabled E=0 → Hi-Z

20. Numbers & Facts to Memorize

 7 gate types in the lecture.

 3 Fundamental: NOT, OR, AND.

 2 Universal: NOR, NAND.

 2 Exclusive: XOR, XNOR.

 NOT has 1 input; the other listed gates have at least 2 inputs.

 Every gate has exactly 1 output.

 XOR: 2-input → different = 1; multiple-input definition → odd number of 1s = 1.

 XNOR: same = 1 for two inputs.

 Buffer: Enable 0 → Hi-Z; Enable 1 → output follows input.

 IEEE: Distinctive Shape and Rectangular Shape.

21. Ultra-Fast Memory Rules

OR → ANY 1 = 1

AND → ALL 1 = 1

NOR → ALL 0 = 1

NAND → ANY 0 = 1

XOR → DIFFERENT = 1 (2 inputs) / ODD number of 1s = 1 (multiple inputs)

XNOR → SAME = 1

NOT → OPPOSITE

BUFFER → SAME (when enabled)