What is the size of tag in cache directory for direct and set-associative memory?
For set-associative memory do we multiply by no of sets or no of blocks?
According to me
Size of Tag in cache directory = Number of tag bits(+ any extra bits like valid, modified etc) * number of blocks
OR
Size of Tag in cache directory = Number of tag bits(+ any extra bits like valid, modified etc) * number of sets
Tag is associated with each block or set?