Consider a 512-KByte cache with 64-word cachelines (a cacheline is also known as a cache block, each word is 4-Bytes). This cache uses write-back scheme, and the address is 32 bits wide.
Answer the next questions for Direct Mapped cache, Fully Associative and Way Set Associative
What is the size in bits of the cacheline offset, cachline index and tag?
What I know:
Direct mapped caching allows any given main memory block to be mapped into exactly one unique cache location.
Set-associative mapped cache allows any given main memory block to be mapped into two or more cache locations.
Fully-associative mapped caching allows any given main memory block to be mapped into any cache location.
I don't know how that would make a difference in computing byte offset, index and cache
$Byte offset=log_2(\text{bytes in one cache block})$
$Index=log_2(\text{Number of cache blocks in the cache})$
tag: The rest of bits in the address
Attempt at a solution
I would do the mapped cache part by using the previous expressions. I don't want the answer, but I would like orientation.
Thanks!!