341_Homework_6.pdf - CECS 341 Computer Architecture 2018 R...

This preview shows page 1 - 2 out of 2 pages.

CECS 341 Computer Architecture © 2018 R. W. Allison Homework 6 Page 1 Homework #6Name_____________________________ SID_____________________________ Using this sheet as the cover sheet, submit solutions for these problems on separate sheets of paper (when necessary), clearly showing all your work. 1. We wish to add the instruction lui(load upper immediate) to the multicycle datapath described in class (refer to page 8 of the “341_Datapath_Control_3” PowerPoint slides). The luiinstruction is described in Chapter 2. (a)Add any necessary datapath elements and control signals to the multicycle datapath. (b)Write the RTL steps that will need to be performed to execute the new instruction. (c)Show the necessary modifications to the finite state machine on page 46 of “341_Datapath_Control_3” slides(d)How many cycles it takes to execute the new instruction on your modified datapath and finite state machine.You may find it helpful to examine the execution steps shown on the 341_Datapath_Control_3 lecture slides ( pages 13 through 42). You can photocopy existing figures to make it easier to show your modifications. Try to find a solution that minimizes the number of clock cycles required for the new instruction. 2.This question is similar to Problem 1 except that we wish to add the swapinstruction, where two MIPS registers are exchanged, illustrated below: swap $t5, $t6 # $t5 $t6 and $t6 Do not modify any other registers in the register file. Since the instruction format for swap has not yet been defined, you are free to define it however you wish. 3.This question is similar to Problem 1 except that we wish to add a new instruction, wai(. $t5

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture