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

Question 5(i)

5 marks

Computer ScienceISC 2025 Computer Science Paper 1DrawingComputer Hardware

Draw the following.

What is an encoder? Draw the logic gate diagram for an octal to binary encoder. State one…

What is an encoder? Draw the logic gate diagram for an octal to binary encoder. State one application of a decoder.

Draw: logic gate diagram for an octal to binary encoder

Answer

Answer

An encoder is a combinational logic circuit that converts $2^n$ input lines (of which only one is active/HIGH at a time) into an n-bit binary code on its output lines - it performs the reverse operation of a decoder. Application of a decoder: Decoders are used in memory address decoding, to select one specific memory location / register out of many, from its binary address. Octal to binary encoder: 8 input lines $D_0$ to $D_7$ (only one active at a time) and 3 outputs $A_2 A_1 A_0$: $A_2 = D_4 + D_5 + D_6 + D_7$ $A_1 = D_2 + D_3 + D_6 + D_7$ $A_0 = D_1 + D_3 + D_5 + D_7$ $D_0$ (code 000) needs no connection: when it is active all three outputs stay 0.
Diagram for this answer