2
Most read
Find all hazards in this circuit. Redesign the circuit as a three-level NOR circuit that is free of
all hazards Show how four 2-to-1 and one 4-to-1 multiplexers could be connected to form an 8-
to-1 MUX with three control inputs
Solution
1 University of Wisconsin - Madison ECE/Comp Sci 352 Digital Systems Fundamentals Charles
R. Kime Section 2 – Fall 2001 Chapter 2 – Combinational Logic Circuits – Part 7 Charles Kime
& Thomas Kaminski © 2001 Prentice Hall, Inc Logic and Computer Design Fundamentals Logic
and Computer Design Fundamentals © 2001 Prentice Hall, Inc Chapter 2-Part 7 2 NAND and
NOR Implementation We found that we could implement general Boolean equations with these
three primitives: • AND • OR • NOT In this section we will find that either of two gates, the
NAND gate or the NOR gate can be used to implement arbitrary logic functions. We use the
Positive Logic Convention (where all signals are active high) and a small circle to on a symbol to
represent NOT or invert. 2 Logic and Computer Design Fundamentals © 2001 Prentice Hall, Inc
Chapter 2-Part 7 3 NAND Gates The basic positive logic NAND gate is denoted by the
following symbol: • AND-Invert (NAND) NAND comes from NOT AND, I. e., the AND
function with a NOT applied. We call this symbol for a NAND gate an AND-Invert. The small
circle represents the invert function. If we apply DeMorgan's Law we get: X Y Z X YZ = X +
Y + Z F(X, Y,Z) = X Y Z Logic and Computer Design Fundamentals © 2001 Prentice Hall, Inc
Chapter 2-Part 7 4 NAND Gates (Cont.) Applying DeMorgan's Law gives: • Invert-OR
(NAND) We call this symbol for a NAND gate the Invert - OR since all inputs are inverted,
followed by the OR function. Both symbols represent the NAND gate - it is sometimes more
logically descriptive to use one form over the other. A NAND gate with one input degenerates to
an inverter. X Y Z F(X, Y,Z) = X + Y + Z 3 Logic and Computer Design Fundamentals © 2001
Prentice Hall, Inc Chapter 2-Part 7 5 NAND Function Implementation NAND gates can
implement a simplified Sum-ofProducts form. Constructing two level NAND-NAND gate
circuit: The first level is two 2-input NAND gates using ANDInvert. The second level is one 2-
input NAND gate using Invert-OR. Using the NAND relationship, we have: G(A,B,C,D) = AB
CD = AB + CD = A B + CD A B C D G(A,B,C,D) = AB + CD Logic and Computer Design
Fundamentals © 2001 Prentice Hall, Inc Chapter 2-Part 7 6 NAND Implementation (Cont.) In
the implementation, note that the bubbles are on opposite ends of the same line. Thus, they can
be combined and deleted: A B C D G(A,B,C,D) This form of the implementation is the Sum-of-
Products form. 4 Logic and Computer Design Fundamentals © 2001 Prentice Hall, Inc Chapter
2-Part 7 7 NAND Implementation (Cont.) In the implementation, the bubbles are on opposite
ends of the same line. By , they can be combined and deleted: A sum-of-products (SOP) form
results To implement an equation like: F(A,B,C) = A + BC, the NAND for A degenerates to a
NOT since there is only one input A B C D G(A,B,C,D) X = X Logic and Computer Design
Fundamentals © 2001 Prentice Hall, Inc Chapter 2-Part 7 8 Degenerate AND Term The
degenerate NAND becomes an inverter: To implement the complement of F using NAND gates,
add an inverter to the output: A B C F(A,B,C) A B C F'(A,B,C) 5 Logic and Computer Design
Fundamentals © 2001 Prentice Hall, Inc Chapter 2-Part 7 9 NAND-NAND Example Implement:
x z w 0132 4576 12 13 15 14 8 9 11 10 1111 1 1 1 1 1 0 0 000 0 0 y F’ (w,x,y,z) x y z w 0132
4576 12 13 15 14 8 9 11 10 1111 1 1 1 1 1 0 0 000 0 0 F(w,x,y,z) F(w, x, y, z) = y z + w x + x y
+ w z Logic and Computer Design Fundamentals © 2001 Prentice Hall, Inc Chapter 2-Part 7 10
Summary: Two-Level NAND Circuits Find minimum literal SOP form for F and F Select SOP
form with smallest literal count Convert selected form to NAND circuit using AND-invert
(inverters for single literal AND terms) and invert-OR symbols If SOP form for F used, add
inverter to circuit output. 6 Logic and Computer Design Fundamentals © 2001 Prentice Hall, Inc
Chapter 2-Part 7 11 NOR Gates The basic positive logic NOR gate (Not-OR) is denoted by the
following symbol: OR-Invert (NOR) This is called the OR-Invert, since it is logically an OR
function followed by an invert. By DeMorgan's Law we have the following Invert-AND symbol
for a NOR gate: X Y Z Invert-AND A single-input NOR gate is an inverter, too. X Y Z F(X,Y,Z)
= X+Y+Z Logic and Computer Design Fundamentals © 2001 Prentice Hall, Inc Chapter 2-Part 7
12 NOR Gates The basic positive logic NOR gate is denoted by the following symbol: • OR-
Invert (NOR) NOR comes from NOT OR, I. e., the OR function with a NOT applied. We call
this symbol for a NOR gate an OR-Invert. The small circle represents the invert function. If we
apply DeMorgan's Law we get: X +Y+Z = X Y Z X Y Z F(X,Y,Z) = X+Y+Z 7 Logic and
Computer Design Fundamentals © 2001 Prentice Hall, Inc Chapter 2-Part 7 13 NOR Gates
(Cont.) Applying DeMorgan's Law gives: • Invert-AND (NOR) We call this symbol for a NOR
gate the InvertAND since all inputs are inverted, followed by the AND function. Both symbols
represent the NOR gate - it is sometimes more logically descriptive to use one form over the
other. A NOR gate with one input degenerates to an inverter. F(X,Y,Z) = X Y Z X Y Z Logic
and Computer Design Fundamentals © 2001 Prentice Hall, Inc Chapter 2-Part 7 14
(A+B)+(C+D) NOR Function Implementation NAND gates can implement a simplified Sum-
ofProducts form. Constructing two-level NOR-NOR circuit: The first level is two 2-input NOR
gates using ORInvert. The second level is one 2-input NOR gate using Invert-AND. Using the
NOR relationship, we have: G(A,B,C, D) = = = (A+B) (C+D) G(A,B,C,D) = ( ) A + B ( ) C + D
A B C D (A+B) (C+D) 8 Logic and Computer Design Fundamentals © 2001 Prentice Hall, Inc
Chapter 2-Part 7 15 Useful Transformations From Involution (i.e. (A')' = A) and DeMorgan's
Law, we get the following useful equivalences: (A•B) = ((A•B)')' (A'+B')' (A+B) =
((A+B)')' (A'•B')' (A•B)' (A'+B') (A+B)' (A'•B') These simple transformations can be
used to manipulate a two level network. Logic and Computer Design Fundamentals © 2001
Prentice Hall, Inc Chapter 2-Part 7 16 Graphical Transformations The relations from the
previous slide lead to the following transformations: Recall that two bubbles in series can be
removed from the circuit (A •B) = ((A•B)')' (A'+B')' (A+B) = ((A+B)')' (A'•B')' (A •B)'
(A'+B') (A+B)' (A'•B') 9 Logic and Computer Design Fundamentals © 2001 Prentice Hall,
Inc Chapter 2-Part 7 17 General Two-level Implementations We need to consider whether the
form of a two-level implementation is to be: 1. SOP (AND-OR) or 2. POS (OR-AND).
Complemented output functions (i.e. AND-NOR or ORNAND) can be handled by
complementing the function. Given a function F expressed as a Karnaugh Map, we can use the
same general procedures we have used before to minimize the function and express it in SOP or
POS form. Logic and Computer Design Fundamentals © 2001 Prentice Hall, Inc Chapter 2-Part
7 18 General Implementations (Cont.) Given a two level implementation desired, use the
previous transfromations to get it into one of the below forms. Then follow the steps to transform
the function to the desired form: For Type: Use: AND-OR (SOP Form) Circle 1's in the K-Map
and minimize (Also use for NAND-NAND) AND-NOR (SOP complemented) Circle 0's in the
K-Map and minimize OR-AND (POS Form) Circle 0's in the K-Map and minimize SOP. Use
DeMorgan's to transform to POS. (Also use for NOR-NOR) OR-NAND (POS complemented)
Circle 1's in the K-Map and minimize SOP. Use DeMorgan's to transform to POS. 10 Logic
and Computer Design Fundamentals © 2001 Prentice Hall, Inc Chapter 2-Part 7 19
Implementation Example 1 Implement the function in NOR-OR. A B C 1 1 1 1 1 0 0 0 We can
remove the "Inverter" and replace it with the complement of the input variable Logic and
Computer Design Fundamentals © 2001 Prentice Hall, Inc Chapter 2-Part 7 20 Implementation
Example 2 A B 1 1 1 1 1 0 0 0 Implement the function in AND-NOR. 11 Logic and Computer
Design Fundamentals © 2001 Prentice Hall, Inc Chapter 2-Part 7 21 Multi-level NAND
Implementations Add inverters in two-level implementation into the cost picture Attempt to
“combine” inverters to reduce the term count Attempt to reduce literal + term count by factoring
expression into POSOP or SOPOS Logic and Computer Design Fundamentals © 2001 Prentice
Hall, Inc Chapter 2-Part 7 22 Multi-level NAND Example 1 F = A B’ + A C’ + B A’ + B C’ = A
A’ + A B’ + A C’ + B A’ + B B’ + B C’ = A (A’ + B’ + C’) + B (A’ + B’ + C’) F A C B 7 inputs
and 4 gates 15 inputs and 8 gates* * Counting inverters (NOTS) as 1 input and 1 gate 12 Logic
and Computer Design Fundamentals © 2001 Prentice Hall, Inc Chapter 2-Part 7 23 Multilevel
NAND Example 2 F = AB + AD’ + BC + CD’

More Related Content

PPTX
Combinational logic circuits design and implementation
PDF
Bt0064 logic design1
PPTX
Chapter_One.pptx of computer organization and
PPT
9525.ppt
PPT
Digital logic
PPT
Computer architecture
PPT
Computer architecture
PPT
Digital Logic Design
Combinational logic circuits design and implementation
Bt0064 logic design1
Chapter_One.pptx of computer organization and
9525.ppt
Digital logic
Computer architecture
Computer architecture
Digital Logic Design

Similar to Find all hazards in this circuit. Redesign the circuit as a three-le.pdf (20)

PPT
Chapter 3 2
PDF
Pp05
PPTX
digita circuit design.pptx
PPT
Chapter+13.ppt
PPT
Chapter 7. Functions of Combinational Logic
PPTX
Digital Logic Design presentation DLD Chap03 - Gate Lvl Min.pptx
PPT
Logic Fe Tcom
PPT
dld.ppt
PDF
Chapter 02 Logic Functions and Gates
PPTX
Boolean+logic
PPTX
Chapter 4: Combinational Logic
PDF
4. Combinational Logic Circuits not bad.pdf
PPTX
Nand or gates ver_student
PDF
Csc 2313 (lecture 4)
PPT
LOGIC CKT.ppt
DOCX
Deld lab manual
PPT
Digital Logic circuit
PPTX
assignment_mathematics.pptx
PPTX
B sc cs i bo-de u-ii logic gates
PPT
Lecture 5
Chapter 3 2
Pp05
digita circuit design.pptx
Chapter+13.ppt
Chapter 7. Functions of Combinational Logic
Digital Logic Design presentation DLD Chap03 - Gate Lvl Min.pptx
Logic Fe Tcom
dld.ppt
Chapter 02 Logic Functions and Gates
Boolean+logic
Chapter 4: Combinational Logic
4. Combinational Logic Circuits not bad.pdf
Nand or gates ver_student
Csc 2313 (lecture 4)
LOGIC CKT.ppt
Deld lab manual
Digital Logic circuit
assignment_mathematics.pptx
B sc cs i bo-de u-ii logic gates
Lecture 5
Ad

More from Arrowdeepak (20)

PDF
Firefly luciferase is a commonly used reporter gene. The gene origina.pdf
PDF
Fergie has the choice between investing in State of New York bond at.pdf
PDF
Explain the “life” of a secreted protein molecule - trace the pathwa.pdf
PDF
7. Using to Table 1 to assist you, explain the rational for the diver.pdf
PDF
A. list two vertebrae that spinal nerve t12 travels between .pdf
PDF
Do people from different cultures experience emotions differently O.pdf
PDF
Describe the basic elements found in robot controllers. (Choose all t.pdf
PDF
Consider the following probability distribution The Normal distribut.pdf
PDF
1. Please explain 1. What is cosolidation of a soi 2. What are the .pdf
PDF
What type of gametes did Sutton predict Mendel (parental, recombin.pdf
PDF
With reference to Barth (2014), discuss how the author assessed the .pdf
PDF
1. Peter Grant - the evolutionary biologist who has studied finches .pdf
PDF
COMMUTER PASSES Five different types of monthly commuter passes are o.pdf
PDF
If a researcher rejects a null hypothesis when that hypothesis is ac.pdf
PDF
Write an algorithm that reads a list of integers from the keyboard, .pdf
PDF
Which of the following values of r allows a perfect prediction of sc.pdf
PDF
Which of the following is a way in which meiosis differs from mitosi.pdf
PDF
What is the inheritance of the following pedigree X-linked recessiv.pdf
PDF
What is the profitability index for an investment with the following.pdf
PDF
What are the characteristics of each microscope 1.compound2.s.pdf
Firefly luciferase is a commonly used reporter gene. The gene origina.pdf
Fergie has the choice between investing in State of New York bond at.pdf
Explain the “life” of a secreted protein molecule - trace the pathwa.pdf
7. Using to Table 1 to assist you, explain the rational for the diver.pdf
A. list two vertebrae that spinal nerve t12 travels between .pdf
Do people from different cultures experience emotions differently O.pdf
Describe the basic elements found in robot controllers. (Choose all t.pdf
Consider the following probability distribution The Normal distribut.pdf
1. Please explain 1. What is cosolidation of a soi 2. What are the .pdf
What type of gametes did Sutton predict Mendel (parental, recombin.pdf
With reference to Barth (2014), discuss how the author assessed the .pdf
1. Peter Grant - the evolutionary biologist who has studied finches .pdf
COMMUTER PASSES Five different types of monthly commuter passes are o.pdf
If a researcher rejects a null hypothesis when that hypothesis is ac.pdf
Write an algorithm that reads a list of integers from the keyboard, .pdf
Which of the following values of r allows a perfect prediction of sc.pdf
Which of the following is a way in which meiosis differs from mitosi.pdf
What is the inheritance of the following pedigree X-linked recessiv.pdf
What is the profitability index for an investment with the following.pdf
What are the characteristics of each microscope 1.compound2.s.pdf
Ad

Recently uploaded (20)

PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPTX
TNA_Presentation-1-Final(SAVE)) (1).pptx
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
PDF
Weekly quiz Compilation Jan -July 25.pdf
PPTX
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
PDF
Trump Administration's workforce development strategy
PDF
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
PDF
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PDF
My India Quiz Book_20210205121199924.pdf
PPTX
Share_Module_2_Power_conflict_and_negotiation.pptx
PPTX
Introduction to pro and eukaryotes and differences.pptx
PDF
Environmental Education MCQ BD2EE - Share Source.pdf
PDF
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
PDF
Empowerment Technology for Senior High School Guide
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
PDF
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
DOCX
Cambridge-Practice-Tests-for-IELTS-12.docx
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
TNA_Presentation-1-Final(SAVE)) (1).pptx
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
Weekly quiz Compilation Jan -July 25.pdf
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
Trump Administration's workforce development strategy
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
My India Quiz Book_20210205121199924.pdf
Share_Module_2_Power_conflict_and_negotiation.pptx
Introduction to pro and eukaryotes and differences.pptx
Environmental Education MCQ BD2EE - Share Source.pdf
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
Empowerment Technology for Senior High School Guide
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
Cambridge-Practice-Tests-for-IELTS-12.docx

Find all hazards in this circuit. Redesign the circuit as a three-le.pdf

  • 1. Find all hazards in this circuit. Redesign the circuit as a three-level NOR circuit that is free of all hazards Show how four 2-to-1 and one 4-to-1 multiplexers could be connected to form an 8- to-1 MUX with three control inputs Solution 1 University of Wisconsin - Madison ECE/Comp Sci 352 Digital Systems Fundamentals Charles R. Kime Section 2 – Fall 2001 Chapter 2 – Combinational Logic Circuits – Part 7 Charles Kime & Thomas Kaminski © 2001 Prentice Hall, Inc Logic and Computer Design Fundamentals Logic and Computer Design Fundamentals © 2001 Prentice Hall, Inc Chapter 2-Part 7 2 NAND and NOR Implementation We found that we could implement general Boolean equations with these three primitives: • AND • OR • NOT In this section we will find that either of two gates, the NAND gate or the NOR gate can be used to implement arbitrary logic functions. We use the Positive Logic Convention (where all signals are active high) and a small circle to on a symbol to represent NOT or invert. 2 Logic and Computer Design Fundamentals © 2001 Prentice Hall, Inc Chapter 2-Part 7 3 NAND Gates The basic positive logic NAND gate is denoted by the following symbol: • AND-Invert (NAND) NAND comes from NOT AND, I. e., the AND function with a NOT applied. We call this symbol for a NAND gate an AND-Invert. The small circle represents the invert function. If we apply DeMorgan's Law we get: X Y Z X YZ = X + Y + Z F(X, Y,Z) = X Y Z Logic and Computer Design Fundamentals © 2001 Prentice Hall, Inc Chapter 2-Part 7 4 NAND Gates (Cont.) Applying DeMorgan's Law gives: • Invert-OR (NAND) We call this symbol for a NAND gate the Invert - OR since all inputs are inverted, followed by the OR function. Both symbols represent the NAND gate - it is sometimes more logically descriptive to use one form over the other. A NAND gate with one input degenerates to an inverter. X Y Z F(X, Y,Z) = X + Y + Z 3 Logic and Computer Design Fundamentals © 2001 Prentice Hall, Inc Chapter 2-Part 7 5 NAND Function Implementation NAND gates can implement a simplified Sum-ofProducts form. Constructing two level NAND-NAND gate circuit: The first level is two 2-input NAND gates using ANDInvert. The second level is one 2- input NAND gate using Invert-OR. Using the NAND relationship, we have: G(A,B,C,D) = AB CD = AB + CD = A B + CD A B C D G(A,B,C,D) = AB + CD Logic and Computer Design Fundamentals © 2001 Prentice Hall, Inc Chapter 2-Part 7 6 NAND Implementation (Cont.) In the implementation, note that the bubbles are on opposite ends of the same line. Thus, they can be combined and deleted: A B C D G(A,B,C,D) This form of the implementation is the Sum-of- Products form. 4 Logic and Computer Design Fundamentals © 2001 Prentice Hall, Inc Chapter 2-Part 7 7 NAND Implementation (Cont.) In the implementation, the bubbles are on opposite ends of the same line. By , they can be combined and deleted: A sum-of-products (SOP) form
  • 2. results To implement an equation like: F(A,B,C) = A + BC, the NAND for A degenerates to a NOT since there is only one input A B C D G(A,B,C,D) X = X Logic and Computer Design Fundamentals © 2001 Prentice Hall, Inc Chapter 2-Part 7 8 Degenerate AND Term The degenerate NAND becomes an inverter: To implement the complement of F using NAND gates, add an inverter to the output: A B C F(A,B,C) A B C F'(A,B,C) 5 Logic and Computer Design Fundamentals © 2001 Prentice Hall, Inc Chapter 2-Part 7 9 NAND-NAND Example Implement: x z w 0132 4576 12 13 15 14 8 9 11 10 1111 1 1 1 1 1 0 0 000 0 0 y F’ (w,x,y,z) x y z w 0132 4576 12 13 15 14 8 9 11 10 1111 1 1 1 1 1 0 0 000 0 0 F(w,x,y,z) F(w, x, y, z) = y z + w x + x y + w z Logic and Computer Design Fundamentals © 2001 Prentice Hall, Inc Chapter 2-Part 7 10 Summary: Two-Level NAND Circuits Find minimum literal SOP form for F and F Select SOP form with smallest literal count Convert selected form to NAND circuit using AND-invert (inverters for single literal AND terms) and invert-OR symbols If SOP form for F used, add inverter to circuit output. 6 Logic and Computer Design Fundamentals © 2001 Prentice Hall, Inc Chapter 2-Part 7 11 NOR Gates The basic positive logic NOR gate (Not-OR) is denoted by the following symbol: OR-Invert (NOR) This is called the OR-Invert, since it is logically an OR function followed by an invert. By DeMorgan's Law we have the following Invert-AND symbol for a NOR gate: X Y Z Invert-AND A single-input NOR gate is an inverter, too. X Y Z F(X,Y,Z) = X+Y+Z Logic and Computer Design Fundamentals © 2001 Prentice Hall, Inc Chapter 2-Part 7 12 NOR Gates The basic positive logic NOR gate is denoted by the following symbol: • OR- Invert (NOR) NOR comes from NOT OR, I. e., the OR function with a NOT applied. We call this symbol for a NOR gate an OR-Invert. The small circle represents the invert function. If we apply DeMorgan's Law we get: X +Y+Z = X Y Z X Y Z F(X,Y,Z) = X+Y+Z 7 Logic and Computer Design Fundamentals © 2001 Prentice Hall, Inc Chapter 2-Part 7 13 NOR Gates (Cont.) Applying DeMorgan's Law gives: • Invert-AND (NOR) We call this symbol for a NOR gate the InvertAND since all inputs are inverted, followed by the AND function. Both symbols represent the NOR gate - it is sometimes more logically descriptive to use one form over the other. A NOR gate with one input degenerates to an inverter. F(X,Y,Z) = X Y Z X Y Z Logic and Computer Design Fundamentals © 2001 Prentice Hall, Inc Chapter 2-Part 7 14 (A+B)+(C+D) NOR Function Implementation NAND gates can implement a simplified Sum- ofProducts form. Constructing two-level NOR-NOR circuit: The first level is two 2-input NOR gates using ORInvert. The second level is one 2-input NOR gate using Invert-AND. Using the NOR relationship, we have: G(A,B,C, D) = = = (A+B) (C+D) G(A,B,C,D) = ( ) A + B ( ) C + D A B C D (A+B) (C+D) 8 Logic and Computer Design Fundamentals © 2001 Prentice Hall, Inc Chapter 2-Part 7 15 Useful Transformations From Involution (i.e. (A')' = A) and DeMorgan's Law, we get the following useful equivalences: (A•B) = ((A•B)')' (A'+B')' (A+B) = ((A+B)')' (A'•B')' (A•B)' (A'+B') (A+B)' (A'•B') These simple transformations can be
  • 3. used to manipulate a two level network. Logic and Computer Design Fundamentals © 2001 Prentice Hall, Inc Chapter 2-Part 7 16 Graphical Transformations The relations from the previous slide lead to the following transformations: Recall that two bubbles in series can be removed from the circuit (A •B) = ((A•B)')' (A'+B')' (A+B) = ((A+B)')' (A'•B')' (A •B)' (A'+B') (A+B)' (A'•B') 9 Logic and Computer Design Fundamentals © 2001 Prentice Hall, Inc Chapter 2-Part 7 17 General Two-level Implementations We need to consider whether the form of a two-level implementation is to be: 1. SOP (AND-OR) or 2. POS (OR-AND). Complemented output functions (i.e. AND-NOR or ORNAND) can be handled by complementing the function. Given a function F expressed as a Karnaugh Map, we can use the same general procedures we have used before to minimize the function and express it in SOP or POS form. Logic and Computer Design Fundamentals © 2001 Prentice Hall, Inc Chapter 2-Part 7 18 General Implementations (Cont.) Given a two level implementation desired, use the previous transfromations to get it into one of the below forms. Then follow the steps to transform the function to the desired form: For Type: Use: AND-OR (SOP Form) Circle 1's in the K-Map and minimize (Also use for NAND-NAND) AND-NOR (SOP complemented) Circle 0's in the K-Map and minimize OR-AND (POS Form) Circle 0's in the K-Map and minimize SOP. Use DeMorgan's to transform to POS. (Also use for NOR-NOR) OR-NAND (POS complemented) Circle 1's in the K-Map and minimize SOP. Use DeMorgan's to transform to POS. 10 Logic and Computer Design Fundamentals © 2001 Prentice Hall, Inc Chapter 2-Part 7 19 Implementation Example 1 Implement the function in NOR-OR. A B C 1 1 1 1 1 0 0 0 We can remove the "Inverter" and replace it with the complement of the input variable Logic and Computer Design Fundamentals © 2001 Prentice Hall, Inc Chapter 2-Part 7 20 Implementation Example 2 A B 1 1 1 1 1 0 0 0 Implement the function in AND-NOR. 11 Logic and Computer Design Fundamentals © 2001 Prentice Hall, Inc Chapter 2-Part 7 21 Multi-level NAND Implementations Add inverters in two-level implementation into the cost picture Attempt to “combine” inverters to reduce the term count Attempt to reduce literal + term count by factoring expression into POSOP or SOPOS Logic and Computer Design Fundamentals © 2001 Prentice Hall, Inc Chapter 2-Part 7 22 Multi-level NAND Example 1 F = A B’ + A C’ + B A’ + B C’ = A A’ + A B’ + A C’ + B A’ + B B’ + B C’ = A (A’ + B’ + C’) + B (A’ + B’ + C’) F A C B 7 inputs and 4 gates 15 inputs and 8 gates* * Counting inverters (NOTS) as 1 input and 1 gate 12 Logic and Computer Design Fundamentals © 2001 Prentice Hall, Inc Chapter 2-Part 7 23 Multilevel NAND Example 2 F = AB + AD’ + BC + CD’