Vous êtes sur la page 1sur 30

Three-state buffers

• Output = LOW, HIGH, or Hi-Z.

• Can tie multiple outputs together, if at most


one at a time is driven.
1
Different flavors

• Buffers are used to regenerate “Weak” values


(0 or 1) into “Strong” ones. So digital signals
can be transmitted over arbitrary distances
without loss of information.

2
3
Timing considerations

4
Three-state
drivers
5
Driver
application

6
Three-state
transceiver

7
Transceiver
application

8
Encoders vs. Decoders

Decoder Encoder

9
Binary encoders

10
Need priority in most applications

• Each input request for a service


• If multiple requests simultaneously then need to Priority Encoder
Solution: Assign a Priority to the input lines
11
8-input priority encoder

12
Priority-encoder logic equations

13
74x148 8-input priority encoder

– Active-low I/O
– Enable Input
– “Got Something”
– Enable Output
14
74x148 8-input priority encoder
GS_L is asserted when the
device is enabled and one
or more of the request
inputs are assetred.

EI_L must be asserted for any


of outputs to be assetred.

EO_L is used for cascading.


It is designed to be
connected to the EI_L of
another ‘148 that handles
lower priority requests.
– Active-low I/O
EO_L is asserted if EI_L is
asserted but no request – Enable Input
input is assetred. – Group Select “Got Something”
– Enable Output
15
74x148
circuit

16
74x148 Truth Table

17
Cascading
priority encoders

• 32-input
priority encoder

18
Multiplexers

s  log 2n

19
74x151
8-input
multiplexer

20
74x151 truth table

21
CMOS transmission gates

• 2-input multiplexer

22
Other multiplexer varieties

• 2-input, 4-bit-wide
– 74x157

• 4-input, 2-bit-wide
– 74x153

23
Properties of different approaches

27
2-input XOR gates
• Like an OR gate, but excludes the case
where both inputs are 1.

• XNOR: complement of XOR

28
XOR and XNOR symbols

• Any two signals (input or output) of an XOR or


XNOR gate may be complementd without
changing the resulting.
Check with Truth Table!

29
Gate-level XOR circuits
• No direct realization with just a few transistors.

30
CMOS XOR with transmission gates

IF B==1 THEN Z = !A;


ELSE Z = A;
31
Multi-input XOR
• Sum modulo 2
• Parity computation

• Used to generate and check parity bits in


computer systems.
– Detects any single-bit error

32
Parity tree
• Faster with balanced tree structure

33

Vous aimerez peut-être aussi