1. Trang chủ
  2. » Kỹ Thuật - Công Nghệ

Lecture Digital logic design - Lecture 9: NAND and XOR Implementations

28 45 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 28
Dung lượng 902,14 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

The main contents of the chapter consist of the following: Developing NAND circuits, two-level implementations, multi-level NAND implementations, convert from a network of AND/ORs, exclusive OR, comparison with SOP, parity checking and detecting circuitry.

Trang 1

Lecture 09

NAND and XOR Implementations

Trang 2

w

° Developing NAND circuits

° Two-level implementations

• Convert from AND/OR to NAND (again!)

° Multi-level NAND implementations

• Convert from a network of AND/ORs

° Exclusive OR

• Comparison with SOP

° Parity checking and detecting circuitry

• Efficient with XOR gates!

Trang 4

Axioms and Graphical representation of DeMorgan's Law

Y X Y X

14B)

Y X Y

X

14A)

Y X Y X X

13D)

Y X Y X X

13C)

Y X XY X

13B)

Y X Y X X

13A)

YZ YW

XZ XW

Z W Y X

12B)

XZ XY

Z Y X

12A)

Z Y X Z

Y X

11B)

Z XY YZ

10A)

Commutative Law

Associative Law

Distributiv

e Law Consensus

Theorem

Trang 5

• The above alternate symbols can be used to facilitate

the analysis and design of NAND and NOR gate

networks.

Trang 7

NAND-NAND & NOR-NOR Networks

=

=

Trang 8

NAND-NAND Networks

° Mapping from AND/OR to NAND/NAND

a b c d

Trang 9

NAND-NAND Networks

a b c d

a b c d

Trang 11

° Replace minterm AND gates with NAND gates

° Place compensating inversion at inputs of OR gate

Trang 12

° Two-level NAND-NAND network

• Inverted inputs are not counted

• In a typical circuit, inversion is done once and signal distributed

Trang 13

Two-level Logic using NAND Gates (cont’d)

Trang 14

° Convert from networks of ANDs and ORs to

networks of NANDs and NORs

• Introduce appropriate inversions ("bubbles")

° Each introduced "bubble" must be matched by a

corresponding "bubble"

• Conservation of inversions

• Do not alter logic function

° Example: AND/OR to NAND/NAND

Z NAND

NAND

NAND

Trang 15

Z = [ (A  •  B)'  • (C   • D)'  ]'    = [ (A' + B')  •  (C' + D')  ]'    = [ (A' + B')' + (C' + D')'  ]    =   (A  •  B)   + (C  • D) 

Z NAND

NAND

NAND

Trang 17

A B C

D E

F G

• Reduced sum-of-products form – already simplified

• 6 x 3-input AND gates + 1 x 7-input OR gate (may not exist!)

• 25 wires (19 literals plus 6 internal wires)

° x = (A + B + C) (D + E) F + G

• Factored form – not written as two-level S-o-P

• 1 x 3-input OR gate, 2 x 2-input OR gates, 1 x 3-input AND gate

• 10 wires (7 literals plus 3 internal wires)

Trang 18

Level 1 Level 2 Level 3 Level 4

original AND­OR 

C D B

B C’

F

introduction and conservation of 

C D B B C’

B C’

F

Conversion of Multi-level Logic to NAND

Gates

° F = A (B + C D) + B C'

Trang 19

A

X

B C D

Trang 20

Making  NAND circuits (Ex)

° The easiest way to make a NAND circuit is to start with

a regular, primitive gate-based diagram.

° Two-level circuits are trivial to convert, so here is a

slightly more complex random example.

Trang 21

Converting to a NAND

° Step 1: Convert all AND gates to NAND gates and

convert all OR gates to NAND gates.

Trang 22

Converting to NAND

° Step 2: Cancel all pairs of inverters ((x’)’ = x)

Trang 23

Exclusive-OR and Exclusive-NOR Circuits

Exclusive­OR (XOR)  produces a HIGH output whenever the two  inputs are at opposite levels. 

Trang 24

Exclusive­NOR (XNOR)  produces a HIGH output whenever the two  inputs are at the same level. 

Exclusive-NOR Circuits

Trang 25

Exclusive-NOR Circuits

Trang 26

XOR Function

° XOR function can also be implemented with

AND/OR gates (also NANDs).

Trang 27

FIGURE 4­25    XOR gates used to implement the parity generator and the parity  checker for an even­parity system.

Parity Generation and Checking

Trang 28

° Follow rules to convert between AND/OR

representation and symbols

° Conversions are based on DeMorgan’s Law

° NOR gate implementations are also possible

° XORs provide straightforward implementation for

some functions

° Used for parity generation and checking

• XOR circuits could also be implemented using AND/Ors

° Next time: Hazards

Ngày đăng: 13/02/2020, 00:36

TỪ KHÓA LIÊN QUAN