Respuesta :
Answer: Â
For 32 bits Instruction Format:
OPCODE Â DR Â Â Â Â Â Â Â SR1 Â Â Â Â Â Â Â Â Â SR2 Â Â Â Unused bits
a) Minimum number of bits required to represent the OPCODE = 3 bits
There are 8 opcodes. Patterns required for these opcodes must be unique. For this purpose, take log base 2 of 8 and then ceil the result.
Ceil (log2 (8)) = 3
b) Minimum number of bits For Destination Register(DR) = 4 bits
There are 10 registers. For unique register values take log base 2 of 10 and then ceil the value. Â 4 bits are required for each register. Hence, DR, SR1 and SR2 all require 12 bits in all. Â
Ceil (log2 (10)) = 4
c) Maximum number of UNUSED bits in Instruction encoding = 17 bits
Total number of bits used = bits used for registers + bits used for OPCODE Â
   = 12 + 3 = 15 Â
Total  number of bits for instruction format = 32 Â
Maximum  No. of Unused bits = 32 – 15 = 17 bits Â
OPCODE Â Â Â Â Â Â Â Â DR Â Â Â Â Â Â Â SR1 Â Â Â Â Â Â SR2 Â Â Â Â Â Â Â Unused bits
 3 bits        4 bits      4 bits      4 bits         17 bits