Ask Question
29 September, 18:50

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?

+2
Answers (1)
  1. 29 September, 19:02
    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?
Get 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 & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers