www.getmyuni.com 10CS 33 LOGIC DESIGN UNIT – 2 Combinational Logic Circuits

Unit – 2 Combinational Logic Circuits

Objectives

• Understand what are combinational logic circuits • Use the sum-of-products method to design a logic circuit based on a design truth table • Be able to make Karnaugh maps and use them to simplify Boolean expressions

Introduction

Logic Circuits are categorized into 2 types (based on whether they contain memory or not):

• Combinational Logic Circuits o Circuits without memory • Sequential Logic Circuits o Circuits with memory

Combinational Logic Circuits

The output of combinational logic circuit depends only on the current inputs. A combinational logic circuit block is as shown below:

There are two fundamental approaches in logic design. They are:

• The Sum-of-Products (SOP) Method

– Solution results in an AND-OR or NAND-NAND network

Page 1 www.getmyuni.com 10CS 33 LOGIC DESIGN UNIT – 2 Combinational Logic Circuits

• The Product-of-Sums (POS) Method

– Solution results in an OR-AND or NOR-NOR network

We select a simpler circuit because it costs less and is more reliable.

The Sum-of-Products (SOP) Method

Product term

A product term is a conjunction of literals, where each literal is either a Boolean variable or its complement.

Examples: A . B A’ . B. C’ A

Fundamental product or Minterm

For a function of n variables, a product term in which each of the n variables appears once (in uncomplemented or complemented form) is called a fundamental product or minterm

Fundamental Products for Two inputs

Consider two inputs A and B. The fundamental products or minterms are listed below:

Inputs Fundamental products or A B minterms

0 0 m0 = A’ . B’

0 1 m1 = A’ . B

1 0 m2 = A . B’

1 1 m3 = A . B

Sum-of-Products (SOP) Equation

The SOP equation can be represented by an expression that is a sum of minterms, where each minterm is ANDed with the value of Y for the corresponding valuation of input variables.

Consider,

Y = m0 . 0 + m1 . 1 + m2 . 1 + m3 . 1

= m1 + m2 + m3

= A’ . B + A . B’ + A . B

Page 2 www.getmyuni.com 10CS 33 LOGIC DESIGN UNIT – 2 Combinational Logic CircuitsCircuits

Compact form

Y = f(A, B) = Σ m(1, 2, 3)

Truth Table:

Inputs Output

A B Y 0 0 0 0 1 1 1 0 1 1 1 1 Logic Circuit

For the obtained SOP equation, we can realize the logic circuit by drawing an AND-OR network as shown below:

Another way of realization is by a NAND-NAND network as shown below:

Simplified Logic Circuit

Consider the Boolean SOP equation:

Y = A’ . B + A . B’ + A . B

Page 3 www.getmyuni.com 10CS 33 LOGIC DESIGN UNIT – 2 Combinational Logic CircuitsCircuits

We can simplify it

Y = A’ . B + A . B’ + A . B + A . B

= A’ . B + A . B + A . B’ + A . B

= B . (A’ + A) + A . (B’ + B)

= B . 1 + A . 1 = B + A = (A + B)

Logic Circuit:

Y = (A + B)

Canonical Sum-of-Products Form

If each product term is a minterm, then the expression is said to be in a canonical sum--of-products form or standard SOP form.

Example:

Y = A’ . B + A . B’ + A . B (canonical SOP form)

Y = A + B (simplified form)

3 Variable Example:

Y = A’ . B . C + A . B’ . C + A . B . C’ + A . B . C

= F(A, B, C)

= Σ m(3, 5, 6, 7)

Simplification

Y = A’ . B . C + A . B’ . C + A . B . C’ + A . B . C

Y = B . C . (A’ + A) + A . C .(B’ + B) + A . B . (C’’ ++ C)C) usingusing AdjacencyAdjacency TheoremTheorem

= B . C. 1 + A . C . 1 + A . B . 1

= B . C + A . C + A . B

Y = A . B + A . C + B . C

Page 4 www.getmyuni.com 10CS 33 LOGIC DESIGN UNIT – 2 Combinational Logic CircuitsCircuits

The simplified logic expression is realized using NAND gates as shown below:

Truth Table To Karnaugh Map

A Karnaugh map (K-map) is a visual display of the fundamental productss forfor aa SOPSOP solutionsolution. K-map is a modification of the and refinement of Edward Veitch's diagram. K-map was developed by Maurice Karnaugh, an American Physicist.

2 – Variable Karnaugh Map

Consider the Venn diagram for the two variables A and B.

The diagram is rewritten as shown below:

Page 5 www.getmyuni.com 10CS 33 LOGIC DESIGN UNIT – 2 Combinational Logic Circuits

Next, we obtain the Karnaugh map for two variables as shown below:

A’B’ A’B

AB’ AB

Alternate representation for Karnaugh map is as shown below:

Karnaugh Map Simplification

Consider a two-variable logic circuit. The first step is to convert 2-variable truth table into its Karnaugh map (K-map).

Page 6 www.getmyuni.com 10CS 33 LOGIC DESIGN UNIT – 2 Combinational Logic Circuits

Example: Consider a two-variable truth table as given below:

Inputs Output

A B f 0 0 0 0 1 1 1 0 1 1 1 1

The two-variable K-map is drawn as shown below:

Terminology

Literal

A given product term consists of some number of variables, each of which may be in uncomplemented or complemented form. Each appearance of a variable, either in uncomplemented or complemented, is called a literal.

Example: The product term AB’C has 3 literals, and the term A’BC’D has 4 literals

Implicant

A product term that indicates the input valuation for which a given function is equal to 1 is called an implicant of the function. Also there are the implicants that correspond to all possible pairs of minterms that can be combined (set of 2i minterms, i<=n).

Prime Implicant

An implicant is called prime implicant if it is not a subset of another implicant of the function.

Page 7 www.getmyuni.com 10CS 33 LOGIC DESIGN UNIT – 2 Combinational Logic Circuits

Essential Prime Implicant

A prime implicant which includes a 1 cell that is not included in any other prime implicant is called an essential prime implicant.

K-map Simplification Steps

The K-map simplification steps are:

1. Generate all prime implicants for the given function f

2. Find the set of essential prime implicants

3. If the set of essential prime implicants covers all valuations for which function f =1, then this set is the desired cover of f

Otherwise, determine the nonessential prime implicants that should be added to form a complete minimum-cost cover

Example:

The map contains 2 pairs of 1s which are prime implicants p1 and p2. They cover all valuations for which f = 1. Both p1 and p2 are essential.

Consider the essential prime implicant p1.

Page 8 www.getmyuni.com 10CS 33 LOGIC DESIGN UNIT – 2 Combinational Logic Circuits

As we move from the first 1 to second 1, only one variable goes from complemented to uncomplemented form i.e. A’ to A; the other variable B does not change. Whenever this happens, you can eliminate the variable that changes form and we have p1 = B.

Next, consider the essential prime implicant p2.

Similarly p2 = A.

Hence we have the simplified Boolean expression

f(A, B) = A + B

Questions

1. Explain the definition of combinational logic.

2. Write the truth table of the logic circuit having 3 inputs A, B & C and the output expressed as Y = AB’C + ABC. Also simplify the expression using and implement the logic circuit using NAND gates.

3. Define prime implicant and essential prime implicant.

Page 9 www.getmyuni.com 10CS 33 LOGIC DESIGN UNIT – 2 Combinational Logic Circuits

Unit – 2

Combinational Logic Circuits

Objectives

• Draw 3- variable and 4- variable Karnaugh maps and use them to simplify Boolean expressions • Understand don’t Care Conditions • Use the Product-of-Sums Method to design a logic circuit based on a design truth table • Perform conversion between SOP and POS

3 - Variable Karnaugh Map

Consider a logic equation Y = f(A, B, C). We have 8 fundamental products or minterms as shown below. We need to arrange them so that they are adjacent.

A B C Minterms

0 0 0 A’B’C’ m0

0 0 1 A’B’C m1

0 1 0 A’BC’ m2

0 1 1 A’BC m3

1 0 0 AB’C’ m4

1 0 1 AB’C m5

1 1 0 ABC’ m6

1 1 1 ABC m7

Adjacent terms differ in the values of only one variable. A given 3-variable minterm will have 3 adjacent terms.

Example: 3 adjacent terms of minterm ABC are: A’BC, AB’C, ABC’

We use to position the minterms. In Gray code, consecutive codes differ in one variable only.

Page 1 www.getmyuni.com 10CS 33 LOGIC DESIGN UNIT – 2 Combinational Logic Circuits

3- bit Gray Code

The 3-bit Gray code is tabulated below:

G2 G1 G0 0 0 0 0 0 1 0 1 1 0 1 0 1 1 0 1 1 1 1 0 1 1 0 0

The 3 - variable Karnaugh map is drawn as shown making use of the Gray code.

3- Variable K-map Simplification

Example 1:

Consider Y = f(A, B, C) = Σ m (2, 3, 4, 6) = A’BC’ + A’BC + AB’C’ + ABC’

The Karnaugh map for the given logic expression is drawn as shown below:

The simplified expression Y = A’B + AC’

Page 2 www.getmyuni.com 10CS 33 LOGIC DESIGN UNIT – 2 Combinational Logic Circuits

Example 2:

Simplify Y = f(A, B, C) =Σ m (0, 2, 4, 6).

The Karnaugh map for the given logic expression is drawn as shown below:

The simplified expression is Y= C’.

Example 3:

Simplify Y = f(A, B, C) =Σ m (1, 2, 3, 5, 6, 7)

The Karnaugh map for the given logic expression is drawn as shown below:

The simplified expression Y= B + C.

Page 3 www.getmyuni.com 10CS 33 LOGIC DESIGN UNIT – 2 Combinational Logic Circuits

4 – Variable Karnaugh Map

Consider a logic equation Y = f(A, B, C,D). We have 16 fundamental products or minterms and they are arranged so that they are adjacent (4-bit Gray code is used).

4-Variable K-map Simplification

Example 1:

Simplify Y = f(A, B, C, D) = Σ m (1, 2, 3, 6, 8, 9, 10, 12, 13, 14).

The simplified Boolean equation is Y = A’B’D + AC’ + CD’.

Page 4 www.getmyuni.com 10CS 33 LOGIC DESIGN UNIT – 2 Combinational Logic Circuits

Example 2:

Simplify Y = Σ m (0, 1, 2, 4, 5, 6, 8, 9, 10, 12, 13).

The simplified equation is Y = C’ + A’D’ + B’D’.

Example 3:

Simplify Y = Σ m (3, 4, 5, 7, 9, 13, 14, 15).

Note that the quad covering minterms 5, 7, 13, and 15 is not a prime implicant. We cover the minterms as shown:

Page 5 www.getmyuni.com 10CS 33 LOGIC DESIGN UNIT – 2 Combinational Logic Circuits

The simplified logic equation is Y = A’BC’ + A’CD + AC’D + ABC .

Don’t Care Conditions

In some digital systems, certain inputs conditions never occur. The output for the invalid inputs is not defined and it is indicated by an X in the truth table. The X is called a don’t care condition. X can be considered to be either 0 or 1, whichever produces a simpler logic circuit.

Example: Truth Table with Don’t Care Conditions

A B C Y 0 0 0 0 0 0 1 1 0 1 0 0 0 1 1 1 1 0 0 0 1 0 1 X 1 1 0 X 1 1 1 X

From the truth table, we have Y = Σ m(1, 3) + d(5, 6, 7).

Page 6 www.getmyuni.com 10CS 33 LOGIC DESIGN UNIT – 2 Combinational Logic CircuitsCircuits

K-map Simplification with Don’t Care Conditions

Consider simplification of the K-map shown below:

The don’t care terms 5 and 7 are included in the quadquad cover since they help if greater simplification. The don’t care term 6 does not help in simplification and is ignored. The simplified equation is Y = C.

Example 2:

Obtain the simplified logic equation for the given K-map below:

The simplified logic equation is Y = A + C.

Product-of-Sums Method

The solution from the product-of-sums method results in an OR-AND or NOR-NOR network as shown below.

OR-AND network

Page 7 www.getmyuni.com 10CS 33 LOGIC DESIGN UNIT – 2 Combinational Logic CircuitsCircuits

NOR-NOR network

Sum term

A sum term is a disjunction of literals, where each literal is either a Boolean variable or its complementcomplement .

Examples: A + B A’ + B + C’ A

Fundamental Sum or Maxterm

For a function of n variables, a sum term in which each of the n variables appears once (in uncomplemented or complemented form) is called a fundamental sum or Maxterm.

Fundamental Sums for Two inputs

Inputs Fundamental sums

or Maxterms A B

0 0 M0 = A + B

0 1 M1 = A + B’

1 0 M2 = A’ + B

1 1 M3 = A’ + B’

Product-of-Sums (POS) Equation

Given the truth table, we identify the fundamental sums or Maxterms. Then by ANDing these sums, we get the Product-of-Sums (POS) equation. Note that the fundamental sum produces an output 0.

Page 8 www.getmyuni.com 10CS 33 LOGIC DESIGN UNIT – 2 Combinational Logic Circuits

Inputs Output A B Y 0 0 0 0 1 0 1 0 0 1 1 1

From the above truth table we have Y = (A + B).(A + B’).(A’ + B) = M0.M1.M2

In compact form Y = f(A, B, C) = πM(0, 1, 2).

The logic circuit is as shown below:

OR-AND network

The expression can be further simplified. Consider KK-map simplification.. WeWe obtainobtain thethe simplifiedsimplified expression as Y = A . B and it is realized by a simple AND gate as shown below:

Page 9 www.getmyuni.com 10CS 33 LOGIC DESIGN UNIT – 2 Combinational Logic Circuits

Canonical Product-of-Sums Form

Consider Y = f(A, B) = (A + B).(A + B’).(A’ + B). It is in canonical POS form. If each sum term is a maxterm, then the expression is said to be in a canonical product- of-sums form or standard POS form.

POS Simplification

Example:

Reduce the following function using Karnaugh map technique

f(A, B, C, D) = πM(0, 2, 4, 10, 11, 14, 15)

The K-map for the given logic function is drawn as shown below:

The simplified logic equation in POS form is Y = (A + B + D). (A + C + D). (A’ + C’).

Conversion between SOP and POS

SOP and POS occupy complementary locations in a truth table. One representation can be obtained by the other by

1. Identifying complementary locations 2. Changing minterm to maxterm or reverse 3. Changing summation by product or reverse Example:

Consider Y = f(A, B, C) = πM(0, 3, 6). The SOP equivalent is Y= Σm(1, 2, 4, 5, 7).

Page 10 www.getmyuni.com 10CS 33 LOGIC DESIGN UNIT – 2 Combinational Logic Circuits

Questions

1. Simplify the following logic expression using Karnaugh map method.

i) f(A,B,C,D) = ∑m (1, 2, 8, 9, 10, 12, 13, 14)

ii) f(P, Q, R, S) = ∑m (1, 2, 8, 9, 10, 12, 13, 14)

2. Using Karnaugh map simplify the following Boolean expression and give the implementation of the same using: i) NAND gates only (SOP form) ii) NOR gates only (POS form)

f(A,B,C,D) = ∑m (0, 1, 2, 4, 5, 12, 14)+dc(8, 10).

3. Simplify the following logic equation using Karnaugh map and give the implementation of the simplified expression:

f(A,B,C,D) = ∑m (7) + d(10, 11, 12, 13, 14, 15)

4. Simplify the following by using K-map method in POS form:

f(A,B,C,D) = ∑m (0, 1, 2, 3, 4, 5, 7)

5. Simplify the following using K-map:

f(A,B,C,D) = A’B’C + AD + BD’ + CD’ + AC’ + A’B’

6. Simplify the following using K-map and design it by using NAND gates (use only four gates):

f = w’xz + w’yz + x’yz’ + wxy’z; d = wyz

Page 11 www.getmyuni.com 10CS 33 LOGIC DESIGN UNIT – 2 Combinational Logic Circuits

Unit – 2

Combinational Logic Circuits

Objectives

• Use 5 – Variable Karnaugh Map and Entered Variable Map to simplify Boolean expressions • Use Quine-McClusky tabular method for simplification of Boolean expressions having more than 4 variables

5 – Variable Karnaugh Map

A given 5-variable minterm will have 5 adjacent terms. One way of drawing Karnaugh map for 5 variables is as shown below. The visual advantage of identifying the adjacent terms is not there.

Example:

The simplified expression is Y = B’D’ + BCDE + ABE’

Entered Variable Map

In entered variable map one of the input variables is placed inside Karnaugh map. This is done separately noting how the input variable is related with output. This reduces the Karnaugh map size by one degree. This technique is particularly useful for mapping problems with more than four input variables.

Page 1 www.getmyuni.com 10CS 33 LOGIC DESIGN UNIT – 2 Combinational Logic Circuits

Example:

Consider the 3 - variable truth table as shown below. The output Y is rewritten in terms of variable C.

A B C Y Y 0 0 0 0 0 0 0 1 0 0 1 0 1 C’ 0 1 1 0 1 0 0 0 0 1 0 1 0 1 1 0 1 1 1 1 1 1

The 3 – variable truth table reduces to 2 – variable truth table as shown below:

A B Y

0 0 0

0 1 C’ 1 0 0 1 1 1

The 2 – variable Karnaugh map is drawn as shown below:

The Karnaugh map is now called an entered variable map. The simplification of entered variable map is as illustrated next:

Page 2 www.getmyuni.com 10CS 33 LOGIC DESIGN UNIT – 2 Combinational Logic Circuits

The product term representing each group is obtained by including map entered variable in the group as an additional ANDed term. Group 1 gives B.(C’) and group 2 gives AB.1. Therefore, the simplified expression is obtained as Y = BC’ + AB.

Disadvantage of Karnaugh Map Simplifications

Karnaugh map depends on the user’s ability to identify patterns. It becomes difficult to adapt for simplification of 5 or more variables.

Simplification by Quine-McClusky Method

Quine-McClusky method is a systematic approach for logic simplification. It was developed by W. V. Quine and Edward J. McCluskey. It is functionally identical to Karnaugh map. It does not have the limitation of number of variables. The tabular form makes it more efficient for use in computer algorithms. It is also called as the tabulation method.

Main Steps

The 2 main steps are:

1. Find all prime implicants of the given Boolean equation. 2. Use the prime implicants in a prime implicant chart to find the essential prime implicants and other prime implicants that are required to completely cover the given equation.

Example 1:

Simplify the following function:

Y = f(A, B, C, D) = Σ m(0, 1, 2, 3, 10, 11, 12, 13, 14, 15)

Solution:

Step 1

We find all Prime Implicants.

Page 3 www.getmyuni.com 10CS 33 LOGIC DESIGN UNIT – 2 Combinational Logic Circuits

In stage 1 of this step, the minterms are put in to different groups depending on the number of 1’s they have in their binary equivalents. In each group the minterms are ordered in increasing values of their decimal equivalent.

Finding Number of 1’s

No. No. Binary Binary Minterms of Minterms of rep. rep. 1’s 1’s 0 0000 0 11 1011 3 1 0001 1 12 1100 2 2 0010 1 13 1101 3 3 0011 2 14 1110 3 10 1010 2 15 1111 4

Stage 1

Stage 1 No. of Minterm Binary Representation 1’s 0 0 0 0 0 0 1 1 0 0 0 1 2 0 0 1 0 2 3 0 0 1 1 10 1 0 1 0 12 1 1 0 0 3 11 1 0 1 1 13 1 1 0 1 14 1 1 1 0 4 15 1 1 1 1

In stage 2, we form pairs, i.e. compare minterms of group n and group n + 1 ( n varies from 0 to 3). Where there is only one bit change in the binary representations, the corresponding variable is eliminated using the adjacency theorem and in its position a dash ( - ) is written. After the stage 2 process the table is obtained as shown:

Page 4 www.getmyuni.com 10CS 33 LOGIC DESIGN UNIT – 2 Combinational Logic Circuits

Next we go to stage 3 and same process is repeated i.e. pair of pairs is formed. After the stage 3 process we stop since further comparison is not possible. Next, we check off all minterms or group of minterms that are covered by larger groups. The unchecked minterms are the prime implicants as shown below:

Page 5 www.getmyuni.com 10CS 33 LOGIC DESIGN UNIT – 2 Combinational Logic Circuits

Step 2.

We find essential prime implicants using the prime implicant chart. The chart is drawn as shown below. Prime implicants are shown as rows and minterms as columns. An ‘X’ is placed to indicate the covering of the minterm by the prime implicant. For example, minterms 0, 1, 2, and 3 are covered by prime implicant A’B’.

Find the column that has a single ‘X’ and circle it. The associated prime implicant is an essential prime implicant since it covers at least one minterm not covered by other prime implicants. An asterisk (*) is placed to indicate that the prime implicant is essential. Then check off all the minterms covered by the essential prime implicants as shown below:

Since all the minterms are not checked off, we have to find secondary essential prime implicants by drawing a reduced prime implicant chart. The reduced chart is obtained by removing the essential prime implicants that are already found and included in the solution and also removing the checked off minterms.

Page 6 www.getmyuni.com 10CS 33 LOGIC DESIGN UNIT – 2 Combinational Logic Circuits

The reduced prime Implicant chart is as shown below:

Minterms √ √ PIs 10 11

B’C X X

**AC X X

We note that column with single ‘X’ is not there. The complexity or cost of both the prime implicants are same. So we select one of them as secondary essential prime implicants (say, AC). It covers all the minterms. So we have the solution:

Y = A’B’ + AB + AC

Example 2:

Minimize f(A, B, C, D) = Σ (0, 1, 2, 8, 9, 15, 17, 21, 24, 25, 27, 31).

Step 1: Say we have obtained the following prime implicants:

P1: BC’D’ P4: ABDE P7: ABC’D’ P10: A’B’C’E’

P2: C’D’E P5: BCDE P8: A’B’D’E P11: A’B’C’D’

P3: A’C’D’ P6: ABC’E P9: B’C’D’E

Step 2: Prime Implicant Chart

Page 7 www.getmyuni.com 10CS 33 LOGIC DESIGN UNIT – 2 Combinational Logic Circuits

The prime implicants P5, P7, and P10 are essential. They are included in the solution. They do not cover all the minterms. So secondary essential prime implicants have to be found by using the reduced prime implicant chart.

Reduced Prime Implicant Chart (Essential prime implicants removed)

1 8 9 24 25 27

P1 X X X X

P2 X X X

P3 X X X

P4 X

P6 X X

P7 X X

P9 X

P11 X

We are not able to find columns with single ‘X’. Now we find the dominance relations.

Column Dominance:

9 > 8

25 > 24

Row Dominance:

P1 > P7

P6 > P4

P2 > P9

P2 > P11

Prime Implicant Chart Reduction Steps:

1. All the dominating columns and dominated rows of a prime-implicant chart can be removed without affecting the table for obtaining a minimal solution. 2. Dominating column is guaranteed to be covered by the row that covers its dominated column. 3. The columns of the dominated row are guaranteed to be covered by its dominating row.

Page 8 www.getmyuni.com 10CS 33 LOGIC DESIGN UNIT – 2 Combinational Logic Circuits

Finding Secondary Essential PIs

PI Chart after the dominating columns and the dominated rows are deleted:

Final Solution

Minterm 1 can be covered by P2 or P3. If we select P2, we have the solution:

Y = P1 + P2 + P5 + P6 + P8 + P10.

Questions

1. What are the drawbacks of Karnaugh map?

2. Define prime implicant and essential prime implicant. Find prime implicant and essential prime implicants for the following function using Quine-McClusky method:

f(a, b, c, d) = ∑m(0, 2, 3, 6, 7, 8, 10 , 12, 13)

3. Find the prime implicants for the following Boolean expressions using Quine Mc Clusky's method.

i. f(w, x, y, z) = ∑m(1, 3, 6, 7, 8, 9, 10, 12, 13, 14)

ii. f(a, b, c, d) = ∑m(1, 2, 8, 9, 10, 12, 13, 14)

ii. f(A, B, C, D) = ∑m(1, 3, 6, 7, 8, 9, 10, 12, 14, 15) + d(11, 13)

Page 9 www.getmyuni.com 10CS 33 LOGIC DESIGN UNIT – 2 Combinational Logic Circuits

Unit – 2

Combinational Logic Circuits

Objectives

• Review of combinational logic circuit design methods • Analyze hazards in logic circuit and provide solution for them

Problem Solving with Multiple Methods

We can simplify a given Boolean expression using one of following different methods:

• Boolean algebra • Karnaugh map • Entered variable map • Quine-McClusky method

Example:

Get a minimized expression for

Y = f (A, B, C) = Σ m(0, 1, 3, 5)

= A’B’C’ + A’B’C + A’BC + AB’C

Method – 1: Using Boolean Algebra

Y = A’B’C’ + A’B’C + A’BC + AB’C

= (A’B’C’ + A’B’C) + (A’BC + A’B’C) + (AB’C + A’B’C)

= A’B’(C’ + C) + A’C(B’ + B) + B’C(A + A’)

= A’B’.1 + A’C.1 + B’C.1

= A’B’+ A’C + B’C

(using Boolean Axioms: X = X + X and X + X’ =1)

Page 1 www.getmyuni.com 10CS 33 LOGIC DESIGN UNIT – 2 Combinational Logic Circuits

Method – 2: Karnaugh Map

The truth table for the given expression:

A B C Y 0 0 0 1 0 0 1 1 0 1 0 0 0 1 1 1 1 0 0 0 1 0 1 1 1 1 0 0 1 1 1 0

Page 2 www.getmyuni.com 10CS 33 LOGIC DESIGN UNIT – 2 Combinational Logic Circuits

Method – 3: Entered Variable Map

A B C Y Y

0 0 0 1 1 0 0 1 1

0 1 0 0 C 0 1 1 1 1 0 0 0 C 1 0 1 1

1 1 0 0 0 1 1 1 0

3 – Variable truth table reduces to 2 – variable truth table.

A B Y 0 0 1 0 1 C 1 0 C 1 1 0

The entered variable map is obtained as shown below:

Page 3 www.getmyuni.com 10CS 33 LOGIC DESIGN UNIT – 2 Combinational Logic Circuits

Simplification of EVM

Method – 4: Quine McCluskey Method

Y = f (A, B, C) = Σ m(0, 1, 3, 5)

Minterms Binary rep. No. of 1’s 0 000 0 1 001 1 3 011 2 5 101 2

Determination of Prime Implicants

Page 4 www.getmyuni.com 10CS 33 LOGIC DESIGN UNIT – 2 Combinational Logic Circuits

Prime Implicant Chart

Hazards and Hazard Covers

Simplification techniques give minimal expressions forfor a a logic logic equation equation. Simplified equations can be realized using minimum hardware. But to overcome some practical problems, in certain casescases wewe maymay prefer to include more terms in the simplified equation. Practical logic circuits do not generate outputs instantaneously. There is a finite propagation delay. This propagation delay gives rise to several hazards.

Hazard covers are additional terms in a logic equationion thatthat preventsprevents hazardshazards.. For combinational logic circuits hazard may go unnoticed but in sequential logic circuits it may cause major malfunctioning.

Page 5 www.getmyuni.com 10CS 33 LOGIC DESIGN UNIT – 2 Combinational Logic Circuits

Types of Hazards

Static Hazard

A static hazard exists if an output signal is supposedsupposed to remain at a particular logic value when an inputinput variable changes its value, but instead the signal undergoes a momentary change in its required value.

Static-1 Hazard

This type of hazard occurs when Y = A + A’ type of situation appears for a logic circuit for certain combination of other inputs and A makes a transition 1 → 0.

An A + A’ condition should always generate logic 1 at the output, i. e. static -1

A A’ Y = A + A’

1 0 1 + 0 = 1

0 1 0 + 1 = 1

Consider a simple logic circuit as shown:

The NOT gate output takes finite time to become logicic 11 followingfollowing 11 → 0 transition at the input A. The OR gate output goes to logic 0 for a small duration which is unwanted.

A A’ Y = A + A’ 1 0 1 + 0 = 1 0 0 0 + 0 = 0 0 1 0 + 1 = 1

The width of this logic 0 output is in nanoseconds and is called a glitch as shown in the figure next.

Page 6 www.getmyuni.com 10CS 33 LOGIC DESIGN UNIT – 2 Combinational Logic CircuitsCircuits

Glitch

Static-1 Hazard Cover

Consider an example Y = AC + BC’.. Corresponding logic circuit is as shown:

Consider input A = 1, B = 1, and C makes a transition 1 → 0. The output has a glitch and hencehence thethe circuitcircuit has static-1 hazard.

Consider the Karnaugh map simplification.

Page 7 www.getmyuni.com 10CS 33 LOGIC DESIGN UNIT – 2 Combinational Logic Circuits

The additional term AB ensures Y = 1 for A = 1 and B = 1 and a 1 → 0 transition at C does notnot affectaffect thethe output. The circuit free from static--1 hazard is as shown below:

Static-0 Hazard

This type of hazard occurs when Y = A . A’ type of situation appears for aa logiclogic ccircuit for certain combination of other inputs and A makes a transition 00 → 1. An A . A’ condition should always generate logic 0 at the output, i. e. static-0.

A A’ Y = A . A’ 0 1 0 . 1 = 0 1 0 1 . 0 = 0

Consider a simple logic circuit as shown:

The NOT gate output takes finite time to become logicic 00 followingfollowing 00 → 1 transition at the input A. The AND gate output goes to logic 1 for a small duration which is unwanted.

A A’ Y = A . A’ 0 1 0 . 1 = 0 1 1 1. 1 = 1 1 0 1 . 0 = 0

The width of this logic 1 output is in nanoseconds and is called aa glglitchitch as shown in the figure next.

Page 8 www.getmyuni.com 10CS 33 LOGIC DESIGN UNIT – 2 Combinational Logic CircuitsCircuits

Glitch

Static-0 Hazard Cover

Consider an example Y = (B + C).(A + C’). Corresponding logic circuit is as shown:

Consider the Karnaugh map simplification.

The additional term (A + B) ensures Y = 0 for A = 0, B = 0 and a 0 → 1 transition at C does not affect the output. The hazard free circuit is as shown next:

Page 9 www.getmyuni.com 10CS 33 LOGIC DESIGN UNIT – 2 Combinational Logic Circuits

Dynamic Hazard

Dynamic hazard causes glitches on 0 → 1 or 1 → 0 transitions of an output signal. When only one transition is required, the output makes multiple transitions. It is caused by the structure of the logic circuit, where there exists multiple paths for a given signal change to propagate along.

Dynamic hazards are encountered in multi-level circuits. They are not easy to detect. They can be avoided simply by using two-level circuits and ensuring that there are no static hazards.

Questions

1. Explain static-0 and static-1 hazard with example.

2. How do you eliminate static hazard? Give an example.

3. What is dynamic hazard? Where do you encounter dynamicdynamic hazards?hazards?

Page 10