GATE CSE 2020 Q54: Maximum R-type opcodes with expanding opcodes in a 16-bit format
- Computer Organization and Architecture
- 2 marks
- NAT
- No negative marking
Question
A processor has 64 registers and uses 16-bit instruction format. It has two types of instructions: 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 _______.
Try it: numerical answer: type the value
Show answer and explanation
Answer: 14 (official GATE 2020 final answer key)
Concept used: Expanding opcodes: unused patterns of the shorter opcode field are extended into longer opcodes.
First step: A register name is 6 bits, so the I-type opcode is bits and the R-type opcode is bits. Count the 6-bit patterns left after the 8 I-type opcodes.
Full step-by-step solution
Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.
Share this question
Source: official GATE 2020 CS question paper and final answer key, organised by IIT Delhi. Question paper · Answer key
More Computer Organization and Architecture PYQs
- 2026 Session 1 · Q14Match addressing modes with high-level data elements
- 2026 Session 1 · Q15Instruction sequence for Z = X + Y on a load-store machine
- 2026 Session 1 · Q16Register dependency that causes a data hazard
- 2026 Session 1 · Q36IEEE 754 single-precision sum of 35C00000 and 34A00000
- 2026 Session 1 · Q38Tag length: direct-mapped vs K-way set-associative cache
- 2026 Session 1 · Q54Impossible TLB / page table / cache event sequences