Chapter 2: Princess Sumaya Univ. Computer Engineering Dept.

Similar documents
CS 121 Digital Logic Design. Chapter 2. Teacher Assistant. Hanin Abdulrahman

MC9211 Computer Organization

Boolean Algebra and Logic Simplification

Logic Design. Chapter 2: Introduction to Logic Circuits

Chapter 2 Boolean Algebra and Logic Gates

WEEK 2.1 BOOLEAN ALGEBRA

Lecture 5: NAND, NOR and XOR Gates, Simplification of Algebraic Expressions

Chapter 2. Boolean Algebra and Logic Gates

This form sometimes used in logic circuit, example:

Chapter 2: Boolean Algebra and Logic Gates

Learning Objectives. Boolean Algebra. In this chapter you will learn about:

Chapter 2 Boolean Algebra and Logic Gates

EEA051 - Digital Logic 數位邏輯 吳俊興高雄大學資訊工程學系. September 2004

ENG2410 Digital Design Combinational Logic Circuits

Lecture 2 Review on Digital Logic (Part 1)

Combinational Logic. Review of Combinational Logic 1

Chapter 2 (Lect 2) Canonical and Standard Forms. Standard Form. Other Logic Operators Logic Gates. Sum of Minterms Product of Maxterms

BOOLEAN ALGEBRA TRUTH TABLE

Chapter 2: Switching Algebra and Logic Circuits

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 2 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

Boolean Algebra and Logic Gates

Chapter 2 Combinational Logic Circuits

II. COMBINATIONAL LOGIC DESIGN. - algebra defined on a set of 2 elements, {0, 1}, with binary operators multiply (AND), add (OR), and invert (NOT):

Digital Logic Design. Malik Najmus Siraj

Goals for Lecture. Binary Logic and Gates (MK 2.1) Binary Variables. Notation Examples. Logical Operations

CHAPTER1: Digital Logic Circuits Combination Circuits

Boolean Algebra & Logic Gates. By : Ali Mustafa

E&CE 223 Digital Circuits & Systems. Lecture Transparencies (Boolean Algebra & Logic Gates) M. Sachdev

Ex: Boolean expression for majority function F = A'BC + AB'C + ABC ' + ABC.

2009 Spring CS211 Digital Systems & Lab CHAPTER 2: INTRODUCTION TO LOGIC CIRCUITS

CHAPTER III BOOLEAN ALGEBRA

Signals and Systems Digital Logic System

In Module 3, we have learned about Exclusive OR (XOR) gate. Boolean Expression AB + A B = Y also A B = Y. Logic Gate. Truth table

Chapter 2 Part 7 Combinational Logic Circuits

Combinational Logic Circuits Part II -Theoretical Foundations

Number System conversions

Digital Fundamentals

Gray Code. ASCII Character Code. To convert the number from binary to Gray code the relations must be known. 1 1 = = = = 0

Digital Circuit And Logic Design I. Lecture 3

CHAPTER III BOOLEAN ALGEBRA

Combinational Logic Design Principles

UNIVERSITI TENAGA NASIONAL. College of Information Technology

Chapter 2 Combinational Logic Circuits

University of Technology

Chapter 2 Boolean Algebra and Logic Gates

E&CE 223 Digital Circuits & Systems. Lecture Transparencies (Boolean Algebra & Logic Gates) M. Sachdev. Section 2: Boolean Algebra & Logic Gates

CS 226: Digital Logic Design

Chapter 2 : Boolean Algebra and Logic Gates

Computer Organization I

CMSC 313 Lecture 18 Midterm Exam returned Assign Homework 3 Circuits for Addition Digital Logic Components Programmable Logic Arrays

Unit 2 Session - 6 Combinational Logic Circuits

EECS150 - Digital Design Lecture 19 - Combinational Logic Circuits : A Deep Dive

Chapter 2 Combinational Logic Circuits

Slide Set 3. for ENEL 353 Fall Steve Norman, PhD, PEng. Electrical & Computer Engineering Schulich School of Engineering University of Calgary

Logic Gate Level. Part 2

CPE100: Digital Logic Design I

XOR - XNOR Gates. The graphic symbol and truth table of XOR gate is shown in the figure.

211: Computer Architecture Summer 2016

EECS150 - Digital Design Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits)

Administrative Notes. Chapter 2 <9>

Outline. EECS150 - Digital Design Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits) Combinational Logic (CL) Defined

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA

Lecture 6: Gate Level Minimization Syed M. Mahmud, Ph.D ECE Department Wayne State University

Chapter-2 BOOLEAN ALGEBRA

Review. EECS Components and Design Techniques for Digital Systems. Lec 06 Minimizing Boolean Logic 9/ Review: Canonical Forms

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

Digital Logic. Lecture 5 - Chapter 2. Outline. Other Logic Gates and their uses. Other Logic Operations. CS 2420 Husain Gholoom - lecturer Page 1

EEE130 Digital Electronics I Lecture #4

Week-I. Combinational Logic & Circuits

Standard Expression Forms

ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #2

control in out in out Figure 1. Binary switch: (a) opened or off; (b) closed or on.

Chapter 2 Combinational Logic Circuits

Binary Logic and Gates. Our objective is to learn how to design digital circuits.

Binary Logic and Gates

Functions. Computers take inputs and produce outputs, just like functions in math! Mathematical functions can be expressed in two ways:

Lecture 6: Manipulation of Algebraic Functions, Boolean Algebra, Karnaugh Maps

Boolean Algebra and Digital Logic

1. Name the person who developed Boolean algebra

Review: Additional Boolean operations

4 Switching Algebra 4.1 Axioms; Signals and Switching Algebra

EE 110 Practice Problems for Exam 1: Solutions, Fall 2008

EECS Variable Logic Functions

Chapter 7 Logic Circuits

EC-121 Digital Logic Design

ELCT201: DIGITAL LOGIC DESIGN

Lecture 4: More Boolean Algebra

Boolean Algebra. Boolean Variables, Functions. NOT operation. AND operation. AND operation (cont). OR operation

Chap 2. Combinational Logic Circuits

EXPERIMENT #4: SIMPLIFICATION OF BOOLEAN FUNCTIONS

Chapter 2 Boolean Algebra and Logic Gates

CHAPTER 12 Boolean Algebra

Combinational Logic Fundamentals

CHAPTER 2 BOOLEAN ALGEBRA

CMSC 313 Lecture 17. Focus Groups. Announcement: in-class lab Thu 10/30 Homework 3 Questions Circuits for Addition Midterm Exam returned

Combinatorial Logic Design Principles

ENGR 303 Introduction to Logic Design Lecture 3. Dr. Chuck Brown Engineering and Computer Information Science Folsom Lake College

Discrete Mathematics. CS204: Spring, Jong C. Park Computer Science Department KAIST

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA (CONT.)

Possible logic functions of two variables

Transcription:

hapter 2: Princess Sumaya Univ. omputer Engineering Dept.

Basic Definitions Binary Operators AND z = x y = x y z=1 if x=1 AND y=1 OR z = x + y z=1 if x=1 OR y=1 NOT z = x = x z=1 if x=0 Boolean Algebra Binary Variables: only 0 and 1 values Algebraic Manipulation 1 / 28

Boolean Algebra Postulates ommutative Law x y = y x x + y = y + x Identity Element x 1 = x x + 0 = x omplement x x = 0 x + x = 1 2 / 28

Boolean Algebra Theorems Duality The dual of a Boolean algebraic expression is obtained by interchanging the AND and the OR operators and replacing the 1 s by 0 s and the 0 s by 1 s. x ( y + z ) = ( x y ) + ( x z ) x + ( y z ) = ( x + y ) ( x + z ) Theorem 1 x x = x x + x = x Applied to a valid equation produces a valid equation Theorem 2 x 0 = 0 x + 1 = 1 3 / 28

Boolean Algebra Theorems Theorem 3: Involution ( x ) = x ( x ) = x Theorem 4: Associative & Distributive ( x y ) z = x ( y z ) ( x + y ) + z = x + ( y + z ) x ( y + z ) = ( x y ) + ( x z ) x + ( y z ) = ( x + y ) ( x + z ) Theorem 5: DeMorgan ( x y ) = x + y ( x + y ) = x y ( x y ) = x + y ( x + y ) = x y Theorem 6: Absorption x ( x + y ) = x x + ( x y ) = x 4 / 28

Operator Precedence Parentheses NOT (... ) (...) x + y AND OR x + x y x [ y + z ( w + x)] ( w + x) ( w z ( w y + z ( w x [ y + z ( w + x) + x) + x) + x)] 5 / 28

DeMorgan s Theorem a [ b + c ( d + e )] a + [ b + c ( d + e )] a + b ( c ( d + e )) a + b ( c + ( d + e )) a + b ( c + ( d e)) a + b ( c + d e) 6 / 28

Boolean Functions Boolean Expression Example: Truth Table F = x + y z All possible combinations of input variables Logic ircuit x y z F x y z F 0 0 0 0 0 0 1 1 0 1 0 0 0 1 1 0 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1 1 7 / 28

Algebraic Manipulation Literal: A single variable within a term that may be complemented or not. Use Boolean Algebra to simplify Boolean functions to produce simpler circuits Example: Simplify to a minimum number of literals F = x + x y = x + ( x y ) = ( x + x ) ( x + y ) ( 3 Literals) Distributive law (+ over ) = ( 1 ) ( x + y ) = x + y ( 2 Literals) 8 / 28

9 / 28 omplement of a Function DeMorgan s Theorm Duality & Literal omplement B A F + + = B A F + + = B A F = B A F + + = B A F B A F =

anonical Forms Minterm Product (AND function) ontains all variables Evaluates to 1 for a specific combination Example A = 0 A B B = 0 (0) (0) (0) = 0 1 1 1 = 1 A B 0 0 0 0 m 0 1 0 0 1 m 1 2 0 1 0 m 2 3 0 1 1 m 3 4 1 0 0 m 4 5 1 0 1 m 5 6 1 1 0 m 6 7 1 1 1 m 7 Minterm A B A B A B A B A B A B A B A B 10 / 28

anonical Forms Maxterm Sum (OR function) ontains all variables Evaluates to 0 for a specific combination Example A = 1 A B B = 1 (1) + (1) + (1) = 1 0 + 0 + 0 = 0 A B 0 0 0 0 M 0 1 0 0 1 M 1 2 0 1 0 M 2 3 0 1 1 M 3 4 1 0 0 M 4 5 1 0 1 M 5 6 1 1 0 M 6 7 1 1 1 M 7 Maxterm A + B + A + B + A + B + A + B + A + B + A + B + A + B + A + B + 11 / 28

anonical Forms Truth Table to Boolean Function A B F 0 0 0 0 F = AB + AB + AB + AB 0 0 1 1 0 1 0 0 0 1 1 0 1 0 0 1 1 0 1 1 1 1 0 0 1 1 1 1 12 / 28

anonical Forms Sum of Minterms F = AB + AB + AB + AB F = m + m + m + F 1 4 5 m7 = (1,4,5,7) Product of Maxterms F = AB + AB + AB + F = AB + AB + AB + AB AB A B F 0 0 0 0 0 1 0 0 1 1 2 0 1 0 0 3 0 1 1 0 4 1 0 0 1 5 1 0 1 1 6 1 1 0 0 7 1 1 1 1 F = AB AB AB AB F = ( A + B + )( A + B + )( A + B + )( A + B + ) F = M 0 M 2 M 3 M 6 F = (0,2,3,6) F 1 0 1 1 0 0 1 0 13 / 28

Standard Forms Sum of Products (SOP) AB( + ) = AB(1) F = AB + AB + AB + AB = AB A( B + B) = A B ( A + A) = B F = B ( A + A) + AB( + ) + A( B + B) F = B + AB + A 14 / 28

Standard Forms Product of Sums (POS) A B( + ) F = AB + AB + AB + AB B ( A + A) A ( B + B) F = A( B + B) + AB( + ) + B( A + A) F = A + AB + B F = ( A + )( A + B)( B + ) 15 / 28

Two-Level Implementations Sum of Products (SOP) F = B + AB + A Product of Sums (POS) F = ( A + )( A + B)( B + ) B A B A A A B B F F 16 / 28

Logic Operators AND x y x y x y AND 0 0 0 0 1 0 1 0 0 1 1 1 NAND (Not AND) x y NAND 0 0 1 x y x y 0 1 1 1 0 1 1 1 0 17 / 28

Logic Operators OR x y x + y x y OR 0 0 0 0 1 1 1 0 1 1 1 1 NOR (Not OR) x y x + y x y NOR 0 0 1 0 1 0 1 0 0 1 1 0 18 / 28

Logic Operators XOR (Exclusive-OR) x y x y x y + x y x y XOR 0 0 0 0 1 1 1 0 1 1 1 0 XNOR (Exclusive-NOR) (Equivalence) x y x y x y x y + x y x y XNOR 0 0 1 0 1 0 1 0 0 1 1 1 19 / 28

Logic Operators NOT (Inverter) x NOT x x 0 1 1 0 Buffer x Buffer x x 0 0 1 1 20 / 28

Multiple Input Gates 21 / 28

DeMorgan s Theorem on Gates AND Gate F = x y F = (x y) F = x + y OR Gate F = x + y F = (x + y) F = x y hange the Shape and bubble all lines 22 / 28

Homework Mano hapter 2 2-4 2-5 2-6 2-8 2-9 2-10 2-12 2-15 2-18 2-19 23 / 28

Homework Mano 2-4 Reduce the following Boolean expressions to the indicated number of literals: (a) A + AB + A (b) (x y + z) + z + xy + wz (c) A B (D + D) + B (A + A D) (d) (A + ) (A + ) (A + B + D) to three literals to three literals to one literal to four literals 2-5 Find the complement of F = x + yz; then show that FF = 0 and F + F = 1 24 / 28

Homework 2-6 Find the complement of the following expressions: (a) xy + x y (c) (x + y + z) (x + z ) (x + y) (b) (AB + )D + E 2-8 List the truth table of the function: F = xy + xy + y z 2-9 Logical operations can be performed on strings of bits by considering each pair of corresponding bits separately (this is called bitwise operation). Given two 8-bit strings A = 10101101 and B = 10001110, evaluate the 8-bit result after the following logical operations: (a) AND, (b) OR, (c) XOR, (d) NOT A, (e) NOT B. 25 / 28

Homework 2-10 Draw the logic diagrams for the following Boolean expressions: (a) Y = A B + B (A + ) (b) Y = B + A (c) Y = A + D (d) Y = (A + B) ( + D) 2-12 Simplify the Boolean function T 1 and T 2 to a minimum number of literals. A B T 1 T 2 0 0 0 1 0 0 0 1 1 0 0 1 0 1 0 0 1 1 0 1 1 0 0 0 1 1 0 1 0 1 1 1 0 0 1 1 1 1 0 1 26 / 28

Homework 2-15 Given the Boolean function F = xy z + x y z + w xy + wx y + wxy (a) Obtain the truth table of the function. (b) Draw the logic diagram using the original Boolean expression. (c) Simplify the function to a minimum number of literals using Boolean algebra. (d) Obtain the truth table of the function from the simplified expression and show that it is the same as the one in part (a) (e) Draw the logic diagram from the simplified expression and compare the total number of gates with the diagram of part (b). 27 / 28

Homework 2-18 onvert the following to the other canonical form: (a) F (x, y, z) = (1, 3, 7) (b) F (A, B,, D) = (0, 1, 2, 3, 4, 6, 12) 2-19 onvert the following expressions into sum of products and product of sums: (a) (AB + ) (B + D) (b) x + x (x + y ) (y + z ) 28 / 28