Boolean Algebra & De Morgan's Theorems

Slides:



Advertisements
Similar presentations
EET 1131 Unit 5 Boolean Algebra and Reduction Techniques
Advertisements

Boolean Algebra and Reduction Techniques
Boolean rules for simplification Dr. Ahmed Telba.
Relationship Between Basic Operation of Boolean and Basic Logic Gate The basic construction of a logical circuit is gates Gate is an electronic circuit.
Logic Gate Level Combinational Circuits, Part 1. Circuits Circuit: collection of devices physically connected by wires to form a network Net can be: –
EET 1131 Unit 5 Boolean Algebra and Reduction Techniques
Chapter 5 Boolean Algebra and Reduction Techniques 1.
Chapter 5 Boolean Algebra and Reduction Techniques William Kleitz Digital Electronics with VHDL, Quartus® II Version Copyright ©2006 by Pearson Education,
ENGG 1203 Tutorial Combinational Logic (I) 1 Feb Learning Objectives
Logic Gates Circuits to manipulate 0’s and 1’s. 0’s and 1’s used for numbers Also to make decisions within the computer. In that context, 1 corresponds.
Digital Logic Design ESGD2201
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals with PLD Programming.
Computer Organization 1 Logic Gates and Adders. Propositions –Venn Diagrams.
1 Digital Logic Design Week 5 Simplifying logic expressions.
Logic Gates Shashidhara H S Dept. of ISE MSRIT. Basic Logic Design and Boolean Algebra GATES = basic digital building blocks which correspond to and perform.
LOGIC GATES AND CIRCUITS Digital systems are said to be constructed by using logic gates. These gates are the AND, OR, NOT, NAND, NOR, EXOR and EXNOR gates.
Basic Gates 3.1 Basic Digital Logic: NAND and NOR Gates ©Paul Godin Created September 2007 Last Update Sept 2009.
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC
Boolean Logic 1 Technician Series Boolean 1.1 ©Paul Godin Created Jan 2015 gmail.com.
Digital Logic Design Week 4 Boolean algebra. Laws and rules De Morgan’s theorem Analysis of logic circuits Standard forms Project 1 preparation.
Boolean Algebra and Reduction Techniques
1 EENG 2710 Chapter 2 Algebraic Methods For The Analysis and Synthesis of Logic circuits.
Boolean 1.1 Boolean Logic 1 ©Paul Godin Created September 2007 Last Edit September 2009 gmail.com.
Floyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd Chapter 4 © 2008 Pearson Education.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION
Digital Logic Design Dr. Oliver Faust Chapter 4
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.
DeMorgan’s Theorem DeMorgan’s 2 nd Theorem The complement of a sum of variables is equal to the product of the complemented variables. A + B = A. B Applying.
Chapter 5 Boolean Algebra and Reduction Techniques 1.
Logic Gates and Boolean Algebra Introduction to Logic II.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Introduction to Digital Electronics Lecture.
EET 1131 Unit 5 Boolean Algebra and Reduction Techniques
Boolean Algebra & Logic Gates
Combinational Circuits Part 1
Chapter 3 Notes – Part II Review Questions
De Morgan’s Theorem,.
Digital Fundamentals Floyd Chapter 5 Tenth Edition
DeMorgan’s Theorem DeMorgan’s 2nd Theorem
Lesson Objectives Aims Be able to define problems using Boolean logic
Logic Gates and Boolean Algebra
Logic Gates.
CHAPTER 1 : INTRODUCTION
Boolean Algebra.
CHAPTER 3 SETS AND BOOLEAN ALGEBRA
COMPUTING FUNDAMENTALS
Component 1 – 2A, B, C Binary Logic
Digital Fundamentals Floyd Chapter 5 Tenth Edition
BASIC & COMBINATIONAL LOGIC CIRCUIT
Circuits, Truth Tables & Boolean Algebra
Karnaugh Maps Topics covered in this presentation: Karnaugh Maps
Fundamentals of Computer Systems
Logic Gates.
Reading: Hambley Ch. 7 through 7.5
Boolean Algebra.
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION Part (a)
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Digital Fundamentals Floyd Chapter 4 Tenth Edition
Circuits, Truth Tables & Boolean Algebra
ECE 352 Digital System Fundamentals
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Combinational Logic Circuit
Laws & Rules of Boolean Algebra
ECE 352 Digital System Fundamentals
Chapter 3 – Describing Logic Circuits
Reading: Hambley Ch. 7 through 7.5
Presentation transcript:

Boolean Algebra & De Morgan's Theorems Topics covered in this presentation: Boolean Operations Simplification of Boolean Expressions De Morgan's Theorems

Boolean Algebra Boolean Algebra is a form of mathematics that can be used to help simplify a logic system. The inputs and outputs are variables and are represented by capital letters. For example, A and B may be used to represent inputs and Q to represent the output. In a digital system, each variable can have one of two states, either logic 1 or logic 0. As with ordinary algebra, the value of a variable can be defined. For example, A=1 would mean that variable A was at logic 1. All the basic logic functions can be represented in Boolean algebra, and a number of these can be grouped together to show the relationship between the inputs and the output.

Boolean Operations - AND The AND logic function will output a logic 1 when all inputs are at logic 1. In Boolean algebra, the AND function is indicated by a dot between the variables being ANDed together. A 2-input AND gate will be expressed as: Q = A.B Note that it does not matter in which order variables are ANDed together, A.B = B.A

Boolean Operations - AND The following are a set of rules for the AND logic function. All of these can be determined by examining the truth table for the AND function. A.1 = A If input A is ANDed with a logic 1 input, the output will always be equal to the value on input A. A.0 = 0 If input A is ANDed with a logic 0 input, the output will always be equal to 0. A.A = A If two identical inputs are ANDed together, the output will always be equal to the input value. A.A = 0 If an input is ANDed with an inverted version of itself, the output will always be equal to 0.

Boolean Operations - OR The OR logic function will output a logic 1 when at least one input is at logic 1. In Boolean algebra, the OR function is indicated by a plus sign between the variables being ORed together. A 2-input OR gate will be expressed as: Q = A+B Note that it does not matter in which order variables are ORed together. A+B = B+A

Boolean Operations - OR The following are a set of rules for the OR logic function. All of these can be determined by examining the truth table for the OR function. A+1 = 1 If input A is ORed with a logic 1 input, the output will always be equal to 1. A+0 = A If input A is ORed with a logic 0 input, the output will always be equal to the value on input A. A+A = A If two identical inputs are ORed together, the output will always be equal to the input value. A.A = 1 If an input is ORed with an inverted version of itself, the output will always be equal to 1.

Boolean Operations - NOT (Inversion) The NOT logic function has the effect of inverting the input and is therefore known as an inverter. In Boolean algebra, the function of inversion is indicated by a bar above the variable. In the case of the inverter, Q = A. A double bar above a variable indicates that the variable is inverted twice, therefore returning the variable to the original input value, A = A.

Inversion of AND and OR The function of inversion can be applied to operations as well as single variables. A bar above an AND or OR operation, indicates that the output is inverted. When an AND operation is inverted it becomes NAND: Q = A.B When an OR operation is inverted it becomes NOR: Q = A+B

Combinations of Logic Functions When more than one logic function is used, the order in which the logic functions are to be performed must be defined. As with ordinary algebra, Boolean equations can include brackets to define the order in which the operations are performed. The logic circuit opposite contains an OR and AND logic function connected together. This could be written as Q = A+B.C, but this doesn't indicate the order that the AND and the OR operation should be performed. Inputs A and B are first ORed together, and the output of the OR function is then ANDed with input C. The Boolean equation for this circuit is therefore: Q = (A+B).C

Simplifying Circuits with Boolean Algebra One of the reasons for using Boolean algebra is that it can be used to simplify a logic circuit by removing redundant terms to produce a circuit that requires fewer logic functions. When manipulating a Boolean expression the AND logic function can be treated in the same way as the mathematical operation of multiplication. The OR logic function can be treated in the same way as the mathematical operation of addition Sometimes it is necessary to expand equations in order to simplify them further.

Manipulation with Boolean Algebra In the same way as it is possible to take out a common multiplication factor in ordinary mathematics, the same can be carried out in Boolean algebra. In the example here, A is a common factor that can be taken out. A.B + A.C = A.(B + C) It is also possible to expand functions, such as the example below, using standard mathematical rules: A.(A + B) = A.A + A.B Note that since A.A = 0, this equation can be further simplified to get: A.A + A.B = 0 + A.B = A.B

Manipulation with Boolean Algebra Two logic identities used in simplification involve multiple variables: A + (A.B) = A A.(A + B) = A Both of these identities can be proven using Boolean algebra and the basic single-variable identities that have already been covered: A+(A.B) = (A.1) + (A.B) since A = A.1 = A. (1 + B) since A is a common factor = A since (1 + B) = 1 A.(A + B) = (A.A) + (A.B) expand terms = A + (A.B) since A.A = A = A since A + (A.B) = A

Manipulation with Boolean Algebra Example Use Boolean algebra to simplify the logic circuit opposite. By inspecting the circuit it can be found that its logic function is: Q = A.(A +B).(A + B) Since A.(A + B) = A this can be simplified to: Q = A.(A + B) The terms can then be expanded to give: Q = (A.A) + (A.B) Since A.A = 0 this can be simplified to: Q = 0 + (A.B) = A.B The simplified version of the above circuit is therefore:

De Morgan’s Theorems De Morgan's Theorems are used to help simplify a Boolean expression and can be used to eliminate ‘long bars’ that cover several variables. De Morgan's first theorem can be stated as: A + B = A . B De Morgan's second theorem can be stated as: A . B = A + B These theorems can be remembered by the phrase 'break the bar, and change the sign'.

De Morgan’s Theorem One use for De Morgan’s Theorems is to simplify Boolean equations that contain inversion bars across several variables, so that only single variable inversions remain. Example Simplify the Boolean equation so that only single variables remain. Q = (A + B + C) . (A + B + C) Break the long bar, and change the sign linking the two parts. Q = (A + B + C) + (A + B + C) Break the bars and change the signs between the variables. Q = (A . B . C) + (A . B . C) Finally, since A = A, any double bars can be removed. Q = (A . B . C) + (A . B . C)

De Morgan’s Theorem The other use for De Morgan’s theorem is to convert an expression so that it only contains a single type of logic function. Example Simplify the Boolean equation to use only NAND gates. Q = (A + B + C) . (A + B + C) Add a double bar above each half of the equation. This has no effect on the meaning of the equation but will help us to simplify it. Q = (A + B + C) . (A + B + C) Break a bar and change the sign between the variables. Q = (A . B . C) . (A . B . C) Finally, since A = A, any double bars can be removed. Q = (A . B . C) . (A . B . C)