+ All Categories
Home > Documents > Ch. 5 : Boolean Algebra & Reduction Techniques...

Ch. 5 : Boolean Algebra & Reduction Techniques...

Date post: 19-Mar-2018
Category:
Upload: buicong
View: 219 times
Download: 5 times
Share this document with a friend
25
Ch. 5 : Boolean Algebra & Reduction Techniques Reduction Techniques [email protected]
Transcript
Page 1: Ch. 5 : Boolean Algebra & Reduction Techniques …staff.ui.ac.id/system/files/users/marta/material/kbab5martarizal.pdfAB + AC = A(B + C). Ch 5: Boolean Algebra & Reduction Techniques

Ch. 5 : Boolean Algebra & Reduction TechniquesReduction [email protected]

Page 2: Ch. 5 : Boolean Algebra & Reduction Techniques …staff.ui.ac.id/system/files/users/marta/material/kbab5martarizal.pdfAB + AC = A(B + C). Ch 5: Boolean Algebra & Reduction Techniques

ObjectivesObjectivesShould able to:

Write Boolean equations for combinational logic applications. U ili B l l b l d l f Utilize Boolean algebra laws and rules for simplifying combinational logic circuits. Apply De Morgan’s theorem to complex Apply De Morgan s theorem to complex Boolean equations to arrive at simplified equivalent equations. q qDesign single-gate logic circuits by utilizing the universal capability of NAND and NOR gates

Ch 5: Boolean Algebra & Reduction Techniques

2

gates.

Page 3: Ch. 5 : Boolean Algebra & Reduction Techniques …staff.ui.ac.id/system/files/users/marta/material/kbab5martarizal.pdfAB + AC = A(B + C). Ch 5: Boolean Algebra & Reduction Techniques

Troubleshoot combinational logic circuits. Implement sum-of-products expressions p p putilizing AND-OR-INVERT gates. Utilize the Karnaugh mapping procedure to pp psystematically reduce complex Boolean equations to their simplest form. Describe the steps involved in solving a complete system design application.

Ch 5: Boolean Algebra & Reduction Techniques

3

Page 4: Ch. 5 : Boolean Algebra & Reduction Techniques …staff.ui.ac.id/system/files/users/marta/material/kbab5martarizal.pdfAB + AC = A(B + C). Ch 5: Boolean Algebra & Reduction Techniques

OutlineOutlineCombinational LogicgBoolean Algebra Laws and RulesSimplification using Boolean Algebrap a g a g aDe Morgen’s TheoremUniversal Capability NAND and NORUniversal Capability NAND and NORAOI Gates for Implementing S-O-P ExpressionKarnaugh MappingKarnaugh MappingSystem Design Applications

Ch 5: Boolean Algebra & Reduction Techniques

4

Page 5: Ch. 5 : Boolean Algebra & Reduction Techniques …staff.ui.ac.id/system/files/users/marta/material/kbab5martarizal.pdfAB + AC = A(B + C). Ch 5: Boolean Algebra & Reduction Techniques

5 1 Combinational Logic5.1 Combinational LogicSeveral of the basic logic gates are used to form a more complex function with combinational logic. A Boolean equation can be used to describe any combinational logic circuit The Boolean equation is combinational logic circuit. The Boolean equation is written in a form that will satisfy the problem. A Boolean reduction is used to simplify a p ycombinational logic by using Boolean Algebra. Boolean Algebra can use parentheses to set off a group of variables that are ANDed to a common group of variables that are ANDed to a common variable or group of variables. AB + AC = A(B + C).

Ch 5: Boolean Algebra & Reduction Techniques

5

Page 6: Ch. 5 : Boolean Algebra & Reduction Techniques …staff.ui.ac.id/system/files/users/marta/material/kbab5martarizal.pdfAB + AC = A(B + C). Ch 5: Boolean Algebra & Reduction Techniques

5.2 Boolean Algebra Laws and gRules

Ch 5: Boolean Algebra & Reduction Techniques

6

Page 7: Ch. 5 : Boolean Algebra & Reduction Techniques …staff.ui.ac.id/system/files/users/marta/material/kbab5martarizal.pdfAB + AC = A(B + C). Ch 5: Boolean Algebra & Reduction Techniques

5.3 Simplification using Boolean p gAlgebra

Complex combinational logic circuits must be reduced without h i h f i f h i ichanging the function of the circuit.

Reduction of a logic circuit means the same logic function with fewer gates and/or inputs. Th fi t t t d i l i i it i t it th B lThe first step to reducing a logic circuit is to write the Boolean Equation for the logic function. The next step is to apply as many rules and laws as possible in order to decrease the number of terms and variables in theorder to decrease the number of terms and variables in the expression. To apply the rules of Boolean Algebra it is often helpful to first remove any parentheses or brackets. y pAfter removal of the parentheses, common terms or factors may be removed leaving terms that can be reduced by the rules of Boolean Algebra.

Ch 5: Boolean Algebra & Reduction Techniques

7

The final step is to draw the logic diagram for the reduced Boolean Expression.

Page 8: Ch. 5 : Boolean Algebra & Reduction Techniques …staff.ui.ac.id/system/files/users/marta/material/kbab5martarizal.pdfAB + AC = A(B + C). Ch 5: Boolean Algebra & Reduction Techniques

5 4 De Morgen’s Theorem5.4 De Morgen s TheoremDe Morgan's theorem allows large bars in a Boolean Expression to b b k i t ll b i di id l i blbe broken up into smaller bars over individual variables. De Morgan's theorem says that a large bar over several variables can be broken between the variables if the sign between the

i bl i h dvariables is changed. –– A . BA . B = A + B– A + B = A . B

De Morgan's theorem can be used to prove that a NAND gate is equal to an OR gate with inverted inputs. De Morgan's theorem can be used to prove that a NOR gate is equal to an AND gate with inverted inputs. In order to reduce expressions with large bars, the bars must first be broken up. This means that in some cases, the first step in reducing

Ch 5: Boolean Algebra & Reduction Techniques

8

an expression is to use De Morgan's theorem.

Page 9: Ch. 5 : Boolean Algebra & Reduction Techniques …staff.ui.ac.id/system/files/users/marta/material/kbab5martarizal.pdfAB + AC = A(B + C). Ch 5: Boolean Algebra & Reduction Techniques

Bubble pushing is a technique to apply De Morgan's theorem directly to the logic diagramtheorem directly to the logic diagram. 1. Change the logic gate (AND to OR and OR to AND). 2. Add bubbles to the inputs and outputs where there were

none, and remove the original bubbles.

Logic gates can be De Morganized so that bubbles appear on inputs or outputs in order to satisfy signalappear on inputs or outputs in order to satisfy signal conditions rather than specific logic functions. An active-low signal should be connected to a bubble on the input of a logic gate

Ch 5: Boolean Algebra & Reduction Techniques

9

the input of a logic gate.

Page 10: Ch. 5 : Boolean Algebra & Reduction Techniques …staff.ui.ac.id/system/files/users/marta/material/kbab5martarizal.pdfAB + AC = A(B + C). Ch 5: Boolean Algebra & Reduction Techniques

5.5 Universal Capability NAND p yand NOR

NAND and NOR gates are universal logic gates. The AND OR NOR and Inverter functions can all be performed using onlyThe AND, OR, NOR and Inverter functions can all be performed using only NAND gates. The AND, OR, NAND and Inverter functions can all be performed using only NOR gates. An inverter can be made from a NAND or a NOR by connecting all inputs of the gate together. If the output of a NAND gate is inverted, it becomes an AND function. If the output of a NOR gate is inverted it becomes an OR functionIf the output of a NOR gate is inverted, it becomes an OR function. If the inputs to a NAND gate are inverted, the gate becomes an OR function. If the inputs to a NOR gate are inverted, the gate becomes an AND p g , gfunction. When NAND gates are used to make the OR function and the output is inverted, the function becomes NOR. When NOR gates are used to make the AND function and the output is

Ch 5: Boolean Algebra & Reduction Techniques

10

When NOR gates are used to make the AND function and the output is inverted, the function becomes NAND

Page 11: Ch. 5 : Boolean Algebra & Reduction Techniques …staff.ui.ac.id/system/files/users/marta/material/kbab5martarizal.pdfAB + AC = A(B + C). Ch 5: Boolean Algebra & Reduction Techniques

Ch 5: Boolean Algebra & Reduction Techniques

11

Page 12: Ch. 5 : Boolean Algebra & Reduction Techniques …staff.ui.ac.id/system/files/users/marta/material/kbab5martarizal.pdfAB + AC = A(B + C). Ch 5: Boolean Algebra & Reduction Techniques

5.6 AOI Gates for Implementing p gS-O-P Expression

Most Boolean reductions result in a Product-of-Sums (POS) i S f P d t (SOP) iexpression or a Sum-of-Products (SOP) expression.

The Sum-of-Products means the variables are ANDed to form a term and the terms are ORed. X = AB + CD. The Product-of-Sums means the variables are ORed to form a term and the terms are ANDed. X = (A + B)(C + D) AND-OR-Inverter gate combinations (AOI) are available in standard ICs and can be used to implement SOP expressions. The 74LS54 is a commonly used AOI. Programmable Logic Devices (PLDs) are available for larger and g g ( ) gmore complex functions than can be accomplished with an AOI

Ch 5: Boolean Algebra & Reduction Techniques

12

Page 13: Ch. 5 : Boolean Algebra & Reduction Techniques …staff.ui.ac.id/system/files/users/marta/material/kbab5martarizal.pdfAB + AC = A(B + C). Ch 5: Boolean Algebra & Reduction Techniques

74LS54 AOI Gate 74LS54 AOI Gate

Ch 5: Boolean Algebra & Reduction Techniques

13

Page 14: Ch. 5 : Boolean Algebra & Reduction Techniques …staff.ui.ac.id/system/files/users/marta/material/kbab5martarizal.pdfAB + AC = A(B + C). Ch 5: Boolean Algebra & Reduction Techniques

5 7 Karnaugh Mapping5.7 Karnaugh MappingKarnaugh mapping is a graphic technique for g pp g g p qreducing a Sum-of-Products (SOP) expression to its minimum form. Two, three and four variable k-maps will have 4, 8 and 16 cells respectively. Each cell of the k-map corresponds to a particular combination of the input variable and between adjacent cells only one variable isbetween adjacent cells only one variable is allowed to change.

Ch 5: Boolean Algebra & Reduction Techniques

14

Page 15: Ch. 5 : Boolean Algebra & Reduction Techniques …staff.ui.ac.id/system/files/users/marta/material/kbab5martarizal.pdfAB + AC = A(B + C). Ch 5: Boolean Algebra & Reduction Techniques

Ch 5: Boolean Algebra & Reduction Techniques

15

Page 16: Ch. 5 : Boolean Algebra & Reduction Techniques …staff.ui.ac.id/system/files/users/marta/material/kbab5martarizal.pdfAB + AC = A(B + C). Ch 5: Boolean Algebra & Reduction Techniques

ExampleExample

Ch 5: Boolean Algebra & Reduction Techniques

16

Page 17: Ch. 5 : Boolean Algebra & Reduction Techniques …staff.ui.ac.id/system/files/users/marta/material/kbab5martarizal.pdfAB + AC = A(B + C). Ch 5: Boolean Algebra & Reduction Techniques

Use the following steps to reduce an expression using a k-map. 1 Use the rules of Boolean Algebra to change the expression to a1. Use the rules of Boolean Algebra to change the expression to a

SOP expression. 2. Mark each term of the SOP expression in the correct cell of the

k-map. p3. Circle adjacent cells in groups of 2, 4 or 8 making the circles as

large as possible. 4. Write a term for each circle in a final SOP expression. The p

variables in a term are the ones that remain constant across a circle. The cells of a k-map are continuous left-to-right and top-to-b tt Th d f t b d t d th i lbottom. The wraparound feature can be used to draw the circles as large as possible. When a variable does not appear in the original equation, the equation must be plotted so that all combinations of the missing

Ch 5: Boolean Algebra & Reduction Techniques

17

equation must be plotted so that all combinations of the missing variable(s) are covered.

Page 18: Ch. 5 : Boolean Algebra & Reduction Techniques …staff.ui.ac.id/system/files/users/marta/material/kbab5martarizal.pdfAB + AC = A(B + C). Ch 5: Boolean Algebra & Reduction Techniques

5 8 System Design Applications 5.8 System Design Applications The first step in any design problem is to express the problem in terms of a Boolean Expression. This can be done either from the requirements of the problem directly or from arequirements of the problem directly or from a truth table. The next step is to reduce the expression to p psimplest terms and to put it in a desired format. This step may include the use of Boolean Algebra k maps or bothAlgebra, k-maps or both. The third step is to implement the function by drawing the logic using the available circuits

Ch 5: Boolean Algebra & Reduction Techniques

18

drawing the logic using the available circuits

Page 19: Ch. 5 : Boolean Algebra & Reduction Techniques …staff.ui.ac.id/system/files/users/marta/material/kbab5martarizal.pdfAB + AC = A(B + C). Ch 5: Boolean Algebra & Reduction Techniques

Proyek: Menghidupkan salah satu y g psegmen dari 7 segmen

Menghidupkan segmen e ( 0 2 6 8) A adalah Menghidupkan segmen e ( 0, 2, 6, 8), A adalah MSB

A B C D0 0 0 0 A’B’C’D’0 0 1 0 A’B’C D’0 0 1 0 A B C D0 1 1 0 A’B C D’1 0 0 0 A B’C’D’

Ch 5: Boolean Algebra & Reduction Techniques

19

1 0 0 0 A B C D

Page 20: Ch. 5 : Boolean Algebra & Reduction Techniques …staff.ui.ac.id/system/files/users/marta/material/kbab5martarizal.pdfAB + AC = A(B + C). Ch 5: Boolean Algebra & Reduction Techniques

K Map K Map C’D’ C’D C D C D’

A’B’ 0 2 A’C D’

A’B 6

A B

A B’ 8 B’C’D’

Ch 5: Boolean Algebra & Reduction Techniques

20

Page 21: Ch. 5 : Boolean Algebra & Reduction Techniques …staff.ui.ac.id/system/files/users/marta/material/kbab5martarizal.pdfAB + AC = A(B + C). Ch 5: Boolean Algebra & Reduction Techniques

Ch 5: Boolean Algebra & Reduction Techniques

21

Page 22: Ch. 5 : Boolean Algebra & Reduction Techniques …staff.ui.ac.id/system/files/users/marta/material/kbab5martarizal.pdfAB + AC = A(B + C). Ch 5: Boolean Algebra & Reduction Techniques

Proyek: Menghidupkan salah satu y g psegmen dari 7 segmen

Menghidupkan segmen g ( 2 3 4 5 6 8 9) A Menghidupkan segmen g ( 2, 3, 4, 5, 6, 8, 9), A adalah MSB

A B C DA B C D0 0 1 0 DCBA0 0 1 10 1 0 0 DCBA

CDBA

0 1 0 10 1 1 0

DCBADBCA

Ch 5: Boolean Algebra & Reduction Techniques

221 0 0 01 0 0 1

DCBADCBA

Page 23: Ch. 5 : Boolean Algebra & Reduction Techniques …staff.ui.ac.id/system/files/users/marta/material/kbab5martarizal.pdfAB + AC = A(B + C). Ch 5: Boolean Algebra & Reduction Techniques

C D C D

A’B’ 3 2DC DC DC

A B 3 2

A’B 4 5 6

A B

A B’ 8 9

CBACBADCACBA +++Ch 5: Boolean Algebra & Reduction

Techniques23

CBACBADCACBA +++

Page 24: Ch. 5 : Boolean Algebra & Reduction Techniques …staff.ui.ac.id/system/files/users/marta/material/kbab5martarizal.pdfAB + AC = A(B + C). Ch 5: Boolean Algebra & Reduction Techniques

Proyek: Menghidupkan salah satu y g psegmen dari 7 segmen

Menghidupkan segmen g ( 2 3 4 5 6 8 9) A Menghidupkan segmen g ( 2, 3, 4, 5, 6, 8, 9), A adalah LSB

D C B AD C B A0 0 1 00 0 1 10 1 0 00 1 0 10 1 1 0

Ch 5: Boolean Algebra & Reduction Techniques

241 0 0 01 0 0 1

Page 25: Ch. 5 : Boolean Algebra & Reduction Techniques …staff.ui.ac.id/system/files/users/marta/material/kbab5martarizal.pdfAB + AC = A(B + C). Ch 5: Boolean Algebra & Reduction Techniques

C D

A’B’A’B’

A’BDC DC DC

A B

A BA B

A B’A B

CBACBADCACBA A MSBCBACBADCACBA +++BCDBCDABDBCD +++

A MSB

A LSB

Ch 5: Boolean Algebra & Reduction Techniques

25

BCDBCDABDBCD +++


Recommended