Question: Suppose there were a MIPS instruction called bcp , which copied a block of words from one address to another. Assume that this instruction requires
Suppose there were a MIPS instruction called bcp which copied a block of words from
one address to another. Assume that this instruction requires that the starting address of the source block is in register $t and the destination address is in $t and the number of words to copy is in $twhich is Furthermore, assume that the values of these registers as well as register $t can be destroyed in executing this instruction so that the registers can be used as temporaries to execute the instruction
Below is a MIPS assembly language program to implement block copy with instructions
Loop: lw $t$t
sw $t$t
addi $t $t
addi $t $t
addi $t $t
bne $t $ Loop
Make a copy of the figure of the multicycle implementation and add to the datapath the necessary support to implement bne instruction. Do you need any modifications to the datapath to support the addi instruction implementation? If socarry out the necessary modification.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
