University of Wisconsin - Madison EE/omp Sci 352 Digital Systems Fundamentals Kewal K. Saluja and u Hen Hu Spring 2002 hapter 2 Part 7 ombinational Logic ircuits Originals by: harles R. Kime and Tom Kamisnski Modified for course use by: Kewal K. Saluja and u Hen Hu NND and NOR Implementation We found that we could implement general oolean equations with these three primitives: ND OR NOT In this section we will find that either of two gates, the NND gate or the NOR gate can be used to implement arbitrary logic functions. We use the Positive Logic onvention (where all signals are active high) and a small circle to on a symbol to represent NOT or invert. hapter 2-7 2
NND Gates The basic positive logic NND gate is denoted by the following symbol: ND-Invert (NND) NND comes from NOT ND, I. e., the ND function with a NOT applied. We call this symbol for a NND gate an ND-Invert. The small circle represents the invert function. If we apply DeMorgan's Law we get: = + + F (,, ) = hapter 2-7 3 NND Gates (ont.) pplying DeMorgan's Law gives: Invert-OR (NND) We call this symbol for a NND gate the Invert- OR since all inputs are inverted, followed by the OR function. oth symbols represent the NND gate - it is sometimes more logically descriptive to use one form over the other. NND gate with one input degenerates to an inverter. F (,, ) = + + hapter 2-7 4 2
NND Function Implementation NND gates can implement a simplified Sum-of- Products form. onstructing two level NND-NND gate circuit: D G (,,, D) = + The first level is two 2-input NND gates using ND- Invert. The second level is one 2-input NND gate using Invert-OR. Using the NND relationship, we have: D G (,,, D) = D = + D = + D hapter 2-7 5 NND Implementation (ont.) In the implementation, the bubbles are on opposite ends of the same line. y =, they can be combined and deleted: D G(,,,D) sum-of-products (SOP) form results To implement an equation like: F(,,) = +, the NND for degenerates to a NOT since there is only one input hapter 2-7 6 3
Degenerate ND Term The degenerate NND becomes an inverter: F(,,) To implement the complement of F using NND gates, add an inverter to the output: F'(,,) hapter 2-7 7 NND-NND Example w Implement: F (w,x,y, z) = yz + wx + xy + wz y 0 3 2 4 5 7 6 2 3 5 4 z F(w,x,y,z) 0 8 9 0 x w 0 3 2 4 5 7 6 2 3 5 4 8 9 0 z F (w,x,y,z) y 0 x hapter 2-7 8 4
Summary: Two-Level NND ircuits Find minimum literal SOP form for F and F Select SOP form with smallest literal count onvert selected form to NND circuit using ND-invert (inverters for single literal ND terms) and invert-or symbols If SOP form for F used, add inverter to circuit output. hapter 2-7 9 NOR Gates The basic positive logic NOR gate (Not-OR) is denoted by the following symbol: OR-Invert (NOR) F (,, ) = + + This is called the OR-Invert, since it is logically an OR function followed by an invert. y DeMorgan's Law we have the following Invert -ND symbol for a NOR gate: Invert-ND single-input NOR gate is an inverter, too. hapter 2-7 0 5
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: + + = F (,, ) = + + hapter 2-7 NOR Gates (ont.) pplying DeMorgan's Law gives: Invert-ND (NOR) We call this symbol for a NOR gate the Invert- ND since all inputs are inverted, followed by the ND function. oth symbols represent the NOR gate - it is sometimes more logically descriptive to use one form over the other. NOR gate with one input degenerates to an inverter. F (,, ) = hapter 2-7 2 6
NOR Function Implementation NND gates can implement a simplified Sum-of- Products form. onstructing two-level NOR-NOR circuit: The first level is two 2-input NOR gates using OR- Invert. The second level is one 2-input NOR gate using Invert-ND. Using the NOR relationship, we have: G (,,, D) = D ( + ) + (+ D) ( + ) (+ D) = = ( + )(+ D) ( ) ( ) G (,,, D) = + + D hapter 2-7 3 Useful Transformations From Involution (i.e. (')' = ) and DeMorgan's Law, we get the following useful equivalences: ( ) = (( )')' (+) = ((+)')' ( )' (+)' ('+')' (' ')' ('+') (' ') These simple transformations can be used to manipulate a two level network. hapter 2-7 4 7
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 hapter 2-7 5 General Two-level Implementations We need to consider whether the form of a two-level implementation is to be:. SOP (ND-OR) or 2. POS (OR-ND). omplemented output functions (i.e. ND-NOR or OR- NND) 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. hapter 2-7 6 8
General Implementations (ont.) 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: ND-OR (SOP Form) ND-NOR (SOP complemented) OR-ND (POS Form) OR-NND (POS complemented) Use: ircle 's in the K-Map and minimize (lso use for NND-NND) ircle 0's in the K-Map and minimize ircle 0's in the K-Map and minimize SOP. Use DeMorgan's to transform to POS. (lso use for NOR-NOR) ircle 's in the K-Map and minimize SOP. Use DeMorgan's to transform to POS. hapter 2-7 7 Implementation Example 0 Implement the function in NOR-OR. We can remove the "Inverter" and replace it with the complement of the input variable hapter 2-7 8 9
Implementation Example 2 0 Implement the function in ND-NOR. hapter 2-7 9 Multi-level NND Implementations dd inverters in two-level implementation into the cost picture ttempt to combine inverters to reduce the term count ttempt to reduce literal + term count by factoring expression into POSOP or SOPOS hapter 2-7 20 0
Multi-level NND Example F = + + + = + + + + + = ( + + ) + ( + + ) 5 inputs and 8 gates* 7 inputs and 4 gates F * ounting inverters (NOTS) as input and gate hapter 2-7 2 Multilevel NND Example 2 F = + D + + D hapter 2-7 22