Administrative Notes. Chapter 2 <9>

Similar documents
CPE100: Digital Logic Design I

CPE100: Digital Logic Design I

T9: Covering. Prove true by: Method 1: Perfect induction Method 2: Using other theorems and axioms. Number Theorem. T9 B (B+C) = B Covering

CHAPTER III BOOLEAN ALGEBRA

Combinational Logic. Review of Combinational Logic 1

CHAPTER III BOOLEAN ALGEBRA

This form sometimes used in logic circuit, example:

Slides for Lecture 10

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

Digital Logic Design. Malik Najmus Siraj

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

Unit 2 Session - 6 Combinational Logic Circuits

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

Chapter 2: Switching Algebra and Logic Circuits

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

ECE 238L Boolean Algebra - Part I

Chapter 2 Combinational Logic Circuits

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

ELCT201: DIGITAL LOGIC DESIGN

Chapter 2 Combinational Logic Circuits

Digital Circuit And Logic Design I. Lecture 3

Advanced Digital Design with the Verilog HDL, Second Edition Michael D. Ciletti Prentice Hall, Pearson Education, 2011

CHAPTER 2 BOOLEAN ALGEBRA

Digital Logic & Computer Design CS Professor Dan Moldovan Spring Copyright 2007 Elsevier 2-<101>

Midterm1 Review. Jan 24 Armita

CS 226: Digital Logic Design

Combinational Logic Design Principles

Number System conversions

Combinational Logic Fundamentals

Digital Design 2. Logic Gates and Boolean Algebra

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

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

211: Computer Architecture Summer 2016

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

Simplification of Boolean Functions. Dept. of CSE, IEM, Kolkata

Ch 2. Combinational Logic. II - Combinational Logic Contemporary Logic Design 1

ENG2410 Digital Design Combinational Logic Circuits

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

Chapter-2 BOOLEAN ALGEBRA

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

Standard Expression Forms

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

Logic and Computer Design Fundamentals. Chapter 2 Combinational Logic Circuits. Part 1 Gate Circuits and Boolean Equations

Chapter 2 Boolean Algebra and Logic Gates

Logic Design. Chapter 2: Introduction to Logic Circuits

Chapter 2: Princess Sumaya Univ. Computer Engineering Dept.

Computer Organization I

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

Lecture 2 Review on Digital Logic (Part 1)

Digital Logic & Computer Design CS Professor Dan Moldovan Spring 2010

Chapter 2 Combinational Logic Circuits

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

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

Chapter 2 Combinational logic

EECS Variable Logic Functions

Combinational logic. Possible logic functions of two variables. Minimal set of functions. Cost of different logic functions.

Lab 1 starts this week: go to your session

UNIT 4 MINTERM AND MAXTERM EXPANSIONS

UNIT 5 KARNAUGH MAPS Spring 2011

Lecture 4: More Boolean Algebra

Chapter 2: Boolean Algebra and Logic Gates

Combinational Logic Circuits Part II -Theoretical Foundations

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

Chapter 2 Combinational

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

Digital Logic Design ABC. Representing Logic Operations. Dr. Kenneth Wong. Determining output level from a diagram. Laws of Boolean Algebra

BOOLEAN ALGEBRA CLASS XII. Presented By : Dinesh Patel PGT CS KV IIT Powai

Chapter 2 : Boolean Algebra and Logic Gates

Chapter 2. Introduction. Chapter 2 :: Topics. Circuits. Nodes. Circuit elements. Introduction

Karnaugh Map & Boolean Expression Simplification

Unit 2 Boolean Algebra

EEE130 Digital Electronics I Lecture #4

Lecture A: Logic Design and Gates

Chap 2. Combinational Logic Circuits

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

Minimization techniques

Boolean Algebra and Digital Logic

CHAPTER 5 KARNAUGH MAPS

Combinatorial Logic Design Principles

MC9211 Computer Organization

Week-I. Combinational Logic & Circuits

Signals and Systems Digital Logic System

Karnaugh Maps Objectives

L2: Combinational Logic Design (Construction and Boolean Algebra)

Digital Logic Design. Combinational Logic

Possible logic functions of two variables

ELEC Digital Logic Circuits Fall 2014 Boolean Algebra (Chapter 2)

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

WEEK 2.1 BOOLEAN ALGEBRA

2 Application of Boolean Algebra Theorems (15 Points - graded for completion only)

Switches: basic element of physical implementations

CSE140: Components and Design Techniques for Digital Systems. Introduction. Instructor: Mohsen Imani

Chapter 2 Combinational Logic Circuits

Karnaugh Maps (K-Maps)

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

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

Computer Organization I. Lecture 13: Design of Combinational Logic Circuits

Boolean algebra. Examples of these individual laws of Boolean, rules and theorems for Boolean algebra are given in the following table.

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

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

Transcription:

Administrative Notes Note: New homework instructions starting with HW03 Homework is due at the beginning of class Homework must be organized, legible (messy is not), and stapled to be graded Chapter 2 <9>

Some Definitions Complement: variable with a bar over it A, B, C Literal: variable or its complement A, A, B, B, C, C Implicant: product of literals ABC, AC, BC Minterm: product that includes all input variables ABC, ABC, ABC Maxterm: sum that includes all input variables (A+B+C), (A+B+C), (A+B+C) Chapter 2 <10>

Canonical Sum-of-Products (SOP) Form All equations can be written in SOP form Each row has a minterm A minterm is a product (AND) of literals Each minterm is TRUE for that row (and only that row) A B Y 0 0 0 0 1 1 1 0 0 1 1 1 minterm A B A B A B A B minterm name m 0 m 1 m 2 m 3 Chapter 2 <11>

Canonical Sum-of-Products (SOP) Form All equations can be written in SOP form Each row has a minterm A minterm is a product (AND) of literals Each minterm is TRUE for that row (and only that row) Form function by ORing minterms where the output is TRUE A B Y 0 0 0 0 1 1 1 0 0 1 1 1 Y = F(A, B) = minterm A B A B A B A B minterm name m 0 m 1 m 2 m 3 Chapter 2 <12>

Canonical Sum-of-Products (SOP) Form All equations can be written in SOP form Each row has a minterm A minterm is a product (AND) of literals Each minterm is TRUE for that row (and only that row) Form function by ORing minterms where the output is TRUE Thus, a sum (OR) of products (AND terms) A B Y 0 0 0 0 1 1 1 0 0 1 1 1 minterm A B A B A B A B minterm name m 0 m 1 m 2 m 3 Y = F(A, B) = AB + AB = Σ(m 1, m 3 ) Chapter 2 <13>

SOP Example Steps: Find minterms that result in Y=1 Sum TRUE minterms A B Y 0 0 1 0 1 1 1 0 0 1 1 0 Y = F(A, B) = Chapter 2 <14>

Aside: Precedence AND has precedence over OR In other words: AND is performed before OR Example: Y = A B + A B Equivalent to: Y = A B + (AB) Chapter 2 <15>

Canonical Product-of-Sums (POS) Form All Boolean equations can be written in POS form Each row has a maxterm A maxterm is a sum (OR) of literals Each maxterm is FALSE for that row (and only that row) A B Y 0 0 0 0 1 1 1 0 0 1 1 1 maxterm A + B A + B A + B A + B maxterm name M 0 M 1 M 2 M 3 Chapter 2 <16>

Canonical Product-of-Sums (POS) Form All Boolean equations can be written in POS form Each row has a maxterm A maxterm is a sum (OR) of literals Each maxterm is FALSE for that row (and only that row) Form function by ANDing the maxterms for which the output is FALSE Thus, a product (AND) of sums (OR terms) A B Y 0 0 0 0 1 1 1 0 0 1 1 1 maxterm A + B A + B A + B A + B maxterm name M 0 M 1 M 2 M 3 Y = M 0 M 2 = A + B (A + B) Chapter 2 <17>

SOP and POS Comparison Sum of Products (SOP) Implement the ones of the output Sum all one terms OR results in one Product of Sums (POS) Implement the zeros of the output Multiply zero terms AND results in zero Chapter 2 <18>

Boolean Equations Example You are going to the cafeteria for lunch You will eat lunch (E=1) If it s open (O=1) and If they re not serving corndogs (C=0) Write a truth table for determining if you will eat lunch (E). O C E 0 0 0 1 1 0 1 1 Chapter 2 <19>

Boolean Equations Example You are going to the cafeteria for lunch You will eat lunch (E=1) If it s open (O=1) and If they re not serving corndogs (C=0) Write a truth table for determining if you will eat lunch (E). O C E 0 0 0 1 1 0 1 1 0 0 1 0 Chapter 2 <20>

SOP & POS Form SOP sum-of-products O C E 0 0 0 1 1 0 1 1 POS product-of-sums O C E 0 0 0 1 1 0 1 1 minterm O C O C O C O C maxterm O + C O + C O + C O + C Chapter 2 <21>

SOP & POS Form SOP sum-of-products O C E 0 0 0 0 1 0 1 0 1 1 1 0 minterm O C O C O C O C POS product-of-sums O C E 0 0 0 1 1 0 1 1 0 0 1 0 maxterm O + C O + C O + C O + C Chapter 2 <22>

SOP & POS Form SOP sum-of-products O C E 0 0 0 0 1 0 1 0 1 1 1 0 minterm O C O C O C O C E = OC = Σ(m 2 ) POS product-of-sums O C E 0 0 0 1 1 0 1 1 0 0 1 0 maxterm O + C O + C O + C O + C Chapter 2 <23>

SOP & POS Form SOP sum-of-products O C E 0 0 0 0 1 0 1 0 1 1 1 0 minterm O C O C O C O C E = OC = Σ(m 2 ) POS product-of-sums O C E 0 0 0 1 1 0 1 1 0 0 1 0 maxterm O + C O + C O + C O + C E = (O + C)(O + C)(O + C) = Π(M0, M1, M3) Chapter 2 <24>

Boolean Algebra Axioms and theorems to simplify Boolean equations Like regular algebra, but simpler: variables have only two values (1 or 0) Duality in axioms and theorems: ANDs and ORs, 0 s and 1 s interchanged Chapter 2 <25>

Boolean Axioms Chapter 2 <26>

Duality Duality in Boolean axioms and theorems: ANDs and ORs, 0 s and 1 s interchanged Chapter 2 <27>

Boolean Axioms Chapter 2 <28>

Boolean Axioms Dual: Exchange: and + 0 and 1 Chapter 2 <29>

Boolean Axioms Dual: Exchange: and + 0 and 1 Chapter 2 <30>

Basic Boolean Theorems B = B Chapter 2 <31>

Basic Boolean Theorems: Duals Dual: Exchange: and + 0 and 1 Chapter 2 <32>

T1: Identity Theorem B 1 = B B + 0 = B Chapter 2 <33>

T1: Identity Theorem B 1 = B B + 0 = B B = 1 B B 0 = B Chapter 2 <34>

Switching Algebra Simplification of digital logic connecting wires with a on/off switch X = 0 (switch open) X = 1 (switch closed) Chapter 2 <35>

Series Switching Network: AND Switching circuit in series performs AND 1 is connected to 2 iff A AND B are 1 Chapter 2 <36>

Parallel Switching Network: OR Switching circuit in parallel performs OR 1 is connected to 2 if A OR B is 1 Chapter 2 <37>

T1: Identity Theorem B 1 = B B + 0 = B B = 1 B B 0 = B Chapter 2 <38>

T2: Null Element Theorem B 0 = 0 B + 1 = 1 Chapter 2 <39>

T2: Null Element Theorem B 0 = 0 B + 1 = 1 B = 0 0 B 1 = 1 Chapter 2 <40>

T3: Idempotency Theorem B B = B B + B = B Chapter 2 <41>

T3: Idempotency Theorem B B = B B + B = B B = B B B B = B Chapter 2 <42>

T4: Involution Theorem B = B Chapter 2 <43>

T4: Involution Theorem B = B 0 1 B 1 0 0 1 = B Chapter 2 <44>

T5: Complements Theorem B B = 0 B + B = 1 Chapter 2 <45>

T5: Complements Theorem B B = 0 B + B = 1 B = B 0 B B = 1 Chapter 2 <46>

Recap: Basic Boolean Theorems Chapter 2 <47>

Boolean Theorems of Several Vars Number Theorem Name T6 B C = C B Commutativity T7 (B C) D = B (C D) Associativity T8 B (C + D) = (B C) + (B D) Distributivity T9 B (B+C) = B Covering T10 (B C) + (B C) = B Combining T11 B C + (B D) + (C D) = B C + B D Consensus Chapter 2 <48>

Boolean Theorems of Several Vars Number Theorem Name T6 B C = C B Commutativity T7 (B C) D = B (C D) Associativity T8 B (C + D) = (B C) + (B D) Distributivity T9 B (B+C) = B Covering T10 (B C) + (B C) = B Combining T11 B C + (B D) + (C D) = B C + B D Consensus How do we prove these are true? Chapter 2 <49>

How to Prove Boolean Relation Method 1: Perfect induction Method 2: Use other theorems and axioms to simplify the equation Make one side of the equation look like the other Chapter 2 <50>

Proof by Perfect Induction Also called: proof by exhaustion Check every possible input value If two expressions produce the same value for every possible input combination, the expressions are equal Chapter 2 <51>

Example: Proof by Perfect Induction Number Theorem Name T6 B C = C B Commutativity B C BC CB 0 0 0 1 1 0 1 1 Chapter 2 <52>

Example: Proof by Perfect Induction Number Theorem Name T6 B C = C B Commutativity B C BC CB 0 0 0 1 1 0 1 1 0 0 0 0 0 0 1 1 Chapter 2 <53>

Boolean Theorems of Several Vars Number Theorem Name T6 B C = C B Commutativity T7 (B C) D = B (C D) Associativity T8 B (C + D) = (B C) + (B D) Distributivity T9 B (B+C) = B Covering T10 (B C) + (B C) = B Combining T11 B C + (B D) + (C D) = B C + B D Consensus Chapter 2 <54>

T7: Associativity Number Theorem Name T7 (B C) D = B (C D) Associativity Chapter 2 <55>

T8: Distributivity Number Theorem Name T8 B (C + D) = (B C) + (B D) Distributivity Chapter 2 <56>

T9: Covering Number Theorem Name T9 B (B+C) = B Covering Chapter 2 <57>

T9: Covering Number Theorem Name T9 B (B+C) = B Covering Prove true by: Method 1: Perfect induction Method 2: Using other theorems and axioms Chapter 2 <58>

T9: Covering Number Theorem Name T9 B (B+C) = B Covering Method 1: Perfect Induction B C (B+C) B(B+C) 0 0 0 1 1 0 1 1 Chapter 2 <59>

T9: Covering Number Theorem Name T9 B (B+C) = B Covering Method 1: Perfect Induction B C (B+C) B(B+C) 0 0 0 1 1 0 1 1 0 0 1 0 1 1 1 1 Chapter 2 <60>

T9: Covering Number Theorem Name T9 B (B+C) = B Covering Method 2: Prove true using other axioms and theorems. Chapter 2 <61>

T9: Covering Number Theorem Name T9 B (B+C) = B Covering Method 2: Prove true using other axioms and theorems. B (B+C) = B B + B C T8: Distributivity = B + B C T3: Idempotency = B (1 + C) T8: Distributivity = B (1) T2: Null element = B T1: Identity Chapter 2 <62>

T10: Combining Number Theorem Name T10 (B C) + (B C) = B Combining Prove true using other axioms and theorems: Chapter 2 <63>

T10: Combining Number Theorem Name T10 (B C) + (B C) = B Combining Prove true using other axioms and theorems: B C + B C = B (C+C) T8: Distributivity = B (1) T5 : Complements = B T1: Identity Chapter 2 <64>

T11: Consensus Number Theorem T11 (B C) + (B D) + (C D) = (B C) + B D Name Consensus Prove true using (1) perfect induction or (2) other axioms and theorems. Chapter 2 <65>

Recap: Boolean Thms of Several Vars Number Theorem Name T6 B C = C B Commutativity T7 (B C) D = B (C D) Associativity T8 B (C + D) = (B C) + (B D) Distributivity T9 B (B+C) = B Covering T10 (B C) + (B C) = B Combining T11 B C + (B D) + (C D) = B C + B D Consensus Chapter 2 <66>

Boolean Thms of Several Vars: Duals # Theorem Dual Name T6 B C = C B B+C = C+B Commutativity T7 (B C) D = B (C D) (B + C) + D = B + (C + D) Associativity T8 B (C + D) = (B C) + (B D) B + (C D) = (B+C) (B+D) Distributivity T9 B (B+C) = B B + (B C) = B Covering T10 (B C) + (B C) = B (B+C) (B+C) = B Combining T11 (B C) + (B D) + (C D) = (B C) + (B D) (B+C) (B+D) (C+D) = (B+C) (B+D) Dual: Replace: with + 0 with 1 Consensus Chapter 2 <67>

Boolean Thms of Several Vars: Duals # Theorem Dual Name T6 B C = C B B+C = C+B Commutativity T7 (B C) D = B (C D) (B + C) + D = B + (C + D) Associativity T8 B (C + D) = (B C) + (B D) B + (C D) = (B+C) (B+D) Distributivity T9 B (B+C) = B B + (B C) = B Covering T10 (B C) + (B C) = B (B+C) (B+C) = B Combining T11 (B C) + (B D) + (C D) = (B C) + (B D) (B+C) (B+D) (C+D) = (B+C) (B+D) Consensus Dual: Replace: with + 0 with 1 Warning: T8 differs from traditional algebra: OR (+) distributes over AND ( ) Chapter 2 <68>

Boolean Thms of Several Vars: Duals # Theorem Dual Name T6 B C = C B B+C = C+B Commutativity T7 (B C) D = B (C D) (B + C) + D = B + (C + D) Associativity T8 B (C + D) = (B C) + (B D) B + (C D) = (B+C) (B+D) Distributivity T9 B (B+C) = B B + (B C) = B Covering T10 (B C) + (B C) = B (B+C) (B+C) = B Combining T11 (B C) + (B D) + (C D) = (B C) + (B D) (B+C) (B+D) (C+D) = (B+C) (B+D) Consensus Axioms and theorems are useful for simplifying equations. Chapter 2 <69>