Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assume the breakdown of dynamic instructions into various instruction categories is as follows: R-type: 40% BEQ: 15% JMP: 10% LW: 25% SW: 10% Assume the

Assume the breakdown of dynamic instructions into various instruction categories is as follows: R-type: 40% BEQ: 15% JMP: 10% LW: 25% SW: 10% Assume the following branch predictor accuracies: Always-taken: 45% 2-Bit: 85%

a. What is the extra CPI due to mis-predicted branches with the 2-bit predictor? Assume the branch outcomes are determined in the EX stage, that there are no data hazards, and that no delay slots are used.

b. With the 2-bit predictor, what speedup would be achieved if we could rewrite the code to replace half the branch instructions with ALU instructions? Assume that correctly and incorrectly predicted instructions have the same chance of being replaced.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Database Programming

Authors: Chris Fehily

1st Edition

1937842312, 978-1937842314

More Books

Students also viewed these Databases questions