GATE Computer ScienceEasyGATE CS (PYQ pattern)
A processor has 64 general registers and a fixed 32-bit instruction word. Its three-register format has three 6-bit register fields and nothing else besides the opcode. What is the largest number of distinct opcodes this format can encode?
- A. 32768
- B. 16384
- C. 4096
- D. 8192
Correct answer: B. 16384
Register fields use 3 × 6 = 18 bits, leaving 32 − 18 = 14 bits of opcode, so 2¹⁴ = 16384.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A cache has a 2-cycle hit time. 70% of memory accesses are reads, which miss 5% of the time with a 40-cycle miss penalty. The other 30%…
- An 8-bit floating-point format has 1 sign bit, 4 exponent bits with bias 7 and 3 fraction bits, with IEEE-style rules (exponent field 0000…
- Five instructions occur with relative frequencies 0.4, 0.2, 0.2, 0.1 and 0.1. A fixed-length opcode would need 3 bits. What is the minimum…
- An in-order 2-issue processor starts up to two consecutive instructions per cycle. The second is issued with the first only if it has no…
- A loop body is LW, ADD (uses the loaded value), SW, ADDI, BNE and runs 1000 times on a 5-stage pipeline with forwarding: the ADD right…
- A cache has 64 sets of 4 ways. Exact LRU stores the full recency order of each set using the minimum number of bits; tree pseudo-LRU…