DLCA M2 GATE Activity
DLCA M2 GATE Activity
MODULE 2
PROCESSOR
ORGANISATION &
ARCHITECTURE
Group Members
1. Zeal Gori - 21
2. Ujjay Manety - 33
3. Vansh Mojidra - 36
4. Kasak Vakharia - 60
ZEAL GORI - 21
Q) A processor has 40 distinct instructions and 24 general purpose
registers. A 32-bit instruction word has an opcode, two register
operands and an immediate operand. The number of bits available for
the immediate operand field is ____ .
GATE CSE 2016 Set
2
Determine opcode bits:
● Number of instructions = 40
● Opcode bits =[log2(40)]=6
Final answer:
The number of bits available for the immediate operand field is 16 bits.
UJJAY MANETY - 33
Q) A processor with 16 general purpose registers uses a 32-bit instruction
format. The instruction format consists of an opcode field, an addressing
mode field, two register operand fields, and a 16-bit scalar field. If 8
addressing modes are to be supported, the maximum number of unique
opcodes possible for every addressing mode is _________
GATE CSE 2024 Set
2
To determine the maximum number of unique opcodes possible for every
addressing mode, we start by analyzing the structure of the 32-bit
instruction format based on the given components:
= 32 - (3 + 2*4 + 16)
= 32 - 27
=5
= 32 -(6+12)= 14 BITS
= 2n -1
= 214 -1
= 16383
KASAK VAKHARIA -
60
Q) Consider a processor with 64 registers and an instruction
set of size twelve. Each instruction has five distinct fields,
namely, opcode, two source register identifiers, one destination
register identifier, and twelve-bit immediate value. Each
instruction must be stored in memory in a byte-aligned
fashion. If a program has 100 instructions, the amount of
memory (in bytes) consumed by the program text is
_________.
Number of Instructions = 12
Opcode size =log2(12) = 4