Cache Adressage: Longueur de l'Index, Bloc offset, offset d'Octet & Tag?

Disons que je connais les valeurs suivantes:

W = Word length (= 32 bits)
S = Cache size in words
B = Block size in words
M = Main memory size in words

Comment dois-je calculer combien de bits sont nécessaires pour:

- Index
- Block offset
- Byte offset
- Tag

a) en Direct Mapped Cache
b) à fully Associative Cache?

OriginalL'auteur Katy | 2013-01-10