decoders. a decoder is multiple-input, multiple-output logic circuit that converts coded inputs into...
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](https://reader033.vdocuments.us/reader033/viewer/2022052514/5a4d1ad67f8b9ab059973206/html5/thumbnails/1.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022052514/5a4d1ad67f8b9ab059973206/html5/thumbnails/2.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022052514/5a4d1ad67f8b9ab059973206/html5/thumbnails/3.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022052514/5a4d1ad67f8b9ab059973206/html5/thumbnails/4.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022052514/5a4d1ad67f8b9ab059973206/html5/thumbnails/5.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022052514/5a4d1ad67f8b9ab059973206/html5/thumbnails/6.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022052514/5a4d1ad67f8b9ab059973206/html5/thumbnails/7.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022052514/5a4d1ad67f8b9ab059973206/html5/thumbnails/8.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022052514/5a4d1ad67f8b9ab059973206/html5/thumbnails/9.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022052514/5a4d1ad67f8b9ab059973206/html5/thumbnails/10.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022052514/5a4d1ad67f8b9ab059973206/html5/thumbnails/11.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022052514/5a4d1ad67f8b9ab059973206/html5/thumbnails/12.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022052514/5a4d1ad67f8b9ab059973206/html5/thumbnails/13.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022052514/5a4d1ad67f8b9ab059973206/html5/thumbnails/14.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022052514/5a4d1ad67f8b9ab059973206/html5/thumbnails/15.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022052514/5a4d1ad67f8b9ab059973206/html5/thumbnails/16.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022052514/5a4d1ad67f8b9ab059973206/html5/thumbnails/17.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022052514/5a4d1ad67f8b9ab059973206/html5/thumbnails/18.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022052514/5a4d1ad67f8b9ab059973206/html5/thumbnails/19.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022052514/5a4d1ad67f8b9ab059973206/html5/thumbnails/20.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022052514/5a4d1ad67f8b9ab059973206/html5/thumbnails/21.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022052514/5a4d1ad67f8b9ab059973206/html5/thumbnails/22.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022052514/5a4d1ad67f8b9ab059973206/html5/thumbnails/23.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022052514/5a4d1ad67f8b9ab059973206/html5/thumbnails/24.jpg)
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.