I've been stuck on this for a while now, I've tried reading the related topics on cs.stackexchange as well as the textbook and youtube videos.
Suppose we have a 8KB direct-mapped data cache with 64-byte blocks.
Offset $= log_2(64) = 6$ bits
number of blocks $= 8k / 64 = 125$
$Index = 7$ bits
$Tag = 32 – 13 = 19$ bits
Then how do I tell whether or not I have a hit or a miss given an address?
Is it (Block address) modulo (Number of blocks in the cache)
Where block address = byte address / bytes per blocks?
For example if (block address) mod (number of blocks in cache) = 2, then does that mean row 2 of my picture is a hit?