How is a decoder different from a multiplexer? Draw the logic circuit for 3:8 decoder (Octal…
How is a decoder different from a multiplexer? Draw the logic circuit for 3:8 decoder (Octal decoder). Which multiplexer can be derived from the Octal decoder?
Answer
Answer
Decoder vs Multiplexer:
A decoder is a combinational circuit that converts n input (address) lines into a maximum of 2^n unique, mutually exclusive output lines.
A multiplexer selects one out of 2^n input data lines, based on n select lines, and routes it to a single output line.
3:8 Decoder (Octal decoder):
It has 3 input lines (A2, A1, A0) with their complements available, an Enable input E, and 8 output lines D0 to D7, each generated by a 4-input AND gate:
D0 = E.A2'.A1'.A0'
D1 = E.A2'.A1'.A0
D2 = E.A2'.A1.A0'
D3 = E.A2'.A1.A0
D4 = E.A2.A1'.A0'
D5 = E.A2.A1'.A0
D6 = E.A2.A1.A0'
D7 = E.A2.A1.A0
An 8:1 multiplexer can be derived from the 3:8 decoder: if each decoder output Di is ANDed with a data input Ii and all eight AND outputs are fed into one 8-input OR gate, the circuit selects and outputs the data input corresponding to the 3-bit address, which is exactly an 8:1 multiplexer.