Presentation is loading. Please wait.

Presentation is loading. Please wait.

LOGIC CIRCUIT IMPLEMENTATION

Similar presentations


Presentation on theme: "LOGIC CIRCUIT IMPLEMENTATION"β€” Presentation transcript:

1 LOGIC CIRCUIT IMPLEMENTATION
By Dr. Amin Danial Asham

2 References Digital Design 5th Edition, Morris Mano

3 Two graphic Symbols for NAND Gates
Logic Circuit Implementation Practically NAND and NOR gate are easier to fabricate, therefore, logic circuit are commonly built using NAND and NOR rather than AND, OR, and NOT. The function of AND, OR, and NOT can be implemented using NOR gate. Noting that NOT gate is a single input NAND. The two-level implementation of Boolean functions with NAND gates requires that the functions be in sum-of-products form Two graphic Symbols for NAND Gates

4 To Convert to NAND implementation
Two Level Implementation- NAND Gates Example: 𝐹=𝐴𝐡+𝐢𝐷 1-Each AND is replaced with NAND 2-Each OR is replaced with Invert- OR gate To Convert to NAND implementation 3-Check that the inverting circles cancels each other on the same line. If there is an inverter not cancelled, an inverter must be added on the same line or inverting the input literal. 𝐹=𝐴𝐡+𝐢𝐷 𝐴𝐡 𝐢𝐷 (𝐴𝐡)β€² (𝐢𝐷)β€² 𝐹= 𝐴𝐡 β€² β€² + 𝐢𝐷 β€² β€² =𝐴𝐡+𝐢𝐷 (𝐴𝐡)β€² (𝐢𝐷)β€² 𝐹= 𝐴𝐡 β€² 𝐢𝐷 β€² β€² =𝐴𝐡+𝐢𝐷

5 Two Level Implementation-NAND Gates (continue)
Example: implement using NAND gates 𝐹 π‘₯,𝑦,𝑧 = (1,2,3,4,5,7) Solution 𝐹 = π‘₯ 𝑦 β€² β€² π‘₯ β€² 𝑦 β€² 𝑧 β€² β€² =π‘₯ 𝑦 β€² + π‘₯ β€² 𝑦+𝑧 π‘₯𝑦′ π‘₯′𝑦 𝐹 = π‘₯ 𝑦 β€² β€² + π‘₯ β€² 𝑦 β€² + 𝑧 β€² β€² =π‘₯ 𝑦 β€² + π‘₯ β€² 𝑦+𝑧 π‘₯𝑦′ π‘₯′𝑦 𝑧′

6 Multilevel Implementation- NAND Gates Example: 𝐹=𝐴 𝐢𝐷+𝐡 +𝐡𝐢′

7 Two graphic Symbols for NOR Gates
V. Logic Circuit Implementation – NOR Gates NOR operation is the dual of the NAND operation. The function of AND, OR, and NOT can be implemented using NOR gate. Noting that NOT gate is a single input NAND. A two-level implementation with NOR gates requires that the function be simplified into product-of-sums form Two graphic Symbols for NOR Gates

8 To Convert to NOR implementation
V. Logic Circuit Implementation – NOR Gates (continue) Example: 𝐹=(𝐴 𝐡 β€² + 𝐴 β€² 𝐡)(𝐢+ 𝐷 β€² ) To Convert to NOR implementation 1-Each OR is replaced with NOR 2-Each AND is replaced with Invert- AND gate 3-Check that the inverting circles cancels each other on the same line. If there is an inverter not cancelled, an inverter must be added on the same line or inverting the input literal.

9 V. Logic Circuit Implementation – NOR Gates (continue)
Example: Find the two level NOR implementation of a function expressed as a product of sums: 𝐹 = (𝐴 + 𝐡)(𝐢 + 𝐷)𝐸 Solution: 𝐸

10 VI. Other Two Level Forms
SOP is implemented directly using AND-OR form and POS is implemented using OR- AND form, where the first gate is used in the first level and the second gate is a single gate in the second level. AND-OR and OR-AND can be converted to NOR –NOR or NAND-NAND. There are other forms of two level implementation: AND-NOR and NAND-AND, which are equivalent and both perform AND-OR- Invert. Example: 𝐹=(𝐴𝐡+𝐢𝐷+𝐸)β€²

11 VI. Other Two Level Forms (continue)
OR-NAND and NOR-OR, which are equivalent and both perform OR-AND-Invert Example:𝐹=[ 𝐴+𝐡 𝐢+𝐷 𝐸]β€²

12 VI. Other Two Level Forms (continue)
Because of the INVERT part in each case, it is convenient to use the simplification of 𝐹′(the complement) of the function.

13 VI. Other Two Level Forms (continue)
Example: implement the function shown in the K-map in AND-NOR, NAND-AND, OR-NAND, and NOR-OR

14 π‘₯⨁𝑦= π‘₯ β€² 𝑦+π‘₯𝑦′ VII. XOR Gate 𝒙( 𝒙 β€² + π’š β€² ) π’™π’š β€² =( 𝒙 β€² + π’š β€² )
π’™π’š β€² =( 𝒙 β€² + π’š β€² ) 𝒙( 𝒙 β€² + π’š β€² ) π’š( 𝒙 β€² + π’š β€² )

15 VII. XOR Gate (continue)
XNOR is the complement of XOR, therefore: XNOR gives one in case of even number of 1’s in the input binary number.

16 VII. XOR Gate (continue)
The Boolean expression for 3 inputs XOR is: (Odd number of 1’s)

17 VII. XOR Gate (continue)
Logic Diagrams of Odd and Even functions

18 𝑷=π’™β¨π’šβ¨π’› VIII. Parity Generation and Checking
As an example, consider a three-bit message to be transmitted together with an even-parity bit. This Parity bit is transmitted with message to make the total number of ones in the message is even. 𝑷=π’™β¨π’šβ¨π’›

19 π‘ͺ=π’™β¨π’šβ¨π’›β¨π‘· VIII. Parity Generation and Checking (continue)
On the receiver side the checker gives 0 if the number of 1’s is even, which means it is error free message. π‘ͺ=π’™β¨π’šβ¨π’›β¨π‘·

20 Thanks


Download ppt "LOGIC CIRCUIT IMPLEMENTATION"

Similar presentations


Ads by Google