in Written Exam
647 views
0 votes
0 votes
Consider a processor with a six-stage pipeline: instruction fetch (IF), instruction decode (ID), register fetch (RF), execution (EX), data memory access (DMEM), register writeback (WB). The processor has no branch predictor and the instruction fetcher stalls after fetching a branch instruction until the branch condition and the target are available at the end of the EX stage. Assume that the instruction fetcher can identify branch instructions before they are decoded in the ID stage. If a program has 30% branch instructions, the loss in CPI due to branch-related stalls is ________
in Written Exam
647 views

4 Comments

I think it should be $90$%
0
0
how?
0
0
Because the ideal CPI is 1, but the CPI obtained under branch condition is 1.90 which means we are providing .90 extra cycle time to branch instruction. which is 90% of the ideal CPI.
0
0

Please log in or register to answer this question.

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true