Logic Gates By Taweesak Reungpeerakul

Slides:



Advertisements
Similar presentations
EET 1131 Unit 5 Boolean Algebra and Reduction Techniques
Advertisements

Chapter 2 Logic Circuits.
Boolean Algebra and Reduction Techniques
Chapter 11_1 (chap 10 ed 8) Digital Logic. Irvine, Kip R. Assembly Language for Intel-Based Computers, NOT AND OR XOR NAND NOR Truth Tables Boolean.
Relationship Between Basic Operation of Boolean and Basic Logic Gate The basic construction of a logical circuit is gates Gate is an electronic circuit.
Digital Fundamentals Floyd Chapter 4 Tenth Edition
EET 1131 Unit 5 Boolean Algebra and Reduction Techniques
Digital Fundamentals with PLD Programming Floyd Chapter 4
Computer Programming Skills Revision Prepared by: Ghader Kurdi.
ENGG 1203 Tutorial Combinational Logic (I) 1 Feb Learning Objectives
Boolean Algebra and Logic Simplification. Boolean Addition & Multiplication Boolean Addition performed by OR gate Sum Term describes Boolean Addition.
Digital Logic Design Adil Waheed. BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION AND gate F = A.B OR gate F = A + B NOT gate F = A NAND gate F = A.B NOR gate.
Boolean Algebra and Logic Simplification
Chapter 2: Boolean Algebra and Logic Functions
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals with PLD Programming.
CH111 Chapter 11 CMOS and TTL Circuits By Taweesak Reungpeerakul.
CHAPTER 2 Boolean Algebra
Lecture 4 Logic gates and truth tables Implementing logic functions
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
Logic Design A Review. Binary numbers Binary numbers to decimal  Binary 2 decimal  Decimal 2 binary.
Ch. 4 Boolean Algebra and Logic Simplification
Combinational Logic By Taweesak Reungpeerakul
ECE 331 – Digital System Design
IC Logic Families Wen-Hung Liao, Ph.D.
Digital Systems: Combinational Logic Circuits Wen-Hung Liao, Ph.D.
CHAPTER 1 : INTRODUCTION
CHAPTER 3: PRINCIPLES OF COMBINATIONAL LOGIC
CH51 Chapter 5 Combinational Logic By Taweesak Reungpeerakul.
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC
CH41 Chapter 4 Boolean Algebra and Logic Simplification By Taweesak Reungpeerakul.
1 Logic Gates and Circuits  Logic Gates Logic Gates  The Inverter The Inverter  The AND Gate The AND Gate  The OR Gate The OR Gate  The NAND Gate.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
Boolean Algebra and Reduction Techniques
1 EENG 2710 Chapter 2 Algebraic Methods For The Analysis and Synthesis of Logic circuits.
Boolean Algebra & Logic Circuits Dr. Ahmed El-Bialy Dr. Sahar Fawzy.
Floyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd Chapter 4 © 2008 Pearson Education.
Chapter 2 Boolean Algebra and Minimization Techniques.
Sum-of-Products (SOP)
Logic Gates Digital Electronics.
DKT 122/3 - DIGITAL SYSTEM I Chapter 4A:Boolean Algebra and Logic Simplification) Mohd ridzuan mohd nor
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC
C.S. Choy21 BOOLEAN ALGEGRA The Mathematics of logic Boolean variables have only two possible values (binary) Operators:. Product+ SumComplement A.B A+B.
1 Ch. 4 Boolean Algebra and Logic Simplification Boolean Operations and Expressions Laws and Rules of Boolean Algebra Boolean Analysis of Logic Circuits.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Binary Numbers For digital systems, the.
 Seattle Pacific University EE Logic System DesignKMaps-1 Two-Level Simplification All Boolean expressions can be represented in two- level forms.
1 3- De-Morgan’s Theorems 1.The complement of a product of variables is equal to the sum of the complements of the variables. 2. The complement of a sum.
CH31 Chapter 3 Logic Gates By Taweesak Reungpeerakul.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
ECE 331 – Digital System Design Basic Logic Operations, Boolean Expressions and Truth Tables, and Standard Logic Gates The slides included herein were.
School of Computer and Communication Engineering, UniMAP DKT 122/3 - DIGITAL SYSTEM I Chapter 4A:Boolean Algebra and Logic Simplification) Mohd ridzuan.
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC. De Morgan’s Theorem De Morgan’s Theorem.
DE MORGAN’S THEOREM. De Morgan’s Theorem De Morgan’s Theorem.
DeMorgan’s Theorem DeMorgan’s 2 nd Theorem The complement of a sum of variables is equal to the product of the complemented variables. A + B = A. B Applying.
1 CS 352 Introduction to Logic Design Lecture 4 Ahmed Ezzat Multi-level Gate Circuits and Combinational Circuit Design Ch-7 + Ch-8.
EET 1131 Unit 5 Boolean Algebra and Reduction Techniques
Lecture 7 Multi-Level Gate Networks
De Morgan’s Theorem,.
DeMorgan’s Theorem DeMorgan’s 2nd Theorem
EI205 Lecture 3 Dianguang Ma Fall, 2008.
Logic Gates and Boolean Algebra
CHAPTER 1 : INTRODUCTION
BASIC & COMBINATIONAL LOGIC CIRCUIT
CH7 Multilevel Gate Network
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION Part (a)
Logic Gates By Dr.Mazin Alzewary
Analysis of Logic Circuits Example 1
Laws & Rules of Boolean Algebra
Presentation transcript:

Logic Gates By Taweesak Reungpeerakul Chapter 2 Logic Gates By Taweesak Reungpeerakul

Contents Inverter AND Gate OR Gate NAND Gate NOR Gate XOR and XNOR Gates Integrated Circuit Logic Gates 242-208 CH2

2.1 Inverter (INV) Symbols Truth Table In Out 0 1 1 0 Timing Diagram 0 1 1 0 Timing Diagram Logic Expression: Out = In 1 1 242-208 CH2

2.2 AND Gate Symbols Truth Table Timing Diagram Logic Expression: A B Out 0 0 0 0 1 0 1 0 0 1 1 1 Timing Diagram Logic Expression: Out = AB 242-208 CH2

2.3 OR Gate Symbols Truth Table Timing Diagram Logic Expression: A B Out 0 0 0 0 1 1 1 0 1 1 1 1 Timing Diagram Logic Expression: Out = A+B 242-208 CH2

2.4 NAND Gate Symbols Truth Table Timing Diagram Logic Expression: A B Out 0 0 1 0 1 1 1 0 1 1 1 0 Timing Diagram Logic Expression: Out = AB 242-208 CH2

2.5 NOR Gate Symbols Truth Table Timing Diagram Logic Expression: A B Out 0 0 1 0 1 0 1 0 0 1 1 0 Timing Diagram Logic Expression: Out = A+B 242-208 CH2

2.6 XOR Gate Symbols Truth Table Timing Diagram Logic Expression: A B Out 0 0 0 0 1 1 1 0 1 1 1 0 Timing Diagram Logic Expression: Out = A B+AB; AB 242-208 CH2

XNOR Gate Symbols Truth Table Timing Diagram Logic Expression: A B Out 0 0 1 0 1 0 1 0 0 1 1 1 Timing Diagram Logic Expression: Out = A B+AB; AB 242-208 CH2

2.7 Integrated Circuit Logic Gates CMOS: Complementary Metal-Oxide Semiconductor Low Power Dissipation DC Power Supply: 5 V & 3.3 V CMOS Series: 74 + letter(s) + numbers Letters: HC, HCT = High-speed CMOS LV, LVC = Low-voltage CMOS BCT = BiCMOS (combine CMOS&TTL) Numbers: 00= Quad 2-input NAND 02= Quad 2-input NOR 04= Hex inverter TTL: Transistor-Transistor Logic Not Sensitive to Electrostatic Discharge Switching Speed DC Power Supply: 5 V TTL Series: 74 + letter(s) + numbers Letters: S = Schottky TTL LS = Low-power Schottky TTL F = Fast TTL Numbers: 08= Quad 2-input AND 10= Triple 3-input NAND 32= Quad 2-input OR 242-208 CH2

2.7 IC Logic Gate (cont.) Packages DIP IC Gate Config. 242-208 CH2

Performance Characteristics & Parameters Propagation Delay Time: tP , tPHL , tPLH DC Power Supply: 3.3, 5V Power Dissipation (PD) PD = VCC (ICCH+ICCL)/2 I/O Logic Levels TTL: VIL =0.8 V, VIH =2 V VOL =0.4 V, VOH =2.4V Speed-power Product (SPP) SPP = tP*PD Fan-out and Loading Fan-out: max # gates connected at the output pin Unit loads = IOH/IIH or IOL/IIL Data Sheets 242-208 CH2

Contents (Session 2) Boolean Operations & Expressions Rules of Boolean Algebra DeMorgan’s Theorems Simplification Using Boolean Algebra Standard Forms of Boolean Algebra Karnaugh Map 242-208 CH2

2.8 Boolean Operations & Expressions Boolean Addition is equivalent to the OR operation. 0+0 = 0 0+1 = 1 1+0 = 1 1+1 = 1 Boolean multiplication is equivalent to the AND operation. 0·0 = 0 0·1 = 0 1·0 = 0 1·1 = 1 242-208 CH2

2.9 Rules of Boolean Algebra A+B = B+A AB = BA A+ (B+C) = (A+B)+C A(BC) = (AB)C A(B+C) = AB+AC A+0=A A·A=A A+1=1 A·A=0 A·0=0 A=A A·1=A A+A=A A+A=1 A+AB=A A+AB=A+B (A+B)(A+C)=A+BC 242-208 CH2

2.10 DeMorgan’s Theorems The complement of a product of variables is equal to the sum of the complements of the variables. XY = X + Y The complement of a sum of variables is equal to the product of complements of the variables. X + Y = X ·Y 242-208 CH2

Examples of DeMorgan’s theorem Ex# 2: AB + CDE = (AB) · (CDE) = (A+B) · (CD+E) Question: A+B+C+ DE Ans: A B C+D+E Ex#1: (AB+C)(BC) = (AB+C) +(BC) = (AB)C +(B+C) = (A+B)C + B+C Question: (A+B)C D Ans: (A ·B)+C+D 242-208 CH2

2.11 Boolean Analysis of Logic Circuits Truth Table A B C D (AB+C)D 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 1 1 1 0 1 0 0 0 0 1 0 1 0 0 1 1 0 0 0 1 1 1 1 1 0 0 0 0 1 0 0 1 0 1 0 1 0 0 1 0 1 1 1 1 1 0 0 0 1 1 0 1 1 1 1 1 0 0 1 1 1 1 1 A AB B AB+C C D (AB+C)D 242-208 CH2

2.12 Simplification using Boolean Algebra EX#1: AB+A(B+C)+B(B+C) = AB+AB+AC+BB+BC = AB + AC + B + BC = B + AC Question: AB+AC+ABC Ans: A+B C EX#2: A B C+A B C+A B C+A B C+A B C = B C+A B C+A B C+A B C = B C+ B C+A B C = BC+B(C+AC) = BC+B(C+A) = BC+B C+AB 242-208 CH2

2.13 Standard Forms of Boolean Expressions Sum-of-Products (SOP): 2 or more product terms are summed by Boolean addition such as AB+ABC+AC Ex# 1: (A+B)(C+D)  SOP form = AC+AD+BC+BD Ex# 2: (A + B) + C = AC + BC Standard SOP Form: all variables in the domain appear in each product term such as ABC+ABC+ABC Ex# 1: AB+ABC  standard SOP = AB(C+C)+ABC = ABC+ABC+ABC Ex# 2: B+ABC = B(A+A)+ABC = AB+AB+ABC = AB(C+C)+AB(C+C)+ABC = ABC+ABC+ABC+ABC+ABC 242-208 CH2

Standard Forms (cont.) Standard POS: Product-of-Sum (POS): 2 or more sum terms are multiplied such as (A+B)(A+B+C) Standard POS: all variables in the domain appear in each sum term such as (A+B+C)(A+B+C) Ex# 1: (A+C)(A+B+C)  standard POS = (A+C+BB)(A+B+C) =(A+B+C) (A+B+C) (A+B+C) Question: (A+C)(A+B)  std. POS Ans: (A+B+C) (A+B+C) (A+B+C)(A+B+C) 242-208 CH2

Std. SOP to std. POS Example: ABC+ABC+ABC+ABC+ABC 101 011 100 001 000 101 011 100 001 000 3 variables 23 = 8 possible combinations Remained terms: 111, 110, 010 Std. POS = (A+B+C)(A+B+C)(A+B+C) 242-208 CH2

2.14 Boolean Expressions and Truth Tables SOP  Truth Table EX: ABC+ABC+ABC+ABC 000 010 101 110 out=1 A B C Out 0 0 0 1 0 0 1 0 0 1 0 1 0 1 1 0 1 0 0 0 1 0 1 1 1 1 0 1 1 1 1 0 POS Truth Table EX: (A+B+C)(A+B+C)(A+B+C) 100 010 011 out=0 A B C Out 0 0 0 1 0 0 1 1 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 1 1 1 0 1 1 1 1 1 242-208 CH2

2.15 The Karnaugh Map The Karnaugh map is an array of cells in which each cell represents a binary value of the input variables. The number of cells is 2n, n is number of variables 3 Variables ABC ABC ABC ABC ABC ABC ABC ABC Question: 4 variables Karnaugh map 242-208 CH2

2.16 Karnaugh Map SOP Minimization Ex1: Map and minimize the following std. SOP expression on a Karnaugh map: A B C+ABC+ABC+A B C 000 001 110 100 AB 1 1 1 1 1 1 1 1 AC Answer: A B+AC 242-208 CH2

SOP Minimization (cont.) Ex2: Map and minimize the following SOP expression on a Karnaugh map: A B +ABC+A B C 110 111 010 011 B 1 1 1 1 1 1 1 1 Answer: B 242-208 CH2

Karnaugh Map Simplification Grouping 1s - Each group must contain 1,2,4,8,or 16 - Each cell in a group must be adjacent to one or more cells in that same group, but all cells in the group do not have to be adjacent to each other. - Always include the largest possible number of 1s in a group - Each 1 on the map must be included in at least one group. The 1s already in a group can be included in another group as long as the overlapping groups include non-common 1s. 242-208 CH2

Group the 1s in each of the Karnaugh maps ABC AC BC BC D ABC 1 1 1 1 1 1 1 1 1 A B AB C 1 1 1 1 1 1 1 1 1 1 1 1 242-208 CH2

2.17 Karnaugh Map POS Minimization Ex1: Map and minimize the following std. POS expression on a Karnaugh map: (A+B+C)(A+B+C)(A+B+C)(A+B+C) 000 001 111 110 A+B A+B Answer: (A+B)(A+B) 242-208 CH2

POS Minimization (cont.) Ex2: Map and minimize the following POS expression on a Karnaugh map: (A+B)(A+B+C)(A+B+C) 000 001 010 011 A Answer: A 242-208 CH2

Karnaugh maps Simplification of POS Expressions (B+C+D)(A+C+D)(A+B+C+D)(A+B+C+D)(A+B+C+D) 0000 1000 0010 0110 1011 1001 1010 (B+D) (A+C+D) (A+B) Answer: (B+D)(A+B)(A+C+D) 242-208 CH2

Converting Between POS and SOP Using Karnaugh Map (B+C+D)(A+C+D)(A+B+C+D)(A+B+C+D)(A+B+C+D) 0000 1000 0010 0110 1011 1001 1010 (B+D) BC AD (A+C+D) 1 1 1 1 1 AB (A+B) 1 1 1 1 Min POS: (B+D)(A+B)(A+C+D) Min SOP: AB+BC+AD 242-208 CH2

Mapping Directly from a Truth Table A B C Out 0 0 0 1 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 1 1 0 1 0 1 1 0 1 1 1 1 x 1 1 x 1 Out = AB+BC 242-208 CH2

7-segment decoding Logic Digit D C B A a b c d e f g 0 0 0 0 0 1 1 1 1 1 1 0 1 0 0 0 1 0 1 1 0 0 0 0 2 0 0 1 0 1 1 0 1 1 0 1 3 0 0 1 1 1 1 1 1 0 0 1 4 0 1 0 0 0 1 1 0 0 1 1 5 0 1 0 1 1 0 1 1 0 1 1 6 0 1 1 0 1 0 1 1 1 1 1 7 0 1 1 1 1 1 1 0 0 0 0 8 1 0 0 0 1 1 1 1 1 1 1 9 1 0 0 1 1 1 1 1 0 1 1 10 1 0 1 0 x x x x x x x 11 1 0 1 1 x x x x x x x 12 1 1 0 0 x x x x x x x 13 1 1 0 1 x x x x x x x 14 1 1 1 0 x x x x x x x 15 1 1 1 1 x x x x x x x 242-208 CH2

Karnaugh Map Minimization of the Segment Logic SOP for segment a: DC BA+DCBA+DCBA+ DCBA+DCBA+DCBA+DC BA+DCBA CA 1 1 1 CA B 1 1 1 D x x x x 1 1 x x Minimum SOP expression: D+B+CA+CA 242-208 CH2