Download as pdf or txt
Download as pdf or txt
You are on page 1of 17

6/8/2023

Digital Fundamentals FIGURE 6-1 Logic symbol for a half-adder.

ELEVENTH EDITION

CHAPTER 6
Functions of
Combinational Logic

Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc. Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc.
Thomas L. Floyd All Rights Reserved Thomas L. Floyd All Rights Reserved

1 2

FIGURE 6-2 Half-adder logic diagram.

TABLE 6–1 Half-adder truth table.

Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc. Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc.
Thomas L. Floyd All Rights Reserved Thomas L. Floyd All Rights Reserved

3 4

1
6/8/2023

FIGURE 6-3 Logic symbol for a full-adder.

TABLE 6–2 Full-adder truth table.

Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc. Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc.
Thomas L. Floyd All Rights Reserved Thomas L. Floyd All Rights Reserved

5 6

FIGURE 6-4 Full-adder logic. FIGURE 6-5 Full-adder implemented with half-adders.

Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc. Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc.
Thomas L. Floyd All Rights Reserved Thomas L. Floyd All Rights Reserved

7 8

2
6/8/2023

FIGURE 6-6 FIGURE 6-7 Block diagram of a basic 2-bit parallel adder using two full-adders.

Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc. Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc.
Thomas L. Floyd All Rights Reserved Thomas L. Floyd All Rights Reserved

9 10

FIGURE 6-8 FIGURE 6-9 A 4-bit parallel adder.

Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc. Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc.
Thomas L. Floyd All Rights Reserved Thomas L. Floyd All Rights Reserved

11 12

3
6/8/2023

FIGURE 6-10 The 74HC283/74LS283 4-bit parallel adder.

TABLE 6–3 Truth table for each stage of a 4-bit


parallel adder.

Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc. Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc.
Thomas L. Floyd All Rights Reserved Thomas L. Floyd All Rights Reserved

13 14

FIGURE 6-11 Cascading of two 4-bit adders to form an 8-bit adder. FIGURE 6-12 Two 74HC283 adders connected as an 8-bit parallel adder (pin numbers are in parentheses).

Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc. Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc.
Thomas L. Floyd All Rights Reserved Thomas L. Floyd All Rights Reserved

15 16

4
6/8/2023

FIGURE 6-13 A voting system using full-adders and parallel binary adders. FIGURE 6-14 A 4-bit parallel ripple carry adder showing “worst-case” carry propagation delays.

Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc. Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc.
Thomas L. Floyd All Rights Reserved Thomas L. Floyd All Rights Reserved

17 18

FIGURE 6-15 Illustration of conditions for carry generation and carry propagation. FIGURE 6-16 Carry generation and carry propagation in terms of the input bits to a 4-bit adder.

Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc. Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc.
Thomas L. Floyd All Rights Reserved Thomas L. Floyd All Rights Reserved

19 20

5
6/8/2023

FIGURE 6-17 Logic diagram for a 4-stage look-ahead carry adder. FIGURE 6-18 Basic comparator operation.

Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc. Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc.
Thomas L. Floyd All Rights Reserved Thomas L. Floyd All Rights Reserved

21 22

FIGURE 6-19 Logic diagram for equality comparison of two 2-bit numbers. FIGURE 6-20

Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc. Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc.
Thomas L. Floyd All Rights Reserved Thomas L. Floyd All Rights Reserved

23 24

6
6/8/2023

FIGURE 6-21 Logic symbol for a 4-bit comparator with inequality indication. FIGURE 6-22

Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc. Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc.
Thomas L. Floyd All Rights Reserved Thomas L. Floyd All Rights Reserved

25 26

FIGURE 6-23 The 74HC85/74LS85 4-bit magnitude comparator. FIGURE 6-24

Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc. Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc.
Thomas L. Floyd All Rights Reserved Thomas L. Floyd All Rights Reserved

27 28

7
6/8/2023

FIGURE 6-25 An 8-bit magnitude comparator using two 74HC85s. FIGURE 6-26 Decoding logic for the binary code 1001 with an active-HIGH output.

Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc. Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc.
Thomas L. Floyd All Rights Reserved Thomas L. Floyd All Rights Reserved

29 30

FIGURE 6-27 Decoding logic for producing a HIGH output when 1011 is on the inputs.

TABLE 6–4 Decoding functions and truth table for a


4-line-to-16 line (1-of-16) decoder with active-LOW
outputs.

Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc. Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc.
Thomas L. Floyd All Rights Reserved Thomas L. Floyd All Rights Reserved

31 32

8
6/8/2023

FIGURE 6-28 Logic symbol for a 4-line-to-16-line (1-of-16) decoder. FIGURE 6-29 The 74HC154 1-of-16 decoder.

Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc. Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc.
Thomas L. Floyd All Rights Reserved Thomas L. Floyd All Rights Reserved

33 34

FIGURE 6-30 A 5-bit decoder using 74HC154s.

TABLE 6–5 BCD decoding functions.

Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc. Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc.
Thomas L. Floyd All Rights Reserved Thomas L. Floyd All Rights Reserved

35 36

9
6/8/2023

FIGURE 6-31 The 74HC42 BCD-to-decimal decoder. FIGURE 6-32

Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc. Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc.
Thomas L. Floyd All Rights Reserved Thomas L. Floyd All Rights Reserved

37 38

FIGURE 6-33 Logic symbol for a BCD-to-7-segment decoder/driver with active-LOW outputs. FIGURE 6-34 The 74HC47 BCD-to-7-segment decoder/driver.

Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc. Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc.
Thomas L. Floyd All Rights Reserved Thomas L. Floyd All Rights Reserved

39 40

10
6/8/2023

FIGURE 6-35 Examples of zero suppression using a BCD-to-7-segment decoder/driver. FIGURE 6-36 Logic symbol for a decimal-to-BCD encoder.

Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc. Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc.
Thomas L. Floyd All Rights Reserved Thomas L. Floyd All Rights Reserved

41 42

FIGURE 6-37 Basic logic diagram of a decimal-to-BCD encoder. A 0-digit input is not needed because the BCD
outputs are all LOW when there are no HIGH inputs.

TABLE 6–6

Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc. Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc.
Thomas L. Floyd All Rights Reserved Thomas L. Floyd All Rights Reserved

43 44

11
6/8/2023

FIGURE 6-38 The 74HC147 decimal-to-BCD encoder (HPRI means highest value input has priority. FIGURE 6-39 A simplified keyboard encoder.

Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc. Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc.
Thomas L. Floyd All Rights Reserved Thomas L. Floyd All Rights Reserved

45 46

FIGURE 6-40 Four-bit binary-to-Gray conversion logic.

TABLE 6–7 Binary representations of BCD bit


weights.

Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc. Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc.
Thomas L. Floyd All Rights Reserved Thomas L. Floyd All Rights Reserved

47 48

12
6/8/2023

FIGURE 6-41 Four-bit Gray-to-binary conversion logic. FIGURE 6-42

Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc. Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc.
Thomas L. Floyd All Rights Reserved Thomas L. Floyd All Rights Reserved

49 50

FIGURE 6-43 Logic symbol for a 1-of-4 data selector/multiplexer.

TABLE 6–8 Data selection for a 1-of-4-multiplexer.

Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc. Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc.
Thomas L. Floyd All Rights Reserved Thomas L. Floyd All Rights Reserved

51 52

13
6/8/2023

FIGURE 6-44 Logic diagram for a 4-input multiplexer. FIGURE 6-45

Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc. Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc.
Thomas L. Floyd All Rights Reserved Thomas L. Floyd All Rights Reserved

53 54

FIGURE 6-46 The 74HC153 dual four-input data selector/multiplexer. FIGURE 6-47 The 74HC151 eight-input data selector/multiplexer.

Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc. Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc.
Thomas L. Floyd All Rights Reserved Thomas L. Floyd All Rights Reserved

55 56

14
6/8/2023

FIGURE 6-48 A 16-input multiplexer. FIGURE 6-49 Simplified 7-segment display multiplexing logic.

Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc. Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc.
Thomas L. Floyd All Rights Reserved Thomas L. Floyd All Rights Reserved

57 58

FIGURE 6-50 Data selector/multiplexer connected as a 3-variable logic function generator.

TABLE 6–9

Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc. Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc.
Thomas L. Floyd All Rights Reserved Thomas L. Floyd All Rights Reserved

59 60

15
6/8/2023

FIGURE 6-51 Data selector/multiplexer connected as a 4-variable logic function generator.

TABLE 6–10

Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc. Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc.
Thomas L. Floyd All Rights Reserved Thomas L. Floyd All Rights Reserved

61 62

FIGURE 6-52 A 1-line-to-4-line demultiplexer. FIGURE 6-53

Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc. Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc.
Thomas L. Floyd All Rights Reserved Thomas L. Floyd All Rights Reserved

63 64

16
6/8/2023

FIGURE 6-54 The decoder used as a demultiplexer. FIGURE 6-55

Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc. Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc.
Thomas L. Floyd All Rights Reserved Thomas L. Floyd All Rights Reserved

65 66

FIGURE 6-56 The 74HC280 9-bit parity generator/checker. FIGURE 6-57

Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc. Digital Fundamentals, Eleventh Edition Copyright © 2015 by Pearson Education, Inc.
Thomas L. Floyd All Rights Reserved Thomas L. Floyd All Rights Reserved

67 68

17

You might also like