547 views
0 votes
0 votes
if in a question it ask for cache capacity the is it calculated by follwing...

cache capacity=cache size+ tag memory size+dirty bit

cache capacity=tag bits * no. of cache lines

which one is correct?

1 Answer

2 votes
2 votes

Cache Capacity = Number of lines $\times$ Bytes/Words per Line

Now what you are asking is Size of Cache tag directory,

Each Block/Line contains tag whether it is associative, direct or set-associative mapped cache. 

Hence, Size of Cache tag directory = Tag Bits $\times$ Number of Lines(Blocks)

If the question mentions that there are some extra information(valid, modified or replacement bits) along with tag then,

Size of Cache tag directory = (Tag Bits + Valid bits + Modified bits + Replacement Bits)  $\times$ Number of  Lines

 

 

Related questions

1.1k
views
0 answers
0 votes
Mk Utkarsh asked Sep 12, 2018
1,065 views
Consider a 4 - way set associative cache with 'L' blocks of 16 words each. Cache block is associated with dirty bit field and valid bit field. Calculate cache capacity with a word size of 2 bytes and tag size of 22 bits.
2.6k
views
1 answers
1 votes
$ourav asked May 18, 2016
2,618 views
Consider a 8 million word physical memory and 256 block cache, both partitioned into 64 word blocks.Find the tag memory required for cache memory for the following mapping techniques:a) Directb) Associativec) 4-way Set Associative
19.1k
views
3 answers
19 votes
Anusha Motamarri asked Sep 22, 2016
19,068 views
I want to clearly understand the difference between compulsory miss, conflict miss and capacity misswhat I understood iscompulsory miss: when a block of main memory ... of main memory tries to occupy already filled line.is this correct?