1 Lect # 2 Boolean Algebra and Logic Gates Boolean algebra defines rules for manipulating symbolic binary logic expressions. –a symbolic binary logic expression.

Slides:



Advertisements
Similar presentations
Boolean Algebra and Logic Gates
Advertisements

Boolean Algebra and Logic Gates
Logical Systems Synthesis.
Chapter 2 Logic Circuits.
ECE 331 – Digital System Design Boolean Algebra (Lecture #3) The slides included herein were taken from the materials accompanying Fundamentals of Logic.
Chapter 2 – Combinational Logic Circuits Part 1 – Gate Circuits and Boolean Equations Logic and Computer Design Fundamentals.
CS 151 Digital Systems Design Lecture 6 More Boolean Algebra A B.
Boolean Algebra and Logic Gates
CSE-221 Digital Logic Design (DLD)
Chapter 2: Boolean Algebra and Logic Functions
Binary Logic and Gates COE 202 Digital Logic Design Dr. Aiman El-Maleh
Boolean Algebra Computer Organization 1 © McQuain Boolean Algebra A Boolean algebra is a set B of values together with: -two binary operations,
Computer Organization
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,
CHAPTER 2 Boolean Algebra
Logic Design CS221 1 st Term Boolean Algebra Cairo University Faculty of Computers and Information.
1 Why study Boolean Algebra? 4 It is highly desirable to find the simplest circuit implementation (logic) with the smallest number of gates or wires. We.
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
Boolean Algebra and Digital Circuits
Switching functions The postulates and sets of Boolean logic are presented in generic terms without the elements of K being specified In EE we need to.
Combinational Logic 1.
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.
Chapter 2 Two- Level Combinational Logic. Chapter Overview Logic Functions and Switches Not, AND, OR, NAND, NOR, XOR, XNOR Gate Logic Laws and Theorems.
LOGIC GATES & BOOLEAN ALGEBRA
Venn Diagram – the visual aid in verifying theorems and properties 1 E.
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
ENGIN112 L6: More Boolean Algebra September 15, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 6 More Boolean Algebra A B.
Boolean Algebra – II. Outline  Basic Theorems of Boolean Algebra  Boolean Functions  Complement of Functions  Standard Forms.
CHAPTER 1 SETS, FUNCTIONs, ELEMENTARY LOGIC & BOOLEAN ALGEBRAs
A. Abhari CPS2131 Chapter 2: Boolean Algebra and Logic Gates Topics in this Chapter: Boolean Algebra Boolean Functions Boolean Function Simplification.
© BYU 03 BA1 Page 1 ECEn 224 Boolean Algebra – Part 1.
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,
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 =
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
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.
ECE DIGITAL LOGIC LECTURE 6: BOOLEAN ALGEBRA Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 02/01/2016.
BOOLEAN ALGEBRA LOGIC GATES. Introduction British mathematician George Boole( ) was successful in finding the link between logic and mathematics.
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.
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
CHAPTER 2 Boolean algebra and Logic gates
Digital Logic Circuits, Digital Component and Data Representation Course: BCA-2 nd Sem Subject: Computer Organization And Architecture Unit-1 1.
Boolean Algebra and Logic Gates COE 202 Digital Logic Design Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals.
Boolean Algebra & Logic Gates
De Morgan’s Theorem,.
Chapter 2: Boolean Algebra and Logic Functions
Unit 2 Boolean Algebra.
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
CHAPTER 2 Boolean Algebra This chapter in the book includes:
Princess Sumaya University
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
Boolean Algebra Why study Boolean Algebra?
Boolean Algebra.
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
2. Boolean Algebra and Logic Gates
January 19 W’05 Yutao He 4532B Boelter Hall CSM51A/EEM16-Sec.1 W’05
Logic Circuits I Lecture 3.
Digital Logic Chapter-2
Digital Logic Chapter-2
Presentation transcript:

1 Lect # 2 Boolean Algebra and Logic Gates Boolean algebra defines rules for manipulating symbolic binary logic expressions. –a symbolic binary logic expression consists of binary variables and the operators AND, OR and NOT (e.g. A+B  C) The possible values for any Boolean expression can be tabulated in a truth table. Can define circuit for expression by combining gates.

2

3 Common axioms (or postulates): 1. Closure: A set S is closed with respect to a binary operator,if the operator specifies a rule for obtaining an element of S. For example, the set of natural numbers is closed w.r.t binary operator (+) but not close w.r.t. binary operator (-). 2. Associative: A binary operator. on a set S is said to be associative if (x. y). z = x. (y. z) 3. Commutative: A binary operator. on a set S is said to be commutative if x. y = y. x

4 4. Identity element: Set S is said to have an identity element with respect to binary operation. on S if there exists an element e member of S such that e. x = x.e = x for every x member of S » Example: The element 0 is an identity element w.r.t. operation + on the set of integers I since x + 0 = 0 + x = x, x member of I 5. Inverse: A set S having the identity element e with respect to a binary operator. is said to have an inverse whenever, for every x member of S, there exists an element y member of S such that x. y = e » Example: The inverse of an element a is (-a) such that a + (-a) = 0 6. Distributivity: If. and ¤ are two binary operators on a set S,. is said to be distributive over ¤ whenever x. (y ¤ z) = (x. y) ¤ (x. z)

5 Boolean Algebra: Algebra for binary values. Developed by George Boole in Huntington postulates for Boolean algebra (1904): Closure with respect to operator + and operator · y → = {+ ‘ } for ∀ x,y ∈ B Identity element 0 for operator + and 1 for operator · Commutativity with respect to + and · x+y = y+x, x·y = y·x Distributivity of · over +, and + over · x·(y+z) = (x·y)+(x·z) and x+(y·z) = (x+y)·(x+z) Complement for every element x is x’ with x+x’=1, x·x’=0 There are at least two elements x,y member of B such that x is not y

6 Boolean vs. Ordinary Algebra Postulates do not include associativity Distributivity of + over · holds for Boolean, not for ordinary algebra » x+(y·z) = (x+y)·(x+z) Boolean does not have inverse elements for + or · » Thus, no subtraction or division operators Complement is not defined in ordinary algebra Set of elements in Boolean algebra not yet defined » But there must be at least two elements Boolean 0 and 1 represent the state of a voltage variable (logic level) and is used to express the effects that various digital circuits have on logic inputs

7 Basic Theorems of Boolean Algebra Theorem 1 (Idempotency) (a) x + x = x ; (b) x x = x. Theorem 2 (a) x + 1 = 1 ; (b) x. 0 = 0. Theorem 3 (Absorption) (a) yx + x = x ; (b) (y + x)x = x. Theorem 4 (Involution) (x`)` = x. Duality Property To obtain a dual of a given expression: Interchange + and operators Replace all 0s with 1s with and all 1s and with 0s.

8 Theorem 5 (De Morgan) (a) (x + y)` = x`. y`; (b) (xy)` = x` + y`. Theorem 6 (De Morgan (generalized)) The theorems usually are proved algebraically (i.e., by transformations based on axioms and theorems) or by truth table.

9

10

11

12 BOOLEAN FUNCTIONS

13 BOOLEAN FUNCTIONS Boolean algebra deals with binary variables and logic operations Boolean function is an algebraic expression that consists of: Binary variables Constants 0 and 1 Logic operation symbols The number of rows in the table is 2 n, where n is the number of variables in the function.

14 LOGIC CKT DIAGRAM OF BOOLEAN FUNCTION

15 A literal is a variable or its complement in a boolean expression, e.g., F1 has 8 literals, 1 OR term (sum term), and 3 AND terms (product terms). The complement of any function F is F0, which can be obtained by De Morgan’s theorem: 1) take the dual of F (Interchange AND and OR, and 1s & 0s), and 2) complement each literal in F. NOTE for next slide see boole.pdf page 5 of 21

16

17

18 Algebraic Manipulation Consider function

19 Simplify Function Apply X(Y + Z) = XY + XZ X + X` = 1 X. 1 = X

20 Canonical form is algebraic representation of truth table. Uses minterms as basic component. A minterm is a product (ANDing) of all variables. Each variable of function appears in minterm. A maxterm is a sum (OR) of all variables in respective polarities Maxterm contains every variable in the function All the variables are OR-ed together in a maxterm

21

22 Both function (F1 & F2) = sum of all minterms where truth table is 1.

23 Fewer Gates

24 Standard Forms Sum-of-products (sop) Product-of-sums (pos) Product terms (or implicants) are the AND terms, which can have fewer literals than the minterms. Sum terms are the OR terms, which can have fewer literals than the maxterms. Standard forms are not unique! Standard forms can be derived from canonical forms by combining terms that differ in one variable, i.e., terms with distance 1. Sop form: F = w`x`yz + wxy`z`. Pos form: F = (w + x`)(w` + y`)(y + z`)(z + x) Non-Standard Form: (AB + CD) (A`B` + C`D`)

25

26 Other Logic Operations There are 2 2n different boolean functions for n binary variables. There are 16 different boolean functions if n = 2.

27

28

29

30 NAND is Universal Can express any Boolean Function Equivalents below

31 Using NAND as Invert-OR

32 Sum of Products with NAND

33 AND-OR Circuit Easy to Convert

34 Inverter and buffer cannot be extended to multiple inputs AND and OR are cummutative x+y = y+x, xy = yx and associative (x+y)+z = x+(y+z) = x+y+z (xy) z = x(yz) = xyz NAND and NOR are cummutative, but not associative. They are redefined as complemented OR and AND gates: x ↓ y ↓ z = (x+y+z)’, x ↑ y ↑ z = (xyz)’ Extension to Multiple Inputs

35 The final function is the XOR - Exclusive OR. Verbally it can be stated as ‘Either A or B, but not both’. For the 2 input XOR gate, a HIGH o/p will occur when one and only one i/p is logic HIGH.

36

37