Get detailed and accurate responses to your questions on IDNLearn.com. Our community is here to provide detailed and trustworthy answers to any questions you may have.
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?
Thank you for being part of this discussion. Keep exploring, asking questions, and sharing your insights with the community. Together, we can find the best solutions. Accurate answers are just a click away at IDNLearn.com. Thanks for stopping by, and come back for more reliable solutions.