ch t 36chapter 36 - chosunssjarng.chosun.ac.kr/electronics/chapter36.pdf · logic symbol for a...
TRANSCRIPT
Ch t 36Chapter 36
Combinational Logic CircuitsCombinational Logic Circuits
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
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
Encoders
Figure 36-1. Decimal-to-binary encoder.
Figure 36-2. Decimal-to-binary priority encoder.
Encoders (cont’d.)
Figure 36-3. Logic symbol for a decimal-to-binary priority encoder.
Decoders
Figure 36-4. Binary-to-decimal decoder.
Decoders (cont’d.)
Figure 36-5. Logic symbol for a binary-to-decimal decoder.g g y y
Multiplexers
Figure 36-12. A single-pole, multiposition switch can be used as a multiplexer.
Figure 36-13. Logic circuit for an eight-input multiplexer.
Multiplexers (cont’d.)
Figure 36 14 Logic symbol for an eight input multiplexerFigure 36-14. Logic symbol for an eight-input multiplexer.
Multiplexers (cont’d.)
Figure 36-16. Using a multiplexer for parallel-to-serial conversion.
Arithmetic Circuits
Figure 36-17. Truth table constructed using addition rules.
Arithmetic Circuits (cont’d.)
Figure 36-21. Truth table for a full adder.g
Arithmetic Circuits (cont’d.)
Figure 36-22. Logic circuit for a full adder using two half adders.
Arithmetic Circuits (cont’d.)
Figure 36-23. Logic symbols for half adder (A) and full adder (B).
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.
Arithmetic Circuits (cont’d.)
Figure 36-27. Logic circuit (A) and truth table (B) for a full subtractor.
Arithmetic Circuits (cont’d.)
Figure 36-28. Logic symbols for half subtractor (A) and full subtractor (B).
Arithmetic Circuits (cont’d.)
Fi 36 30 T th t bl f tFigure 36-30. Truth table for a comparator.
Arithmetic Circuits (cont’d.)
Figure 36-31. Comparing two 2-bit numbers.
Programmable Logic Devices
Fi 36 34 P bl l i (PAL) hit tFigure 36-34. Programmable array logic (PAL) architecture.
Fi 36 35 P bl l i (PLA) hit tFigure 36-35. Programmable logic array (PLA) architecture.
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
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