Question

In: Computer Science

Suppose that our 9-member MIPS core instruction subset is to be augmented to include the addiu...

Suppose that our 9-member MIPS core instruction subset is to be augmented to include the addiu instruction. Explain how just the control bits generated by the control unit must be expanded or modified to allow the addiu instruction to be executed on the single-cycle datapath. Indicate the proper setting for each of the bits generated by the control unit for an addiu instruction

Solutions

Expert Solution

Question is not clear even though i am giving the basic explanation of MIPS core instructions and ADDIU instruction basics.

Reply me to this answer for further assistance.

The MIPS has a 32 bit architecture, with 32 bit instructions, a 32 bit data word, and 32 bit addresses. It has 32 addressable internal registers requiring a 5 bit register address. Register 0 always has the the constant value 0. Addresses are for individual bytes (8 bits) but instructions must have addresses which are a multiple of 4. This is usually stated as “instructions must be word aligned in memory.”

ALU
Some arithmetic and logical instructions operate on one operand from a register and the other from a 16-bit immediate value in the instruction word. The immediate operand is treated as signed for the arithmetic and compare instructions, and treated as logical (zero-extended to register length) for the logical instructions.

ADDIU ==> Add Immediate Unsigned Word

ADDIU performs the same arithmetic operation but, does not trap on overflow.


Related Solutions

A new instruction is to be included in our core MIPS instruction subset. This new true-op...
A new instruction is to be included in our core MIPS instruction subset. This new true-op instruction is addm rt,disp(rs) which computes the sum of the contents of a memory word plus the contents of the rt register and places the sum back into the rt register. a) Show the MIPS machine code format required for this new true-op instruction. b) Are any changes to the multi-cycle datapath required to support this new true-op instruction? If so, describe the required...
Suppose the opcode of an MIPS instruction is 12 in decimal, and the rest of the...
Suppose the opcode of an MIPS instruction is 12 in decimal, and the rest of the machine code is 23483DB in hexadecimal (from high-order bit to low-order bit). What is the instruction? When showing the registers, use names (e.g. $t0, $s2) instead of indices (e.g $8, $17). For branch instructions, show offset in place of label, e.g. beq $t1, $t2, 92.
Our MIPS assembly version will “compile” the following C program: #include void Compare(int b1, int h1,...
Our MIPS assembly version will “compile” the following C program: #include void Compare(int b1, int h1, int b2, int h2); int Area(int b, int h); int main(int argc, char **argv) { int base1, base2, height1, height2; base1=10; base2=12; height1=8; height2=7; Compare(base1, height1, base2, height2); return 0; } void Compare(int b1, int h1, int b2, int h2) { int A1=Area(b1, h1); int A2=Area(b2, h2); if (A1>=A2) printf("Area1 is greater than Area2.\n"); else printf("Area2 is greater than Area1.\n"); } int Area(int b,...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT