1. A certain sequence of instructions contains 3 conditional branches. The outcome for each branch (T=Taken, N=Not Taken) for a given run of the program is shown below: Branch 1: T-T-N-N-N-T Branch 2: N-N-T-T-T-T Branch 3: T-N-T-N-T-N List the predictions made for all three branches, the accuracy of the predictor for each branch, and the overall accuracy, assuming a 1-bit predictor is used (initialized to Taken) Branch 1: ___ ___ ___ ___ ___ ___ (___ / 6) = ___ % Branch 2: ___ ___ ___ ___ ___ ___ (___ / 6) = ___ % Branch 3: ___ ___ ___ ___ ___ ___ (___ / 6) = ___ % Total: ___ / 18 = ___ %

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter2: Problem Solving Using C++using
Section2.4: Arithmetic Operations
Problem 6E
icon
Related questions
Topic Video
Question

1. A certain sequence of instructions contains 3 conditional branches. The outcome for each branch (T=Taken, N=Not Taken) for a given run of the program is shown below:

 

    Branch 1:  T-T-N-N-N-T

    Branch 2:  N-N-T-T-T-T

    Branch 3:  T-N-T-N-T-N

List the predictions made for all three branches, the accuracy of the predictor for each branch, and the overall accuracy, assuming a 1-bit predictor is used (initialized to Taken)

 

Branch 1:        ___  ___  ___  ___  ___  ___  (___ / 6) = ___ %

Branch 2:        ___  ___  ___  ___  ___  ___  (___ / 6) = ___ %

Branch 3:        ___  ___  ___  ___  ___  ___  (___ / 6) = ___ %

                                                           

                                                            Total: ___ / 18 = ___ %

Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Instruction Format
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning