GATE Computer ScienceHardGATE CS (PYQ pattern)

A control store holds 1024 microinstructions. In horizontal form each word has one bit for each of 60 control signals, a 10-bit next-address field and a 4-bit condition-select field. In vertical form the 60 signals are encoded in 7 groups of mutually exclusive signals of sizes 15, 12, 10, 8, 7, 5 and 3, each group's all-zero code meaning 'none'; the address and condition fields stay. How many bits of control store does vertical encoding save?

  1. A. 37,888
  2. B. 36,864
  3. C. 51,200
  4. D. 35,840

Correct answer: B. 36,864

Group widths ⌈log₂(n + 1)⌉ = 4, 4, 4, 4, 3, 3, 2 = 24 bits. Horizontal word = 60 + 14 = 74 bits; vertical = 24 + 14 = 38. Saving = 36 × 1024 = 36,864. Using ⌈log₂ n⌉ forgets the 'none' code (the 8-signal group then needs only 3 bits): 37,888. Dropping the address and condition fields from the vertical word gives 51,200.

More Computer Organization and Architecture questions

Exams that ask this topic