decoders. a decoder is multiple-input, multiple-output logic circuit that converts coded inputs into...

24
Decoders

Upload: kristian-nash

Post on 06-Jan-2018

237 views

Category:

Documents


0 download

DESCRIPTION

Decoders General decoder structure Typically n inputs decoder has 2 n outputs –2-to-4, 3-to-8, 4-to-16, etc.

TRANSCRIPT

Page 1: Decoders. A decoder is multiple-input, multiple-output logic circuit that converts coded inputs into coded outputs. Input code with fewer bits than the

Decoders

Page 2: Decoders. A decoder is multiple-input, multiple-output logic circuit that converts coded inputs into coded outputs. Input code with fewer bits than the

Decoders• A decoder is multiple-input, multiple-output logic circuit

that converts coded inputs into coded outputs.• Input code with fewer bits than the output bits.

– Typically n inputs decoder has 2n outputs• 2-to-4, 3-to-8, 4-to-16, etc.

• There is a one-to-one mapping.

Page 3: Decoders. A decoder is multiple-input, multiple-output logic circuit that converts coded inputs into coded outputs. Input code with fewer bits than the

Decoders• General decoder structure

• Typically n inputs decoder has 2n outputs– 2-to-4, 3-to-8, 4-to-16, etc.

Page 4: Decoders. A decoder is multiple-input, multiple-output logic circuit that converts coded inputs into coded outputs. Input code with fewer bits than the

Binary 2-to-4 decoder

Note “x” (don’t care) notation.

Page 5: Decoders. A decoder is multiple-input, multiple-output logic circuit that converts coded inputs into coded outputs. Input code with fewer bits than the

2-to-4-decoder logic diagram

Page 6: Decoders. A decoder is multiple-input, multiple-output logic circuit that converts coded inputs into coded outputs. Input code with fewer bits than the

Decoder applications• Microprocessor memory systems

– selecting different banks of memory• Microprocessor input/output systems

– selecting different devices• Microprocessor instruction decoding

– enabling different functional units• Memory chips

– enabling different rows of memory depending on address• Lots of other applications

Page 7: Decoders. A decoder is multiple-input, multiple-output logic circuit that converts coded inputs into coded outputs. Input code with fewer bits than the

Decoding Circuits• Have to be able to decode particular combinations of input

signals.– Need to decode the address lines to determine where the

data is to go.– Used to transfer data from or to memory or peripherals.– Take a number of input signals and provide enough

outputs to indicate what the input was.

Page 8: Decoders. A decoder is multiple-input, multiple-output logic circuit that converts coded inputs into coded outputs. Input code with fewer bits than the

Decoding Circuits• If the input is two binary signals, there would have to be

four outputs. • One output for each input combination.

Page 9: Decoders. A decoder is multiple-input, multiple-output logic circuit that converts coded inputs into coded outputs. Input code with fewer bits than the

Two Bit Decoder

D0

D1

3

2

1

0

D1 D0 0 1 2 3

0 0

0 1

1 0

1 1

Page 10: Decoders. A decoder is multiple-input, multiple-output logic circuit that converts coded inputs into coded outputs. Input code with fewer bits than the

MSI 2-to-4 decoder

• Input buffering (less load)• NAND gates (faster)

Page 11: Decoders. A decoder is multiple-input, multiple-output logic circuit that converts coded inputs into coded outputs. Input code with fewer bits than the

Decoder Symbol

Page 12: Decoders. A decoder is multiple-input, multiple-output logic circuit that converts coded inputs into coded outputs. Input code with fewer bits than the

More decoder symbols

Page 13: Decoders. A decoder is multiple-input, multiple-output logic circuit that converts coded inputs into coded outputs. Input code with fewer bits than the

Complete 74x139 Decoder

Page 14: Decoders. A decoder is multiple-input, multiple-output logic circuit that converts coded inputs into coded outputs. Input code with fewer bits than the

3-to-8 decoder

Page 15: Decoders. A decoder is multiple-input, multiple-output logic circuit that converts coded inputs into coded outputs. Input code with fewer bits than the

74x138: 3-to-8-decoder symbol

Page 16: Decoders. A decoder is multiple-input, multiple-output logic circuit that converts coded inputs into coded outputs. Input code with fewer bits than the

Decoder cascading

4-to-16 decoder

Page 17: Decoders. A decoder is multiple-input, multiple-output logic circuit that converts coded inputs into coded outputs. Input code with fewer bits than the

More cascading

5-to-32 decoder

Page 18: Decoders. A decoder is multiple-input, multiple-output logic circuit that converts coded inputs into coded outputs. Input code with fewer bits than the

Decoder ICs• 74138Octal decoder (3-line-to-8-line)• 74154hex decoder (4-line-to-16-line)• 7442 BCD (Binary Coded Decimal) decoder (4-to-10)• 7447 BCD to seven-Segment decoder (4-line-to-7-line)

Page 19: Decoders. A decoder is multiple-input, multiple-output logic circuit that converts coded inputs into coded outputs. Input code with fewer bits than the

Binary encoders

Page 20: Decoders. A decoder is multiple-input, multiple-output logic circuit that converts coded inputs into coded outputs. Input code with fewer bits than the

Three-state buffers• Output = LOW, HIGH, or Hi-Z.

• Can tie multiple outputs together, if at most one at a time is driven.

Page 21: Decoders. A decoder is multiple-input, multiple-output logic circuit that converts coded inputs into coded outputs. Input code with fewer bits than the

Three-state buffers• When the enable input is not asserted, the device output “floats”; that is, it goes to a high-

impedance (Hi-Z), disconnected state and functionally behaves as if it weren’t even there.

Page 22: Decoders. A decoder is multiple-input, multiple-output logic circuit that converts coded inputs into coded outputs. Input code with fewer bits than the

Different flavors

Page 23: Decoders. A decoder is multiple-input, multiple-output logic circuit that converts coded inputs into coded outputs. Input code with fewer bits than the
Page 24: Decoders. A decoder is multiple-input, multiple-output logic circuit that converts coded inputs into coded outputs. Input code with fewer bits than the

timing• Typically three-state devices are designed so that they go

into the Hi-Z state faster than they come out of the Hi-Z state.

• That ensures the first device to get off the party line before the second one gets on.

• Otherwise excessive current will flow.• The safe way to use three-state devices is to design control

logic that guarantees a dead time, during which no one is driving the party line.