Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Modify the SimpleScalar code to implement an alternative two-bit branch predictor, as shown in the second diagram (the first one is the default two-bit predictor

image text in transcribed

Modify the SimpleScalar code to implement an alternative two-bit branch predictor, as shown in the second diagram (the first one is the default two-bit predictor in SimpleScalar). Run sim-outorder simulator under out-of-order execution for 5 benchmarks using the command lines below. Compare the performance of the two different branch predictors in terms of the branch direction-prediction rate. If taken, the next predicted instruction to execute would be taken from the branch target buffer (BTB). The branch direction-prediction rate reflects the correct prediction rate of whether the branch was taken or not. Explain what you see. NT NT NT Predict Strongly Taken (10) Predict Weakly Taken (0l) Predict Weakly Not Taken (00) Predict Strongly Not Taken . -max:inst 50000000 -fastfwd 20000000 -bpred bimod -bpred:bimod 512 -bpred:btb 64 2 NT NT Predict Strongly Taken (10) Predict Weakly Taken (01) Predict Weakly Not Takern Predict Strongly Not Taken NT -max:inst 50000000 -fastfwd 20000000 -bpred bimod2 -bpred:bimod2 512 -bpred:btb 642 Modify the SimpleScalar code to implement an alternative two-bit branch predictor, as shown in the second diagram (the first one is the default two-bit predictor in SimpleScalar). Run sim-outorder simulator under out-of-order execution for 5 benchmarks using the command lines below. Compare the performance of the two different branch predictors in terms of the branch direction-prediction rate. If taken, the next predicted instruction to execute would be taken from the branch target buffer (BTB). The branch direction-prediction rate reflects the correct prediction rate of whether the branch was taken or not. Explain what you see. NT NT NT Predict Strongly Taken (10) Predict Weakly Taken (0l) Predict Weakly Not Taken (00) Predict Strongly Not Taken . -max:inst 50000000 -fastfwd 20000000 -bpred bimod -bpred:bimod 512 -bpred:btb 64 2 NT NT Predict Strongly Taken (10) Predict Weakly Taken (01) Predict Weakly Not Takern Predict Strongly Not Taken NT -max:inst 50000000 -fastfwd 20000000 -bpred bimod2 -bpred:bimod2 512 -bpred:btb 642

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

Graph Database Modeling With Neo4j

Authors: Ajit Singh

2nd Edition

B0BDWT2XLR, 979-8351798783

More Books

Students also viewed these Databases questions