1,157 views
1 1 vote

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

1 Answer

Best answer
1 1 vote

Look brother the main memory has Tag and word offset...now when we do cache mapping we further divide Tag of main memory into Tag and Line offset of cache memory.. and cache memory is not part of main memory it has its own memory area and its addressing is different from main memory..so we do such cache organisation for mapping address of main memory in cache..cache memory is small i.e why it stores some tag bits in tag directory of cache..see the image you will get it..for direct mapping this is the way memory is organised..!

• selected by
Position:
Show:

Related questions

75 75 votes
9 answers 9 answers
40.5k
40.5k views
Kathleen asked Sep 13, 2014
40,478 views
The access times of the main memory and the Cache memory, in a computer system, are $500$ n sec and $50$ nsec, respectively. It is estimated that $80\%$ of the main memor...
0 0 votes
1 1 answer
684
684 views
Nikita Shadija asked Jan 16, 2019
684 views
Assume that A, B , and C are memory addresses each of which are in different block of memory. Further assume A, B , C are generated in a uniformly random way.What is th...
3 3 votes
1 answers 1 answer
1.8k
1.8k views
Tushar Shinde asked Oct 5, 2015
1,784 views
Directly coming to the question...(its a linked data type qstn)A pipelined processor with separate instruction and data cache has 5 stages with a cycle time of 30 ns. It ...
0 0 votes
1 1 answer
80
80 views
DΛΞMON asked 4 days ago
80 views
$\begin{array}{l}\textbf{Q. } \text{A processor has the cache hierarchy as given. Assume that 20\% of instructions are}\\\text{load/store instructions. The remaining 80\%...