Question: Consider that you have a code of 4 0 0 , 0 0 0 instructions which is executed using a 1 4 stages pipeline. It

Consider that you have a code of 400,000 instructions which is executed using a 14 stages pipeline. It is expected that 10% of the instructions will cause an exception. In order to handle the exception, there is an exception handler which is using 20 cycles to execute (includes the flushing and reloading and the actual handling of the exception). The pipeline frequency is 4 GHzi) How many cycles does it take to execute the code?ii) What is the average CPI for this code?iii) How long does it take to execute the code?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!