Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. [10+10 pts] The following series of branch outcomes occurs for a single branch in a pro- gram. (T means the branch is taken, N

image text in transcribed
2. [10+10 pts] The following series of branch outcomes occurs for a single branch in a pro- gram. (T means the branch is taken, N means the branch is not taken). Index 1 2 3 4 5 6 7 8 9 10 11 12 13 T, T, N, T, N, T, T T, T, N, T, T, N (a) Assume that we are trying to predict this sequence with a Branch History Table (BHT) using a 1-bit prediction. The counters of the BHT are initialized to the N state. Which of the branches would be mispredicted? Show their indices. (b) Repeat the above exercise with a 2-bit predictor as shown in Figure C.15 initialized to 10 2. [10+10 pts] The following series of branch outcomes occurs for a single branch in a pro- gram. (T means the branch is taken, N means the branch is not taken). Index 1 2 3 4 5 6 7 8 9 10 11 12 13 T, T, N, T, N, T, T T, T, N, T, T, N (a) Assume that we are trying to predict this sequence with a Branch History Table (BHT) using a 1-bit prediction. The counters of the BHT are initialized to the N state. Which of the branches would be mispredicted? Show their indices. (b) Repeat the above exercise with a 2-bit predictor as shown in Figure C.15 initialized to 10

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

Contemporary Issues In Database Design And Information Systems Development

Authors: Keng Siau

1st Edition

1599042894, 978-1599042893

More Books

Students also viewed these Databases questions