Cache size
6.6.2 Mapping function
Direct Mapping
Note that
* all locations in a single block of memory have the same higher order bits (call them the block number), so the lower order bits can be used to find a particular word in the block.
* within those higher-order bits, their lower-order bits obey the modulo mapping given above (assuming that the number of cache lines is a power of 2), so they can be used to get the cache line for that block
* the remaining bits of the block number become a tag, stored with each cache line, and used to distinguish one block from another that could fit into that same cache line.
Pros and Cons
Associated Mapping
Set Associated Mapping
Fig: Set associative mapping example
20 videos|86 docs|48 tests
|
1. What are the key elements of cache design in computer science engineering? |
2. How does cache size affect the overall performance of a computer system? |
3. What is cache associativity and how does it affect cache design? |
4. What is a replacement policy in cache design? |
5. How does cache coherence impact the performance of a computer system? |
20 videos|86 docs|48 tests
|
|
Explore Courses for Computer Science Engineering (CSE) exam
|