Name: 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   rd, L(rs1)
    addi rs1, rs1, 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 to the datapath should be as minimal as possible.

Add your RTL to the table.

Modify this datapath for your instruction.

Add the control for your instruction. Note you may need to modify states for other instructions to make sure they still work.