Ask Question
19 June, 19:13

Assume that we would like to expand the MIPS register file to 128 registers and expand the instruction set to contain four times as many instructions. 1. How this would this affect the size of each of the bit fields in the R-type instructions? 2. How this would this affect the size of each of the bit fields in the I-type instructions? 3. How could each of the two proposed changes decrease the size of an MIPS assembly program? On the other hand, how could the proposed change increase the size of an MIPS assembly program?

+1
Answers (1)
  1. 19 June, 22:58
    0
    1) Effect on R-type instructions:

    log2 (128) = 7 [since 128=27]

    opcode = 6

    rs = 7

    rt = 7

    rd = 7

    shamt = 5

    funct = 6

    Here all the bits ends up with 2 additional bits. As there are 6 bits for opcode in R-type instruction the size of word is 44.

    .2) Effect on I-type Instruction:

    log2 (128) = 7 [since 128=27]

    opcode = 6

    rs = 7

    rt = 7

    immediate = 16

    The word size of the I-type instruction is also 44.

    3)

    The programs will take long time to do the operations if the instruction encoding is long.

    It means the format must be larger as the increases are not aligned.

    The code will decrease if there are more registers.

    Because more registers can hold more information without going to memory.

    As this leads to fewer calls to load or store the code will decrease.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Assume that we would like to expand the MIPS register file to 128 registers and expand the instruction set to contain four times as many ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers