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

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

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

CS61c: Representations of Combinational Logic Circuits

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

Switches: basic element of physical implementations

Chapter 2: Switching Algebra and Logic Circuits

EEE130 Digital Electronics I Lecture #4

Digital Circuit And Logic Design I. Lecture 3

Combinational Logic. Review of Combinational Logic 1

Logic Design. Chapter 2: Introduction to Logic Circuits

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

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

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

Chapter 2 Combinational Logic Circuits

Combinational Logic Design Principles

EECS Variable Logic Functions

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

4 Switching Algebra 4.1 Axioms; Signals and Switching Algebra

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

Boolean Algebra & Logic Gates. By : Ali Mustafa

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

Chapter 2 Boolean Algebra and Logic Gates

Boolean Algebra and Logic Gates

Lab 1 starts this week: go to your session

CS 226: Digital Logic Design

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

Unit 2 Boolean Algebra

CHAPTER1: Digital Logic Circuits Combination Circuits

CHAPTER 2 BOOLEAN ALGEBRA

Lecture A: Logic Design and Gates

Chapter 2. Boolean Algebra and Logic Gates

Chapter 2: Boolean Algebra and Logic Gates

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

Combinational Logic. By : Ali Mustafa

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

CHAPTER III BOOLEAN ALGEBRA

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

MC9211 Computer Organization

Unit 2 Boolean Algebra

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

Every time has a value associated with it, not just some times. A variable can take on any value within a range

Digital Logic (2) Boolean Algebra

Computer Organization: Boolean Logic

CHAPTER III BOOLEAN ALGEBRA

Chapter 2: Princess Sumaya Univ. Computer Engineering Dept.

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.

ECE 545 Digital System Design with VHDL Lecture 1. Digital Logic Refresher Part A Combinational Logic Building Blocks

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

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

211: Computer Architecture Summer 2016

WEEK 2.1 BOOLEAN ALGEBRA

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

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

ENG2410 Digital Design Combinational Logic Circuits

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

Fundamentals of Digital Design

Administrative Notes. Chapter 2 <9>

UNIVERSITI TENAGA NASIONAL. College of Information Technology

Boolean Algebra CHAPTER 15

Chap 2. Combinational Logic Circuits

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

This form sometimes used in logic circuit, example:

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA (CONT.)

COSC 243. Introduction to Logic And Combinatorial Logic. Lecture 4 - Introduction to Logic and Combinatorial Logic. COSC 243 (Computer Architecture)

Binary Logic and Gates

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

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

Chapter 2 Boolean Algebra and Logic Gates

Week-I. Combinational Logic & Circuits

Chapter-2 BOOLEAN ALGEBRA

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

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

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

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

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

Signals and Systems Digital Logic System

Logic Gate Level. Part 2

Number System conversions

ELCT201: DIGITAL LOGIC DESIGN

Chapter 2 Combinational logic

Chapter 2 Combinational Logic Circuits

EC-121 Digital Logic Design

Boolean Algebra & Digital Logic

Combinational Logic Fundamentals

Lecture 2 Review on Digital Logic (Part 1)

Digital Systems and Information Part II

Boolean Algebra and Digital Logic

EECS150 - Digital Design Lecture 10 - Combinational Logic Circuits Part 1

Boolean Algebra, Gates and Circuits

CprE 281: Digital Logic

COS 140: Foundations of Computer Science

Logic Design. Digital Logic. Goal: to become literate in most common concepts and terminology of digital electronics

Possible logic functions of two variables

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

Logic Gates and Boolean Algebra

Computer Science. 20. Combinational Circuits. Computer Science COMPUTER SCIENCE. Section

. T SHREE MAHAPRABHU PUBLIC SCHOOL & COLLEGE NOTES FOR BOARD EXAMINATION SUBJECT COMPUTER SCIENCE (Code: 083) Boolean Algebra

CSC9R6 Computer Design. Practical Digital Logic

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

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

Transcription:

EECS150 - Digital Design Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits) September 5, 2002 John Wawrzynek Fall 2002 EECS150 Lec4-bool1 Page 1, 9/5 9am

Outline Review of three representations for combinational logic: truth tables, graphical (logic gates), and algebraic equations Relationship among the three Adder example Formal description of Boolean algebra Laws of Boolean algebra Fall 2002 EECS150 Lec4-bool1 Page 2, 9/5 9am

Combinational Logic (CL) Defined y i =f i (x0,...., xn-1), where x, y are {0,1}. Y is a function of only X. If we change X, Y will change immediately (well almost!). There is an implementation dependent delay from X to Y. Fall 2002 EECS150 Lec4-bool1 Page 3, 9/5 9am

CL Block Example #1 Boolean Equation: y 0 = (x 0 AND not(x 1 )) OR (not(x 0 ) AND x 1 ) y 0 = x 0 x 1 ' + x 0 'x 1 Truth Table Description: x0 x1 y 0 0 0 0 1 1 0 1 0 Gate Representation: 1 1 1 How would we prove that all three representations are equivalent? Fall 2002 EECS150 Lec4-bool1 Page 4, 9/5 9am

Boolean Algebra/Logic Circuits Why are they called logic circuits? Logic: The study of the principles of reasoning. The 19th Century Mathematician, George Boole, developed a math. system (algebra) involving logic, Boolean Algebra. His variables took on TRUE, FALSE Later Claude Shannon (father of information theory) showed (in his Master s thesis!) how to map Boolean Algebra to digital circuits: Primitive functions of Boolean Algebra: Fall 2002 EECS150 Lec4-bool1 Page 5, 9/5 9am

Relationship Among Representations * Theorem: Any Boolean function that can be expressed as a truth table can be written as an expression in Boolean Algebra using AND, OR, NOT. not unique? Boolean Expression [convenient for manipulation] Truth Table unique? gate representation (schematic) [close to implementaton] not unique How do we convert from one to the other? Fall 2002 EECS150 Lec4-bool1 Page 6, 9/5 9am

Notes on Example #1 x0 x1 y 0 0 0 0 1 1 1 0 1 1 1 0 The example is the standard function called exclusive-or (XOR,EXOR) Has a standard algebraic symbol: And a standard gate symbol: Fall 2002 EECS150 Lec4-bool1 Page 7, 9/5 9am

CL Block Example #2 4-bit adder: Truth Table Representation: R = A + B, c is carry out In general: 2 n rows for n inputs. 256 rows! Is there a more efficient (compact) way to specify this function? Fall 2002 EECS150 Lec4-bool1 Page 8, 9/5 9am

Motivate the adder circuit design by hand addition: 4-bit Adder Example Add a1 and b1 as follows: Add a0 and b0 as follows: carry to next stage r = a XOR b c = a AND b = ab r = a XOR b XOR ci co = ab + aci + bci Fall 2002 EECS150 Lec4-bool1 Page 9, 9/5 9am

4-bit Adder Example In general: r i =a i XOR b i XOR c in c out =a i c in +a i b i +b i c in =c in (a i + b i ) + a i b i Now, the 4-bit adder: Full adder cell ripple adder Fall 2002 EECS150 Lec4-bool1 Page 10, 9/5 9am

4-bit Adder Example Graphical Representation of FA-cell r i =a i XOR b i XOR c in c out =a i c in +a i b i + b i c in Alternative Implementation (with 2-input gates): r i = (a i XOR b i ) XOR c in c out = c in (a i + b i ) + a i b i Fall 2002 EECS150 Lec4-bool1 Page 11, 9/5 9am

Boolean Algebra Defined as: Set of elements B, binary operators { +, } operation {}, unary such that the following axioms hold :, 1. B contains at least two elements a,b such that 2. Closure : a + b in B, 3. Communitive laws : a + b a + 0 = = b + a, a, 5. Distributive laws : a + ( b c) = ( a + b) ( a + c), 6. Complement : a + a = 1, a,b in B, a b in B, 4. Identities :0,1in B a b = b a. a 1 = a. a a = 0. a in B. a ( b + c) = a b. a b + a c. Fall 2002 EECS150 Lec4-bool1 Page 12, 9/5 9am

Logic Functions B = { 0,1}, + = OR, = AND, = NOT is a valid Boolean Algebra. 00 0 01 1 10 1 11 1 00 0 01 0 10 0 11 1 0 1 1 0 Do the axioms hold? Ex: communitive law: 0+1 = 1+0? Fall 2002 EECS150 Lec4-bool1 Page 13, 9/5 9am

Other logic functions of 2 variables (x,y) x y f0 f1 00 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 01 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 10 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 11 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 AND X Y + OR NOR XNOR NAND 1 Look at NOR and NAND: Theorem: Any Boolean function that can be expressed as a truth table can be expressed using NAND and NOR. Proof sketch: = NOT = AND = OR How would you show that either NAND or NOR is sufficient? Fall 2002 EECS150 Lec4-bool1 Page 14, 9/5 9am

Laws of Boolean Algebra Duality: A dual of a Boolean expression is derived by interchanging OR and AND operations, and 0s and 1s (literals are left unchanged). D { F ( x 1, x 2,..., x n, 0,1, +, )} = { F ( x 1, x 2,..., x n,1, 0,, + )} Any law that is true for an expression is also true for its dual. Operations with 0 and 1: 1. x + 0 = x x * 1 = x 2. x + 1 = 1 x * 0 = 0 Idempotent Law: 3. x + x = x x x = x Involution Law: 4. (x ) = x Laws of Complementarity: 5. x + x = 1 x x = 0 Commutative Law: 6. x + y = y + x x y = y x Fall 2002 EECS150 Lec4-bool1 Page 15, 9/5 9am

Laws of Boolean Algebra (cont.) Associative Laws: (x + y) + z = x + (y + z) x y z = x (y z) Distributive Laws: x (y + z) = (x y) + (x z) x +(y z) = (x + y)(x + z) Simplification Theorems: x y + x y = x x + x y = x (x + y) (x + y ) = x x (x + y) = x DeMorgan s Law: (x + y + z + ) = x y z (x y z ) = x + y +z Theorem for Multiplying and Factoring: (x + y) (x + z) = x z + x y Consensus Theorem: x y + y z + x z = (x + y) (y + z) (x + z) x y + x z = (x + y) (x + z) Fall 2002 EECS150 Lec4-bool1 Page 16, 9/5 9am

Proving Theorems via axioms of Boolean Algebra Ex: prove the theorem: x y + x y = x x y + x y = x (y + y ) distributive law x (y + y ) = x (1) complementary law x (1) = x identity Ex: prove the theorem: x + x y = x x + x y = x 1 + x y identity x 1 + x y = x (1 + y) distributive law x (1 + y) = x (1) identity x (1) = x identity Fall 2002 EECS150 Lec4-bool1 Page 17, 9/5 9am

DeMorgan s Law (x + y) = x y = Exhaustive Proof x y x' y' (x + y)' x'y' 0 0 1 1 1 1 0 1 1 0 0 0 1 0 0 1 0 0 1 1 0 0 0 0 (x y) = x + y = Exhaustive Proof x y x' y' (x y)' x' + y' 0 0 1 1 1 1 0 1 1 0 1 1 1 0 0 1 1 1 1 1 0 0 0 0 * DeMorgan s Law can be used to convert AND/OR expressions to OR/AND expressions: Example: z = a b c + a bc + ab c + abc z = a b c + a b c + ab c + abc Fall 2002 EECS150 Lec4-bool1 Page 18, 9/5 9am

Algebraic Simplification Ex: full adder (FA) carry out function Cout = a bc + ab c + abc + abc Fall 2002 EECS150 Lec4-bool1 Page 19, 9/5 9am

Ex: full adder (FA) carry out function Cout = a bc + ab c + abc + abc = a bc + ab c + abc + abc + abc = a bc + abc + ab c + abc + abc = (a + a)bc + ab c + abc + abc = (1)bc + ab c + abc + abc = bc + ab c + abc + abc + abc = bc + ab c + abc + abc + abc = bc + a(b +b)c + abc +abc = bc + a(1)c + abc + abc = bc + ac + ab(c + c) = bc + ac + ab(1) = bc + ac + ab Algebraic Simplification Fall 2002 EECS150 Lec4-bool1 Page 20, 9/5 9am