Download lecture8 - Clarkson University

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
EE365
Adv. Digital Circuit Design
Clarkson University
Lecture #8
Buffers, Drivers, Encoders, MUXs & XORs
Topics
•
•
•
•
•
Lect #8
Buffers
Drivers
Encoders
Multiplexers
Exclusive OR Gates
Rissacher EE365
Three-state buffers
• Output = LOW, HIGH, or Hi-Z.
• Can tie multiple outputs together, if at
most one at a time is driven.
Lect #8
Rissacher EE365
Different flavors
Lect #8
Rissacher EE365
Lect #8
Rissacher EE365
Timing considerations
Lect #8
Rissacher EE365
Three-state
drivers
Lect #8
Rissacher EE365
Driver
application
Lect #8
Rissacher EE365
Three-state
transceiver
Lect #8
Rissacher EE365
Transceiver
application
Lect #8
Rissacher EE365
Encoders vs. Decoders
Decoder
Lect #8
Encoder
Rissacher EE365
Binary encoders
Lect #8
Rissacher EE365
Need priority in most
applications
Lect #8
Rissacher EE365
8-input priority encoder
Lect #8
Rissacher EE365
Priority-encoder logic
equations
Lect #8
Rissacher EE365
74x148 8-input priority encoder
–
–
–
–
Lect #8
Active-low I/O
Enable Input
“Got Something”
Enable Output
Rissacher EE365
74x148
circuit
Lect #8
Rissacher EE365
74x148 Truth Table
Lect #8
Rissacher EE365
In Class Practice Problem
Write the truth table for a 4-to-2 encoder:
• No enables
• Active High inputs and outputs
Lect #8
Rissacher EE365
In Class Practice Problem
Lect #8
Rissacher EE365
Cascading
priority
encoders
• 32-input
priority encoder
Lect #8
Rissacher EE365
Constant expressions
Lect #8
Rissacher EE365
Outputs
Lect #8
Rissacher EE365
Alternative formulation
Lect #8
• WHEN is very natural for priority function
Rissacher EE365
Multiplexers
Lect #8
Rissacher EE365
74x151
8-input
multiplexer
Lect #8
Rissacher EE365
74x151 truth table
Lect #8
Rissacher EE365
CMOS transmission gates
• 2-input
multiplexer
Lect #8
Rissacher EE365
Other multiplexer varieties
• 2-input, 4-bit-wide
– 74x157
• 4-input, 2-bit-wide
– 74x153
Lect #8
Rissacher EE365
In Class Practice Problem
Write the truth table for a 1-to-4 line
Multiplexer:
• No enables
• Active High inputs and outputs
Lect #8
Rissacher EE365
In Class Practice Problem
Lect #8
Rissacher EE365
Barrel shifter design example
• n data inputs, n data outputs
• Control inputs specify number of
positions to rotate or shift data inputs
• Example: n = 16
– DIN[15:0], DOUT[15:0], S[3:0] (shift
amount)
• Many possible solutions, all based on
multiplexers
Lect #8
Rissacher EE365
16 16-to-1
MUXs
16-to-1 mux =
2 x 74x151
8-to-1 mux
+ NAND gate
Lect #8
Rissacher EE365
4 16-bit 2-to-1 MUXs
16-bit 2-to-1 mux = 4 x 74x157 4-bit 2-to-1 mux
Lect #8
Rissacher EE365
Properties of different
approaches
Lect #8
Rissacher EE365
2-input XOR gates
• Like an OR gate, but excludes the case
where both inputs are 1.
• XNOR: complement of XOR
Lect #8
Rissacher EE365
XOR and XNOR symbols
Lect #8
Rissacher EE365
Gate-level XOR circuits
• No direct realization with just a few
transistors.
Lect #8
Rissacher EE365
CMOS XOR with transmission gates
IF B==1 THEN Z = !A;
ELSE Z = A;
Lect #8
Rissacher EE365
Multi-input XOR
• Sum modulo 2
• Parity computation
• Used to generate and check parity bits in
computer systems.
– Detects any single-bit error
Lect #8
Rissacher EE365
Parity tree
• Faster with balanced tree structure
Lect #8
Rissacher EE365
Next time
•
•
•
•
Lect #8
Comparators
Adders
Multipliers
Read-only memories (ROMs)
Rissacher EE365
Related documents