0 votes 0 votes 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? $5$ $6$ $7$ $4$ CO and Architecture nielit2017dec-scientistb co-and-architecture pipelining + – admin asked Mar 30, 2020 • retagged Oct 22, 2020 by Krithiga2101 admin 2.0k views answer comment Share Follow See all 2 Comments See all 2 2 Comments reply sachin! commented Dec 18, 2017 reply Follow Share Ans may be 4 1 votes 1 votes Ollie commented Jun 15, 2020 reply Follow Share https://gateoverflow.in/182155/pipeline 0 votes 0 votes Please log in or register to add a comment.
3 votes 3 votes → 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 topper98 answered Mar 19, 2020 topper98 comment Share Follow See all 0 reply Please log in or register to add a comment.
1 votes 1 votes In branched instr. if target insturction resolved at n stage no. of stall cycle will be (n-1)' vishal23071998 answered Aug 2, 2020 vishal23071998 comment Share Follow See all 0 reply Please log in or register to add a comment.
1 votes 1 votes A given that branch occurs at stage 5 , then 4 stages are wasted as we draw the pipeline stage diagram. anurag sharma answered Aug 19, 2020 anurag sharma comment Share Follow See all 0 reply Please log in or register to add a comment.