Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Calculate the CPI on these 2 problems a) Assume a program has a base CPI of 1, and is 20% branches. The branch predictor has

Calculate the CPI on these 2 problems

a) Assume a program has a base CPI of 1, and is 20% branches. The branch predictor has an accuracy of 90%, and a 3 cycle miss penalty. (There is no penalty if it is correct.) What will the CPI of your program be, including cycles due to miss penalties?

b) A program has a base CPI of 1. It is 50% r-type instructions, 30% load-stores, and 20% branches. 25% of r-type instructions follow a load instruction that they depend on. The branch predictor is 80% accurate. There is a 1-cycle penalty for data hazards, and a 2-cycle penalty for mis-predicted branches. What is the CPI of the program?

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

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions