GATEverse
← GATE CSE 2024 Set 2

Q51

NAT2 marks

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: \begin{array}{|l|l|l|l|l|} \hline OPCODE & UNUSED & DST Register & SRC Register1 & SRC Register 2 \\ \hline \end{array} I - type Instruction Format: \begin{array}{|l|l|l|l|} \hline OPCODE & DST Register & SRC Register & \# 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.

Loading…