Lab 1 starts this week: go to your session

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

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

Switches: basic element of physical implementations

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

Combinational Logic. Review of Combinational Logic 1

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

CHAPTER 2 BOOLEAN ALGEBRA

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

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

Administrative Notes. Chapter 2 <9>

CHAPTER III BOOLEAN ALGEBRA

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

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

EECS Variable Logic Functions

CHAPTER III BOOLEAN ALGEBRA

Chapter 2 Combinational Logic Circuits

Slides for Lecture 10

COS 140: Foundations of Computer Science

Digital Circuit And Logic Design I. Lecture 3

Lecture 2 Review on Digital Logic (Part 1)

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

CPE100: Digital Logic Design I

Lecture A: Logic Design and Gates

Combinational Logic Fundamentals

Lecture 3: Boolean Algebra

Combinational Logic Design Principles

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

3 Boolean Algebra 3.1 BOOLEAN ALGEBRA

Chapter 2 : Boolean Algebra and Logic Gates

Boolean Algebra & Logic Gates. By : Ali Mustafa

CprE 281: Digital Logic

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

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

Unit 2 Boolean Algebra

EEE130 Digital Electronics I Lecture #4

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

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

Binary Logic and Gates

Unit 2 Boolean Algebra

Midterm1 Review. Jan 24 Armita

Boolean Algebra, Gates and Circuits

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

ECE 238L Boolean Algebra - Part I

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

Chapter 2 Combinational Logic Circuits

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

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

Chapter 2: Switching Algebra and Logic Circuits

UNIVERSITI TENAGA NASIONAL. College of Information Technology

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

Chapter 2 Combinational logic

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA

Possible logic functions of two variables

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

Chapter-2 BOOLEAN ALGEBRA

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

Chapter 2: Boolean Algebra and Logic Gates

Digital Logic Design. Malik Najmus Siraj

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

Doc112: Hardware. Department of Computing, Imperial College London. Doc112: Hardware Lecture 1 Slide 1

Chapter 2 Boolean Algebra and Logic Gates

Logic and Boolean algebra

Chapter 2. Boolean Algebra and Logic Gates

Number System conversions

Logic Synthesis and Verification

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

Hardware Design I Chap. 2 Basis of logical circuit, logical expression, and logical function

Logic Design I (17.341) Fall Lecture Outline

Digital Systems and Information Part II

Boolean Algebra CHAPTER 15

S C F F F T T F T T S C B F F F F F T F T F F T T T F F T F T T T F T T T

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

BOOLEAN ALGEBRA TRUTH TABLE

1 Boolean Algebra Simplification

Chapter 7 Logic Circuits

cse 311: foundations of computing Spring 2015 Lecture 3: Logic and Boolean algebra

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

Logic Design. Chapter 2: Introduction to Logic Circuits

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

Computer Organization I

Combinational Logic (mostly review!)

Combinational Logic. By : Ali Mustafa

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA (CONT.)

Boolean Algebra and Digital Logic

Review CHAPTER. 2.1 Definitions in Chapter Sample Exam Questions. 2.1 Set; Element; Member; Universal Set Partition. 2.

MC9211 Computer Organization

CHAPTER 3 BOOLEAN ALGEBRA

CPE100: Digital Logic Design I

Boolean Algebra and Logic Gates

Chapter 3. Boolean Algebra. (continued)

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

2. BOOLEAN SWITCHING ALGEBRA

University of Technology

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

Practice Midterm Exam Solutions

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

Systems I: Computer Organization and Architecture

Logic Simplification. Boolean Simplification Example. Applying Boolean Identities F = A B C + A B C + A BC + ABC. Karnaugh Maps 2/10/2009 COMP370 1

Review Getting the truth table

ENG2410 Digital Design Combinational Logic Circuits

Transcription:

Lecture 3: Boolean Algebra Logistics Class email sign up Homework 1 due on Wednesday Lab 1 starts this week: go to your session Last lecture --- Numbers Binary numbers Base conversion Number systems for negative numbers A/D and D/A conversion Today s lecture Boolean algebra Axioms Useful laws and theorems Examples 1 The WH slide Boolean Algebra When we learned numbers like 1, 2, 3, we also then learned how to add, multiply, etc. with them. Boolean Algebra is operations that we can do with 0 s and 1 s. Computers do these operations ALL THE TIME and they are basic building blocks of computation inside your computer program. Axioms, laws, theorems We need to know some rules about how those 0 s and 1 s can be operated together. There are similar axioms to decimal number algebra, and there are some laws and theorems that are good for you to use to simplify your operation. 2

How does Boolean Algebra fit into the big picture? It is part of the Combinational Logic topics (memoryless) Different from the Sequential logic topics (can store information) Learning Axioms and theorems of Boolean algebra Allows you to do design logic functions Allows you to know how to combine different logic gates Allows you to simplify or optimize on the complex operations 3 Boolean algebra A Boolean algebra comprises... A set of elements B Binary operators {+, } Boolean sum and product A unary operation { ' } (or { }) example: A or A and the following axioms 1. The set B contains at least two elements {a b} with a b 2. Closure: a+b is in B a b is in B 3. Commutative: a+b = b+a a b = b a 4. Associative: a+(b+c) = (a+b)+c a (b c) = (a b) c 5. Identity: a+0 = a a 1 = a 6. Distributive: a+(b c)=(a+b) (a+c) a (b+c)=(a b)+(a c) 7. Complementarity: a+a' = 1 a a' = 0 4

Digital (binary) logic is a Boolean algebra Substitute {0, 1} for B AND for Boolean Product OR for + Boolean Sum NOT for ' All the axioms hold for binary logic Definitions Boolean function Maps inputs from the set {0,1} to the set {0,1} Boolean expression An algebraic statement of Boolean variables and operators 5 Logic Gates (AND, OR, Not) & Truth Table AND Z Z 0 0 0 0 1 0 1 0 0 1 1 1 OR + Z Z 0 0 0 0 1 1 1 0 1 1 1 1 NOT ' 0 1 1 0 6

Logic functions and Boolean algebra Any logic function that is expressible as a truth table can be written in Boolean algebra using +,, and ' Z 0 0 0 0 1 0 1 0 0 1 1 1 Z= ' Z 0 0 1 0 0 1 1 1 1 0 0 0 1 1 0 0 Z=' ' ' ' ' Z 0 0 1 1 0 1 1 0 1 1 0 0 0 0 1 0 0 1 0 0 0 1 1 0 0 1 0 1 Z=( )+(' ') 7 Some notation Priorities: A B+C=((A) B)+C Variables are sometimes called literals 8

Two key concepts Duality (a meta-theorem a theorem about theorems) All Boolean expressions have logical duals Any theorem that can be proved is also proved for its dual Replace: with +, + with, 0 with 1, and 1 with 0 Leave the variables unchanged de Morgan s Theorem Procedure for complementing Boolean functions Replace: with +, + with, 0 with 1, and 1 with 0 Replace all variables with their complements 9 Useful laws and theorems Identity: + 0 = Dual: 1 = Null: + 1 = 1 Dual: 0 = 0 Idempotent: + = Dual: = Involution: (')' = Complementarity: + ' = 1 Dual: ' = 0 Commutative: + = + Dual: = Associative: (+)+Z=+(+Z) Dual: ( ) Z= ( Z) Distributive: (+Z)=( )+( Z) Dual: +( Z)=(+) (+Z) Uniting: + '= Dual: (+) (+')= 10

Useful laws and theorems (con t) Absorption: + = Dual: (+)= Absorption (#2): (+') = Dual: ( ')+=+ de Morgan's: (++...)'=' '... Dual: (...)'='+'+... Duality: (++...) D =... Dual: (...) D =++ Multiplying & factoring: (+) ('+Z)= Z+' Dual: +' Z=(+Z) ('+) Consensus: ( )+( Z)+(' Z)= +' Z Dual: (+) (+Z) ('+Z)=(+) ('+Z) 11 Proving theorems Example 1: Prove the uniting theorem-- + '= Distributive + ' = (+') Complementarity = (1) Identity = Example 2: Prove the absorption theorem-- + = Identity + = ( 1)+( ) ( ) Distributive = (1+) Null = (1) Identity = 12

Proving theorems Example 3: Prove the consensus theorem-- ()+(Z)+('Z)= ( ) ( ) +'Z Complementarity Distributive +Z+'Z = +(+')Z + 'Z = Z++'Z+'Z Use absorption {AB+A=A} with A= and B=Z = +'Z+'Z Rearrange terms = +'Z+'Z Z Use absorption {AB+A=A} with A='Z and B= +Z+'Z = +'Z 13 de Morgan s Theorem Use de Morgan s Theorem to find complements Example: F=(A+B) (A +C), +C), so F =(A B )+(A C ) ) A B C F 0 0 0 0 0 0 1 0 0 1 0 1 0 1 1 1 1 0 0 0 1 0 1 1 1 1 0 0 1 1 1 1 A B C F 0 0 0 1 0 0 1 1 0 1 0 0 0 1 1 0 1 0 0 1 1 0 1 0 1 1 0 1 1 1 1 0 14