Explanation : MM space = 2P bytes
Physical Address (PA) size = P bits
CM size = 2N bytes
Block size 2M words
2M words*2W bytes/word
2M+W bytes
Number of lines = (CM size)/Block size ⇒ 2N/(2M+W)
⇒ 2N-M-W
Number of sets = (Number in cm)/P-way
= 2N-M-W/K
The Address format
⇒ (N-M-W-log2K)
∴ Tag size
⇒ P-(N-M-W-log2K)
⇒ P-N+log2K)