CS 151 Digital Systems Design Lecture 6 More Boolean Algebra A B.

Slides:



Advertisements
Similar presentations
Boolean Algebra and Logic Gates
Advertisements

Prof. Sin-Min Lee Department of Computer Science
Chapter 2 Logic Circuits.
Boolean Algebra and Logic Gates 1 Computer Engineering (Logic Circuits) Lec. # 4 Dr. Tamer Samy Gaafar Dept. of Computer & Systems Engineering Faculty.
Chapter 2 – Combinational Logic Circuits Part 1 – Gate Circuits and Boolean Equations Logic and Computer Design Fundamentals.
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.
EE365 Adv. Digital Circuit Design Clarkson University Lecture #2 Boolean Laws and Methods.
CS 151 Digital Systems Design Lecture 8 Minimization with Karnaugh Maps.
Boolean Algebra and Logic Simplification. Boolean Addition & Multiplication Boolean Addition performed by OR gate Sum Term describes Boolean Addition.
Boolean Algebra and Logic Simplification
Chapter 2: Boolean Algebra and Logic Functions
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.
9/15/09 - L6 Standard FormsCopyright Joanne DeGroat, ECE, OSU1 Standard Forms.
Lecture 2 – Boolean Algebra Lecturer: Amy Ching Date: 21 st Oct 2002.
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.
ECE 331 – Digital System Design
 Seattle Pacific University EE Logic System DesignSOP-POS-1 The Connection: Truth Tables to Functions abcF abcF
1 Representation of Logic Circuits EE 208 – Logic Design Chapter 2 Sohaib Majzoub.
F = ∑m(1,4,5,6,7) F = A’B’C+ (AB’C’+AB’C) + (ABC’+ABC) Use X’ + X = 1.
Chapter 2: Boolean Algebra and Logic Gates. F 1 = XY’ + X’Z XYZX’Y’XY’X’ZF1F
Overview Part 1 – Gate Circuits and Boolean Equations
CHAPTER 3: PRINCIPLES OF COMBINATIONAL LOGIC
LOGIC GATES & BOOLEAN ALGEBRA
Venn Diagram – the visual aid in verifying theorems and properties 1 E.
Based on slides by:Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. ECE/CS 352: Digital System Fundamentals Lecture 6 – Canonical Forms.
ENGIN112 L6: More Boolean Algebra September 15, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 6 More Boolean Algebra A B.
ece Parity Used to check for errors Can be either ODD or EVEN Left most bit used as the indicator For EVEN, insert a 0 or a 1 so as to make the.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
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.
Module –I Switching Function
Binary Logic and Gates Boolean Algebra Canonical and Standard Forms Chapter 2: Boolean Algebra and Logic Gates.
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 AND LOGIC SIMPLIFICATION
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC
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.
Boolean Algebra ELEC 311 Digital Logic and Circuits Dr. Ron Hayne Images Courtesy of Cengage Learning.
Lecture 5 More Boolean Algebra A B. Overview °Expressing Boolean functions °Relationships between algebraic equations, symbols, and truth tables °Simplification.
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.
Boolean or, Switching Algebra. Switching Algebra The two-valued Boolean algebra is also called “Switching algebra” by engineers and computer scientists.
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
Digital Logic & Design Dr. Waseem Ikram Lecture 09.
Mu.com.lec 9. Overview Gates, latches, memories and other logic components are used to design computer systems and their subsystems Good understanding.
CHAPTER 3 Simplification of Boolean Functions
De Morgan’s Theorem,.
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
Complement of a Function
Princess Sumaya University
Give qualifications of instructors: DAP
Circuit analysis summary
Boolean algebra Last time we talked about Boolean functions, Boolean expressions, and truth tables. Today we’ll learn how to how use Boolean algebra to.
ECE 331 – Digital System Design
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
Boolean Algebra.
Boolean Algebra.
Chapter 2 Boolean Algebra and Logic Gate
Functions Computers take inputs and produce outputs, just like functions in math! Mathematical functions can be expressed in two ways: We can represent.
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION Part (a)
From now on: Combinatorial Circuits:
Analysis of Logic Circuits Example 1
Analysis of Logic Circuits Example 1
Presentation transcript:

CS 151 Digital Systems Design Lecture 6 More Boolean Algebra A B

Overview °Expressing Boolean functions °Relationships between algebraic equations, symbols, and truth tables °Simplification of Boolean expressions °Minterms and Maxterms °AND-OR representations Product of sums Sum of products

Boolean Functions °Boolean algebra deals with binary variables and logic operations. °Function results in binary 0 or 1 x x y y z z F F F = x(y+z’) x y z z’ y+z’ F = x(y+z’)

Boolean Functions °Boolean algebra deals with binary variables and logic operations. °Function results in binary 0 or 1 x x y y z z xy 0 1 x y z G = xy +yz yz xy We will learn how to transition between equation, symbols, and truth table. yz G G

Representation Conversion °Need to transition between boolean expression, truth table, and circuit (symbols). °Converting between truth table and expression is easy. °Converting between expression and circuit is easy. °More difficult to convert to truth table. Truth Table Circuit Boolean Expression

Truth Table to Expression °Converting a truth table to an expression Each row with output of 1 becomes a product term Sum product terms together. x x y y z z G G xyz + xyz’ + x’yz Any Boolean Expression can be represented in sum of products form!

Equivalent Representations of Circuits °All three formats are equivalent °Number of 1’s in truth table output column equals AND terms for Sum-of-Products (SOP) x y z x x y y z z G G G = xyz + xyz’ + x’yz G x x x x x x x x x

Reducing Boolean Expressions °Is this the smallest possible implementation of this expression? No! °Use Boolean Algebra rules to reduce complexity while preserving functionality. °Step 1: Use Theorum 1 (a + a = a) So xyz + xyz’ + x’yz = xyz + xyz + xyz’ + x’yz °Step 2: Use distributive rule a(b + c) = ab + ac So xyz + xyz + xyz’ + x’yz = xy(z + z’) + yz(x + x’) °Step 3: Use Postulate 3 (a + a’ = 1) So xy(z + z’) + yz(x + x’) = xy.1 + yz.1 °Step 4: Use Postulate 2 (a. 1 = a) So xy.1 + yz.1 = xy + yz = xyz + xyz’ + x’yz G = xyz + xyz’ + x’yz

Reduced Hardware Implementation °Reduced equation requires less hardware! °Same function implemented! x y z x x y y z z G G G = xyz + xyz’ + x’yz = xy + yz G x x x x

Minterms and Maxterms °Each variable in a Boolean expression is a literal °Boolean variables can appear in normal (x) or complement form (x’) °Each AND combination of terms is a minterm °Each OR combination of terms is a maxterm For example: Minterms x y z Minterm x’y’z’ m x’y’z m 1 … xy’z’ m 4 … xyz m 7 For example: Maxterms x y z Maxterm x+y+z M x+y+z’ M 1 … x’+y+z M 4 … x’+y’+z’ M 7

Representing Functions with Minterms °Minterm number same as row position in truth table (starting from top from 0) °Shorthand way to represent functions x x y y z z G G G = xyz + xyz’ + x’yz G = m 7 + m 6 + m 3 = Σ(3, 6, 7)

Complementing Functions °Minterm number same as row position in truth table (starting from top from 0) °Shorthand way to represent functions x x y y z z G G G = xyz + xyz’ + x’yz G’ = (xyz + xyz’ + x’yz)’ = G’ Can we find a simpler representation?

Complementing Functions °Step 1: assign temporary names b + c -> z (a + z)’ = G’ °Step 2: Use DeMorgans’ Law (a + z)’ = a’. z’ °Step 3: Resubstitute (b+c) for z a’. z’ = a’. (b + c)’ °Step 4: Use DeMorgans’ Law a’. (b + c)’ = a’. (b’. c’) °Step 5: Associative rule a’. (b’. c’) = a’. b’. c’ G’ = (a + b + c)’ G = a + b + c G’ = a’. b’. c’ = a’b’c’ G = a + b + c

Complementation Example °Find complement of F = x’z + yz F’ = (x’z + yz)’ °DeMorgan’s F’ = (x’z)’ (yz)’ °DeMorgan’s F’ = (x’’+z’)(y’+z’) °Reduction -> eliminate double negation on x F’ = (x+z’)(y’+z’) This format is called product of sums

Conversion Between Canonical Forms °Easy to convert between minterm and maxterm representations °For maxterm representation, select rows with 0’s x x y y z z G G G = xyz + xyz’ + x’yz G = m 7 + m 6 + m 3 = Σ(3, 6, 7) G = M 0 M 1 M 2 M 4 M 5 = Π(0,1,2,4,5) G = (x+y+z)(x+y+z’)(x+y’+z)(x’+y+z)(x’+y+z’)

Representation of Circuits °All logic expressions can be represented in 2- level format °Circuits can be reduced to minimal 2-level representation °Sum of products representation most common in industry.

Summary °Truth table, circuit, and boolean expression formats are equivalent °Easy to translate truth table to SOP and POS representation °Boolean algebra rules can be used to reduce circuit size while maintaining function °All logic functions can be made from AND, OR, and NOT °Easiest way to understand: Do examples! °Next time: More logic gates!