Ch. 5 : Boolean Algebra &

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

Summary. Boolean Addition

DKT 122/3 DIGITAL SYSTEM 1

Combinational Logic Circuits

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

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

CHAPTER-2 STRUCTURE OF BOOLEAN FUNCTION USING GATES, K-Map and Quine-McCluskey

Experiment 3: Logic Simplification

Experiment 4 Boolean Functions Implementation

IT 201 Digital System Design Module II Notes

1. Mark the correct statement(s)

Simplification of Boolean Functions

Boolean Analysis of Logic Circuits

MODULE 5 - COMBINATIONAL LOGIC

Chapter 2. Boolean Expressions:

4 KARNAUGH MAP MINIMIZATION

Bawar Abid Abdalla. Assistant Lecturer Software Engineering Department Koya University

Module -7. Karnaugh Maps

EEE130 Digital Electronics I Lecture #4_1

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

Chapter 3. Gate-Level Minimization. Outlines

ELCT201: DIGITAL LOGIC DESIGN

Specifying logic functions

Bawar Abid Abdalla. Assistant Lecturer Software Engineering Department Koya University

To write Boolean functions in their standard Min and Max terms format. To simplify Boolean expressions using Karnaugh Map.

Gate Level Minimization

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

ELCT201: DIGITAL LOGIC DESIGN

Gate Level Minimization Map Method

Graduate Institute of Electronics Engineering, NTU. CH5 Karnaugh Maps. Lecturer: 吳安宇教授 Date:2006/10/20 ACCESS IC LAB

Switching Circuits & Logic Design

Combinational Circuits Digital Logic (Materials taken primarily from:

Injntu.com Injntu.com Injntu.com R16


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

A graphical method of simplifying logic

Chapter 2 Boolean algebra and Logic Gates

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

Literal Cost F = BD + A B C + A C D F = BD + A B C + A BD + AB C F = (A + B)(A + D)(B + C + D )( B + C + D) L = 10

UNIT II. Circuit minimization

QUESTION BANK FOR TEST

Gate-Level Minimization

SEE1223: Digital Electronics

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

Chapter 2 Combinational Logic Circuits

DIGITAL CIRCUIT LOGIC UNIT 5: KARNAUGH MAPS (K-MAPS)

Logic Gates and Boolean Algebra ENT263

Unit-IV Boolean Algebra

2008 The McGraw-Hill Companies, Inc. All rights reserved.

Gate-Level Minimization

Introduction to Computer Architecture

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

Computer Science. Unit-4: Introduction to Boolean Algebra

Date Performed: Marks Obtained: /10. Group Members (ID):. Experiment # 04. Boolean Expression Simplification and Implementation

Combinational Logic Circuits

Gate-Level Minimization

Chapter 2 Combinational

University of Technology

ENGINEERS ACADEMY. 7. Given Boolean theorem. (a) A B A C B C A B A C. (b) AB AC BC AB BC. (c) AB AC BC A B A C B C.

CSCI 220: Computer Architecture I Instructor: Pranava K. Jha. Simplification of Boolean Functions using a Karnaugh Map

Last Name Student Number. Last Name Student Number

Section 001. Read this before starting!

Combinational Logic Circuits Part III -Theoretical Foundations

Chapter 2 Combinational Logic Circuits

SWITCHING THEORY AND LOGIC CIRCUITS

2. BOOLEAN ALGEBRA 2.1 INTRODUCTION

LAB #1 BASIC DIGITAL CIRCUIT

2.6 BOOLEAN FUNCTIONS

Digital Techniques. Lecture 1. 1 st Class

Chapter 3. Boolean Algebra and Digital Logic

Code No: R Set No. 1

Announcements. Chapter 2 - Part 1 1

Digital Logic Design. Outline

X Y Z F=X+Y+Z

Lecture 5. Chapter 2: Sections 4-7

Principles of Digital Techniques PDT (17320) Assignment No State advantages of digital system over analog system.

2.1 Binary Logic and Gates

Code No: 07A3EC03 Set No. 1

數位系統 Digital Systems 朝陽科技大學資工系. Speaker: Fuw-Yi Yang 楊伏夷. 伏夷非征番, 道德經察政章 (Chapter 58) 伏者潛藏也道紀章 (Chapter 14) 道無形象, 視之不可見者曰夷

Incompletely Specified Functions with Don t Cares 2-Level Transformation Review Boolean Cube Karnaugh-Map Representation and Methods Examples

Activity Boolean Algebra

CS8803: Advanced Digital Design for Embedded Hardware

Combinational Logic & Circuits

ENGIN 112 Intro to Electrical and Computer Engineering

Chapter Three. Digital Components

(Refer Slide Time 3:31)

UNIT-4 BOOLEAN LOGIC. NOT Operator Operates on single variable. It gives the complement value of variable.

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

Mid-Term Exam Solutions

Binary logic. Dr.Abu-Arqoub

Combinational Devices and Boolean Algebra

A B AB CD Objectives:

EECS150 Homework 2 Solutions Fall ) CLD2 problem 2.2. Page 1 of 15

ENGIN 112 Intro to Electrical and Computer Engineering

1. Fill in the entries in the truth table below to specify the logic function described by the expression, AB AC A B C Z

Simplification of Boolean Functions

Hours / 100 Marks Seat No.

Digital Logic Lecture 7 Gate Level Minimization

Circuit analysis summary

Computer Engineering Chapter 3 Boolean Algebra

Transcription:

Ch. 5 : Boolean Algebra & Reduction elektronik@fisika.ui.ac.id

Objectives Should able to: Write Boolean equations for combinational logic applications. Utilize Boolean algebra laws and rules for simplifying combinational logic circuits. Apply De Morgan s theorem to complex Boolean equations to arrive at simplified equivalent equations. Design single-gate logic circuits by utilizing the universal capability of NAND and NOR gates. 2

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

Combinational Logic Outline Boolean Algebra Laws and Rules Simplification using Boolean Algebra De Morgen s Theorem Universal Capability NAND and NOR AOI Gates for Implementing S-O-P Expression Karnaugh Mapping System Design Applications 4

51 5.1 Combinational Logic Several 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 written in a form that will satisfy the problem. A Boolean reduction is used to simplify a combinational logic by using Boolean Algebra. Boolean Algebra can use parentheses to set off a group of variables that are ANDed to a common variable or group of variables. AB + AC = A(B + C). 5

5.2 Boolean Algebra Laws and Rules 6

5.3 Simplification using Boolean Algebra Complex combinational logic circuits must be reduced without changing the function of the circuit. i Reduction of a logic circuit means the same logic function with fewer gates and/or inputs. The first step to reducing a logic circuit it 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 the expression. To apply the rules of Boolean Algebra it is often helpful to first remove any yparentheses or brackets. After removal of the parentheses, common terms or factors may be removed leaving terms that can be reduced by the rules of Boolean Algebra. The final step is to draw the logic diagram for the reduced Boolean Expression. 7

54 5.4 De Morgen s Theorem De Morgan's theorem allows large bars in a Boolean Expression to be broken up into smaller bars over individual id variables. De Morgan's theorem says that a large bar over several variables can be broken between the variables if the sign between the variables is changed. A. 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 an expression is to use De Morgan's theorem. 8

Bubble pushing is a technique to apply De Morgan's theorem 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 signal conditions rather than specific logic functions. An active-low signal should be connected to a bubble on the input of a logic gate. 9

5.5 Universal Capability NAND and NOR NAND and NOR gates are universal logic gates. The 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 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 function. 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 inverted, the function becomes NAND 10

11

5.6 AOI Gates for Implementing S-O-P Expression Most Boolean reductions result in a Product-of-Sums (POS) expression 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 more complex functions than can be accomplished with an AOI 12

74LS54 AOI Gate 13

57 5.7 Karnaugh Mapping Karnaugh mapping is a graphic technique for reducing 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 is allowed to change. 14

15

Example 16

Use the following steps to reduce an expression using a k-map. 1. 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. 3. 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 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- bottom. 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 variable(s) are covered. 17

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 a truth table. The next step is to reduce the expression to simplest terms and to put it in a desired format. This step may include the use of Boolean Algebra, k-maps or both. The third step is to implement the function by drawing the logic using the available circuits 18

Proyek: Menghidupkan salah satu segmen dari 7 segmen Menghidupkan segmen e ( 0, 2, 6, 8), A adalah MSB A B C D 0 0 0 0 A B C D 0 0 1 0 A B C ABC D 0 1 1 0 A B C D 1 0 0 0 A BCD B C D 19

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 20

21

Proyek: Menghidupkan salah satu segmen dari 7 segmen Menghidupkan segmen g ( 2, 3, 4, 5, 6, 8, 9), A adalah MSB A B C D 0 0 1 0 ABC D 0 0 1 1 ABCD 0 1 0 0 ABCD 0 1 0 1 0 1 1 0 1 0 0 0 1 0 0 1 ABCD ABCD ABCD ABCD 22

CD CD C D CD A B AB 3 2 A B 4 5 6 A B A B 8 9 A BC + ACD + ABC + ABC 23

Proyek: Menghidupkan salah satu segmen dari 7 segmen Menghidupkan segmen g ( 2, 3, 4, 5, 6, 8, 9), A adalah LSB D C B A 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 1 0 0 0 1 0 0 1 24

C D A B C D CD C D A B AB A B A B A BC + ACD + ABC + D CB + DBA + DCB + ABC DCB AMSB A LSB 25