DeMorgan's Theorem. George Self. 1 Introduction

Similar documents
Following the advice of breaking the longest (uppermost) bar first, I'll begin by breaking the bar covering the entire expression as a first step:

SYNERGY INSTITUTE OF ENGINEERING & TECHNOLOGY,DHENKANAL LECTURE NOTES ON DIGITAL ELECTRONICS CIRCUIT(SUBJECT CODE:PCEC4202)

Variable, Complement, and Literal are terms used in Boolean Algebra.

Bawar Abid Abdalla. Assistant Lecturer Software Engineering Department Koya University

Experiment 4 Boolean Functions Implementation

ENGIN 112 Intro to Electrical and Computer Engineering

Logic Gates and Boolean Algebra ENT263

Summary. Boolean Addition

LSN 4 Boolean Algebra & Logic Simplification. ECT 224 Digital Computer Fundamentals. Department of Engineering Technology

DKT 122/3 DIGITAL SYSTEM 1

Logic Design: Part 2

Lecture 3: Binary Subtraction, Switching Algebra, Gates, and Algebraic Expressions

IT 201 Digital System Design Module II Notes

Chapter 3. Boolean Algebra and Digital Logic

Chapter 2 Boolean algebra and Logic Gates

Assignment (3-6) Boolean Algebra and Logic Simplification - General Questions

Computer Science. Unit-4: Introduction to Boolean Algebra

Combinational Logic & Circuits

Ch. 5 : Boolean Algebra &

Boolean Algebra A B A AND B = A*B A B A OR B = A+B

Introduction to Computer Architecture

EEE130 Digital Electronics I Lecture #4_1

2.6 BOOLEAN FUNCTIONS

Designing Computer Systems Boolean Algebra

ELCT201: DIGITAL LOGIC DESIGN

QUESTION BANK FOR TEST

that system. weighted value associated with it. numbers. a number. the absence of a signal. MECH 1500 Quiz 2 Review Name: Class: Date:

BOOLEAN ALGEBRA. Logic circuit: 1. From logic circuit to Boolean expression. Derive the Boolean expression for the following circuits.

9/10/2016. The Dual Form Swaps 0/1 and AND/OR. ECE 120: Introduction to Computing. Every Boolean Expression Has a Dual Form

ELCT201: DIGITAL LOGIC DESIGN

Propositional Calculus: Boolean Algebra and Simplification. CS 270: Mathematical Foundations of Computer Science Jeremy Johnson

Gate Level Minimization

UNIT 2 BOOLEAN ALGEBRA

Digital Logic Design (CEN-120) (3+1)

Boolean Algebra. P1. The OR operation is closed for all x, y B x + y B

Objectives: 1- Bolean Algebra. Eng. Ayman Metwali

Combinational Circuits Digital Logic (Materials taken primarily from:

Read this before starting!

Chapter 0, Pre-Algebra from Beginning and Intermediate Algebra by Tyler Wallace is available under a Creative Commons Attribution 3.

EE292: Fundamentals of ECE

Non-right Triangles: Law of Cosines *

MODULE 5 - COMBINATIONAL LOGIC

Chapter 2. Boolean Expressions:

Experiment 3: Logic Simplification

Circuit simplification examples

Introduction to Boolean Algebra

1. Mark the correct statement(s)

Introduction to Boolean Algebra

CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012

Combinational Devices and Boolean Algebra

Points Addressed in this Lecture. Standard form of Boolean Expressions. Lecture 4: Logic Simplication & Karnaugh Map

MAT 090 Brian Killough s Instructor Notes Strayer University

Read this before starting!


(Refer Slide Time 3:31)

2. BOOLEAN ALGEBRA 2.1 INTRODUCTION

DSAS Laboratory no 4. Laboratory 4. Logic forms

GC03 Boolean Algebra

Unit-IV Boolean Algebra

Starting Boolean Algebra

Read this before starting!

CS470: Computer Architecture. AMD Quad Core

Combinational Logic Circuits

Learning Log Title: CHAPTER 3: ARITHMETIC PROPERTIES. Date: Lesson: Chapter 3: Arithmetic Properties

MULTIMEDIA COLLEGE JALAN GURNEY KIRI KUALA LUMPUR

SCHOOL OF ENGINEERING & BUILT ENVIRONMENT. Mathematics. Numbers & Number Systems

Dr. Chuck Cartledge. 10 June 2015

Compare quadrilaterals for similarities and differences *

Boolean Algebra. BME208 Logic Circuits Yalçın İŞLER

Lecture (04) Boolean Algebra and Logic Gates

Lecture (04) Boolean Algebra and Logic Gates By: Dr. Ahmed ElShafee

Activity Boolean Algebra

Austin Herring Recitation 002 ECE 200 Project December 4, 2013

Gate Level Minimization Map Method

Review. EECS Components and Design Techniques for Digital Systems. Lec 05 Boolean Logic 9/4-04. Seq. Circuit Behavior. Outline.

Solving Linear Equations and Inequalities: Linear Inequalities in One Variable

6.1 Combinational Circuits. George Boole ( ) Claude Shannon ( )

Lecture 4: Implementation AND, OR, NOT Gates and Complement

2.1 Binary Logic and Gates

Combinational Digital Design. Laboratory Manual. Experiment #3. Boolean Algebra Continued

Announcements. Chapter 2 - Part 1 1

Logic and Computer Design Fundamentals. Chapter 2 Combinational Logic Circuits. Part 3 Additional Gates and Circuits

Digital Techniques. Lecture 1. 1 st Class

DIGITAL CIRCUIT LOGIC UNIT 7: MULTI-LEVEL GATE CIRCUITS NAND AND NOR GATES

BOOLEAN ALGEBRA. 1. State & Verify Laws by using :

Circuit analysis summary

DIGITAL SYSTEM DESIGN

Beginning and Intermediate Algebra Chapter 0: Arithmetic

Summary of Course Coverage

Propositional Calculus. CS 270: Mathematical Foundations of Computer Science Jeremy Johnson

(Refer Slide Time 6:48)

Propositional Calculus. Math Foundations of Computer Science

X Y Z F=X+Y+Z

UNCA CSCI 255 Exam 1 Spring February, This is a closed book and closed notes exam. It is to be turned in by 1:45 PM.

SWITCHING THEORY AND LOGIC CIRCUITS

Chapter 3. Gate-Level Minimization. Outlines

ENGIN 112. Intro to Electrical and Computer Engineering

Simplification of Boolean Functions

R.M.D. ENGINEERING COLLEGE R.S.M. Nagar, Kavaraipettai

1. Prove that if you have tri-state buffers and inverters, you can build any combinational logic circuit. [4]

Transcription:

OpenStax-CNX module: m46633 1 DeMorgan's Theorem George Self This work is produced by OpenStax-CNX and licensed under the Creative Commons Attribution License 3.0 Abstract Boolean Algebra is used to mathematically describe, and simplify, digital circuits. One important tool used to simply circuits is DeMorgan's Theorem; which makes it possible to exchange NAND and OR gates; and also NOR and AND gates. This module denes and illustrates DeMorgan's Theorem with both mathematical equations and logic diagrams. 1 Introduction A mathematician named Augustus DeMorgan developed a pair of important theorems regarding the complementation of groups in Boolean algebra. DeMorgan found that an OR gate with all inputs inverted a Negative-OR gate behaves the same as a NAND gate with non-inverted inputs; and an AND gate with all inputs inverted a Negative-AND gate behaves the same as a NOR gate with non-inverted inputs. DeMorgan's theorem states that inverting the output of any gate is the same as using the opposite type of gate with inverted inputs. To put this in circuit terms, DeMorgan's theorem states that the AND gate with inverted output and the OR gate with inverted inputs in the following circuit are functionally equivalent. Figure 1: Equivalent Circuits Version 1.1: May 24, 2013 3:58 pm -0500 http://creativecommons.org/licenses/by/3.0/

OpenStax-CNX module: m46633 2 The NOT function is commonly represented as an apostrophe because it is easy to type, like: ' for "A AND B NOT." However, it is easiest to work with DeMorgan's theorem if NOT is represented by an overbar rather than an apostrophe. Thus, you would write rather than. Remember that an overbar is a grouping symbol like parenthesis and it means that everything under that bar would be complemented. 2 Applying DeMorgan's Theorem Applying DeMorgan's theorem to a Boolean expression may be thought of in terms of "breaking the bar." When applying DeMorgan's theorem to a Boolean expression: 1. A complement bar is broken over a group of variables 2. The operation AND or OR directly underneath the broken bar changes 3. Pieces of the broken bar remain over the individual variables To illustrate: A B A + B 1 This formula shows how a two-input NAND gate is "broken" to form an OR gate with two inverted inputs. A + B A B 2 This formula shows how a two-input NOR gate is "broken" to form an AND gate with two inverted inputs. 3 Simple Example When multiple "layers" of bars exist in an expression, only one bar is broken at a time, and the longest, or uppermost, bar is broken rst. To illustrate, consider this circuit: Figure 2 By writing the output at each gate as illustrated, it is easy to determine the Boolean expression for the circuit: A + BC 3 To simplify the circuit, break the bar covering the entire expression the "longest bar", and then simplify the resulting expression.

OpenStax-CNX module: m46633 3 A + BC C C Original Expression "Break" longest bar - change to AND Involution Table 1: Simplifying A Circuit with DeMorgan's Theorem As a result, the original circuit is reduced to a three-input AND gate with an inverter on one leg: Figure 3: Simplied Circuit 4 Incorrect Application of DeMorgan's Theorem More than one bar is never broken in a single step, as illustrated by making that mistake with the previous problem: A + BC + C + C Original Expression Improperly "breaking" two bars at one time Incorrect Solution Table 2: Incorrect Simplication Thus, as tempting as it may be to take a shortcut and break more than one bar at a time, it often leads to an incorrect result. Also, while it is possible to properly reduce an expression by breaking the short bar rst; more steps are usually required, so it is not recommended. 5 About Grouping An important, but easily neglected, aspect of DeMorgan's theorem concerns grouping. Since a long bar functions as a grouping symbol, the variables formerly grouped by a broken bar must remain grouped or else proper precedence order of operation will be lost. Therefore, after simplifying a large grouping of variables, place them in parentheses in order to keep the order of operation the same. Consider the following circuit:

OpenStax-CNX module: m46633 4 Figure 4 As always, the rst step in simplifying this circuit is to generate the Boolean expression, which is done by writing the sub-expression at the output of each gate, as illustrated. A + BC + A + BC Original Expression Break longest bar - keep groupings A + BC Involution A + BC Distribute A+BC + BC Idempotence AA=A + 0CA Complement BB'=0 + 0 Annihilator: A0=0 Identity Element A+0=A Table 3: Simplifying a Circuit using Demorgan's Theorem The equivalent gate circuit for this much-simplied expression is as follows:

OpenStax-CNX module: m46633 5 Figure 5: Circuit for Simplied Expression 5.1 Summary Here are the important points to remember about DeMorgan's Theorem: It describes the equivalence between gates with inverted inputs and gates with inverted outputs. When "breaking" a complementation or NOT bar in a Boolean expression, the operation directly underneath the break AND or OR reverses and the broken bar pieces remain over the respective terms. It is normally easiest to approach a problem by breaking the longest uppermost bar before breaking any bars under it. Two complementation bars are never broken in one step. Complementation bars function as grouping symbols. Therefore, when a bar is broken, the terms underneath it must remain grouped. Parentheses may be placed around these grouped terms as a help to avoid changing precedence. 6 Example Problems Exercise 1 Solution on p. 6. A + B C AC Exercise 2 Solution on p. 6. + BC + BC + Exercise 3 Solution on p. 6. + BC AC + AC

OpenStax-CNX module: m46633 6 Solutions to Exercises in this Module Solution to Exercise p. 5 C Solution to Exercise p. 5 BC Solution to Exercise p. 5 A + C