Question: Problem 2 Consider that you have a code of 4 0 0 , 0 0 0 instructions which is executed using a 1 6 stages

Problem 2
Consider that you have a code of 400,000 instructions which is executed using a 16 stages pipeline. It is expected that 20% of the instructions will cause an exception 1. In order to handle the exception, it will take 3 cycles to flush the pipeline, 7 cycles to reload and 30 cycles to execute the handler. The pipeline frequency is 2.5GHz
i) How many cycles does it take to execute the code?
3,200,000+5,120,000=8,320,000 total cycles
ii) What is the average CPI for this code?
8,320,000400,000=20.8
iii) How long does it take to execute the code?
8,320,0002.5109=3.32810-6 seconds
Problem 2 Consider that you have a code of 4 0 0

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!