retagged by
1,249 views
1 votes
1 votes

A 2-way set associative write back cache with true LRU replacement requires 15 * 29 bits to implement its tag store per set (including bits for valid, dirty and LRU). The cache is virtually indexed, physically tagged. The virtual address space is 1 MB, page size is 2 KB, cache block size is 8 bytes and is byte-addressable.
What is the maximum size of the data store of the cache in bytes?

  1.   9 KB
  2.   10 KB
  3.   12 KB
  4.   8 KB
retagged by

1 Answer

1 votes
1 votes

 

Here after TLB we will get physical addres with that physical address we need to check tag. Index directly go throught cache.Thats why it is called virtually indexed physically tagged. Advantage of this type of oarchitecture is that no flushing is requirred.It gives advantages of both arcyhittecture physically indexed and virtually index cache.

Now , for the given question ...

lets take 2k sets are available since k is the index bits , for each set we need 2 valid,2 dirty and 1LRU bits ( 1 bit is sufficint for LRU).

SO 2K (2++2+1 + (2*tag bits)) = 15* 29 here data is given such that u can directly find the value of tag bits here one point needs to be note down since cache is physically tagged so we can not find tag using virtual address space.

2k (5 + 2*tag) =2* 15    

So 15 = 5+2*tag   so tag=5

so 2((5*2 + 5 (valid+dirty +LRU)) ) = 29 * 15 = approx 213B = 8KB

                                 

Related questions

1 votes
1 votes
3 answers
1
jagadeesha kanihal asked Sep 30, 2015
789 views
Case1) cache block size is 4 Words and memory block size is 8 WordsCase2) cache block size is 8 Words and memory block size is 4 Words
0 votes
0 votes
1 answer
2
Na462 asked Aug 6, 2018
1,541 views
Ans. A
1 votes
1 votes
2 answers
4
Ram Sharma1 asked Jul 5, 2015
8,087 views
Consider a 8 million word main memory and 256 block cache.Both partitioned into 64 words block.What is the size of additional memory for tags? Size of the cache? consider...