Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CMP 334 Homework CMP334 Homework 13: Branch Prediction Suppose 20% of the instructions executed by a pipeline processor are conditional branch instructions. Three out of

CMP 334 Homework
image text in transcribed
CMP334 Homework 13: Branch Prediction Suppose 20% of the instructions executed by a pipeline processor are conditional branch instructions. Three out of four of these are backward branches, of these four fifths are taken branches. Of the forward conditional branches, three fifths are taken. Suppose further that a taken branch (backward or forward) stalls 3 cycles if it is predicted correctly, but 4 cycles if it is not. Branches (in either direction) that are not taken do not stall if they are predicted correctly. Otherwise, they stall for 2 cycles Compute the stall cycles per instruction (SCPI) for each of the following static branch prediction strategies: a) predict all branches not taken b) predict forward branches taken; backward branches not taken c) predict forward branches not taken, backward branches taken d) predict all branches taken Which strategy will achieve the best performance? Hint Fill out the following table. direction actual predicted? cycles frequency SCPI taken yes backward no ves no yes no not taken taken forward not taken no

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

Recommended Textbook for

Database Management System MCQs Multiple Choice Questions And Answers

Authors: Arshad Iqbal

1st Edition

1073328554, 978-1073328550

More Books

Students also viewed these Databases questions

Question

LO3 Discuss the steps of a typical selection process.

Answered: 1 week ago