GATE Computer ScienceHardGATE CSE · NIELIT
A 32-bit instruction format holds two register specifiers (the machine has 48 registers) and a 12-bit immediate; all remaining bits form the opcode. How many distinct opcodes can this format encode?
- A. 1024
- B. 128
- C. 512
- D. 256
Correct answer: D. 256
48 registers need ⌈log2 48⌉ = 6 bits each; opcode bits = 32 − 2·6 − 12 = 8, so 2^8 = 256.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A SECDED (single-error-correct, double-error-detect) extended Hamming code protects 256 data bits. What is the total number of bits stored…
- A virtually indexed, physically tagged 256 KB cache is 8-way set associative with 64-byte lines. The page size is 4 KB. Into how many page…
- A program spends 40% of its time in floating-point operations, 30% in memory operations and 30% elsewhere. FP operations are made 5 times…
- A direct-mapped cache has 8 lines and block-number mapping line = block mod 8. The following block numbers are accessed in order: 0, 1, 0…
- A 2-way set-associative cache with 4 sets uses LRU replacement and set = block mod 4. Blocks accessed in order: 1, 5, 9, 2, 6, 1, 5, 3, 7…
- A fully associative cache with FIFO replacement serves the block reference string 1, 2, 3, 4, 1, 2, 5, 1, 2, 3, 4, 5. How many misses…