< previous page page_405 next page >

Page 405
0405-01.gif
Figure 6.28
Accessing for m = 2, L = 4.
We begin by finding Tline access Since
0405-02.gif
then L > m. Now
d87111c01013bcda00bb8640fdff6754.gif
m Tbus = 2 40 = 80 ns,
and therefore Tc > m Tbus.
Thus (Figure 6.28),
0405-03.gif
Thus, the average miss delay including the effects of writes is
d87111c01013bcda00bb8640fdff6754.gif
Tm.miss = (1 + w) Tline access = 1.5(260) = 390 ns.
For our example, Tinterference is zerothere is no contention for the memory. What has happened is that Tbusy = Tm.miss - Tc.miss = 0.
The processor does not create any contention for memory, since it waits until memory is free before (potentially) making another request.
Now we can compute the effect of the cache on the processor in cycles/processor cycle. Assume the processor makes a reference to this cache every cycle (40 ns). The effect of this cache on processor performance is
0405-04.gif
(b) Assume now we have a CBWA cache with write (dirty line) buffer; again wraparound load is not used (ignore I/O). As before, Tline access = 260 nsec and Tm.miss = 390 nsec. Now Tc.miss = 260 nsec and Tbusy = Tm.miss - Tc.miss = 130 nsec.

 
< previous page page_405 next page >