GATE / CS ARCHIVE

GATE CSE 1997 / QUESTION 5.3

Encoding micro-operation choices

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

GATE 1997, Q5.3 2 marks · MCQ
Report issue

Datapath & Control Unit

Question 5.3, GATE 1997: A microinstruction selects none or one of three operations of kind 1, and any subset of six operations of kind 2. Minimum bits among 9, 5, 8, none?
Tap to enlarge
Your answer
Answer & solution

Answer: C: 8 (no official key was published)

The first field has four possibilities: no operation or one of three. It requires log 2 4=2 bits. The six independently selectable operations have 26 possible subsets, including none, so they require 6 bits. Together there are 4·64=256 combinations, requiring 8 bits, which the 2+6 field construction achieves. Thus C. Encoding the second field as one of seven choices would incorrectly forbid simultaneous operations.

Original paper, page 5