Combinational Logic Circuits

Similar documents
Chapter 2. Boolean Expressions:

A B AB CD Objectives:

Digital Logic Lecture 7 Gate Level Minimization

Module -7. Karnaugh Maps

A graphical method of simplifying logic

DKT 122/3 DIGITAL SYSTEM 1

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

Experiment 3: Logic Simplification

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

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

Bawar Abid Abdalla. Assistant Lecturer Software Engineering Department Koya University

Specifying logic functions

CMPE223/CMSE222 Digital Logic

2.6 BOOLEAN FUNCTIONS

ECE380 Digital Logic

Karnaugh Map (K-Map) Karnaugh Map. Karnaugh Map Examples. Ch. 2.4 Ch. 2.5 Simplification using K-map

Chapter 2 Combinational Logic Circuits

SEE1223: Digital Electronics

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

Experiment 4 Boolean Functions Implementation

Gate Level Minimization Map Method

EEE130 Digital Electronics I Lecture #4_1

Combinational Logic Circuits Part III -Theoretical Foundations

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

IT 201 Digital System Design Module II Notes

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

Chapter 3 Simplification of Boolean functions

Chapter 2 Combinational Logic Circuits


Philadelphia University Faculty of Information Technology Department of Computer Science. Computer Logic Design. By Dareen Hamoudeh.

Chapter 2 Combinational

4 KARNAUGH MAP MINIMIZATION

Boolean Analysis of Logic Circuits

Ch. 5 : Boolean Algebra &

Chapter 3. Gate-Level Minimization. Outlines

Summary. Boolean Addition

Simplification of Boolean Functions

Unit-IV Boolean Algebra

Gate-Level Minimization. BME208 Logic Circuits Yalçın İŞLER

X Y Z F=X+Y+Z

Gate Level Minimization

Menu. Algebraic Simplification - Boolean Algebra EEL3701 EEL3701. MSOP, MPOS, Simplification

ENGIN 112 Intro to Electrical and Computer Engineering

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

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

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

ELCT201: DIGITAL LOGIC DESIGN

ELCT201: DIGITAL LOGIC DESIGN

UNIT II. Circuit minimization

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

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

Combinational Circuits Digital Logic (Materials taken primarily from:

Standard Forms of Expression. Minterms and Maxterms

3.4 QUINE MCCLUSKEY METHOD 73. f(a, B, C, D, E)¼AC ĒþB CD þ BCDþĀBD.

Combinational Logic Circuits

Karnaugh Maps. Kiril Solovey. Tel-Aviv University, Israel. April 8, Kiril Solovey (TAU) Karnaugh Maps April 8, / 22

Switching Circuits & Logic Design

Chapter 2 Boolean algebra and Logic Gates

CS8803: Advanced Digital Design for Embedded Hardware

ENGIN 112. Intro to Electrical and Computer Engineering

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

Lecture 5. Chapter 2: Sections 4-7

Introduction to Computer Architecture

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

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

QUESTION BANK FOR TEST

Definitions. 03 Logic networks Boolean algebra. Boolean set: B 0,

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

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.

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

Gate-Level Minimization

S1 Teknik Telekomunikasi Fakultas Teknik Elektro FEH2H3 2016/2017

CS470: Computer Architecture. AMD Quad Core

Gate-Level Minimization

Chapter 6. Logic Design Optimization Chapter 6

Boolean Function Simplification

Review: Standard forms of expressions

Computer Science. Unit-4: Introduction to Boolean Algebra

Simplification of Boolean Functions

University of Technology

Switching Theory And Logic Design UNIT-II GATE LEVEL MINIMIZATION

Computer Organization

Chapter 2 Part 5 Combinational Logic Circuits

1. Mark the correct statement(s)

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

Announcements. Chapter 2 - Part 1 1

Outcomes. Unit 9. Logic Function Synthesis KARNAUGH MAPS. Implementing Combinational Functions with Karnaugh Maps

Gate-Level Minimization

Austin Herring Recitation 002 ECE 200 Project December 4, 2013

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

Digital Techniques. Lecture 1. 1 st Class

CprE 281: Digital Logic

Programmable Logic Devices. Programmable Read Only Memory (PROM) Example

POWR IP PZ1/17

Combinational Logic & Circuits

Code No: R Set No. 1

SWITCHING THEORY AND LOGIC CIRCUITS

Code No: R Set No. 1

MODULE 5 - COMBINATIONAL LOGIC

3.3 Hardware Karnaugh Maps

Transcription:

Chapter 3 Combinational Logic Circuits 12 Hours 24 Marks 3.1 Standard representation for logical functions Boolean expressions / logic expressions / logical functions are expressed in terms of logical variables. Logical variables can have value either 0 or 1. The logical functions can be represented in one of the following forms. - Sum of Products form (SOP form) - Product of Sums form (POS form) 3.1.1 Sum of Products (SOP) form In this form, Boolean expression is defined by sum of product terms. Various AND terms are ORed together. Each AND term may be a single variable or a product of multiple variables (each variable may be either in complemented or un-complemented form). Y = AC + A BC + B Here, Y is represented in SOP form with three terms. First AND term contains two variables, second contains three variables and third contains a single variable. We can obtain sum of products expression from a truth table by considering the input combinations those produce logic 1 output as shown below. Table 3.1: Example Truth table i/p o/p A B C Y 0 0 0 0 0 1 1 1 1 0 0 0 1 0 1 1 1 1 1 0 First logic 1 output in the truth table is for A=0, B=0 and C=1. This is possible when A, B and C are ANDed. So, first term is A. B. C and other terms can be obtained similarly to get the expression for the truth table 3.1 in sum of products form as, 3-1

Y = A. B. C + A. B. C + A. B. C + A. B. C As this expression is a function of three variables, it can be expressed as f(a, B, C). It cans also be represented as. Y = f(a, B, C) = A. B. C + A. B. C + A. B. C + A. B. C Both the examples shown above are in sum of products form. But in first example, even though the expression is function of three variables, first term is containing only two variables whereas third term is containing only one variable. Y = A. C + A. B. C + B We may write each such incomplete term of the above expression in expanded form as, A. C = A. C. (B + B ) = A. B. C + A. B. C B = B. (A + A ) = A. B + A. B = A. B. (C + C ) + A. B. (C + C ) = A. B. C + A. B. C + A. B. C + A. B. C Therefore, the expanded sum of product expression can be written as, Y = A. B. C + A. B. C + A. B. C + A. B. C + A. B. C + A. B. C + A. B. C Y = A. B. C + A. B. C + A. B. C + A. B. C + A. B. C Expanded form of Boolean expression in which each term contains all the Boolean variables in it is called as canonical form. It is also called as standard sum of products form. Convert following Boolean expression into standard SOP form. AC + BD The above expression is a function of four variables A, B, C and D. As each term is not containing all the variables, it is not standard SOP. The terms can be expanded to make it standard SOP as, Y(A, B, C, D) Y(A, B, C, D) = A. C + B. D = A. (B + B ). C + B. D = A. B. C + A. B. C + B. D = A. B. C. (D + D ) + A. B. C. (D + D ) + B. D = A. B. C. D + A. B. C. D + A. B. C. D + A. B. C. D + B. D = A. B. C. D + A. B. C. D + A. B. C. D + A. B. C. D + (A + A ). B. D = A. B. C. D + A. B. C. D + A. B. C. D + A. B. C. D + A. B. D + A. B. D = A. B. C. D + A. B. C. D + A. B. C. D + A. B. C. D + A. B. (C + C ). D + A. B. (C + C ). D = A. B. C. D + A. B. C. D + A. B. C. D + A. B. C. D + A. B. C. D + A. B. C. D + A. B. C. D + A. B. C. D As, A + A = A = A. B. C. D + A. B. C. D + A. B. C. D + A. B. C. D + A. B. C. D + A. B. C. D Standardize following Boolean expression. Y = AC + B C 3-2

The above expression is a function of three variables A, B and C. As each term is not containing all the variables, it is not standard SOP. The terms can be expanded to make it standard SOP as, = A. C + B. C = A. (B + B ). C + B. C = A. B. C + A. B. C + B. C = A. B. C + A. B. C + (A + A ). B. C = A. B. C + A. B. C + A. B. C + A. B. C As, A + A = A = A. B. C + A. B. C + A. B. C Single term in standard sum of products is called as minterm. Each expression can be represented using minterms. Some examples are shown below. Y = A. B. C + A. B. C + A. B. C + A. B. C + A. B. C As the above expression in standard sum of products, all terms in it are minterms. They are, A. B. C A. B. C A. B. C m7 m5 1 1 1 1 1 A. B. C A. B. C m6 1 1 0 0 m2 Therefore the expression can be represented as, = m(2,3,5,6,7) Y = A. B. C. D + A. B. C. D + A. B. C. D + A. B. C. D + A. B. C. D + A. B. C. D As the above expression in standard sum of products, all terms in it are minterms. They are, A. B. C. D A. B. C. D A. B. C. D m13 m12 1 1 1 1 0 0 m3 m9 A. B. C. D A. B. C. D A. B. C. D m8 m15 1 0 0 1 1 1 1 1 1 0 Therefore the expression can be represented as, m14 Y(A, B, C, D) = m(8,9,12,13,14,15) 3.1.2 Product of Sums (POS) form In this form, Boolean expression is defined by product of sum terms. Various OR terms are ANDed together. Each OR term may be a single variable 3-3

or a sum of multiple variables (each variable may be either in complemented or un-complemented form). Y = (A + C). (B + C). A Here, Y is represented in POS form with three terms. First OR term contains two variables, second contains two variables and third contains a single variable. We can obtain product of sums expression from a truth table by considering the input combinations those produce logic 0 output as shown below. Table 3.2: Example Truth table i/p o/p A B C Y 0 0 0 0 0 1 1 1 1 0 0 0 1 0 1 1 1 1 1 0 First logic 0 output in the truth table is for A=0, B=0 and C=0. This is possible when A, B and C are ORed. So, first term is (A + B + C) and other terms can be obtained similarly to get the expression for the truth table 3.2 in product of sums form as, Y = (A + B + C). (A + B + C). (A + B + C ). (A + B + C ) As this expression is a function of three variables, it can be expressed as f(a, B, C). It cans also be represented as. Y = f(a, B, C) = (A + B + C). (A + B + C). (A + B + C ). (A + B + C ) Both the examples shown above are in product of sums form. But in first example, even though the expression is function of three variables, first term is containing only two variables, second term is also containing only two variables and third term is containing only one variable. Y = (A + C). (B + C). A We may write each such incomplete term of the above expression in expanded form as, (A + C) = (A + B. B + C) = (A + B + C). (A + B + C) (B + C) = (A. A + B + C) = (A + B + C). (A + B + C) A = (A + B. B ) = (A + B). (A + B ) = (A + B + C. C ). (A + B + C. C ) = (A + B + C). (A + B + C ). (A + B + C). (A + B + C ) 3-4

Therefore, the expanded sum of product expression can be written as, Y = (A + B + C). (A + B + C). (A + B + C). (A + B + C). (A + B + C). (A + B + C ). (A + B + C). (A + B + C ) Y = (A + B + C). (A + B + C). (A + B + C). (A + B + C ). (A + B + C ) Expanded form of Boolean expression in which each term contains all the Boolean variables in it is called as canonical form. It is also called as standard product of sums form. Convert following Boolean expression into standard POS form. (A + C ). (B + D) The above expression is a function of four variables A, B, C and D. As each term is not containing all the variables, it is not standard POS. The terms can be expanded to make it standard POS as, Y(A, B, C, D) Y(A, B, C, D) = (A + C ). (B + D) = (A + B. B + C ). (B + D) = (A + B + C ). (A + B + C ). (B + D) = (A + B + C + D. D ). (A + B + C + D. D ). (B + D) + D ). (B + D) + D ). (A. A + B + D) + D ). (A + B + D). (A + B + D) + D ). (A + B + C. C + D). (A + B + C. C + D) + D ). (A + B + C + D). (A + B + C + D). (A + B + C + D). (A + B + C + D) As, A. A = A + D ). (A + B + C + D). (A + B + C + D). (A + B + C + D) Standardize following Boolean expression. Y = (A + B)(A + C) The above expression is a function of three variables A, B and C. As each term is not containing all the variables, it is not standard POS. The terms can be expanded to make it standard POS as, = (A + B). (A + C) = (A + B + C. C ). (A + C) = (A + B + C). (A + B + C ). (A + C) = (A + B + C). (A + B + C ). (A + B. B + C) = (A + B + C). (A + B + C ). (A + B + C). (A + B + C) As, A + A = A = (A + B + C). (A + B + C ). (A + B + C). (A + B + C) 3-5

Single term in standard product of sumss is called as maxterm. Each expression can be represented using maxterms. Some examples are shown below. Y = (A + B + C). (A + B + C). (A + B + C). (A + B + C ). (A + B + C ) As the above expression in standard product of sums form, all terms in it are maxterms. They are, A + B + C A + B + C A + B + C M0 M2 0 0 0 0 0 A + B + C A + B + C M1 0 1 M5 Therefore the expression can be represented as, = M(0,1,2,4,5) Y = (A + B + C + D). (A + B + C + D ). (A + B + C + D) As the above expression in standard product of sums form, all terms in it are maxterms. They are, A + B + C + D A + B + C + D A + B + C + D M2 M3 0 0 0 1 1 0 Therefore the expression can be represented as, Y(A, B, C, D) = M(2,3,6) M4 M6 3.2 Karnaugh Map In the last chapter, we have simplified Boolean expression using Boolean laws. That was algebraic simplification method. In that method, it is hard to guess whether the simplified expression is in its simplest form or not (i.e. whether simplification is to be continued or not).this drawback has been overcome in Karnaugh map simplification. Karnaugh map (also called K-map) is graphical representation of a logic system. It can be drawn from minterm or maxterm Boolean expressions. Number of cells in a K-map depends on number of variables in the Boolean expression. Karnaugh map of a Boolean expression with n variables contain 2 n cells (squares). Each cell in the K-map corresponds with one input combination. Each row and each column of K-map is assigned by 0s and 1s. A two-variable K-map can be drawn with various possibilities. Two possibilities are shown in figure 3.1. In these notes we will use pattern shown in figure 3.1a. 3-6

B A 0 1 2 3 A B 0 0 2 1 1 3 a. b. Figure 3.1: Two ways of representing a 2-variable K-map As discussed previously, each square (or cell) in K-map corresponds to one input combination. In figure 3.1a, cell 0 corresponds to input combination 00 (i.e. A. B ), cell 1 corresponds to input combination 01 (i.e. A. B), cell 2 corresponds to input combination 10 (i.e. A. B ) and cell 3 corresponds to input combination 11 (i.e. A. B). A three-variable K-map can be drawn with various possibilities. Four possibilities are shown in figure 3.2. In these notes we will use pattern shown in figure 3.2a. BC A 0 3 2 1 4 5 7 6 AB C 0 0 2 6 4 1 1 3 7 5 a. b. C AB 00 01 2 3 11 6 7 10 4 5 A BC 00 0 4 01 1 5 11 3 7 10 2 6 c. d. Figure 3.2: Four ways of representing a 3-variable K-map A four-variable K-map can be drawn with various possibilities. Two possibilities are shown in figure 3.3. In these notes we will use pattern shown in figure 3.3a. 3-7

CD AB 00 3 2 01 4 5 7 6 11 12 13 15 14 10 8 9 11 10 AB CD 00 0 4 12 8 01 1 5 13 9 11 3 7 15 11 10 2 6 14 10 a. b. Figure 3.3: Two ways of representing a 4-variable K-map We can represent any expression which is in standard SOP (minterms) form or standard POS (maxterms) form in a K-map. 3.2.1 Representation SOP on K-map If the given Boolean expression is not in standard SOP form, it should be first converted to standard SOP form. Then its minterms are written. For each minterm in the expression, 1 is written in the corresponding cell in the K-map and the remaining cells are marked as 0. Represent following Boolean expression by K-map. Y = BC + A B C + ABC The above expression is in SOP form. It is a function of three variables A, B and C. As each term is not containing all the variables, it is not in standard SOP form. So, converting it into standard SOP form, = B. C + A. B. C + A. B. C = (A + A ). B. C + A. B. C + A. B. C = A. B. C + A. B. C + A. B. C + A. B. C 1 1 1 1 0 0 1 0 m7 m3 m0 m6 = m(0,3,6,7) The above minterms can be represented in K-map. All the present terms are marked as 1 and remaining cells are marked as 0. As the function is of three variables, a three-variable K-map is used for representation. BC A 0 1 0 3 1 2 0 1 4 0 5 0 7 1 6 1 Represent following expression using K-map. f(a, B, C, D) = m(0,1,2,5,13,15) The above minterms can be represented in K-map. All the present terms are marked as 1 and remaining cells are marked as 0. As the function is of four-variables, a four-variable K-map is used for representation. 3-8

CD AB 00 1 1 3 0 2 1 01 4 0 5 1 7 0 6 0 11 12 3 1 15 1 14 0 10 8 0 9 1 0 0 Example 3: Represent following expression using K-map. Y = m(0,1,3) The above minterms can be represented in K-map. All the present terms are marked as 1 and remaining cells are marked as 0. As the function is of two-variables, a two-variable K-map is used for representation. B A 0 1 1 1 2 0 3 1 3.2.2 Representation POS on K-map If the given Boolean expression is not in standard POS form, it should be first converted to standard POS form. Then its maxterms are written. For each maxterm in the expression, 0 is written in the corresponding cell in the K-map and the remaining cells are marked as 1. Represent following Boolean expression by K-map. Y = (A + B) + (A + B + C ) + (A + B + C ) The above expression is in POS form. It is a function of three variables A, B and C. As each term is not containing all the variables, it is not in standard POS form. So, converting it into standard POS form, = (A + B) + (A + B + C ) + (A + B + C ) = (A + B + C. C ) + (A + B + C ) + (A + B + C ) = (A + B + C) + (A + B + C ) + (A + B + C ) + (A + B + C ) = (A + B + C) + (A + B + C ) + (A + B + C ) 0 0 0 0 1 1 1 = M(0,1,7) M0 M1 M7 The above maxterms can be represented in K-map. All the present terms are marked as 0 and remaining cells are marked as 1. As the function is of three variables, a three-variable K-map is used for representation. BC A 0 0 0 3 1 2 1 1 4 1 5 1 7 0 6 1 3-9

Represent following expression using K-map. f(a, B, C, D) = M(1,3,5,7,9,11,13,15) The above maxterms can be represented in K-map. All the present terms are marked as 0 and remaining cells are marked as 1. As the function is of four-variables, a four-variable K-map is used for representation. CD AB 00 1 0 3 0 2 1 01 4 1 5 0 7 0 6 1 11 12 1 13 5 4 1 10 8 1 9 1 Example 3: Represent following expression using K-map. Y = M(0,2) The above maxterms can be represented in K-map. All the present terms are marked as 0 and remaining cells are marked as 1. As the function is of two-variables, a two-variable K-map is used for representation. B A 0 0 1 1 2 0 3 1 3.2.3 Grouping of adjacent cells K-maps are used for simplification of Boolean expressions. The simplification is based on grouping of the terms in adjacent cells. Important aspects of grouping are discussed below. - Number of cells in a group must always be a power of 2. (i.e. 1, 2, 4, 8, 16 etc.) - Two cells are said to be adjacent if they differ in only one variable. Four cells are said to be adjacent if they differ in two variables. Eight cells are said to be adjacent if they differ in three variables and so on. - If K-map is represented for a SOP, grouping is done for adjacent 1 s and if K-map is represented for a POS, grouping is done for adjacent 0 s. - While grouping, each cell containing 1 in case of SOP ( 0 in case of POS) must be considered at least once. - We should try to make minimum number of groups (i.e. each group of maximum possible size). - Don t care entries may be considered in any group. 3-10