A5.pdf - EEL 6764 Fall 2018 Homework EEL 6764 Principles of...

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

EEL 6764 Fall 2018 Homework EEL 6764 Principles of Computer Architecture Homework #5 1 Problems Total points : 130 1. [80 pts] Consider the code below. Loop: fld f0, 0(x1) fmul.d f4, f0, f2 fsd f4, 0(x1) fsub.d f4, f10, f14 addi x1, x1, 8 bne x1, x2, Loop // branches if x1 /= x2 Assume the following latencies: (a) fld/fsd : 1 cycle (b) fsub.d : 2 cycles (c) addi/bne : 1 cycle (d) fmul.d : 6 cycles Assume that branches are predicted as taken. Execute the above code for two iterations using 1 Tomasulo’s approach 2 Hardware-based speculation Show the step-by-step execution using the tables in Figure 3.14 (Tomasulo) and 3.16 (HW-based speculation). What are the numbers of cycles to finish the first two iterations using the above two ap- proached? Count the cycles from the first instruction being issued to the last instruction that finishes. I recommend using Excel sheets (a template is available on Canvas) to work on the above two
Image of page 1

Subscribe to view the full document.

Image of page 2
  • Fall '19
  • Instruction processing, Tomasulo algorithm, Tomasulo, step execution

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask 0 bonus questions You can ask 0 questions (0 expire soon) You can ask 0 questions (will expire )
Answers in as fast as 15 minutes