We have $10$-stage pipeline, where the branch target conditions are resolved at stage $5$. How many stalls are there for an incorrectly predicted branch?
https://gateoverflow.in/182155/pipeline
→ A branch predictor is a digital circuit that tries to guess which way a branch (e.g. an if–then–else structure) will go before this is known definitively. → The purpose of the branch predictor is to improve the flow in the instruction pipeline. → The technique involves only executing certain instructions if certain predicates are true. → Branch prediction is typically implemented in hardware using a branch predictor. → Branch target conditions resolved at stage 5 means upto 4 stages there are incorrect branch target conditions are there. → So Branch condition is resolved at nth stage means, the number of stalls are (n-1)
Answer will be 4
64.3k questions
77.9k answers
244k comments
80.0k users