20
Chapter 3 Gate-level Minimization

Chapter 3 Gate-level Minimization. 3-7 NAND and NOR Implementation Digital circuits are frequently constructed with NAND or NOR gates rather than with

Embed Size (px)

Citation preview

Page 1: Chapter 3 Gate-level Minimization. 3-7 NAND and NOR Implementation Digital circuits are frequently constructed with NAND or NOR gates rather than with

Chapter 3Gate-level Minimization

Page 2: Chapter 3 Gate-level Minimization. 3-7 NAND and NOR Implementation Digital circuits are frequently constructed with NAND or NOR gates rather than with

3-7 NAND and NOR Implementation

Digital circuits are frequently constructed with NANDor NOR gates rather than with AND and OR gates

2

Page 3: Chapter 3 Gate-level Minimization. 3-7 NAND and NOR Implementation Digital circuits are frequently constructed with NAND or NOR gates rather than with

NAND CircuitsNAND gate: a universal gate

– Any digital system can be implemented with it

• including AND, OR and complement

=

3

Page 4: Chapter 3 Gate-level Minimization. 3-7 NAND and NOR Implementation Digital circuits are frequently constructed with NAND or NOR gates rather than with

Two-Level Implementation with NAND

sum of product expression and its equivalentNAND implementation

F = AB + CD

= [(AB + CD)’]’

= [(AB)’*(CD)’]’

4

Page 5: Chapter 3 Gate-level Minimization. 3-7 NAND and NOR Implementation Digital circuits are frequently constructed with NAND or NOR gates rather than with

Example 3-10Implement the following Boolean function with NAND gates

5

Page 6: Chapter 3 Gate-level Minimization. 3-7 NAND and NOR Implementation Digital circuits are frequently constructed with NAND or NOR gates rather than with

Procedures of Implementation withtwo levels of NAND gates

1. Express simplified function in sum of products

2. Draw a NAND gate for each product term thathas at least two literals to constitute a group offirst-level gates

3. Draw a singlegate using AND-invert or invert-OR in the second level

4. A term with a single literal requires an inverter inthe first level

6

Page 7: Chapter 3 Gate-level Minimization. 3-7 NAND and NOR Implementation Digital circuits are frequently constructed with NAND or NOR gates rather than with

Multilevel NAND Circuits1. Convert all AND gates to NAND gates with AND-invert graphic symbols

2. Convert all OR gates to NAND gates with invert-OR graphic symbols3. Check all the bubbles in the diagrams. For a single bubble, invert an

inverter (one-input NAND gate) or complement the input literal

7

Page 8: Chapter 3 Gate-level Minimization. 3-7 NAND and NOR Implementation Digital circuits are frequently constructed with NAND or NOR gates rather than with

Figure 3-23 Implementing F=(AB’ + A’B)(C+D’)

8

Page 9: Chapter 3 Gate-level Minimization. 3-7 NAND and NOR Implementation Digital circuits are frequently constructed with NAND or NOR gates rather than with

NOR Circuite•The NOR operation is the dualof the NAND operation•The NOR gate is anothar universal gate to implement any

Boolean function

=

9

Page 10: Chapter 3 Gate-level Minimization. 3-7 NAND and NOR Implementation Digital circuits are frequently constructed with NAND or NOR gates rather than with

NOR Implementation

Transformation from OR-ANDdiagram to NOR diagram•OR gates => OR-invert

•AND gate => invert-AND

10

Page 11: Chapter 3 Gate-level Minimization. 3-7 NAND and NOR Implementation Digital circuits are frequently constructed with NAND or NOR gates rather than with

3-8 Other Two-level Implementationswired logic: some NAND or NOR gates allow a cirect wire

connection between the outputs of two gates to provide a

specific logic function

– The wired-AND gate or wired-OR gate is not a physical second-levelgate, but only asymbol

11

Page 12: Chapter 3 Gate-level Minimization. 3-7 NAND and NOR Implementation Digital circuits are frequently constructed with NAND or NOR gates rather than with

Nondegeneratd Forms• 16 possible combinations of two-level forms with 4types of gates: AND, OR, NAND, and NOR

– 8 degenerate forms: degenerate to a single operation

– 8 generate forms• NAND-AND = AND-NOR = AND-OR-INVERT• OR-NAND = NOR-OR = OR-AND-INVERT

NOR x OR 3-6NOR

= NAND 3-6 AND

3-4 OR x NOR

NAND

OR

AND 3-4 NAND =

1 \ 2

AND

st nd NORNANDORAND

12

Page 13: Chapter 3 Gate-level Minimization. 3-7 NAND and NOR Implementation Digital circuits are frequently constructed with NAND or NOR gates rather than with

AND-OR-INVERT ImplementationAND-NOR= NAND-AND = AND-OR-INVERT

F = (AB + CD + E)’

Similar to AND-OR, AND-OR-INVERT requires anexpression in sum of products

Given F, we can implement F’ with AND-OR-INVERT

13

Page 14: Chapter 3 Gate-level Minimization. 3-7 NAND and NOR Implementation Digital circuits are frequently constructed with NAND or NOR gates rather than with

OR-AND-INVERTImplementation

OR-NAND = NOR-OR = OR-AND-INVERTF = [ (A+B) (C+D) E ] ’

Similar to OR-AND, OR-AND-INVERT requires an

expression in products of sumGiven F, we can implement F’ with OR-AND-INVERT

14

Page 15: Chapter 3 Gate-level Minimization. 3-7 NAND and NOR Implementation Digital circuits are frequently constructed with NAND or NOR gates rather than with

Exxmple 3-11Other Two-levelImplementations

F = x’y’z’ + xyz’

F’ = x’y + xy’ + z

F = (x’)’ = (x’y + xy’ + z)’

15

Page 16: Chapter 3 Gate-level Minimization. 3-7 NAND and NOR Implementation Digital circuits are frequently constructed with NAND or NOR gates rather than with

XOR: x y = xy’ + x’y Exclusive-NOR = equivalenxe

(x y)’ = (xy’ + x’y)’= (x’ + y)(x + y’) = x’y’ + xy

Communtative: A B = B AAssociative: (A B) C = A(B C) = A B COnly a limited number of Booleanfunctions can be expressed in terms of

XOR operations, but it is particularlyuseful in arithmetic operations and

error-detection and correction circuits

3-8 Exclusive-OR (XOR) Function

16

Page 17: Chapter 3 Gate-level Minimization. 3-7 NAND and NOR Implementation Digital circuits are frequently constructed with NAND or NOR gates rather than with

Odd Function• The 3-variable XOR function is equal to 1 if only one variable

is equal to 1 or if all three variables are equal to 1• Multiple-variable exclusive OR operation = odd function : odd

number of variables be equal to 1

17

Page 18: Chapter 3 Gate-level Minimization. 3-7 NAND and NOR Implementation Digital circuits are frequently constructed with NAND or NOR gates rather than with

Figure 3-35 map for a 4-variable XOR Function

18

Page 19: Chapter 3 Gate-level Minimization. 3-7 NAND and NOR Implementation Digital circuits are frequently constructed with NAND or NOR gates rather than with

Parity Generation and Checking

parity bit: an extra bit included with a binary message

tomake the number of 1’s either odd or even

3-bit even-parity-generatorP=xyz

19

Page 20: Chapter 3 Gate-level Minimization. 3-7 NAND and NOR Implementation Digital circuits are frequently constructed with NAND or NOR gates rather than with

4-bit Even-Parity-Checker

C = xyzP

P = 04-bit even parity checker= 3-bit even parity generator

20