





















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Notes; Professor: Yalamanchili; Class: Intro to Computer Engr; Subject: Electrical & Computer Engr; University: Georgia Institute of Technology-Main Campus; Term: Unknown 1989;
Typology: Study notes
1 / 29
This page cannot be seen from the preview
Don't miss anything!






















INTRO. TO COMP. ENG. R.M. Dansereau; v.1.
CHAPTER VI-
•CHAPTER VI
INTRO. TO COMP. ENG. R.M. Dansereau; v.1.
CHAPTER VI-
- COMBINATIONAL LOGIC-INTRODUCTION -^ Combinational logic•
Output at any time is determined completely by the current input.
-^ We will later consider circuits where the output is determined by theinput and the current state (memory) of the system. -^ In this chapter we will consider some useful building blocks that can bepieced together and used in larger designs. This will include: -^ Multiplexers (selectors) and demultiplexers (distributors)•^ Encoders, priority encoders, decoders•^ Adders (full and half)•^ Parity generators and parity checkers•^ Shifters and rotators•^ Comparators
INTRO. TO COMP. ENG. R.M. Dansereau; v.1.
CHAPTER VI-
- COMBINATIONAL LOGIC • DECODERS-BASIC DECODER -^ Often, combinational logic building blocks will also have an enable line thatturns on outputs or leaves them off.
3-to-
Decoder
3-to-8 Decoderwith Enable
Module Enable
INTRO. TO COMP. ENG. R.M. Dansereau; v.1.
CHAPTER VI-
- COMBINATIONAL LOGIC • DECODERS-BASIC DECODER-WITH ENABLE -^ Truth table for a
3-to-8-line decoder
Outputs
Inputs
INTRO. TO COMP. ENG. R.M. Dansereau; v.1.
CHAPTER VI-
- DECODERS-WITH ENABLE-TRUTH TABLES-IMPLEMENTATION -^ Any Boolean function can implemented using a
decoder
and
gates by
ORing together the function
’s^ minterms
Outputs F^1
Inputs
3-to-
Decoder
INTRO. TO COMP. ENG. R.M. Dansereau; v.1.
CHAPTER VI-
- DECODERS-TRUTH TABLES-IMPLEMENTATION-DESIGNING W/DECODERS -^ We can also use multiple decoders to form a larger decoder.
2-to-
Decoder
2-to-
Decoder
3-to-8 Decoder Implementedwith two 2-to-4 Decoders
used with enable input to control which decoderwill output the
and
used to select
which output on specificdecoder will output
INTRO. TO COMP. ENG. R.M. Dansereau; v.1.
CHAPTER VI-
- DECODERS • ENCODERS-BASIC ENCODER -^ Truth table for an
8-to-3-line encoder
-^ Assumed that only one input is
^1. What happens if more then one is
Outputs
Inputs
INTRO. TO COMP. ENG. R.M. Dansereau; v.1.
CHAPTER VI-
- DECODERS • ENCODERS-BASIC ENCODER-TRUTH TABLE -^ Encoders are useful when the occurrence of one of several disjoint eventsneeds to be represented by an integer identifying the event.
8-to-
Encoder
0 1 2 3 4 5 6 7
Example: Wind direction encoder
pp. 253-254 of Ercegovac, Lang and Moreno,
“Introduction to Digital Systems
”, 1999.
INTRO. TO COMP. ENG. R.M. Dansereau; v.1.
CHAPTER VI-
- ENCODERS-TRUTH TABLE-DESIGN W/ ENCODERS-PRIORITY ENCODERS -^ Priority encoders are useful when inputs have a predefined priority and wewish to select the input with the highest priority.
2-to-
Priority 0 1 2 3
(^0212) Encoder
Device ADevice BDevice CDevice D
LowestPriority HighestPriority RequestLines
Processor
1 E Ac
Example: Resolving interrupt requests
pp. 253-256 of Ercegovac, Lang and Moreno,
“Introduction to Digital Systems
”, 1999.
INTRO. TO COMP. ENG. R.M. Dansereau; v.1.
CHAPTER VI-
- ENCODERS-DESIGN W/ ENCODERS-PRIORITY ENCODERS-DESIGN W/ P-ENCODERS -^ Selects one of many inputs to be directed to an output.
4x
Multiplexer S^1
f
0
Output
Inputs
Module Enable
INTRO. TO COMP. ENG. R.M. Dansereau; v.1.
CHAPTER VI-
- ENCODERS • MULTIPLEXERS-BASIC MULTIPLEXER-USING PASS GATES -^ Any Boolean function can be implemented by setting the inputscorresponding to the function and the selectors as the variables.
8x
Multiplexer S^2
f
Module Enable
Example:
INTRO. TO COMP. ENG. R.M. Dansereau; v.1.
CHAPTER VI-
- MULTIPLEXERS-BASIC MULTIPLEXER-USING PASS GATES-DESIGN W/ MULTIPLEX. -^ Takes one input and selects one of many outputs to direct the input.
1x
Demultiplexer
0
Outputs
Inputs
Module Enable
INTRO. TO COMP. ENG. R.M. Dansereau; v.1.
CHAPTER VI-
- MULTIPLEXERS • DEMULTIPLEXERS-BASIC DEMULTIPLEXER-DESIGN W/ DEMULTIPLEX -^ A shifter takes a set of inputs and shifts it to the right or left.
4-bitShifter
Module Enable
s^ d
Shift (Yes/No)Direction(Left/Right)
INTRO. TO COMP. ENG. R.M. Dansereau; v.1.
CHAPTER VI-
- MULTIPLEXERS • DEMULTIPLEXERS • SHIFTERS-BASIC SHIFTERS -^ A whole variety of other shifters are possible such as
4-bitShifter
s^ d
Y/N Ins q
Value toinsert intoempty spot
4-bitShifter
d s 0 Distance (in binary)
distance of how far to shift s^1
Ddisc Value discarded
from shift