Skip to content

Beta · Data may be lost.Your data may be reset or lost.

GateBrew
← GATE CSE 2024 Set 2
Questions

Q51

NAT2 marksComputer organisation

A processor uses a 3232-bit instruction format and supports byte-addressable memory access. The ISA\text{ISA} of the processor has 150150 distinct instructions. The instructions are equally divided into two types, namely R\text{R}-type and I\text{I}-type, whose formats are shown below. R - type Instruction Format:

OPCODEUNUSEDDST RegisterSRC Register 1SRC Register 2\begin{array}{|l|l|l|l|l|} \hline \text{OPCODE} & \text{UNUSED} & \text{DST Register} & \text{SRC Register 1} & \text{SRC Register 2} \\ \hline \end{array}

I - type Instruction Format:

OPCODEDST RegisterSRC Register# Immediate value/address\begin{array}{|l|l|l|l|} \hline \text{OPCODE} & \text{DST Register} & \text{SRC Register} & \text{\# Immediate value/address} \\ \hline \end{array}

In the OPCODE\text{OPCODE}, 11 bit is used to distinguish between I\text{I}-type and R\text{R}-type instructions and the remaining bits indicate the operation. The processor has 5050 architectural registers, and all register fields in the instructions are of equal size. Let X\text{X} be the number of bits used to encode the UNUSED\text{UNUSED} field, Y\text{Y} be the number of bits used to encode the OPCODE\text{OPCODE} field, and Z\text{Z} be the number of bits used to encode the immediate value/address field. The value of X+2Y+Z\text{X+2Y+Z} is __________.

Sign in to save attempts.

The solution is hidden while you attempt this question. It opens once you check or show the answer.