Prashnikaप्रश्निका
Code
About
‹ Back to the paper

Question 5(i)

5 marks

Computer ScienceISC 2023 Specimen Computer Science Paper 1Long answerComputer Hardware

Answer the following.

What is a decoder? How is it different from a multiplexer? Draw the logic circuit for a 2 to 4…

What is a decoder? How is it different from a multiplexer? Draw the logic circuit for a 2 to 4 decoder and explain its working.

Answer

Answer

A decoder is a combinational circuit that converts n coded/binary input lines into a maximum of $2^n$ unique output lines, with exactly one output activated (HIGH) for each unique combination of inputs - it decodes a binary code into one active line among many. Difference from a multiplexer: A multiplexer (MUX) works the other way round - it has $2^n$ data input lines, n select lines, and a SINGLE output; it selects and routes ONE of its many data inputs to that single output based on the select-line combination (many-to-one). 2-to-4 decoder: 2 inputs A, B; 4 outputs D0, D1, D2, D3; built from 2 NOT gates (for A' and B') and 4 two-input AND gates: $D0 = A'B'$, $D1 = A'B$, $D2 = AB'$, $D3 = AB$
Diagram for this answer