Direct vs Associative vs Set-Associative Cache Mapping
The short answer Cache mapping decides where a memory block can sit in the cache. So direct mapping gives each block exactly one legal line. So lookup is fast, but collisions hurt badly. Fully associative mapping lets a block sit…