Name: Box: Date:


  1. (30 points) We wish to add a variant of the lw (load word) instruction, which increments the index register after loading the word from memory. This instruction (l_inc) corresponds to the following two instructions:

    lw   $rt, L($rs)
    addi $rs, $rs, 4

    Modify the multi-cycle datapath to support the new instruction. Write the RTL for the new instruction below. Then, use the modify the attached multi-cycle datapath and control unit state diagrams. Your changes should be as minimal as possible.

Add your RTL to the table.

Modify this datapath for your instruction.

Add the control for your instruction.