Cache hit or cache miss?
How to detect if a memory address (a byte address) has a valid image in the cache:
Address is decomposed in 3 fields:
- block offset or displacement (depends on block size)
- index (depends on number of sets and set-associativity)
- tag (the remainder of the address)
The tag array has a width equal to tag