Beruflich Dokumente
Kultur Dokumente
• Decoders
• Decoders in AHDL
• Multiplexers and demultiplexers
• Multiplexers in AHDL
• Bus buffers and tri-state buffers
Decoders and Multiplexers
Decoders
A decoder is a combinational logic circuit that converts
an n-bit input code into m output lines.
Each combination of the input selects only one of the
output lines.
The input binary number is said to be decoded by the
circuit.
If we ignore the control inputs, such as chip-enable, an
n-input decoder has 2n outputs. For example, a 3-input
decoder has 23 = 8 outputs.
Decoders and Multiplexers
Decoders
A two-line to four-line decoder and its truth table.
Y0 B A Y0 Y1 Y2 Y3
A 0 0 0 1 1 1
Y1
0 1 1 0 1 1
B Y2
1 0 1 1 0 1
Y3 1 1 1 1 1 0
Select inputs B Y6
C Y7
A Y8 Y0
B Y9 Y1
C Y10 Y2
1 Y11 +5V Y3
Y12 2 Y4
D Y13 Y5
Y14 Y6
Y15 Y7
Schematic circuit
Apart from memory decoding, decoders are used in
many specialised applications. We will now look at two
of these: BCD-to-decimal decoders and BCD-to-7-
segment decoders.
Decoders and Multiplexers
BCD-to-decimal decoder and BCD-to-7-segment
decoder/driver
A BCD-to-decimal decoder converts a binary-coded-
decimal input to give an output that corresponds to the
decimal number. Such a decoder is also called a 4-line to
10-line decoder or a 1-of-10 decoder.
An example is the 74LS42. This 16-pin device has four
inputs called A, B, C, D, and ten outputs labelled 0 to 9.
Refer to a manufacturer’s data manual for details of the
pin diagram and the logic diagram for this device.
Decoders and Multiplexers
BCD-to-decimal decoder and BCD-to-7-segment
decoder/driver
BI/RBO
1The blanking input can also be used to control the intensity of the display by
applying a periodic pulse to it.
Decoders and Multiplexers
BCD-to-decimal decoder and BCD-to-7-segment
decoder/driver
+5V
Lamp-test f b
g
7446
A
Inputs B e c
C
D d