Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

A digital computer has a memory unit with 24 bits per word. The instruction set

ID: 3560255 • Letter: A

Question

A digital computer has a memory unit with 24 bits per word. The instruction set consists of150 different operations. All instructions have an operation code part (opcode) and anaddress part (allowing for only one address). Each instruction is stored in one word of memory.

a.How many bits are needed for the opcode?

b.How many bits are left for the address part of the instruction?

c.What is the maximum allowable size for memory?

d.What is the largest unsigned binary number that can be accommodated in one word of memory?

PLEASE SHOW STEPS AND EXPLAIN, THANK YOU

Explanation / Answer

a) Instruction set has 150 instructions...
    We know that opcode should differentiate theinstructions...therefore the number of bits allocated to opcodemust differentiate the 150 instructions..
    If we allocate 8 bits to opcode..then it canaccommodate 28 = 256 instructions...if we allocate 7bits then it can only accommodate 27 = 128instructions.
    As number of instructions is 150 >128 ....wehave to allocate 8 bits for theopcode

b) Bits left for address part = 24 bits - bits for opcode
                                         =24 -8
                                          = 16 bits

c) Address part should be accommodate using 16 bits...
    Therefore there can be at most 216addresses.
    Assuming each word has an address..there can be216 words of memory
    Therefore Maximum allowable size of memory = 216words

d) Largest unsigned binary integer that can be accommodated inmemory can be calculated as follows.
    Each word has 24 bits..therefore the maximumpossible binary number is 1111......111 (24 times)
    It is equivalent to 224 -1

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote