ch t 36chapter 36 - chosunssjarng.chosun.ac.kr/electronics/chapter36.pdf · logic symbol for a...

25
Ch t 36 Chapter 36 Combinational Logic Circuits Combinational Logic Circuits

Upload: vuongbao

Post on 13-May-2018

218 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Ch t 36Chapter 36 - Chosunssjarng.chosun.ac.kr/electronics/chapter36.pdf · Logic symbol for a decimal-to-binary priority encoder. Decoders ... • A decoder pppyrocesses a ... Gates

Ch t 36Chapter 36

Combinational Logic CircuitsCombinational Logic Circuits

Page 2: Ch t 36Chapter 36 - Chosunssjarng.chosun.ac.kr/electronics/chapter36.pdf · Logic symbol for a decimal-to-binary priority encoder. Decoders ... • A decoder pppyrocesses a ... Gates

Objectives

• After completing this chapter, you will beAfter completing this chapter, you will be able to:

Describe the functions of encoders decoders– Describe the functions of encoders, decoders, multiplexers, adders, subtractors, and comparatorscomparators

– Identify the schematic symbols for encoders, d d lti l dd bt tdecoders, multiplexers, adders, subtractors, and comparators

Page 3: Ch t 36Chapter 36 - Chosunssjarng.chosun.ac.kr/electronics/chapter36.pdf · Logic symbol for a decimal-to-binary priority encoder. Decoders ... • A decoder pppyrocesses a ... Gates

Objectives (cont’d.)

– Identify applications for combinational logic y pp gcircuits

– Develop truth tables for the differentDevelop truth tables for the different combinational logic circuits

Page 4: Ch t 36Chapter 36 - Chosunssjarng.chosun.ac.kr/electronics/chapter36.pdf · Logic symbol for a decimal-to-binary priority encoder. Decoders ... • A decoder pppyrocesses a ... Gates

Encoders

Figure 36-1. Decimal-to-binary encoder.

Page 5: Ch t 36Chapter 36 - Chosunssjarng.chosun.ac.kr/electronics/chapter36.pdf · Logic symbol for a decimal-to-binary priority encoder. Decoders ... • A decoder pppyrocesses a ... Gates

Figure 36-2. Decimal-to-binary priority encoder.

Page 6: Ch t 36Chapter 36 - Chosunssjarng.chosun.ac.kr/electronics/chapter36.pdf · Logic symbol for a decimal-to-binary priority encoder. Decoders ... • A decoder pppyrocesses a ... Gates

Encoders (cont’d.)

Figure 36-3. Logic symbol for a decimal-to-binary priority encoder.

Page 7: Ch t 36Chapter 36 - Chosunssjarng.chosun.ac.kr/electronics/chapter36.pdf · Logic symbol for a decimal-to-binary priority encoder. Decoders ... • A decoder pppyrocesses a ... Gates

Decoders

Figure 36-4. Binary-to-decimal decoder.

Page 8: Ch t 36Chapter 36 - Chosunssjarng.chosun.ac.kr/electronics/chapter36.pdf · Logic symbol for a decimal-to-binary priority encoder. Decoders ... • A decoder pppyrocesses a ... Gates

Decoders (cont’d.)

Figure 36-5. Logic symbol for a binary-to-decimal decoder.g g y y

Page 9: Ch t 36Chapter 36 - Chosunssjarng.chosun.ac.kr/electronics/chapter36.pdf · Logic symbol for a decimal-to-binary priority encoder. Decoders ... • A decoder pppyrocesses a ... Gates

Multiplexers

Figure 36-12. A single-pole, multiposition switch can be used as a multiplexer.

Page 10: Ch t 36Chapter 36 - Chosunssjarng.chosun.ac.kr/electronics/chapter36.pdf · Logic symbol for a decimal-to-binary priority encoder. Decoders ... • A decoder pppyrocesses a ... Gates

Figure 36-13. Logic circuit for an eight-input multiplexer.

Page 11: Ch t 36Chapter 36 - Chosunssjarng.chosun.ac.kr/electronics/chapter36.pdf · Logic symbol for a decimal-to-binary priority encoder. Decoders ... • A decoder pppyrocesses a ... Gates

Multiplexers (cont’d.)

Figure 36 14 Logic symbol for an eight input multiplexerFigure 36-14. Logic symbol for an eight-input multiplexer.

Page 12: Ch t 36Chapter 36 - Chosunssjarng.chosun.ac.kr/electronics/chapter36.pdf · Logic symbol for a decimal-to-binary priority encoder. Decoders ... • A decoder pppyrocesses a ... Gates

Multiplexers (cont’d.)

Figure 36-16. Using a multiplexer for parallel-to-serial conversion.

Page 13: Ch t 36Chapter 36 - Chosunssjarng.chosun.ac.kr/electronics/chapter36.pdf · Logic symbol for a decimal-to-binary priority encoder. Decoders ... • A decoder pppyrocesses a ... Gates

Arithmetic Circuits

Figure 36-17. Truth table constructed using addition rules.

Page 14: Ch t 36Chapter 36 - Chosunssjarng.chosun.ac.kr/electronics/chapter36.pdf · Logic symbol for a decimal-to-binary priority encoder. Decoders ... • A decoder pppyrocesses a ... Gates

Arithmetic Circuits (cont’d.)

Figure 36-21. Truth table for a full adder.g

Page 15: Ch t 36Chapter 36 - Chosunssjarng.chosun.ac.kr/electronics/chapter36.pdf · Logic symbol for a decimal-to-binary priority encoder. Decoders ... • A decoder pppyrocesses a ... Gates

Arithmetic Circuits (cont’d.)

Figure 36-22. Logic circuit for a full adder using two half adders.

Page 16: Ch t 36Chapter 36 - Chosunssjarng.chosun.ac.kr/electronics/chapter36.pdf · Logic symbol for a decimal-to-binary priority encoder. Decoders ... • A decoder pppyrocesses a ... Gates

Arithmetic Circuits (cont’d.)

Figure 36-23. Logic symbols for half adder (A) and full adder (B).

Page 17: Ch t 36Chapter 36 - Chosunssjarng.chosun.ac.kr/electronics/chapter36.pdf · Logic symbol for a decimal-to-binary priority encoder. Decoders ... • A decoder pppyrocesses a ... Gates

Arithmetic Circuits (cont’d.)

Fi 36 25 T th t bl t t d i bt ti lFigure 36-25. Truth table constructed using subtraction rules.

Page 18: Ch t 36Chapter 36 - Chosunssjarng.chosun.ac.kr/electronics/chapter36.pdf · Logic symbol for a decimal-to-binary priority encoder. Decoders ... • A decoder pppyrocesses a ... Gates

Arithmetic Circuits (cont’d.)

Figure 36-27. Logic circuit (A) and truth table (B) for a full subtractor.

Page 19: Ch t 36Chapter 36 - Chosunssjarng.chosun.ac.kr/electronics/chapter36.pdf · Logic symbol for a decimal-to-binary priority encoder. Decoders ... • A decoder pppyrocesses a ... Gates

Arithmetic Circuits (cont’d.)

Figure 36-28. Logic symbols for half subtractor (A) and full subtractor (B).

Page 20: Ch t 36Chapter 36 - Chosunssjarng.chosun.ac.kr/electronics/chapter36.pdf · Logic symbol for a decimal-to-binary priority encoder. Decoders ... • A decoder pppyrocesses a ... Gates

Arithmetic Circuits (cont’d.)

Fi 36 30 T th t bl f tFigure 36-30. Truth table for a comparator.

Page 21: Ch t 36Chapter 36 - Chosunssjarng.chosun.ac.kr/electronics/chapter36.pdf · Logic symbol for a decimal-to-binary priority encoder. Decoders ... • A decoder pppyrocesses a ... Gates

Arithmetic Circuits (cont’d.)

Figure 36-31. Comparing two 2-bit numbers.

Page 22: Ch t 36Chapter 36 - Chosunssjarng.chosun.ac.kr/electronics/chapter36.pdf · Logic symbol for a decimal-to-binary priority encoder. Decoders ... • A decoder pppyrocesses a ... Gates

Programmable Logic Devices

Fi 36 34 P bl l i (PAL) hit tFigure 36-34. Programmable array logic (PAL) architecture.

Page 23: Ch t 36Chapter 36 - Chosunssjarng.chosun.ac.kr/electronics/chapter36.pdf · Logic symbol for a decimal-to-binary priority encoder. Decoders ... • A decoder pppyrocesses a ... Gates

Fi 36 35 P bl l i (PLA) hit tFigure 36-35. Programmable logic array (PLA) architecture.

Page 24: Ch t 36Chapter 36 - Chosunssjarng.chosun.ac.kr/electronics/chapter36.pdf · Logic symbol for a decimal-to-binary priority encoder. Decoders ... • A decoder pppyrocesses a ... Gates

Summary• An encoder accepts one or more inputs

d t ltibit bi t tand generates a multibit binary output• A decoder processes a complex binary p p y

code into a digit or character that is easy to recognizeto recognize

• A multiplexer allows digital data from several sources to be routed through a common line for transmission to a common destination

Page 25: Ch t 36Chapter 36 - Chosunssjarng.chosun.ac.kr/electronics/chapter36.pdf · Logic symbol for a decimal-to-binary priority encoder. Decoders ... • A decoder pppyrocesses a ... Gates

Summary (cont’d.)

• The truth table for the adding rules ofThe truth table for the adding rules of binary numbers is equivalent to the truth table for an AND gate and an XOR gatetable for an AND gate and an XOR gate

• A comparator is used to compare the magnitudes of two binary numbers

• Programmable logic devices (PLDs) areProgrammable logic devices (PLDs) are used to implement complex logic functions