2. Boolean Algebra and Logic Gates

Slides:



Advertisements
Similar presentations
Boolean Algebra and Logic Gates
Advertisements

Boolean Algebra and Logic Gates
Boolean Algebra and Logic Gates
Chapter 2 Logic Circuits.
Boolean Algebra and Logic Gates
CSE-221 Digital Logic Design (DLD)
28/06/041 CSE-221 Digital Logic Design (DLD) Lecture-5: Canonical and Standard forms and Integrated Circuites.
Chapter Two Boolean Algebra and Logic Gate
Chapter 2: Boolean Algebra and Logic Functions
Chapter 2 Boolean Algebra and Logic Gates
Boolean Algebra Boolean algebra Boolean algebra, like any other deductive mathematical system, may be defined with –a set of elements, –a set of operators,
Logic Design CS221 1 st Term Boolean Algebra Cairo University Faculty of Computers and Information.
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
Chapter 2 Boolean Algebra and Logic Gates 授課教師 : 張傳育 博士 (Chuan-Yu Chang Ph.D.) Tel: (05) ext.
Boolean Algebra and Digital Circuits
1 Representation of Logic Circuits EE 208 – Logic Design Chapter 2 Sohaib Majzoub.
Chapter 2. Outlines 2.1 Introduction 2.2 Basic Definitions 2.3 Axiomatic Definition of Boolean Algebra 2.4 Basic thermos and proprieties of Boolean Algebra.
Module 4.  Boolean Algebra is used to simplify the design of digital logic circuits.  The design simplification are based on: Postulates of Boolean.
Logic Design Dr. Yosry A. Azzam.
Chapter 2: Boolean Algebra and Logic Gates. F 1 = XY’ + X’Z XYZX’Y’XY’X’ZF1F
Switching Theory and Logic Design
Digital System Ch2-1 Chapter 2 Boolean Algebra and Logic Gates Ping-Liang Lai ( 賴秉樑 ) Digital System 數位系統.
Boolean Algebra and Logic Gates
1 Boolean Algebra  Digital circuits Digital circuits  Boolean Algebra Boolean Algebra  Two-Valued Boolean Algebra Two-Valued Boolean Algebra  Boolean.
Chap 2. Combinational Logic Circuits
1 CSE370, Lecture 3 Lecture 3: Boolean Algebra u Logistics u Last lecture --- Numbers n Binary numbers n Base conversion n Number systems for negative.
A. Abhari CPS2131 Chapter 2: Boolean Algebra and Logic Gates Topics in this Chapter: Boolean Algebra Boolean Functions Boolean Function Simplification.
1 Lect # 2 Boolean Algebra and Logic Gates Boolean algebra defines rules for manipulating symbolic binary logic expressions. –a symbolic binary logic expression.
Logic Circuits Lecture 3 By Amr Al-Awamry. Basic Definitions Binary Operators  AND z = x y = x yz=1 if x=1 AND y=1  OR z = x + y z=1 if x=1 OR y=1 
2. Boolean Algebra and Logic Gates
Binary Logic and Gates Boolean Algebra Canonical and Standard Forms Chapter 2: Boolean Algebra and Logic Gates.
D IGITAL L OGIC D ESIGN I B OOLEAN A LGEBRA AND L OGIC G ATE 1.
Boolean Algebra & Logic Circuits Dr. Ahmed El-Bialy Dr. Sahar Fawzy.
Module 5.  In Module 3, you have learned the concept of Boolean Algebra which consists of binary variables and binary operator.  A binary variable x,
Chapter 2: Basic Definitions BB inary Operators ●A●AND z = x y = x yz=1 if x=1 AND y=1 ●O●OR z = x + yz=1 if x=1 OR y=1 ●N●NOT z = x = x’ z=1 if x=0.
R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001 Chapter 9 Boolean Algebras and Combinatorial Circuits.
Lecture 18: Boolean Algebra Boolean Functions. w = Chris is allowed to watch television x = Chris's homework is finished y = it is a school night z =
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 4 Dr. Shi Dept. of Electrical and Computer Engineering.
ECE DIGITAL LOGIC LECTURE 8: BOOLEAN FUNCTIONS Assistant Prof. Fareena Saqib Florida Institute of Technology Spring 2016, 02/11/2016.
Lecture 5 More Boolean Algebra A B. Overview °Expressing Boolean functions °Relationships between algebraic equations, symbols, and truth tables °Simplification.
CSE 461. Binary Logic Binary logic consists of binary variables and logical operations. Variables are designated by letters such as A, B, C, x, y, z etc.
1 논리공학 고려대학교 전기전자전파공학부 김종국. 2  1 or 0, yes or no, true or false …  디지털 시스템을 위한 기초  거의 모든 전기전자제품은 디지털 시스템 e.g., 핸드폰, 전자시계, 컴퓨터 …  이진수  필요성  십진수에서.
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
Basic Laws, theorems, and postulates of Boolean Algebra
CHAPTER 2 Boolean algebra and Logic gates
Chapter 2: Boolean Algebra and Logic Functions
ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #2 Instructor: Andrew B. Kahng (lecture)
CS 105 Digital Logic Design
CHAPTER 2 Boolean Algebra This chapter in the book includes:
Princess Sumaya University
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
Lecture 3: Boolean Algebra
Boolean Algebra Why study Boolean Algebra?
Boolean Algebra.
17-Nov-18 Logic Algebra 1 Combinational logic.
Boolean Algebra.
INTRODUCTION TO LOGIC DESIGN Chapter 2 Boolean Algebra and Logic Gates
Boolean Algebra.
Lecture 14: Boolean Algebra
Chapter 2 Boolean Algebra and Logic Gate
Digital Logic Design I Gate-Level Minimization
Boolean Algebra Logic Gates
Boolean Algebra Logic Gates
Lecture 3: Boolean Algebra
Digital Logic Chapter-2
Boolean Algebra Rayat Shikshan Sanstha’s
Digital Logic Chapter-2
Boolean Algebra Rayat Shikshan Sanstha’s
Lecture 3: Boolean Algebra
Chapter 4 Combinational Logic Design Principles. Overview Objectives -Define combinational logic circuit -Analysis of logic circuits (to describe what.
Presentation transcript:

2. Boolean Algebra and Logic Gates

2.1 Boolean Algebra and Logic Gates Define a set of elements, a set of operators a number of unproved axioms or postulates

2.2 Basic Definition Various algebraic structures 1. Closure : A set S is closed with respect to a binary operator if, for every pair of elements of S, the binary operator specifies a rule for obtaining a unique elements of S. 2. Associative law : (x*y)*z=x*(y*z) for all x,y,z∈S 3. Commutative law : x*y=y*x for all x,y∈S 4. Identity elements: for all x∈S, e*x=x*e=x ex) set of integers I={…, -3, -2, -1, 0, 1, 2, 3, …}, x+0=0+x=x 5. Inverse : A set S having the identity elements for all x∈S , y∈S, x*y=e 6. Distributive law : x*(y • z)=(x*y) • (x*z)

2.3 Axiom Definition of Boolean Algebra Boolean algebra is an algebraic structure defined by a set of elements, B, together with two binary operators, + and·, provided that the following(Huntington) postulates are satisfied (a) Closure with respect to the operator +. (a) Closure with respect to the operator ·. (a) An identity element with respect to +, designated by 0: x+0=0+x=x (b) An identity element with respect to ·, designated by 1: x·1=1·x=x (a) Commutative with respect to + : x + y = y + x (a) Commutative with respect to · : x · y = y · x (a) · is distributive over + : x·(y+z)=(x·y)+(x·z) (a) + is distributive over · : x+(y·z)=(x+y) ·(x+z) For every element xєB, there exists an element x’ єB such that (a)x+x’=1 and (b) x·x’ = 0 There exists at least two elements x, y єB such that x≠y

2.4 Basic Theorems and Properties of Boolean Algebra Duality - interchange OR and And operators and replace 1’s by 0’s and 0’s by 1’s Operator precedence 1. Parentheses 2. NOT 3. AND 4. OR

2.5 Boolean Functions F1 = x + y'z F2 = x'y'z + x'yz +xy‘ = x'z(y'+y) + xy' = x'z + xy'

2.5 Boolean Functions – Algebraic Manipulation Ex 2-1) Simplify the following Boolean functions to a minimum number of literals.   1. x(x'+y) = xx' + xy = 0 + xy = xy.   2. x +x'y = (x+x')(x+y) = 1(x+y) = x + y.   3. (x+y)(x+y') = x + xy + xy' + yy' = x(1+y+y') = x.   4. xy + x'z + yz = xy + x'z + yz(x+x')                   = xy + x'z + xyz + x'yz                     = xy(1+z) + x'z(1+y)                    = xy + x'z   5. (x+y)(x'+z)(y+z) = (x+y)(x'+z) : by duality from function 4. (A + B + C)'= (A+x)'      let B+C=x = A'x'          by theorem 5(a)(DeMorgan) = A'(B+C)'     substitute B+C=x   = A'(B'C')      by theorem 5(a)(DeMorgan)   = A'B'C'       by theorem 4(b)(associative)  (A+B+C+D+…+F)' = A'B'C'D'…F' (ABCD…F)' = A' +B'+ C' + D' + … + F'

2.5 Boolean Functions – Complement of a Function Ex 2-2) Find the complement of the functions F1=x'yz'+x'y'z, F2=x(y'z'+yz). F1' = (x'yz'+x'y'z)' = (x'yz')'(x'y'z)' = (x+y'+z)(x+y+z') F2' = [x(y'z'+yz)]' = x'+(y'z'+yz)' = x'+(y'z')'(yz)'  = x'+(y+z)(y'+z') Ex 2-3) Find the complement of the functions F1 And F2 Ex 2-2 by taking their duals and complementing each literal.   1. F1 = x'yz' + x'y'z.     The dual of F1 is (x'+y+z')(x'+y'+z)    Complement each literal : (x+y'+z)(x+y+z')=F1' 2. F2 = x(y'z'+yz). The dual of F2 is x+(y'+z')(y+z) Complement each literal : x'+(y+z)(y'+z')=F2'

2.6 Canonical and Standard Forms Minterms and Maxterms

2.6 Canonical and Standard Forms f1 = x'y'z+xy'z'+xyz = m1+m4+m7 f2 = x'yz+xy'z+xyz'+xyz = m3+m5+m6+m7 f1 = (x+y+z)(x+y'+z)(x'+y+z')(x'+y'+z) = M0M2M3M5M6 f2 = (x+y+z)(x+y+z‘)(x+y'+z)(x'+y+z)   = M0M1M2M4

2.6 Canonical and Standard Forms Sum of Minterms Ex 2-4) Express the Boolean function F=A+B'C in a sum of minterms. A = A(B+B') = AB +AB' = AB(C+C') + AB'(C+C') = ABC + ABC' + AB'C +AB'C' B'C = B'C(A+A') = AB'C + A'B'C F = A + B'C  = A' B'C + AB'C' + AB'C + ABC' + ABC = m1 + m4 + m5 + m6 + m7 = ∑(1, 4, 5, 6, 7)

2.6 Canonical and Standard Forms Product of maxterms Ex 2-5) Express the Boolean function F = xy + x'z in a product of maxterm form. F = xy + x'z = (xy+x')(xy+z) = (x+x')(y+x')(x+z)(y+z) = (x'+y)(x+z)(y+z) x' + y= x' + y + zz'= (x'+y+z)(x'+y+z') x + z= x + z + yy'= (x+y+z)(x+y'+z) y + z= y + z + xx'= (x+y+z)(x'+y+z) F = (x+y+z)(x+y'+z)(x'+y+z)(x'+y+z')   = M0M2M4M5 F(x, y, z) = ∏(0, 2, 4, 5)

2.6 Canonical and Standard Forms Conversion between Canonical Forms F(A, B, C) = ∑(1, 4, 5, 6, 7) F' (A, B, C) = ∑(0, 2, 3) = m0 + m2 + m3 F = (m0+m2+m3)' = m0'm2'm3' = M0M2M3 = ∏(0, 2, 3) , mj' = Mj Ex) F = xy + x'z F(x, y, z) = ∑(1, 3, 6, 7) F(x, y, z) = ∏(0, 2, 4, 5)

2.6 Canonical and Standard Forms - Sum of product : F1 = y' +xy + x'yz' - Product of sum : F2 = x(y'+z)(x'+y+z') - Ex) F3 = AB + C(D+E) = AB +CD + CE

2.7 Other Logic Operations

2.8 Digital Logic Gate

2.8 Digital Logic Gate

F = [(ABC)'(DE)']' = ABC + DE 2.8 Digital Logic Gate Extension to Multiple Inputs - The NAND and NOR operators are not associative. (x↓y)↓z≠x↓(y↓z) (x↓y)↓z= [(x+y)'+z]' = (x+y)z'= xz' + yz' x↓(y↓z)= [x+(y+z)'] ' = x'(y+z)= x'y + x'z x↓y↓z= (x+y+z)' x↑y↑z= (xyz)' F = [(ABC)'(DE)']' = ABC + DE

2.8 Digital Logic Gate - exclusive-OR Positive and Negative Logic