Lecture 18: Boolean Algebra Boolean Functions. w = Chris is allowed to watch television x = Chris's homework is finished y = it is a school night z =

Slides:



Advertisements
Similar presentations
Boolean Algebra and Logic Gates
Advertisements

BOOLEAN ALGEBRA. A Mathematical notation used to represent the function of the Digital circuit. A notation that allows variables & constants to have only.
Logical Systems Synthesis.
Chapter 2 Logic Circuits.
Gate-Level Minimization. Digital Circuits The Map Method The complexity of the digital logic gates the complexity of the algebraic expression.
Chapter 2 – Combinational Logic Circuits Part 1 – Gate Circuits and Boolean Equations Logic and Computer Design Fundamentals.
CS 151 Digital Systems Design Lecture 6 More Boolean Algebra A B.
Boolean Algebra and Logic Gates
CSCE 211: Digital Logic Design
Chapter 2: Boolean Algebra and Logic Functions
Computer Architecture I: Digital Design Dr. Robert D. Kent Lecture 2a Boolean Algebra & Calculus, Basic Gates, Digital Logic.
Boolean Algebra Computer Organization 1 © McQuain Boolean Algebra A Boolean algebra is a set B of values together with: -two binary operations,
Computer Organization
CHAPTER 2 Boolean Algebra
Lecture 2 – Boolean Algebra Lecturer: Amy Ching Date: 21 st Oct 2002.
IKI a-Boolean Algebra Bobby Nazief Semester-I The materials on these slides are adopted from those in CS231’s Lecture Notes at UIUC,
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
Boolean Algebra and Digital Circuits
Switching functions The postulates and sets of Boolean logic are presented in generic terms without the elements of K being specified In EE we need to.
1 Representation of Logic Circuits EE 208 – Logic Design Chapter 2 Sohaib Majzoub.
Combinational Logic 1.
Dr. Eng. Farag Elnagahy Office Phone: King ABDUL AZIZ University Faculty Of Computing and Information Technology CPCS 222.
Chapter 2: Boolean Algebra and Logic Gates. F 1 = XY’ + X’Z XYZX’Y’XY’X’ZF1F
CHAPTER 3: PRINCIPLES OF COMBINATIONAL LOGIC
LOGIC GATES & BOOLEAN ALGEBRA
Venn Diagram – the visual aid in verifying theorems and properties 1 E.
Boolean Algebra and Logic Gates
1 Boolean Algebra  Digital circuits Digital circuits  Boolean Algebra Boolean Algebra  Two-Valued Boolean Algebra Two-Valued Boolean Algebra  Boolean.
Discrete Mathematics CS 2610 September Equal Boolean Functions Two Boolean functions F and G of degree n are equal iff for all (x 1,..x n )  B.
ENGIN112 L6: More Boolean Algebra September 15, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 6 More Boolean Algebra A B.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
1 EENG 2710 Chapter 2 Algebraic Methods For The Analysis and Synthesis of Logic circuits.
A. Abhari CPS2131 Chapter 2: Boolean Algebra and Logic Gates Topics in this Chapter: Boolean Algebra Boolean Functions Boolean Function Simplification.
1 Lect # 2 Boolean Algebra and Logic Gates Boolean algebra defines rules for manipulating symbolic binary logic expressions. –a symbolic binary logic expression.
© BYU 03 BA1 Page 1 ECEn 224 Boolean Algebra – Part 1.
Module –I Switching Function
Lecture 4 Introduction to Boolean Algebra. Binary Operators In the following descriptions, we will let A and B be Boolean variables and define a set of.
Binary Logic and Gates Boolean Algebra Canonical and Standard Forms Chapter 2: Boolean Algebra and Logic Gates.
Boolean Algebra & Logic Circuits Dr. Ahmed El-Bialy Dr. Sahar Fawzy.
Module 5.  In Module 3, you have learned the concept of Boolean Algebra which consists of binary variables and binary operator.  A binary variable x,
Chapter 2: Basic Definitions BB inary Operators ●A●AND z = x y = x yz=1 if x=1 AND y=1 ●O●OR z = x + yz=1 if x=1 OR y=1 ●N●NOT z = x = x’ z=1 if x=0.
R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001 Chapter 9 Boolean Algebras and Combinatorial Circuits.
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 4 Dr. Shi Dept. of Electrical and Computer Engineering.
ECE DIGITAL LOGIC LECTURE 8: BOOLEAN FUNCTIONS Assistant Prof. Fareena Saqib Florida Institute of Technology Spring 2016, 02/11/2016.
Boolean Algebra. BOOLEAN ALGEBRA Formal logic: In formal logic, a statement (proposition) is a declarative sentence that is either true(1) or false (0).
Lecture 5 More Boolean Algebra A B. Overview °Expressing Boolean functions °Relationships between algebraic equations, symbols, and truth tables °Simplification.
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC. De Morgan’s Theorem De Morgan’s Theorem.
DE MORGAN’S THEOREM. De Morgan’s Theorem De Morgan’s Theorem.
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
CS2100 Computer Organisation
De Morgan’s Theorem,.
Chapter 2: Boolean Algebra and Logic Functions
ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #2 Instructor: Andrew B. Kahng (lecture)
CS 105 Digital Logic Design
CHAPTER 2 Boolean Algebra
CHAPTER 2 Boolean Algebra This chapter in the book includes:
Princess Sumaya University
Boolean Algebra.
Discrete Mathematics CS 2610
Boolean Algebra.
Lecture 14: Boolean Algebra
Chapter 2 Boolean Algebra and Logic Gate
CSE 370 – Winter Combinational Logic - 1
2. Boolean Algebra and Logic Gates
January 19 W’05 Yutao He 4532B Boelter Hall CSM51A/EEM16-Sec.1 W’05
Digital Logic Chapter-2
Digital Systems Section 3 Boolean Algebra. Digital Systems Section 3 Boolean Algebra.
Boolean Algebra.
Presentation transcript:

Lecture 18: Boolean Algebra Boolean Functions

w = Chris is allowed to watch television x = Chris's homework is finished y = it is a school night z = it is earlier than 10:00 p.m. Definition of Symbolic Logic w = ( x AND z ) OR ( NOT y ) Symbolic logic is the method of representation and techniques of algebraic manipulation that separates the meaning of factual statements from proofs of their consistency and their truth value. w = the dog is wet x = the dog is outside y = the dog did not jump in the pool z = it is raining

Binary Operators In the following descriptions, we will let A and B be Boolean variables and define a set of binary operators on them. The term binary in this case does not refer to base-two arithmetic but rather to the fact that the operators act on two operands. unary operator

Operator Precedence As with other algebraic systems, we recognize an order of precedence for the application of its operators. The highest precedence is associated with the unary operator NOT (~). At the next level is AND and NAND. At the next lower level is OR and NOR and XOR. In this text, we place the equality operator (=) at the lowest precedence.

Truth Tables Definition: Given a Boolean function F containing n Boolean variables b 0, b 1, b 2,..., b n-1, we can construct a truth table containing 2 n rows which gives the value of F for every combination of truth values of the variables b 0, b 1, b 2,..., b n-1. F(x,y,z) = (xy) + (~xz) + (y)(~z) + (~xyz)

Evaluating Logical Expressions F(x,y,z) = (xy) + (x'z) + (y)(z') + (x'yz) F(0,1,1) = F(0,1,1) = F(0,1,1) = 1

All Boolean Binary Operators

TRUE - This operator evaluates to true regardless of the truth values of A and B. A+B - Evaluates to true if either A or B or both are true, also called OR. B A - This is the implication operator. Stated as B implies A it evaluates to true unless B is true and A is false. A - This is a copy of the truth value set of the variable A. AB - This is the implication operator. Stated as A implies B it evaluates to true unless A is true and B is false. B - This is a copy of the truth value set of the variable B. A = B - The equality operator evaluates to true when the values of A and B are the same. A.B - Evaluated to true when both A and B are true, also called AND. ~(A.B) - The negation of A.B, also called NAND. AB - This operator is the exclusive-OR or XOR operator. ~B - The negation of B. This is a representation of the NOT operator. ~A - The negation of A. This is a representation of the NOT operator. ~(BA) - The negation of implication. See (BA) below. ~(A+ B) - This operator is the negation of OR (+) also called NOR. FALSE - This operator evaluates to false regardless of the truth values of A and B. Boolean Operator Defintions

Boolean Functions Definition: A Boolean Function F in n variables is a mapping from the 2 n possible truth value combinations of the n variables to truth values for F. There are unique Boolean functions possible using a maximum of n Boolean variables.

Tautologies F(A,B,C) = (A + B).(B' + C) G(A,B,C) = AB' + AC + BC A tautology is a logical expression that is true for every combination of truth values of its variables. (A + B).(B' + C) AB' + AC + BC

Venn Diagrams

Three-Variable Venn Diagram F(A,B,C) = A + BC'

Laws and Postulates Closure - We state without proof that Boolean algebra is closed under all Boolean operations. The principle of closure states that a set S is closed with respect to a binary operator if, for every pair of elements of S, the binary operator specifies a rule for obtaining a unique element in S. Associative Law - The binary operators AND and OR are associative on the set of Boolean values (0,1). The associative law states that the order in which the operators are applied to the operands does not affect the result. Commutative Law - The binary operators AND and OR are commutative on the set of Boolean values (0,1). the commutative laws states that the order in which the operands appear in the expression does not affect the result of the operation. Identity Element - The binary operators AND and OR have an identity element in the set of Boolean values (0,1). An identity element is one which when operated on with a Boolean value X results in the same value X. Inverse - Now that we have identity elements for AND and OR we can define Y as the inverse of X with respect to an operator as X+Y = 1, X. Y = 0, X+X' = 1, and X. X' = 0. Distributive Law - The distributive law defines the interrelationship between two different operators. For Boolean algebra both AND and OR follow the distributive laws. associativecommutativeidentityinversedistributive

Idempotent Laws and Absorption When performing algebraic manipulations of logical expressions we often encounter terms in which one or more of the variables are repeated. The idempotent laws and the laws of absorption give us a way to simplify these terms.

De Morgan's Theorem

F(x,y,z) = xy + x'z + yz' + x'yz = xy + x'z + yz' = xy(1) + x'z(1) + yz'(1) = xy(z+z') + x'z(y+y') + yz'(x+x') = xyz + xyz' + x'yz + x'y'z + xyz' + x'yz' = xyz + xyz' + x'yz + x'y'z + x'yz' = xy(z+z') + yz(x+x') + yz'(x+x') + x'z(y+y') + x'y(z+z') = xy(1) + yz(1) + yz'(1) + x'z(1) + x'y(1) = (xy+x'y) + (yz+yz') + x'z = y(x+x') + y(z+z') + x'z = y(1) + y(1) + x'z = y + y + x'z = y + x'z Algebraic Simplification

NAND Stands Alone OR AND NOT

Canonical Forms of Logical Expressions (1) The canonical forms of logical expressions representing Boolean function will be either disjunctive form (also called sum-of-products) or conjuntive form (also called product-of-sums). (2) The canonical form of a logical expression for a particular Boolean function must be unique to within the labels used for the Boolean variables and whether the expression is disjunctive or conjuntive. (3) The canonical forms of logical expressions representing two different Boolean functions must be different. F(x,y,z) = xy + y + xz' + x'y'z F(x,y,z) = xyz + xyz' + x'yz + xy'z' + x'yz' Sum of Products Canonical Sum of Products

F(x,y,z) = xyz + xyz' + x'yz + xy'z' + x'yz'

Product of Sums G(x,y,z) = (x+y)(x+z')(y')(x'+y'+z) (x+y) = (x+y+z)(x+y+z') (x+z') = (x+y+z')(x+y'+z') (y') = (x+y')(x'+y') = (x+y'+z)(x+y'+z')(x'+y'+z)(x'+y'+z') G(x,y,z) = (x+y+z)(x+y'+z)(x+y+z')(x+y'+z')(x'+y'+z)(x'+y'+z')

Minterms and Maxterms F(x,y,z)=xyz+xyz'+x'yz+xy'z'+x'yz' = m(2, 3, 4, 6, 7) G(x,y,z) = (x+y+z)(x+y'+z)(x+y+z')(x+y'+z')(x'+y'+z)(x'+y'+z') = M(0, 1, 2, 3, 6, 7) minterms Maxterms

Converting from SOP to POS F(a,b,c) = a'bc + a'bc' + ab'c' + a'b'c' SOP form binary vectors F(a,b,c) = m(0,2,3,4)minterm list F(a,b,c) = M(1,5,6,7)maxterm list binary vectors F(a,b,c) = (a + b + c')(a'+ b + c')(a'+ b'+ c)(a'+ b'+ c') POS form