Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Your program consists of arithmetic instructions, load / store instructions, branch instructions, and unconditional jumps in the given ratio: 4 5 % , 2 0
Your program consists of arithmetic instructions, loadstore instructions, branch instructions, and unconditional jumps in the given ratio: and For the branch instructions, assume that of all branches are Taken. Assume CPI for arithmetic instructions, CPI for LoadStore base CPI for branch instructions, and CPI for unconditional jumps.
Your processor can support control hazard strategies, and you are supposed to choose one for the given program:
Strategy : Unconditional stall Stalls pipeline for cycle until the branch is resolved.
Strategy : Branch prediction Predicts Taken by default; Stall pipeline for cycles if the branch is Not Taken.
Strategy : Branch prediction Predicts Not Taken by default; Stall pipeline for cycle if the branch is Taken.
Which strategy would result in the fastest runs for the given program?
Hint: Calculate the Global CPI for each strategy.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started