Boolean Algebra. Philipp Koehn. 9 September 2016

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

Boolean Algebra, Gates and Circuits

Solutions to Homework I (1.1)

Section 1.2 Propositional Equivalences. A tautology is a proposition which is always true. A contradiction is a proposition which is always false.

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

Propositional Calculus: Formula Simplification, Essential Laws, Normal Forms

Tautologies, Contradictions, and Contingencies

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

More Propositional Logic Algebra: Expressive Completeness and Completeness of Equivalences. Computability and Logic

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

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

Computer Organization: Boolean Logic

Propositional Logic. Logical Expressions. Logic Minimization. CNF and DNF. Algebraic Laws for Logical Expressions CSC 173

CSE20: Discrete Mathematics for Computer Science. Lecture Unit 2: Boolan Functions, Logic Circuits, and Implication

Unit 8A Computer Organization. Boolean Logic and Gates

Logic Gate Level. Part 2

Chapter 2 Combinational Logic Circuits

Combinational Logic. Review of Combinational Logic 1

EECS 1028 M: Discrete Mathematics for Engineers

CSC Discrete Math I, Spring Propositional Logic

If f = ABC + ABC + A B C then f = AB C + A BC + AB C + A BC + A B C

Slides for Lecture 10

KP/Worksheets: Propositional Logic, Boolean Algebra and Computer Hardware Page 1 of 8

Logic and Boolean algebra

Logic and Discrete Mathematics. Section 3.5 Propositional logical equivalence Negation of propositional formulae

Switches: basic element of physical implementations

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

Sec$on Summary. Tautologies, Contradictions, and Contingencies. Logical Equivalence. Normal Forms (optional, covered in exercises in text)

CS 226: Digital Logic Design

Truth-Functional Logic

Set Theory Basics of Set Theory. mjarrar Watch this lecture and download the slides

Circuits & Boolean algebra.

Sample Problems for all sections of CMSC250, Midterm 1 Fall 2014

Part 1: Propositional Logic

CS1800: Hex & Logic. Professor Kevin Gold

CHAPTER1: Digital Logic Circuits Combination Circuits

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

1 Boolean Algebra Simplification

NAND, NOR and XOR functions properties

Propositional Logic Basics Propositional Equivalences Normal forms Boolean functions and digital circuits. Propositional Logic.

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

Logic: Propositional Logic (Part I)

Equivalences. Proposition 2.8: The following equivalences are valid for all formulas φ, ψ, χ: (φ φ) φ. Idempotency Idempotency Commutativity

CSE 20 DISCRETE MATH WINTER

Tecniche di Verifica. Introduction to Propositional Logic

Chapter 2: Switching Algebra and Logic Circuits

COS 140: Foundations of Computer Science

Topic 1: Propositional logic

Digital Circuit And Logic Design I. Lecture 3

The least element is 0000, the greatest element is 1111.

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

Boolean Algebra & Logic Gates. By : Ali Mustafa

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

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

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

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

4 Switching Algebra 4.1 Axioms; Signals and Switching Algebra

Digital Logic (2) Boolean Algebra

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

Experiment 7: Magnitude comparators

1.3 Propositional Equivalences

CS206 Lecture 03. Propositional Logic Proofs. Plan for Lecture 03. Axioms. Normal Forms

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

Part I: Propositional Calculus

3 Boolean Algebra 3.1 BOOLEAN ALGEBRA

Description Logics. Foundations of Propositional Logic. franconi. Enrico Franconi

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

Fundamentals of Digital Design

Propositional Logic 1

Boolean Algebra CHAPTER 15

mith College Computer Science CSC270 Spring 16 Circuits and Systems Lecture Notes Week 2 Dominique Thiébaut

Floating Point Representation and Digital Logic. Lecture 11 CS301

Chapter 1, Part I: Propositional Logic. With Question/Answer Animations

CS61c: Representations of Combinational Logic Circuits

Substitution Theorem. Equivalences. Proposition 2.8 The following equivalences are valid for all formulas φ, ψ, χ: (φ φ) φ Idempotency

Chapter Summary. Propositional Logic. Predicate Logic. Proofs. The Language of Propositions (1.1) Applications (1.2) Logical Equivalences (1.

EECS Variable Logic Functions

Propositional Equivalence

CSCI 1010 Models of Computa3on. Lecture 02 Func3ons and Circuits

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

Chapter 4 BOOLEAN ALGEBRA AND THEOREMS, MINI TERMS AND MAX TERMS

Chapter 2: Princess Sumaya Univ. Computer Engineering Dept.

Learning Objectives 10/7/2010. CE 411 Digital System Design. Fundamental of Logic Design. Review the basic concepts of logic circuits. Dr.

2.2: Logical Equivalence: The Laws of Logic

Propositional Logic: Equivalence

CHAPTER 2 BOOLEAN ALGEBRA

Logic Synthesis and Verification

CSE 20 DISCRETE MATH WINTER

Introduction to Digital Logic Missouri S&T University CPE 2210 Combinatorial Circuit Analysis and Synthesis

Lecture 2. Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits. Reading (Epp s textbook)

Unit 2 Boolean Algebra

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

Chapter 7 Logic Circuits

Comp487/587 - Boolean Formulas

Packet #2: Set Theory & Predicate Calculus. Applied Discrete Mathematics

Chapter 1, Section 1.1 Propositional Logic

Unit 1. Propositional Logic Reading do all quick-checks Propositional Logic: Ch. 2.intro, 2.2, 2.3, 2.4. Review 2.9

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

Boolean algebra. Values

A brief introduction to Logic. (slides from

Transcription:

Boolean Algebra Philipp Koehn 9 September 2016

Core Boolean Operators 1 AND OR NOT A B A and B 0 0 0 0 1 0 1 0 0 1 1 1 A B A or B 0 0 0 0 1 1 1 0 1 1 1 1 A not A 0 1 1 0 AND OR NOT

2 Boolean algebra

Boolean Algebra: Identity for Identity for Monotone Laws x 0 = x x 1 = x 3 Annihilator for x 1 = 1 Annihilator for x 0 = 0 Idempotence for Idempotence for Commutativity for Commutativity for Absorption 1 Absorption 2 x x = x x x = x x y = y x x y = y x x (x y) = x x (x y) = x Associativity for (x y) z = x (y z) Associativity for (x y) z = x (y z) Distributivity of over x (y z) = (x y) (x z) Distributivity of over x (y z) = (x y) (x z)

Boolean Algebra: Nonmonotone Laws 4 Complementation for x x = 0 Complementation for x x = 1 De Morgan 1 x y = (x y) De Morgan 2 x y = (x y)

5 from Boolean expressions to circuits

Truth Table Boolean Expression 6 Truth table A B OUT 0 0 1 0 1 0 1 0 0 1 1 0 Operation: not ( A or B ) (also called nor)

Boolean Expression Circuit 7 Operation: not ( A or B ) Circuit: A B OR NOT OUT

4-Bit AND 8 4 inputs (A, B, C, D), output 1 iff all inputs are 1 Operation: (A and B) and (C and D) Circuit: A B C D AND AND AND OUT

1-Bit Selector 9 Truth table A OUT1 OUT2 0 1 0 1 0 1 Operation: OUT1 = not A OUT2 = A

1-Bit Selector 10 Operation: OUT1 = not A OUT2 = A Circuit: A NOT OUT1 OUT2

A Complicated Example 11 Truth table A B C OUT 0 0 0 0 0 1 0 1 1 0 0 0 1 1 0 0 0 0 1 1 0 1 1 1 1 0 1 0 1 1 1 0 Operation: Need a better way of doing this instead of relying on intuition

12 disjunctive normal form

DNF: Setup 13 A B C OUT Expression 0 0 0 0 0 1 0 1 1 0 0 0 1 1 0 0 0 0 1 1 0 1 1 1 1 0 1 0 1 1 1 0 Goal: find expression for each row that yields 1

DNF: One Row 14 A B C OUT Expression 0 0 0 0 0 1 0 1 (not A) and B and (not C) 1 0 0 0 1 1 0 0 0 0 1 1 0 1 1 1 1 0 1 0 1 1 1 0 Expression is 1 only for this row, 0 for all others

DNF: All Rows 15 A B C OUT Expression 0 0 0 0 0 1 0 1 (not A) and B and (not C) 1 0 0 0 1 1 0 0 0 0 1 1 (not A) and (not B) and C 0 1 1 1 (not A) and B and C 1 0 1 0 1 1 1 0

DNF: Complete Operation 16 A B C OUT Expression 0 0 0 0 0 1 0 1 (not A) and B and (not C) 1 0 0 0 1 1 0 0 0 0 1 1 (not A) and (not B) and C 0 1 1 1 (not A) and B and C 1 0 1 0 1 1 1 0 Putting it all together: ((not A) and B and (not C)) or ((not A) and (not B) and C) or ((not A) and B and C)

DNF: Circuit 17 Operation: Circuit: ((not A) and B and (not C)) or ((not A) and (not B) and C) or ((not A) and B and C) OUT AND AND AND OR A NOT B NOT C NOT

18 conjunctive normal form

DNF 19 A B C OUT Expression 0 0 0 0 0 1 0 1 (not A) and B and (not C) 1 0 0 0 1 1 0 0 0 0 1 1 (not A) and (not B) and C 0 1 1 1 (not A) and B and C 1 0 1 0 1 1 1 0 Putting it all together: ((not A) and B and (not C)) or ((not A) and (not B) and C) or ((not A) and B and C)

CNF: One Row 20 A B C OUT Expression 0 0 0 0 not ((not A) and (not B) and (not C)) 0 1 0 1 1 0 0 0 1 1 0 0 0 0 1 1 0 1 1 1 1 0 1 0 1 1 1 0 Expression is 0 only for this row, 1 for all others

CNF: All Rows 21 A B C OUT Expression 0 0 0 0 not ((not A) and (not B) and (not C)) 0 1 0 1 1 0 0 0 not (A and (not B) and (not C)) 1 1 0 0 not (A and B and (not C)) 0 0 1 1 0 1 1 1 1 0 1 0 not (A and (not B) and C) 1 1 1 0 not (A and B and C)

CNF: Complete Operation 22 A B C OUT Expression 0 0 0 0 not ((not A) and (not B) and (not C)) 0 1 0 1 1 0 0 0 not (A and (not B) and (not C)) 1 1 0 0 not (A and B and (not C)) 0 0 1 1 0 1 1 1 1 0 1 0 not (A and (not B) and C) 1 1 1 0 not (A and B and C) Putting it all together: (not ((not A) and (not B) and (not C))) and (not (A and (not B) and (not C))) and (not (A and B and (not C))) and (not (A and (not B) and C)) and (not (A and B and C))

CNF: Circuit 23 Operation: Circuit: (not ((not A) and (not B) and (not C))) and (not (A and (not B) and (not C))) and (not (A and B and (not C))) and (not (A and (not B) and C)) and (not (A and B and C)) OUT AND AND AND AND AND AND NOT NOT NOT NOT NOT A NOT B NOT C NOT

24 universal gates

Universality of NAND 25 Truth table: A B A nand B 0 0 1 0 1 1 1 0 1 1 1 0 NOT: A nand A AND: (A nand B) nand (A nand B) OR: (A nand A) nand (B nand B)

Universality of NOR 26 Truth table: A B A nor B 0 0 1 0 1 0 1 0 0 1 1 0 NOT: A nor A AND: (A nor A) nor (B nor B) OR: (A nor B) nor (A nor B)