CSCI 370 Computer Architecture: Homework 4

Due date: On or before Monday, April 28, 2025
Absolutely no copying others’ works
Name: ___________________________

  1. Answer the following questions:

    1. (10%) What is the latency of an R-type instruction (i.e., how long must the clock period be to ensure that this instruction works correctly)?
      Hint: Find the time for the critical (longest-latency) path as there may have several paths for an instruction.
      Ans>
        R-type (“add $t1, $t2, $t3,” e.g.) ⇒ 40 (PC: Register Read) + 230 (I-Mem) + 120 (Register File) + 20 (Mux) + 210 (ALU) + 20 (Mux) + 15 (Register File: Register Setup) = 655 ps

    2. (10%) What is the latency of lw?
      Ans>
        lw:


    3. (10%) What is the latency of sw?
      Ans>
        sw:


    4. (10%) What is the latency of beq?
      Ans>
        beq:


    5. (10%) What is the latency of an arithmetic, logic, or shift I-type (non-load) instruction?
      Ans>
        I-type:


    6. (10%) What is the minimum clock period for this CPU?
      Hint: This is a single-cycle datapath in which all instructions are executed in one clock cycle.
      Ans>


  2. Consider the addition of a multiplier to the CPU shown in the above figures in Slide 12.10. This addition will add 320 ps to the latency of the ALU, but will reduce the number of instructions by 7% (because there will no longer be a need to emulate the multiply instruction).

    1. (10%) What is the clock cycle time with and without this improvement?
      Hint: The clock cycle time without this improvement is from the answer of above question 1.f.
      Ans>
      • Without improvement:

      • With improvement:


    2. (10%) What is the speedup achieved by adding this improvement?
      Hint: Speedup from the addition = running time without the addition ÷ running time with the addition
      Ans>




    3. (10%) What is the slowest the new ALU can be and still result in improved performance?
      Ans>