Digital Logic Design. Malik Najmus Siraj

Similar documents
This form sometimes used in logic circuit, example:

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

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

Chapter 2 Boolean Algebra and Logic Gates

Chapter 2 : Boolean Algebra and Logic Gates

Boolean Algebra & Logic Gates. By : Ali Mustafa

Chapter 2. Boolean Algebra and Logic Gates

MC9211 Computer Organization

Administrative Notes. Chapter 2 <9>

Boolean Algebra and Logic Gates

CHAPTER III BOOLEAN ALGEBRA

Computer Organization I

CHAPTER III BOOLEAN ALGEBRA

Chapter 2: Princess Sumaya Univ. Computer Engineering Dept.

Combinational Logic Circuits Part II -Theoretical Foundations

Logic Design. Chapter 2: Introduction to Logic Circuits

WEEK 2.1 BOOLEAN ALGEBRA

CPE100: Digital Logic Design I

Chapter 2: Boolean Algebra and Logic Gates

BOOLEAN ALGEBRA TRUTH TABLE

Binary logic consists of binary variables and logical operations. The variables are

Boolean Algebra and Logic Simplification

Chapter-2 BOOLEAN ALGEBRA

Binary Logic and Gates

Chapter 2 Combinational Logic Circuits

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

Chapter 2: Switching Algebra and Logic Circuits

Standard Expression Forms

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA

Chapter 2 Boolean Algebra and Logic Gates

CHAPTER 2 BOOLEAN ALGEBRA

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

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

EC-121 Digital Logic Design

Combinational Logic Fundamentals

Digital Circuit And Logic Design I. Lecture 3

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

Chapter 2 Boolean Algebra and Logic Gates

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

211: Computer Architecture Summer 2016

Lecture 2 Review on Digital Logic (Part 1)

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

ECE 238L Boolean Algebra - Part I

Lecture 4: More Boolean Algebra

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

Boolean Algebra and Logic Gates Chapter 2. Topics. Boolean Algebra 9/21/10. EECE 256 Dr. Sidney Fels Steven Oldridge

Chapter 2 Combinational Logic Circuits

Number System conversions

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

Chapter 2 Boolean Algebra and Logic Gates

Combinational Logic. Review of Combinational Logic 1

EEE130 Digital Electronics I Lecture #4

Mark Redekopp, All rights reserved. Lecture 5 Slides. Canonical Sums and Products (Minterms and Maxterms) 2-3 Variable Theorems DeMorgan s Theorem

Combinational Logic Design Principles

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

If f = ABC + ABC + A B C then f = AB C + A BC + AB C + A BC + A B C

Midterm1 Review. Jan 24 Armita

Slides for Lecture 10

ECE380 Digital Logic. Axioms of Boolean algebra

Unit 2 Boolean Algebra

ENG2410 Digital Design Combinational Logic Circuits

Unit 2 Boolean Algebra

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

INTRO TO I & CT. (Boolean Algebra and Logic Simplification.) Lecture # By: Department of CS & IT.

UNIT 5 KARNAUGH MAPS Spring 2011

2. Associative Law: A binary operator * on a set S is said to be associated whenever (A*B)*C = A*(B*C) for all A,B,C S.

CS 226: Digital Logic Design

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

ELCT201: DIGITAL LOGIC DESIGN

CHAPTER1: Digital Logic Circuits Combination Circuits

Part 5: Digital 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):

Chap 2. Combinational Logic Circuits

BOOLEAN ALGEBRA. Introduction. 1854: Logical algebra was published by George Boole known today as Boolean Algebra

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

Review for Test 1 : Ch1 5

Combinational Logic. Fan-in/ Fan-out Timing. Copyright (c) 2012 Sean Key

Boolean Algebra. Examples: (B=set of all propositions, or, and, not, T, F) (B=2 A, U,, c, Φ,A)

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

Total Time = 90 Minutes, Total Marks = 50. Total /50 /10 /18

Boolean Algebra and Logic Design (Class 2.2 1/24/2013) CSE 2441 Introduction to Digital Logic Spring 2013 Instructor Bill Carroll, Professor of CSE

UNIT 4 MINTERM AND MAXTERM EXPANSIONS

Chapter 2 Combinational Logic Circuits

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

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

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

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA

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

Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS

University of Technology

Minimization techniques

Introduction to Digital Logic Missouri S&T University CPE 2210 Boolean Representations

Combinatorial Logic Design Principles

Unit 2 Session - 6 Combinational Logic Circuits

Simplifying Logic Circuits with Karnaugh Maps

Boolean Algebra CHAPTER 15

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

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

Week-I. Combinational Logic & Circuits

Boolean Algebra and Digital Logic

Transcription:

Digital Logic Design Malik Najmus Siraj siraj@case.edu.pkedu

LECTURE 4

Today s Agenda Recap 2 s complement Binary Logic Boolean algebra

Recap Computer Arithmetic Signed numbers Radix and diminished radix complement

2 s complement representation

2 s complement calculation

Complement Summary

Signed number with complement

Arithmetic with Radix complement

Binary Logic

Binary Logic

Evaluation of Logic function

Multiple input

Algebra

Boolean Algebra

Boolean algebra addition and multiplication li

Boolean addition

Boolean Multiplication

Theorems of Boolean algebra

Commutative Law

Duality principle Every Algebraic expression deducible from the postulates of Boolean algebra remains valid if the operator of identity elements are change.

Associative Law

Associative Law Associative Law for Multiplication A.(B.C) = (A.B).C

Distributive Law A.(B + C) = A.B + A.C

Rules of Boolean Algebra 1. A + 0 = A 7. AA= A.A A 2. A + 1 = 1 3. A.0 = 0 4. A.1 = A 8. A. = 0 A 9. A = A 10.A + A.B = A 5. A + A = A 11.A + A.B= A + B 6. A + A = 1 12.(A+B).(A+C) (A+C) = A+B.C

Examples x+x = x 1. = (x+x).1 2. =(x+x). (x+x ) 3. =x+xx 4. =x+0 5. =x

Continue.. x.x = x 1. x.x +0 2. x.x + x.x 3. x(x+x ) 4. x.1 5. X There are different theorems and their proofs given on page 40 and 41.

Demorgan s Theorems First Theorem A.B A + B Second Theorem A + B A. B A + B = A. B

Demorgan s Theorems Any number of variables X. Y. Z = X + Y + Z X + Y + Z = X. Y. Z Combination of variables ( A + B. C).( A. C + B) = ( A + B. C) + ( A. C + B) = A. ( B. C ) + ( A. C ). B = A. B + A. C + A. B + B. C = Digital A Logic. B Design@CASE + A. C + by Najmus B. C Siraj

Operator Precedence 1. Parentheses 2. NOT 3. AND 4. OR Examples (x+y) ; x y

Boolean Analysis of Logic Circuits Boolean Algebra provides concise way to represent operation of a logic circuit Complete function of a logic circuit can be determined by evaluating the Boolean expression using different input combinations F = (AB+C )D

Boolean Analysis of Logic Circuits C AB + C ( AB + C) D From the expression, the output is a 1 if variable D = 1 ( AB + C) =1 if AB=1 or C=0 Rows in the truth table is 2 n n is the number of variables in the function

Boolean Analysis of Logic Circuits Inputs Output Inputs A B C D F A B C D F 0 0 0 0 0 1 0 0 0 0 0 0 0 1 1 1 0 0 1 1 0 0 1 0 0 1 0 1 0 0 0 0 1 1 0 1 0 1 1 0 0 1 0 0 0 1 1 0 0 0 0 1 0 1 1 1 1 0 1 1 0 1 1 0 0 1 1 1 0 0 0 1 1 1 0 1 1 1 1 1 Output

Simplification using Boolean Algebra AB + A(B+C) + B(B+C) = AB + AB + AC + BB +BC = AB + AC + B + BC = AB + AC + B = B + AC

Simplified Circuit

Lecture 06

Recap

Today s agenda Duality yprincipalp Complement of a function Minterms and Maxterms Sum of Product and Product of Sum

Duality Principle Every algebraic expression deducible from the postulates of Boolean algebra remains valid if the operator and the identity elements are interchanged 1. x+0=x x.1=x 2. (x+y) = x y xy (x.y) y) = x +y x+y

Example 2.1 x(x +y) = xx +xy = 0+xy = xy x+x y = xx+xy+x x+x y = x(x+y)+x (x+y) = x+y (x+y)(x+y ) = xx+xy +xy+yy = x(1+y +y) = x xy+x z+yz = xy+x z+yz(x+x ) = xy+x z+yzx+yzx = xy(1+z) + x z(1+y) = xy+x z (x+y)(x +z)(y+z) = (x+y)(x +z)

Complement of a function The generalized form of DeMorgan s theorem states that the complement of a function is obtained by interchanging AND and OR operators and complementing each literal Example 2.22

Example 2.2 2 solution

Easy way to fined complement A simpler way to find complement of a function is to take the dual of the function and complement each literal. Examples

Minterms and Maxterms Minterms for two variable are x y, x y, xy, xy. There are eight minterms for 3 variables function. 2 n minterms for n variable. Maxterms for two variable are x+y, x+y,x +y, x +y

X Y Z f1 0 0 0 0 0 0 1 1 0 1 0 0 0 1 1 0 1 0 0 1 1 0 1 0 1 1 0 0 1 1 1 1

Example 2.4 (SOP)

Example 2.5(POS) Each term missing one variable So

Conversion between Canonical forms