retagged by
2,123 views
2 votes
2 votes
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 ___________.
retagged by

1 Answer

1 votes
1 votes

Instruction size = 32 bits

Given that no. of Registers = 16

So no. of bits needed to specify a register in instruction = 4

Given that no. of Addressing modes = 8

So no. of bits needed to specify an addressing mode in instruction = 3

No. of bits available for opcode = Instruction size - (Addressing mode field size + 2 * Register field size + Scalar field size)

 = 32 - (3 + 2*4 + 16)

 = 32 - 27

 = 5

So maximum no. of unique opcodes possible = 2^5 = 32

edited by
Answer:

Related questions

2.2k
views
1 answers
1 votes
Arjun asked Feb 16
2,215 views
A processor uses a $32$-bit instruction format and supports byte-addressable memory access. The $\text{ISA}$ of the processor has $150$ distinct instructions. The ... value/address field. The value of $\text{X+2Y+Z}$ is __________.
2.2k
views
1 answers
2 votes
Arjun asked Feb 16
2,210 views
A non-pipelined instruction execution unit operating at $2 \mathrm{GHz}$ takes an average of $6$ ... place) obtained by the pipelined design over the non-pipelined design is ____________.
21.5k
views
4 answers
68 votes
Akash Kanase asked Feb 12, 2016
21,503 views
Consider a processor with $64$ registers and an instruction set of size twelve. Each instruction has five distinct fields, namely, opcode, two source register ... amount of memory (in bytes) consumed by the program text is _________.
18.8k
views
6 answers
49 votes
go_editor asked Sep 26, 2014
18,807 views
A machine has a $32\text{-bit}$ architecture, with $1\text{-word}$ long instructions. It has $64$ registers, each of which is $32$ ... immediate operand is an unsigned integer, the maximum value of the immediate operand is ____________