Gate2020 cs Q41

0. A processor has 64 registers and uses 16-bit instruction format. It has two type instruction: I-type and R-type. Each I-type instruction contains an opcode, a register name, and a 4-bit immediate value. Each R-type instruction contains an opcode and two register names. If there are 8 distinct I-type opcodes, then the maximum number of distinct R-type opcodes is _____.

  • Option : A
  • Explanation :
    Gate2020 cs
    ⇒ # of instruction possible = 24 = 16
    ∴ No. of free opcodes = 16 – x
    Let x is number of R-type instruction exist
    ∴ No. of I-type instruction possible = (16 – x) * 22
    8 = 64 – 4x
    4x = 64 – 8 = 56
    x = 14
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *