In a direct cache controller each main memory address can be viewed as consisting of three fields. The least significant bits identify a unique word/byte within a block. The cache logic interprets the remaining ‘s’ bits as a tag of (s – r) bits (most significant portion) and a line field of ‘r’ bits. What is the size of main memory and cache memory respectively.
Ans. 2^(s+w) bytes/word and 2^(r+w) bytes/word