3,329 views
2 2 votes
Consider a computer has 64 registers and support 15 different instructions. Each instruction has 4 fields i.e. opcode, source register, destination register and immediate value of 6 bits. If each instruction in byte aligned and 50 instructions are present in memory, then the size of memory needed to store these instructions are ________ (in byte).

-----------------------------------------------------------------------------------------------------------------------------

I know the answer

My question is, in this question what is difference between computer has 15 instruction and memory has 50 instructions?

3 Answers

Best answer
7 7 votes

My question is, in this question what is difference between computer has 15 instruction and memory has 50 instructions?

CPU/Processor has 15 Instructions mean "15 Instruction Types..i.e. Instruction set has 15 types of instructions or you can say 15 Opcodes... like ADD, MUL, DIV, MOV, LOAD...etc"

 Memory has 50 instructions mean that the Program stored has 50 Instructions....like there could be ADD 10 times, JMP 20 times..etc..

• selected by
3 3 votes
Opcode Rs Rd Imm.

instruction size = (opcode)+Rs + Rd + immediate value = 4+6+6+6=22bits

memory is byte a=Addressable  so we will need 24 bit or 3 Bytes

there are 50 instructions in program so memory needed =  3 * 50 bytes = 150 Bytes

0 0 votes
Computer supports 15 different instruction, it means our Opcode could be 15, that is we have 15 different operations like DIV, MUL, ADD, SUB etc.

And there are 50 instructions in memory, that is Program has 50 such instruction in which Opcode can have 15 different operations.
Position:
Show:

Related questions

14 14 votes
5 answers 5 answers
20.7k
20.7k views
junaid ahmad asked Jul 24, 2017
20,700 views
Consider the hypothetical processor is supports both 2 address and one address instructions.It has 128 word memory A 16-bit instruction is placed in the one memory word.Q...
14 14 votes
3 answers 3 answers
15.0k
15.0k views
Tehreem asked Sep 9, 2015
14,993 views
A computer uses expanding opcode. It has 16 bit instructions 6 bit addresses, it supports one address, two address instructions only. If there are n two address instructi...
1 1 vote
1 1 answer
1.2k
1.2k views
someshawasthi asked Oct 27, 2022
1,203 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 1 vote
0 0 answers
955
955 views
atulcse asked Jan 15, 2022
955 views
Assume that the control memory is 32 bit wide. The micro-instruction format is divided into 3 fields. A micro operation field of 14 bits specifies the micro-operations to...