A 4-way set-associative cache memory unit with a capacity of 32 KB is built using a block size of 16 words. The word length is 32 bits. The size of the physical address space is 4 GB. What is the number of bits tag, set, and word offset field respectively?
I'm getting 19,7,4 because here it is given 1 word is 4 bytes.
However, the actual answer is 19,7,6 assuming a unique address is given for every byte.
When nothing is given I know that we assume byte addressable. But in the question they have given 1 word is 4 bytes. Word is the smallest entity which the processor deals with. So here processor deals with 4bytes chunks, right? So address space is only 30 bits and not 32bits right?
Which answer is correct?
@arjun sir pls clarify this