PDF
…total number of blocks (aka,
lines), B = S x W and total cache size, C = B x Sb. Here, Sb is the size of a block (i.e.,
line size). For direct mapping, W = 1 and S = B; for set-associative, 1 < W < B; and for
fully-associative, W = B and S = 1. Studies indicate that the predictability and
performance/power ratio can be enhanced by optimizing the cache…
https://www.wichita.edu/academics/engineering/ECE/research/CAPPLab/_documents/PDF/AA_PhD_Dissertation_2009.pdf