Suppose a unified cache has the following characteristics:

Read/write penalty 1 cycle
Miss rate 3%
Load instructions (read data) 20%
Store instructions (write data) 5%
Miss penalty 20 cycles
What is the average access time?


We have to add up all the possibilities.
a. Access to cache (instruction read) (1 + 1) x 0.97 cycles = 1.94 cycles (note 1 + 1 because it’s a 1 cycle
penalty)
b. Cache miss (instruction read) 0.03 x (20 + 1) = 0.63 cycles
c. Load instruction hit 0.20 x 0.97 x (1 + 1) = 0.388 cycles
d. Load instruction miss 0.20 x 0.03 x (20 + 1) = 0.126
e. Store instruction hit 0.05 x 0.97 x (1 + 1) = 0.97 cycles
f. Store instruction miss 0.05 x 0.03 x (20 + 1) = 0.0315

Total time = 0.63 + 0.388 + 0.126 + 0.97 + 0.0315 = 2.1455 cycles
Note that this is a simplistic answer that does not take account of cache reloading.

Computer Science & Information Technology

You might also like to view...

The process of breaking a string down into tokens is known as __________.

a. tokenizing b. buffering c. simplifying d. parsing

Computer Science & Information Technology

In what library is the function atoi found?

A. it is part of “using namespace std” B. C. D.

Computer Science & Information Technology

You can adjust the transparency of a color by decreasing the percentage of the ____ setting.

A. Visible B. Transparency C. Display D. Alpha

Computer Science & Information Technology

Suppose x = 10 and y = 20. The value of the expression ((x >= 10) && (y <= 20)) is true.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology