Skip to content
GATEiit

GATE CSE 2018 Q61: Maximum number of 1F instructions in a 16-bit expanding opcode

Syllabus topic: Instruction set and addressing modes

Question

A processor has 16 integer registers (R0, R1, .. , R15) and 64 floating point registers (F0, F1, … , F63). It uses a 2-byte instruction format. There are four categories of instructions: Type-1, Type-2, Type-3, and Type-4. Type-1 category consists of four instructions, each with 3 integer register operands (3Rs). Type-2 category consists of eight instructions, each with 2 floating point register operands (2Fs). Type-3 category consists of fourteen instructions, each with one integer register operand and one floating point register operand (1R+1F). Type-4 category consists of N instructions, each with a floating point register operand (1F).

The maximum value of N is __________.

Try it: numerical answer: type the value

Numerical answer. No negative marking.
Show answer and explanation

Answer: 32 (official GATE 2018 final answer key)

Concept used: Expanding opcodes: each instruction uses up 2operand bits of the 216 available encodings, and the encodings left over limit the remaining category.

Concept notes

Loading notes…

First step: An integer register needs 4 bits and a floating point register 6 bits; count the encodings used by Types 1–3 out of 216 and divide what is left by 26.

Full step-by-step solution

Loading…

Answer from the official final answer key. Found a mistake? Use Report issue and we will fix it.

More questions on Instruction set and addressing modes

Every PYQ on this topic →

Share this question

WhatsAppDownload image

Source: official GATE 2018 CS question paper and final answer key, organised by IIT Guwahati. Question paper · Answer key