Name: Date:

HW13

(20 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

Add any necessary datapaths and control signals to the single-cycle datapath of Figure 4.21, on page 277.

  1. Write the RTL for this new instruction. It may be helpful to review the RTL on the course website.
  1. Adjust the datapth figure (attached) to execute your RTL.
  1. Provide an updated set of control signals for the new instruction. You may add signals to this table as necessary.
Instruction name ALUSrc ALUOp MemtoReg RegWrite MemRead MemWrite

Modify this figure for your instruction.