# What determines a hit or a miss for direct mapped cache?

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)