Dale Roberts Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI

Slides:



Advertisements
Similar presentations
Boolean Algebra and Logic Gates
Advertisements

CS 151 Digital Systems Design Lecture 5 Boolean Algebra.
Presented by: Ms. Maria Estrellita D. Hechanova, ECE
CS2100 Computer Organisation
Chapter 2 Logic Circuits.
1 CK Cheng CSE Dept. UC San Diego CS 140, Lecture 2 Combinational Logic.
ECE 331 – Digital System Design Boolean Algebra (Lecture #3) The slides included herein were taken from the materials accompanying Fundamentals of Logic.
מבנה המחשב + מבוא למחשבים ספרתיים תרגול 1#
1 Section 10.1 Boolean Functions. 2 Computers & Boolean Algebra Circuits in computers have inputs whose values are either 0 or 1 Mathematician George.
1 CSE 20: Lecture 8 Boolean Postulates and Theorems CK Cheng 4/26/2011.
Logic Gate Level Combinational Circuits, Part 1. Circuits Circuit: collection of devices physically connected by wires to form a network Net can be: –
ENGIN112 L5: Boolean Algebra September 12, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 5 Boolean Algebra.
Lattice and Boolean Algebra
Binary Logic and Gates COE 202 Digital Logic Design Dr. Aiman El-Maleh
Boolean Algebra Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2009.
Boolean Algebra Computer Organization 1 © McQuain Boolean Algebra A Boolean algebra is a set B of values together with: -two binary operations,
Boolean Algebra Boolean algebra Boolean algebra, like any other deductive mathematical system, may be defined with –a set of elements, –a set of operators,
CHAPTER 2 Boolean Algebra
Boolean Algebra – I. Outline  Introduction  Digital circuits  Boolean Algebra  Two-Valued Boolean Algebra  Boolean Algebra Postulates  Precedence.
Logic gates & Boolean Algebra. Introduction Certain components (called logic elements) of the computer combine electric pulses using a set of rules. Electric.
Lecture 7 Topics –Boolean Algebra 1. Logic and Bits Operation Computers represent information by bit A bit has two possible values, namely zero and one.
Module 4.  Boolean Algebra is used to simplify the design of digital logic circuits.  The design simplification are based on: Postulates of Boolean.
Lecture 22: 11/19/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
1 Boolean Algebra  Digital circuits Digital circuits  Boolean Algebra Boolean Algebra  Two-Valued Boolean Algebra Two-Valued Boolean Algebra  Boolean.
Boolean Algebras Lecture 27 Section 5.3 Wed, Mar 7, 2007.
Figure 2.6. A truth table for the AND and OR operations. 2.3 Truth Tables 1.
1 CSE370, Lecture 3 Lecture 3: Boolean Algebra u Logistics u Last lecture --- Numbers n Binary numbers n Base conversion n Number systems for negative.
Lecture 4 Boolean Algebra. Logical Statements °A proposition that may or may not be true: Today is Monday Today is Sunday It is raining °Compound Statements.
1 Lect # 2 Boolean Algebra and Logic Gates Boolean algebra defines rules for manipulating symbolic binary logic expressions. –a symbolic binary logic expression.
Logic Circuits Lecture 3 By Amr Al-Awamry. Basic Definitions Binary Operators  AND z = x y = x yz=1 if x=1 AND y=1  OR z = x + y z=1 if x=1 OR y=1 
CEC 220 Digital Circuit Design Boolean Algebra Friday, January 17 CEC 220 Digital Circuit Design Slide 1 of 22.
ELEC Digital Logic Circuits Fall 2015 Boolean Algebra (Chapter 2) Vishwani D. Agrawal James J. Danaher Professor Department of Electrical and.
R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001 Chapter 9 Boolean Algebras and Combinatorial Circuits.
Ahmad Almulhem, KFUPM 2009 COE 202: Digital Logic Design Combinational Logic Part 1 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
ECE DIGITAL LOGIC LECTURE 6: BOOLEAN ALGEBRA Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 02/01/2016.
CEC 220 Digital Circuit Design Boolean Algebra II Fri, Sept 4 CEC 220 Digital Circuit Design Slide 1 of 13.
Boolean Algebra. BOOLEAN ALGEBRA Formal logic: In formal logic, a statement (proposition) is a declarative sentence that is either true(1) or false (0).
CSE 461. Binary Logic Binary logic consists of binary variables and logical operations. Variables are designated by letters such as A, B, C, x, y, z etc.
CHAPTER 2 Boolean algebra and Logic gates
Chapter 11 (Part 1): Boolean Algebra
Computer Science 210 Computer Organization
Boolean Algebra.
ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #2 Instructor: Andrew B. Kahng (lecture)
CS 105 Digital Logic Design
Gate Circuits and Boolean Equations
CHAPTER 2 Boolean Algebra
CHAPTER 2 Boolean Algebra This chapter in the book includes:
SLIDES FOR CHAPTER 2 BOOLEAN ALGEBRA
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
Lecture 3: Boolean Algebra
CHAPTER 2 Boolean Algebra
CSE 311 Foundations of Computing I
Boolean Algebra.
Boolean Algebra.
Boolean Algebra & Logic Circuits
Basic Logic Gates 1.
Chapter 2 Boolean Algebra and Logic Gate
CSE 370 – Winter Combinational Logic - 1
Boolean Algebra Introduction CSCI 240
COMS 361 Computer Organization
Lecture 3: Boolean Algebra
CSE 20: Lecture 8 Boolean Postulates and Theorems CK Cheng
Boolean Algebra Rayat Shikshan Sanstha’s
Design of Digital Circuits Lab 1 Supplement: Drawing Basic Circuits
Introductory Concepts
Boolean Algebra Rayat Shikshan Sanstha’s
Lecture 3: Boolean Algebra
BOOLEAN ALGEBRA.
Presentation transcript:

Dale Roberts Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI CSCI 240 Boolean Algebra Introduction

Dale Roberts Boolean Algebra We observed in our introduction that early in the development of computer hardware, a decision was made to use binary circuits because it greatly simplified the electronic circuit design. In order to work with binary circuits, it is helpful to have a conceptual framework to manipulate the circuits algebraically, building only the final “most simple” result. George Boole ( ) developed a mathematical structure to deal with binary operations with just two values. Today, we call these structures Boolean Algebras.

Dale Roberts Boolean Algebra Defined A Boolean Algebra B is defined as a 5-tuple {B, +, *, ’, 0, 1} + and * are binary operators,’ is a unary operator. The following axioms must hold for any elements a, b, c  {0,1} Axiom #1: Closure If a and b are elements of B, (a + b) and (a * b) are in B. If a and b are elements of B, (a + b) and (a * b) are in B. Axiom #2: Cardinality There are at least two elements a and b in B such that a != b. There are at least two elements a and b in B such that a != b. Axiom #3: Commutative If a and b are elements of B (a + b) = (b + a), and (a * b) = (b * a) If a and b are elements of B (a + b) = (b + a), and (a * b) = (b * a)

Dale RobertsAxioms Axiom #4: Associative If a and b are elements of B (a + b) + c = a + (b + c), and (a * b) * c = a * (b * c) Axiom #5: Identity Element B has identity elements with respect to + and * 0 is the identity element for +, and 1 is the identity element for * a + 0 = a and a * 1 = a Axiom #6: Distributive * is distributive over + and + is distributive over * a * (b + c) = (a * b) + (a * c), and a + (b * c) = (a + b) * (a + c) * is distributive over + and + is distributive over * a * (b + c) = (a * b) + (a * c), and a + (b * c) = (a + b) * (a + c) Axiom #7: Complement Element For every a in B there is an element a' in B such that a + a' = 1, and a * a' = 0 For every a in B there is an element a' in B such that a + a' = 1, and a * a' = 0

Dale Roberts Terminology Element 0 is called “FALSE”. Element 1 is called “TRUE”. ‘+’ operation “OR”,‘*’ operation “AND” and ’ operation “NOT”. Juxtaposition implies * operation: ab = a * b Operator order of precedence is: (), ’, *, +. a+bc = a+(b*c) ≠ (a+b)*c ab’ = a(b’) ≠ (a*b)’ Single Bit Boolean Algebra( 1’ = 0 and 0’ = 1) *

Dale Roberts Proof by Truth Table Consider the distributive theorem: a + (b * c) = (a + b)*(a + c). Is it true for a two bit Boolean Algebra? Can prove using a truth table. How many possible combinations of a, b, and c are there? Three variables, each with two values: 2*2*2 = 2 3 = 8 abcb*ca+(b*c)a+ba+c(a+b)*(a+c)

Dale Roberts n-bit Boolean Algebra Single bit Boolean Algebra can be extended to n-bit Boolean Algebra by define sum(+), product(*) and complement(‘) as bit-wise operations Let a = , b = a + b = = a * b = * = a’ = ’ = Principle of Duality The dual of a statement S is obtained by interchanging * and +; 0 The dual of a statement S is obtained by interchanging * and +; 0 and 1. and 1. Dual of (a*1)*(0+a’) = 0 is (a+0)+(1*a’) = 1 Dual of (a*1)*(0+a’) = 0 is (a+0)+(1*a’) = 1 Dual of any theorem in a Boolean Algebra is also a theorem. Dual of any theorem in a Boolean Algebra is also a theorem. This is called the Principle of Duality. This is called the Principle of Duality.

Dale Roberts Named Theorems All of the following theorems can be proven based on the axioms. They are used so often that they have names. Idempotent a + a = a a * a = a Boundedness a + 1 = 1 a * 0 = 0 Absorption a + (a*b) = a a*(a+b) = a Associative(a+b)+c=a+(b+c)(a*b)*c=a*(b*c) The theorems can be proven for a two-bit Boolean Algebra using a truth table, but you must use the axioms to prove it in general for all Boolean Algebras.

Dale Roberts More Named Theorems Involution (a’)’ = a DeMorgan’s (a+b)’ = a’ * b’ (a*b)’=a’ + b’ DeMorgan’s Laws are particularly important in circuit design. It says that you can get rid of a complemented output by complementing all the inputs and changing ANDs to ORs. (More about circuits coming up…)

Dale Roberts Proof using Theorems Use the properties of Boolean Algebra to reduce (x + y)(x + x) to x. Warning, make sure you use the laws precisely. (x + y)(x + x) Given (x + y)x Idempotent x(x + y) Commutative xAbsorption Unlike truth tables, proofs using Theorems are valid for any boolean algebra, but just bits.

Dale RobertsSources Lipschutz, Discrete Mathematics Mowle, A Systematic Approach to Digital Logic Design