Boolean Algebra Computer Organization 1 ©2005-2015 McQuain Boolean Algebra A Boolean algebra is a set B of values together with: -two binary operations,

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.
Boolean rules for simplification Dr. Ahmed Telba.
Logic Gate Level Part 2. Constructing Boolean expression from truth table First method: write nonparenthesized OR of ANDs Each AND is a 1 in the result.
1 COMP541 Combinational Logic Montek Singh Jan 16, 2007.
מבנה המחשב + מבוא למחשבים ספרתיים תרגול 1#
EECC341 - Shaaban #1 Lec # 5 Winter Switching Algebra: Principle of Duality Any theorem or identity in switching algebra remains true if.
Contemporary Logic Design Two-Level Logic © R.H. Katz Transparency No. 3-1 Chapter #2: Two-Level Combinational Logic Section 2.1, Logic Functions.
Boolean Algebra cont’ The digital abstraction מבנה המחשב + מבוא למחשבים ספרתיים תרגול 2#
1 Boolean Algebra & Logic Design. 2 Developed by George Boole in the 1850s Mathematical theory of logic. Shannon was the first to use Boolean Algebra.
ENGIN112 L5: Boolean Algebra September 12, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 5 Boolean Algebra.
Propositional Calculus Math Foundations of Computer Science.
Fall 2002CMSC Discrete Structures1 Yes, No, Maybe... Boolean Algebra.
Chapter 2: Boolean Algebra and Logic Functions
1 Why study Boolean Algebra? 4 It is highly desirable to find the simplest circuit implementation (logic) with the smallest number of gates or wires. We.
Systems Architecture I1 Propositional Calculus Objective: To provide students with the concepts and techniques from propositional calculus so that they.
Lecture 2 – Boolean Algebra Lecturer: Amy Ching Date: 21 st Oct 2002.
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.
 Seattle Pacific University EE Logic System DesignSOP-POS-1 The Connection: Truth Tables to Functions abcF abcF
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.
Digital Logic Computer Organization 1 © McQuain Logic Design Goal:to become literate in most common concepts and terminology of digital.
Combinational Logic 1.
Dr. Eng. Farag Elnagahy Office Phone: King ABDUL AZIZ University Faculty Of Computing and Information Technology CPCS 222.
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.
Chapter 2 Two- Level Combinational Logic. Chapter Overview Logic Functions and Switches Not, AND, OR, NAND, NOR, XOR, XNOR Gate Logic Laws and Theorems.
LOGIC GATES & BOOLEAN ALGEBRA
Extra slides for Chapter 3: Propositional Calculus & Normal Forms Based on Prof. Lila Kari’s slides For CS2209A, 2009 By Dr. Charles Ling;
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.
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
Boolean Algebra – II. Outline  Basic Theorems of Boolean Algebra  Boolean Functions  Complement of Functions  Standard Forms.
CHAPTER 1 SETS, FUNCTIONs, ELEMENTARY LOGIC & BOOLEAN ALGEBRAs
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.
1 COMP541 Combinational Logic - II Montek Singh Jan 18, 2012.
Boolean Algebra Computer Architecture. Digital Representation Digital is an abstraction of analog voltage –Voltage is a continuous, physical unit Typically.
ECE2030 Introduction to Computer Engineering Lecture 5: Boolean Algebra Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering Georgia.
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 =
C.S. Choy21 BOOLEAN ALGEGRA The Mathematics of logic Boolean variables have only two possible values (binary) Operators:. Product+ SumComplement A.B A+B.
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.
Boolean Algebra and Computer Logic Mathematical Structures for Computer Science Chapter 7 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesBoolean Algebra.
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.
Boolean Algebra.
CHAPTER 2 Boolean algebra and Logic gates
Boolean Algebra & Logic Gates
CS2100 Computer Organisation
De Morgan’s Theorem,.
CS 105 Digital Logic Design
… and now for the Final Topic:
Boolean Algebra A Boolean algebra is a set B of values together with:
Boolean Algebra A Boolean algebra is a set B of values together with:
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
Boolean Algebra Why study Boolean Algebra?
CSE 311 Foundations of Computing I
Propositional Calculus: Boolean Algebra and Simplification
Boolean Algebra.
Discrete Mathematics CS 2610
Boolean Algebra.
CMSC Discrete Structures
CSE 370 – Winter Combinational Logic - 1
Yes, No, Maybe... BooleanAlgebra 12/10/2018.
Boolean Algebra Introduction CSCI 240
Design of Digital Circuits Lab 1 Supplement: Drawing Basic Circuits
CMSC Discrete Structures
Presentation transcript:

Boolean Algebra Computer Organization 1 © McQuain Boolean Algebra A Boolean algebra is a set B of values together with: -two binary operations, commonly denoted by + and ∙, -a unary operation, usually denoted by ˉ or ~ or ’, -two elements usually called zero and one, such that for every element x of B: In addition, certain axioms must be satisfied: -closure properties for both binary operations and the unary operation -associativity of each binary operation over the other, -commutativity of each each binary operation, -distributivity of each binary operation over the other, -absorption rules, -existence of complements with respect to each binary operation We will assume that ∙ has higher precedence than +; however, this is not a general rule for all Boolean algebras.

Boolean Algebra Computer Organization 2 © McQuain Axioms of Boolean Algebra Associative Laws: for all a, b and c in B, Commutative Laws: for all a and b in B, Distributive Laws: for all a, b and c in B, Absorption Laws: for all a, b and c in B, Existence of Complements: for all a in B, there exists an element ā in B such that

Boolean Algebra Computer Organization 3 © McQuain Examples of Boolean Algebras The classic example is B = {true, false} with the operations AND, OR and NOT. An isomorphic example is B = {1, 0} with the operations +, ∙ and ~ defined by: a * b ~aa + bba Given a set S, the power set of S, P(S) is a Boolean algebra under the operations union, intersection and relative complement. Other, interesting examples exist…

Boolean Algebra Computer Organization 4 © McQuain More Properties It's also possible to derive some additional facts, including: -the elements 0 and 1 are unique -the complement of an element a is unique -0 and 1 are complements of each other

Boolean Algebra Computer Organization 5 © McQuain DeMorgan's Laws & More DeMorgan's Laws are useful theorems that can be derived from the fundamental properties of a Boolean algebra. For all a and b in B, Boundedness properties: Of course, there’s also a double-negation law: And there are idempotency laws:

Boolean Algebra Computer Organization 6 © McQuain Logic Expressions and Equations A logic expression is defined in terms of the three basic Boolean operators and variables which may take on the values 0 and 1. For example: A logic equation is an assertion that two logic equations are equal, where equal means that the values of the two expressions are the same for all possible assignments of values to their variables. For example: Of course, equations may be true or false. What about the one above?

Boolean Algebra Computer Organization 7 © McQuain Why do they call it "algebra"? A Boolean expression can often be usefully transformed by using the theorems and properties stated earlier: This is a relatively simple example of a reduction. Try showing the following expressions are equal:

Boolean Algebra Computer Organization 8 © McQuain Tautologies, Contradictions & Satisfiables A tautology is a Boolean expression that evaluates to true (1) for all possible values of its variables. A contradiction is a Boolean expression that evaluates to false (0) for all possible values of its variables. A Boolean expression is satisfiable if there is at least one assignment of values to its variables for which the expression evaluates to true (1).

Boolean Algebra Computer Organization 9 © McQuain Truth Tables A Boolean expression may be analyzed by creating a table that shows the value of the expression for all possible assignments of values to its variables: ab

Boolean Algebra Computer Organization 10 © McQuain Proving Equations with Truth Tables Boolean equations may be proved using truth tables (dull and mechanical): aa abc~(a*b*c)~a*~b*~c

Boolean Algebra Computer Organization 11 © McQuain Proving Equations Algebraically Boolean equations may be proved using truth tables, which is dull and boring, or using the algebraic properties: Note the duality

Boolean Algebra Computer Organization 12 © McQuain Proving Equations Algebraically

Boolean Algebra Computer Organization 13 © McQuain Sum-of-Products Form A Boolean expression is said to be in sum-of-products form if it is expressed as a sum of terms, each of which is a product of variables and/or their complements: It's relatively easy to see that every Boolean expression can be written in this form. Why? The summands in the sum-of-products form are called minterms. -each minterm contains each of the variables, or its complement, exactly once -each minterm is unique, and therefore so is the representation (aside from order)

Boolean Algebra Computer Organization 14 © McQuain Example Given a truth table for a Boolean function, construction of the sum-of-products representation is trivial: -for each row in which the function value is 1, form a product term involving all the variables, taking the variable if its value is 1 and the complement if the variable's value is 0 -take the sum of all such product terms xyzF

Boolean Algebra Computer Organization 15 © McQuain Product-of-Sums Form A Boolean expression is said to be in product-of-sums form if it is expressed as a product of terms, each of which is a sum of variables: Every Boolean expression can also be written in this form, as a product of maxterms. Facts similar to the sum-of-products form can also be asserted here. The product-of-sums form can be derived by expressing the complement of the expression in sum-of-products form, and then complementing.

Boolean Algebra Computer Organization 16 © McQuain Example Given a truth table for a Boolean function, construction of the product-of-sums representation is trivial: -for each row in which the function value is 0, form a product term involving all the variables, taking the variable if its value is 1 and the complement if the variable's value is 0 -take the sum of all such product terms; then complement the result xyzF

Boolean Algebra Computer Organization 17 © McQuain Boolean Functions A Boolean function takes n inputs from the elements of a Boolean algebra and produces a single value also an element of that Boolean algebra. For example, here are all possible 2-input Boolean functions on the set {0, 1}: ABzeroandABxoror ABnoreqB'A' nand one

Boolean Algebra Computer Organization 18 © McQuain Universality Any Boolean function can be expressed using: -only AND, OR and NOT -only AND and NOT -only OR and NOT -only AND and XOR -only NAND -only NOR The first assertion should be entirely obvious. The remaining ones are obvious if you consider how to represent each of the functions in the first set using only the relevant functions in the relevant set.