Why are large memories slow?
search any instructions in cache, time save.
If not, we bring memory to cache.
Cache is a copy os subset of main memory> we make a copy of the chunk from main memory.
Now repetition is done it will have benefits that we will go to cahce.
Cache:
Difference in performance of computer.
We increased cache for one particular time.
Memory hierarchy
Fastest(top to down)
Register
Cache
RAM
Harddrive
Memory caching:
mismatch between processor and memory speeds> introduce memory cache.
Cost get very high.
Implemented with Sram.
Cache also tells which block of memory we took and from where we took(do whole work of RAM,
this is the function of ram)
Cache design
Direct mapped:
Cache knows that data that is coming will go in my this block
0,4,8.. data can go to 0block of Cache’s.
Formula can be derived.