GATE / CS ARCHIVE

GATE CSE 1996 / QUESTION 2.25

Encoding at most two active controls

Computer Organization & Architecture · Datapath & Control Unit · Full GATE CSE 1996 paper

GATE 1996, Q2.25 2 marks · MCQ
Report issue

Datapath & Control Unit

Question 2.25, GATE 1996: A microprogram unit has 25 control signals, at most two active in a word. Find the minimum bits; listed choices are 2,25,10,12.
Tap to enlarge
Your answer
Answer & solution

Answer: 9 unrestricted; C:10 only under a two-selector-field architecture (no official key was published)

The legal output patterns are no active signal, one of 25 single signals, or one of C(25,2)=300 pairs: 326 patterns altogether. An unrestricted binary code therefore needs ceil(log₂326)=9 bits, since 256<326≤512. A decoder can map 326 of the 512 codes to these patterns, proving sufficiency. The listed 10-bit choice instead uses two independent five-bit selectors, each able to select one of 25 signals or a no-op. That practical architecture is sufficient but not information-theoretically minimal. No such field restriction is stated, so the missing 9-bit option is an explicit question/model discrepancy.

Original paper, page 7