COMP3370A3.pdf - COMP3370 A3 Jingyi Huang 7787399 1 a b Actual CPI should be 5 199 = 204 Total time 204*250 = 5.1 × 10$ ps 2 In this instruction

COMP3370A3.pdf - COMP3370 A3 Jingyi Huang 7787399 1 a b...

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

COMP3370 A3 Jingyi Huang 7787399 1. a) Actual CPI should be 5+199 = 204 b) Total time: 204*250 = 5.1 × 10 $ ps 2. In this instruction sequences, there are 3 dependencies. And we need to check every single instruction to make sure there is no MEM hazard. Here, in I-1, the data in EX/MEM should be forwarded to I-2 since we need to use it in ID/EX buffer. Also, we need to compare the value in MEM/WB with the value in EX/MEM. If they are the same, the I-2 is not done with ALU operation, thus we need to wait until the outcome before we forward the result to I-3. So, the Data path diagram should be: The modified equation: IF (MEM/WB.RegWrite and (MEM/WB.RegisterRd ≠ 0) and (MEM/WB.RegsterRd = ID/EX.RegisterRs)) and (ID/EX.RegisterRd ≠ 0 ) then Forward value read to 2 nd ALU input. 3. Branch history table (BHT) is a table contains the address of branch instruction and prediction bits; it uses the tagged structure, after an entry is referenced, its tag is compared against the address of the branch instruction to decide if the branch is taken or not; if it matches, hit occurs and the prediction bits from this entry are used to predict the branch outcome, otherwise, the branch is not taken. We use the index of the address of branch instruction to access this table;
Image of page 1
Image of page 2

You've reached the end of your free preview.

Want to read all 4 pages?

  • Spring '17

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

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors