A cache has the following parameters Total Size 512KB Line S

A cache has the following parameters: Total Size (512KB), Line Size (256B), 4-way set associative. How many bits are required for Tag, Index and Offset for a 32-bit Memory address? Assume that the cache is byte-addressable.

Solution

Answer:-

1) The entire block will be filled

2) If words are 4 bytes long and each block holds 512 bytes, there are 29 / 22 words in the block

i.e. there are 27 or 128 words in each block

A cache has the following parameters: Total Size (512KB), Line Size (256B), 4-way set associative. How many bits are required for Tag, Index and Offset for a 32

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site