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 $t1 and the destination address is in $t2, and the number of words to copy is in $t3(which is >0). Furthermore, assume that the values of these registers as well as register $t4 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 $t4,0($t1)
sw $t4,0($t2)
addi $t1, $t1,4
addi $t2, $t2,4
addi $t3, $t3,-1
bne $t3, $0, 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 so,carry out the necessary modification.
Suppose there were a MIPS instruction called bcp

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!