retagged by
7,371 views
0 votes
0 votes
A computer uses a memory unit with 256K words of 32 bits each. A binary instruction code is stored in one word of memory. The instruction has four parts: an indirect bit, an operation code, a register code part to specify one of 64 registers and an address part. How many bits are there in the operation code, the register code part, and the address part respectively?
retagged by

2 Answers

1 votes
1 votes

RISC architecture follows 

32 bit instruction format:

Indirect bit consider as Register indirect, so one of the register we use to differentiate with the different registers.

operation indirect bit register address part
2 6 6 18

 

0 votes
0 votes

An instruction size is given as 32-bits.
Now, the instruction is divided into four parts :
An indirect bit
Register code part : Since number of registers given as 64(26) so to identify each register uniquely 6-bits are needed.
Address part : 256K(218) word memory is mentioned so to identify each word uniquely 18-bits are needed.
Operation code:
Size of Operation code = Complete instruction size - (size of indirect bit + size of register code + size of address part)
Size of Operation code = 7-bits

Related questions

0 votes
0 votes
1 answer
2
someshawasthi asked Oct 27, 2022
499 views
Assume an instruction set that uses a fixed 31 bit instruction length. Operand specifies are 4 bits in length. If there are m-three operand instructions in total, then ho...
1 votes
1 votes
2 answers
4