CprE 281: Digital Logic

Similar documents
CprE 281: Digital Logic

CprE 281: Digital Logic

CprE 281: Digital Logic

CprE 281: Digital Logic

CprE 281: Digital Logic

CprE 281: Digital Logic

Unit 2 Boolean Algebra

CprE 281: Digital Logic

CprE 281: Digital Logic

Digital Circuit And Logic Design I. Lecture 3

Chapter 2 Combinational Logic Circuits

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

CprE 281: Digital Logic

CS 226: Digital Logic Design

Chapter 2: Switching Algebra and Logic Circuits

Logic Design. Chapter 2: Introduction to Logic Circuits

Boolean Algebra & Logic Gates. By : Ali Mustafa

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

Binary Logic and Gates

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

CprE 281: Digital Logic

CHAPTER 2 BOOLEAN ALGEBRA

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

CHAPTER III BOOLEAN ALGEBRA

EEE130 Digital Electronics I Lecture #4

Unit 2 Boolean Algebra

COS 140: Foundations of Computer Science

BOOLEAN LOGIC. By- Neha Tyagi PGT CS KV 5 Jaipur II Shift, Jaipur Region. Based on CBSE curriculum Class 11. Neha Tyagi, KV 5 Jaipur II Shift

INTRODUCTION TO INFORMATION & COMMUNICATION TECHNOLOGY LECTURE 8 : WEEK 8 CSC-110-T

Combinational Logic Fundamentals

CHAPTER III BOOLEAN ALGEBRA

Switches: basic element of physical implementations

Boolean Algebra CHAPTER 15

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

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

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

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

Combinational Logic Design Principles

Digital Logic Design ENEE x. Lecture 12

Chapter 2. Boolean Algebra and Logic Gates

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

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA

CprE 281: Digital Logic

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

Boolean Algebra and Logic Gates

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

Lab 1 starts this week: go to your session

Number System conversions

Chapter 2 Boolean Algebra and Logic Gates

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.

Chapter-2 BOOLEAN ALGEBRA

Chapter 2: Boolean Algebra and Logic Gates

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

Chapter 2 : Boolean Algebra and Logic Gates

Digital Systems and Information Part II

CSE 140, Lecture 2 Combinational Logic CK Cheng CSE Dept. UC San Diego

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

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA (CONT.)

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

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

3 Boolean Algebra 3.1 BOOLEAN ALGEBRA

UC Berkeley College of Engineering, EECS Department CS61C: Representations of Combinational Logic Circuits

Standard Expression Forms

1 Boolean Algebra Simplification

CS61c: Representations of Combinational Logic Circuits

Boolean Algebra. The Building Blocks of Digital Logic Design. Section. Section Overview. Binary Operations and Their Representation.

Lecture 3: Boolean Algebra

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

Logic Gate Level. Part 2

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

Combinatorial Logic Design Principles

ECE380 Digital Logic. Axioms of Boolean algebra

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

Gate-Level Minimization

Boolean Algebra, Gates and Circuits

Circuits & Boolean algebra.

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

Lecture 2 Review on Digital Logic (Part 1)

Computer Organization: Boolean Logic

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

UNIVERSITI TENAGA NASIONAL. College of Information Technology

Lecture 4: More Boolean Algebra

Number System. Decimal to binary Binary to Decimal Binary to octal Binary to hexadecimal Hexadecimal to binary Octal to binary

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

Week-I. Combinational Logic & Circuits

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA

CprE 281: Digital Logic

ENG2410 Digital Design Combinational Logic Circuits

4 Switching Algebra 4.1 Axioms; Signals and Switching Algebra

Logic Design I (17.341) Fall Lecture Outline

Signals and Systems Digital Logic System

Digital electronics form a class of circuitry where the ability of the electronics to process data is the primary focus.

CHAPTER1: Digital Logic Circuits Combination Circuits

Chapter 2 Boolean Algebra and Logic Gates

Boolean Algebra & Digital Logic

Digital Logic Design. Malik Najmus Siraj

1. Prove: A full m- ary tree with i internal vertices contains n = mi + 1 vertices.

Midterm Examination # 1 Wednesday, February 25, Duration of examination: 75 minutes

Transcription:

CprE 281: Digital Logic Instructor: Alexander Stoytchev http://www.ece.iastate.edu/~alexs/classes/

Boolean Algebra CprE 281: Digital Logic Iowa State University, Ames, IA Copyright Alexander Stoytchev

HW1 is due today Administrative Stuff

Administrative Stuff HW2 is out It is due on Monday Sep 3 @ 4pm. Submit it on paper before the start of the lecture

Boolean Algebra An algebraic structure consists of a set of elements {0, 1} binary operators {+, } and a unary operator { } or { } Introduced by George Boole in 1854 George Boole 1815-1864 An effective means of describing circuits built with switches A powerful tool that can be used for designing and analyzing logic circuits

Axioms of Boolean Algebra 1a. 0 0 = 0! 1b. 1 + 1 = 1!! 2a. 1 1 = 1! 2b. 0 + 0 = 0!! 3a. 0 1 = 1 0 = 0! 3b. 1 + 0 = 0 + 1 = 1!! 4a. If x=0, then! x = 1! 4b. If x=1, then! x = 0!

Single-Variable Theorems 5a. x 0 = 0! 5b. x + 1 = 1!! 6a. x 1 = x! 6b. x + 0 = x!! 7a. x x = x! 7b. x + x = x!! 8a. x! x = 0! 8b. x +! x = 1!! 9.! x = x!

Two- and Three-Variable Properties 10a. x y = y x! 10b. x + y = y + x!! 11a. x (y z) = (x y) z! 11b. x + (y + z) = (x + y) + z!! 12a. x (y + z) = x y + x z! 12b. x + y z = (x + y) (x + z)!!!! 13a. x + x y = x! 13b. x (x + y) = x!! Commutative!!! Associative!!! Distributive! Absorption!!

Two- and Three-Variable Properties 14a. x y + x y! = x! 14b. (x + y) (x +! y) = x!! 15a. x y = x + y! 15b. x + y = x y!! 16a. x + x y = x + y! 16b. x (x + y) = x y!! 17a. x y + y z + x z = x y + x z! 17b. (x+y) (y+z) (x+z)=(x+y) (x+z)!! Combining!!! DeMorgan s! theorem!!!!! Consensus!!

Now, let s prove all of these

The First Four are Axioms (i.e., they don t require a proof) 1a. 0 0 = 0! 1b. 1 + 1 = 1!! 2a. 1 1 = 1! 2b. 0 + 0 = 0!! 3a. 0 1 = 1 0 = 0! 3b. 1 + 0 = 0 + 1 = 1!! 4a. If x=0, then! x = 1! 4b. If x=1, then! x = 0!

But here are some other ways to think about them

0 0 0 1 1 1 AND gate OR gate

0 0 0 1 1 1 AND gate OR gate x 1 x 2 f 0 0 0 0 1 0 1 0 0 1 1 1 x 1 x 2 f 0 0 0 0 1 1 1 0 1 1 1 1

0 0 0 1 1 1 AND gate OR gate x 1 x 2 f 0 0 0 0 1 0 1 0 0 1 1 1 x 1 x 2 f 0 0 0 0 1 1 1 0 1 1 1 1

1 1 1 0 0 0 AND gate OR gate

1 1 1 0 0 0 AND gate OR gate x 1 x 2 f 0 0 0 0 1 0 1 0 0 1 1 1 x 1 x 2 f 0 0 0 0 1 1 1 0 1 1 1 1

0 1 0 1 0 1 1 0 0 0 1 1

0 1 0 1 0 1 1 0 0 0 1 1 AND gate x 1 x 2 f 0 0 0 0 1 0 1 0 0 1 1 1 OR gate x 1 x 2 f 0 0 0 0 1 1 1 0 1 1 1 1

0 1 0 1 0 1 1 0 0 0 1 1 AND gate x 1 x 2 f 0 0 0 0 1 0 1 0 0 1 1 1 OR gate x 1 x 2 f 0 0 0 0 1 1 1 0 1 1 1 1

0 1 0 1 0 1 1 0 0 0 1 1 AND gate x 1 x 2 f 0 0 0 0 1 0 1 0 0 1 1 1 OR gate x 1 x 2 f 0 0 0 0 1 1 1 0 1 1 1 1

0 1 1 0

0 1 1 0 NOT gate NOT gate x x x x 0 1 0 1 1 0 1 0

Single-Variable Theorems 5a. x 0 = 0! 5b. x + 1 = 1!! 6a. x 1 = x! 6b. x + 0 = x!! 7a. x x = x! 7b. x + x = x!! 8a. x! x = 0! 8b. x +! x = 1!! 9.! x = x!

The Boolean variable x can have only two possible values: 0 or 1. Let s look at each case separately.

The Boolean variable x can have only two possible values: 0 or 1. Let s look at each case separately. i) If x = 0, then we have 0 0 = 0 // axiom 1a

The Boolean variable x can have only two possible values: 0 or 1. Let s look at each case separately. i) If x = 0, then we have 0 0 = 0 // axiom 1a ii) If x = 1, then we have 1 0 = 0 // axiom 3a

The Boolean variable x can have only two possible values: 0 or 1. Let s look at each case separately. i) If x = 0, then we have 0 + 1 = 1 // axiom 3b

The Boolean variable x can have only two possible values: 0 or 1. Let s look at each case separately. i) If x = 0, then we have 0 + 1 = 1 // axiom 3b ii) If x = 1, then we have 1 + 1 = 1 // axiom 1b

The Boolean variable x can have only two possible values: 0 or 1. Let s look at each case separately. i) If x = 0, then we have 0 1 = 0 // axiom 3a ii) If x = 1, then we have 1 1 = 1 // axiom 2a

The Boolean variable x can have only two possible values: 0 or 1. Let s look at each case separately. i) If x = 0, then we have 0 1 = 0 // axiom 3a ii) If x = 1, then we have 1 1 = 1 // axiom 2a

The Boolean variable x can have only two possible values: 0 or 1. Let s look at each case separately. i) If x = 0, then we have 0 + 0 = 0 // axiom 2b ii) If x = 1, then we have 1 + 1 = 1 // axiom 1b

The Boolean variable x can have only two possible values: 0 or 1. Let s look at each case separately. i) If x = 0, then we have 0 + 0 = 0 // axiom 2b ii) If x = 1, then we have 1 + 1 = 1 // axiom 1b

i) If x = 0, then we have 0 0 = 0 // axiom 1a ii) If x = 1, then we have 1 1 = 1 // axiom 2a

i) If x = 0, then we have 0 0 = 0 // axiom 1a ii) If x = 1, then we have 1 1 = 1 // axiom 2a

i) If x = 0, then we have 0 + 0 = 0 // axiom 2b ii) If x = 1, then we have 1 + 1 = 1 // axiom 1b

i) If x = 0, then we have 0 + 0 = 0 // axiom 2b ii) If x = 1, then we have 1 + 1 = 1 // axiom 1b

i) If x = 0, then we have 0 1 = 0 // axiom 3a ii) If x = 1, then we have 1 0 = 0 // axiom 3a

i) If x = 0, then we have 0 1 = 0 // axiom 3a ii) If x = 1, then we have 1 0 = 0 // axiom 3a

i) If x = 0, then we have 0 + 1 = 1 // axiom 3b ii) If x = 1, then we have 1 + 0 = 1 // axiom 3b

i) If x = 0, then we have 0 + 1 = 1 // axiom 3b ii) If x = 1, then we have 1 + 0 = 1 // axiom 3b

i) If x = 0, then we have x = 1 // axiom 4a let y = x = 1, then we have y = 0 // axiom 4b Therefore, x = x (when x =0)

ii) If x = 1, then we have x = 0 // axiom 4b let y = x = 0, then we have y = 1 // axiom 4a Therefore, x = x (when x =1)

x y x y y x y x

x y x y y x y x AND gate x y f 0 0 0 0 1 0 1 0 0 1 1 1 OR gate x y f 0 0 0 0 1 1 1 0 1 1 1 1 The order of the inputs does not matter.

x y z x y z x (y z) 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 Truth table for the left-hand side

x y z x y z x (y z) 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 1 1 0 1 1 0 0 1 0 1 0 1 1 0 1 1 0 1 0 1 1 1 1 1 Truth table for the left-hand side

x y z x y z x (y z) 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 1 1 0 1 0 1 0 0 1 0 0 1 0 1 1 0 0 1 1 0 1 0 0 1 1 1 1 1 1 Truth table for the left-hand side

x y z x y z (x y) z 0 0 0 0 0 0 0 0 1 0 1 0 0 1 0 0 0 0 0 1 1 0 1 0 1 0 0 0 0 0 1 0 1 0 1 0 1 1 0 1 0 0 1 1 1 1 1 1 Truth table for the right-hand side

These two are identical, which concludes the proof.

x y z x y + z x+(y+z) 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 Truth table for the left-hand side

x y z x y + z x+(y+z) 0 0 0 0 0 0 0 1 0 1 0 1 0 0 1 0 1 1 0 1 1 0 0 1 0 1 0 1 1 1 1 1 0 1 1 1 1 1 1 1 Truth table for the left-hand side

x y z x y + z x+(y+z) 0 0 0 0 0 0 0 0 1 0 1 1 0 1 0 0 1 1 0 1 1 0 1 1 1 0 0 1 0 1 1 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 Truth table for the left-hand side

x y z x + y z (x+y)+z 0 0 0 0 0 0 0 0 1 0 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 1 1 1 1 1 1 Truth table for the right-hand side

These two are identical, which concludes the proof.

The Venn Diagram Representation x y z x y + z

Venn Diagram Basics (a) Constant 1 (b) Constant 0 x x x x (c) Variable x (d) x [ Figure 2.14 from the textbook ]

Venn Diagram Basics x y x y (e) x y (f) x + y x y x y z (g) x y (h) x y + z [ Figure 2.14 from the textbook ]

Let s Prove the Distributive Properties

x y x y z z (a) x (d) x y x y x y z z (b) y + z (e) x z x y x y z z (c) x ( y + z ) (f) x y + x z [ Figure 2.15 from the textbook ]

[ Figure 2.17 from the textbook ]

Try to prove these ones at home

DeMorgan s Theorem

Proof of DeMorgan s theorem [ Figure 2.13 from the textbook ]

Alternative Proof of DeMorgan s theorem [ Figure 2.18 from the textbook ]

Let s prove DeMorgan s theorem

Try to prove these ones at home

Venn Diagram Example Proof of Property 17a

Left-Hand Side x y x y x y x y z z z z x y x z y z x y + x z + y z [ Figure 2.16 from the textbook ]

Left-Hand Side x y x y x y x y z z z z x y x z y z x y + x z + y z Right-Hand Side x y x y x y z z z x y x z x y + x z [ Figure 2.16 from the textbook ]

Left-Hand Side These two are equal x y x y x y x y z z z z x y x z y z x y + x z + y z Right-Hand Side x y x y x y z z z x y x z x y + x z [ Figure 2.16 from the textbook ]

Questions?

THE END