Boolean Algebra Why study Boolean Algebra?

Slides:



Advertisements
Similar presentations
Boolean Algebra and Logic Gates
Advertisements

Logic Gates.
Lecture 6 More Logic Functions: NAND, NOR, XOR and XNOR
BOOLEAN ALGEBRA. A Mathematical notation used to represent the function of the Digital circuit. A notation that allows variables & constants to have only.
Combinational Logic Circuits Chapter 2 Mano and Kime.
Chapter 2 Logic Circuits.
Boolean rules for simplification Dr. Ahmed Telba.
ECE C03 Lecture 21 Lecture 2 Two Level Minimization Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
ECE 331 – Digital System Design Boolean Algebra (Lecture #3) The slides included herein were taken from the materials accompanying Fundamentals of Logic.
CS 151 Digital Systems Design Lecture 6 More Boolean Algebra A B.
1 COMP541 Combinational Logic Montek Singh Jan 16, 2007.
Boolean Algebra and Logic Gates
COMBINATIONAL LOGIC CIRCUITS C.L. x1 x2 xn Z Z = F (x1, x2, ……., Xn) F is a Binary Logic (BOOLEAN ) Function Knowing F Allows Straight Forward Direct Implementation.
Chapter Two Boolean Algebra and Logic Gate
Chapter 2: Boolean Algebra and Logic Functions
Computer Organization
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 and Logic Gates CE 40 B 18 June 2003.
1 Logic Gates Digital Computer Logic Kashif Bashir WWW:
Combinational Logic 1.
Module 4.  Boolean Algebra is used to simplify the design of digital logic circuits.  The design simplification are based on: Postulates of Boolean.
Why? What’s Boolean algebra used for? –“The purpose of Boolean algebra is to facilitate the analysis and design of digital circuits.” Express a truth table.
Boolean Logic and Circuits ELEC 311 Digital Logic and Circuits Dr. Ron Hayne Images Courtesy of Cengage Learning.
PRASAD A. PAWASKAR SPN. NO DETE 2 SEMESTER lec1-11.
LOGIC GATES & BOOLEAN ALGEBRA
Venn Diagram – the visual aid in verifying theorems and properties 1 E.
1 EG 32 Digital Electronics Thought for the day You learn from your mistakes..... So make as many as you can and you will eventually know everything.
ENGIN112 L6: More Boolean Algebra September 15, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 6 More Boolean Algebra A B.
1 Lect # 2 Boolean Algebra and Logic Gates Boolean algebra defines rules for manipulating symbolic binary logic expressions. –a symbolic binary logic expression.
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,
Boolean Algebra ELEC 311 Digital Logic and Circuits Dr. Ron Hayne Images Courtesy of Cengage Learning.
Logic Design (CE1111 ) Lecture 2 (Chapter 2) Prepared by Dr. Lamiaa Elshenawy 1.
Lecture 5 More Boolean Algebra A B. Overview °Expressing Boolean functions °Relationships between algebraic equations, symbols, and truth tables °Simplification.
Mu.com.lec 9. Overview Gates, latches, memories and other logic components are used to design computer systems and their subsystems Good understanding.
CHAPTER 2 Boolean algebra and Logic gates
ECE 331 – Digital System Design
Digital Logic.
CHAPTER 3 Simplification of Boolean Functions
ECE 301 – Digital Electronics
Table 2.1 Postulates and Theorems of Boolean Algebra
Lecture 4 Nand, Nor Gates, CS147 Circuit Minimization and
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
Boolean Algebra and Combinational Logic
Princess Sumaya University
ECE 331 – Digital System Design
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
ECE/CS 352 Digital Systems Fundamentals
Dr. Clincy Professor of CS
Boolean Algebra.
Boolean Algebra.
Boolean Algebra.
Chapter 2 Boolean Algebra and Logic Gate
Universal gates.
Combinatorial Logic Circuit
Week 7: Gates and Circuits: PART II
MINTERMS and MAXTERMS Week 3
Table 2.1 Postulates and Theorems of Boolean Algebra
Digital Logic Chapter-2
Instructor: Alexander Stoytchev
Digital Logic Chapter-2
Analysis of Logic Circuits Example 1
Introductory Concepts
Analysis of Logic Circuits Example 1
Circuit Simplification and
Presentation transcript:

Boolean Algebra Why study Boolean Algebra? It is highly desirable to find the simplest circuit implementation (logic) with the smallest number of gates or wires. We can use Boolean minimization process to reduce a Boolean function (expression) to its simplest form: The result is an expression with the fewest literals and thus less wires in the final gate implementation.

Boolean Algebra (continued) George Boole (1815-1864), a mathematician introduced a systematic treatment of logic. He developed a consistent set of postulates that were sufficient to define a new type of algebra: Boolean Algebra (similar to Linear Algebra) Many of the rules are the same as the ones in Linear Algebra.

Laws of Boolean Algebra There are 6 fundamental laws, or axioms, used to formulate various algebraic structures: 1. Closure: Boolean algebra operates over a field of numbers, B = {0,1}: For every x, y in B: x + y is in B x . y is in B (1,0) (1,0) (1,0) (1,0)

Laws of Boolean Algebra (continued) 2. Commutative laws: For every x, y in B, x + y = y + x x . y = y . x Similar to Linear Algebra x y x F = x + y F = x.y y y x y F = y + x F = y.x x

Laws of Boolean Algebra (continued) 3. Associative laws: For every x, y, z in B, (x + y) + z = x + (y + z) = x + y + z (xy)z = x(yz) = xyz Similar to Linear Algebra z x y F = xyz z y x F = xyz

Laws of Boolean Algebra (continued) 4. Distributive laws: For every x, y, z in B, x + (y.z) = (x + y)(x + z) [+ is distributive over .] x.(y + z) = (x.y) + (x.z) [. is distributive over +] NOT Similar to Linear Algebra Similar to Linear Algebra

Laws of Boolean Algebra (continued) Identity laws: A set B is said to have an identity element with respect to a binary operation {.} on B if there exists an element designated by 1 in B with the property: 1 . x = x Example: AND operation A set B is said to have an identity element with respect to a binary operation {+} on B if there exists an element designated by 0 in B with the property: 0 + x = x Example: OR operation Similar to Linear Algebra

Laws of Boolean Algebra (continued) 6. Complement For each x in B, there exists an element x’ in B (the complement of x) such that: x + x’ = 1 x . x’ = 0 Similar to Linear Algebra We can also use x to represent complement.

Laws of Boolean Algebra (Summary) Commutative x + y = y + x xy = yx Associative (x + y) + z = x + (y + z) (xy)z = x(yz) Distributive x + (yz) = (x + y)(x + z) x(y + z) = (xy) + (xz) Identity x + 0 = x x . 1 = x Complement x + x = 1 x . x = 0 OR with 1 AND with 0 x + 1 = 1 x . 0 = 0

Other Theorems Theorem 1(a): Theorem 1(b):

Other Theorems Theorem 2(a): Theorem 2(b):

Gate Equivalency and DeMorgan’s Law NOR x x x y y y NAND x x x y y y

Digital Logic Q’s & A’s Q: Why is Gate Equivalency useful? A: It allows us to build functions using only one gate type. Q: Why are digital circuits constructed with NAND/NOR rather than with AND/OR? A: NAND and NOR gates are smaller, faster, and easier to fabricate with electronic components. They are the basic gates used in all IC digital logic.

Digital IC’s Vdd x or y: ‘low’ transistor 1 or 2 is OFF transistor 3 or 4 is ON 3 4 z z = ‘high’ y 1 CL x and y: ‘high’ transistor 1 and 2 are ON transistor 3 and 4 are OFF x 2 z = ‘low’ gnd z = x y .

Digital IC’s (continued) Vdd Vdd z = (x+y) z . z z x y y x z = a + b

Implementation of Boolean Functions Example 1: x F1 y z

Implementation of Boolean Functions Example 2: x y F1 z

Implementation of Boolean Functions Try another implementation using a simplified F2: x y F2 z * This implementation has fewer gates and fewer inputs to the gates (or wires) than the previous one.

Simplifying Boolean Functions Simplify the following Boolean function to a minimum number of terms: x y F3 z

More on complements (DeMorgan) Find the complement of: Show that the complement of

Implementation of Boolean Functions Draw the logic diagram for the following function: F = (a.b)+(b.c) a b F c

Implementation of Boolean Functions Using ONLY NAND gates, draw a schematic for the following function: F = (a.b)+(b.c) a b F c

Implementation of Boolean Functions Using only OR and NOT gates, draw a schematic for the following function: x y F z

Minterms and Maxterms MINTERMS AND MAXTERMS: n binary variables can be combined to form 2n terms (AND terms), called minterms or standard products. In a similar fashion, n binary variables can be combined to form 2n terms (OR terms), called maxterms or standard sums. * Note that each maxterm is the complement of its corresponding minterm and vice versa.

Minterms and Maxterms (continued) Table 2-3: Minterms and Maxterms for Three Binary Variables x y z Minterms Maxterms 0 0 0 x’y’z’ mo x+y+z Mo 0 0 1 x’y’z m1 x+y+z’ M1 0 1 0 x’yz’ m2 x+y’+z M2 0 1 1 x’yz m3 x+y’+z’ M3 1 0 0 xy’z’ m4 x’+y+z M4 1 0 1 xy’z m5 x’+y+z’ M5 1 1 0 xyz’ m6 x’+y’+z M6 1 1 1 xyz m7 x’+y’+z’ M7

Sminterms and Pmaxterms Given the truth table, express F1 in sum of minterms x y z F1 F2 0 0 0 0 1 0 0 1 1 0 0 1 0 0 1 0 1 1 0 1 1 0 0 1 0 1 0 1 1 0 1 1 0 1 0 1 1 1 1 0 Find F2

Sminterms and Pmaxterms Repeat for product of maxterms. x y z F1 F2 0 0 0 0 1 0 0 1 1 0 0 1 0 0 1 0 1 1 0 1 1 0 0 1 0 1 0 1 1 0 1 1 0 1 0 1 1 1 1 0

Sminterms and Pmaxterms Express the Boolean function in a sum of minterms, and then in a product of Maxterms. Adding all terms and excluding recurring terms: (SOP) Product of maxterms (POS)? Note: mistake on p. 47 in F

XOR Logic gate 3-input exclusive-OR (XOR) logic gate: x F y z x F y z 1 x F y z x y F z