Tutorial09 Cache Performance (1)
Tutorial09 Cache Performance (1)
1
3. Unusual cache size (based on Q7.30)
Consider a cache of size 3K words of data (note: 1K = 210 here). Answer the following, with appro-
priate explanation.
(a) Is it possible to organize it as a fully associative cache? As a 2-way set associative cache? As a
direct-mapped cache? Assume that the cache controller has to work with bit extractions alone, on
the given memory address, and no other complex computations.
(b) For each of the above cases in (a) which is possible, indicate the maximum possible block size.
(c) For each of the above cases in (a) which is possible, and for the largest possible block size as
computed in (b), show the various memory address fields, when the memory addresses are 32-bit
long.