Westonci.ca offers quick and accurate answers to your questions. Join our community and get the insights you need today. Get the answers you need quickly and accurately from a dedicated community of experts on our Q&A platform. Join our platform to connect with experts ready to provide precise answers to your questions in different areas.

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?

Sagot :

Based on the question attached, the Number of bits that is needed to address a register is 7 bits.

3.  How could the proposed change increase the size of an mips assembly program?

The two-proposed changes decrease the size of an mips assembly program because a lot of complicated operations will need to be put in place or implemented in one instructions instead of numerous instructions due to the lowered register leaking issue. The program's size will be therefore be lowered as a result of this issue.

The proposed change will increase the size of an mips assembly program because  The size of the instruction word will then be brought up or raised if the required bits are added to the opcode and that of the register fields, which will bring up the size of the programmed.

In  the MIPS register file;

The Number of MIPS registers = 128

The Number of bits needed = log₂128

The  Number of bits needed = 7 bits

So Increasing number bits for opcode will be = (6 + 2)

                                                                       = 8

Therefore the answers to question one:

1. R-type instruction

Op-code = 6 bits

rs = 5 bits

rt = 5 bits

rd = 5 bits

shamt = 5 bits

funct = 6 bits

Hence, the size of the opcode field will be go up by two bits, to eight bits and the size of the rs ,rt, and rd fields is also go up to 7 bits.

For question 2 which is I-type instruction, there is:

Op-code = 6 bits

rs = 5 bits

rt = 5 bits

Immediate = 16 bits

Hence, The size of the opcode field will also go up by two bits, to eight bits and the size of the rs, rt  fields will is also go up to 7 bits.

Therefore, Based on the question attached, the Number of bits that is needed to address a register is 7 bits.

Learn more about program from

https://brainly.com/question/14897427

#SPJ1

See full question below

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?

We hope our answers were helpful. Return anytime for more information and answers to any other questions you may have. Thanks for using our service. We're always here to provide accurate and up-to-date answers to all your queries. Find reliable answers at Westonci.ca. Visit us again for the latest updates and expert advice.