Cache Performance Review


Assume that (i) main memory accesses take 50 ns and (ii) that memory accesses are 42% of all instructions. The L1 cache attached to the processor has the following features:
Assuming that the L1 hit time determines the cycle times,

the clock rate = GHz    

The AMAT of the processor = ns    

Assuming a base CPI of 1.0 without any memory stalls,

the total CPI =    

Consider the addition of an L2 cache to the processor to presumably make up for its limited L1 cache capacity. The L2 cache has the following features:
      The AMAT of the processor with the addition of an L2 cache

  = ns    

Assuming a base CPI of 1.0 without any memory stalls, the total CPI of

the processor with the addition of an L2 cache =    




      The following conversation took place between a wife and husband after a lottery win.    

      Husband: If I won the lottery what would you do?    
      Wife: I’d divorce you and take half the money.    
      Husband: OK, well I just won $10, here’s $5 now f*ck off!!