cache memory in eng:ahmed ali ahmed
TRANSCRIPT
![Page 1: Cache memory in Eng:Ahmed Ali Ahmed](https://reader035.vdocument.in/reader035/viewer/2022062412/588222091a28ab52368b4593/html5/thumbnails/1.jpg)
UNIVERSITY OF SOMALIACollage of computer science & IT
Computer Organization
CACHE MEMORYTIME IS MONEY -- THE FASTEST MEMORY EVER
Lecturer: Eng Ahmed Ali Ahmed
WEE
K 8
Gmail:hormuud612@gmail.
01-01-2016
Friday8th class
CS13
Mohamed-Nur Hussein Abdullahi Hame
![Page 2: Cache memory in Eng:Ahmed Ali Ahmed](https://reader035.vdocument.in/reader035/viewer/2022062412/588222091a28ab52368b4593/html5/thumbnails/2.jpg)
OUTLINE• CACHE MEMORY PRINCIPLES
– Cache Memory Principles• ELEMENTS OF CACHE DESIGN
– Cache Addresses– Cache Size– Mapping Function– Replacement Algorithms– Write Policy– Line Size– Number of Caches
![Page 3: Cache memory in Eng:Ahmed Ali Ahmed](https://reader035.vdocument.in/reader035/viewer/2022062412/588222091a28ab52368b4593/html5/thumbnails/3.jpg)
CACHE MEMORY PRINCIPLES
• Small amount of fast memory• Sits between normal main memory and CPU• May be located on CPU chip or module
![Page 4: Cache memory in Eng:Ahmed Ali Ahmed](https://reader035.vdocument.in/reader035/viewer/2022062412/588222091a28ab52368b4593/html5/thumbnails/4.jpg)
CACHE MEMORY PRINCIPLES
• Cache memory is intended to give memory speed approaching that of the fastest memories available
• At the same time provide a large memory size at the price of less expensive types of semiconductor memories.
• The cache contains a copy of portions of main memory.
![Page 5: Cache memory in Eng:Ahmed Ali Ahmed](https://reader035.vdocument.in/reader035/viewer/2022062412/588222091a28ab52368b4593/html5/thumbnails/5.jpg)
CACHE/MAIN MEMORY STRUCTURE
![Page 6: Cache memory in Eng:Ahmed Ali Ahmed](https://reader035.vdocument.in/reader035/viewer/2022062412/588222091a28ab52368b4593/html5/thumbnails/6.jpg)
CACHE OPERATION – OVERVIEW
• CPU requests contents of memory location• Check cache for this data• If present, get from cache (fast)• If not present, read required block from main
memory to cache• Then deliver from cache to CPU• Cache includes tags to identify which block of
main memory is in each cache slot
![Page 7: Cache memory in Eng:Ahmed Ali Ahmed](https://reader035.vdocument.in/reader035/viewer/2022062412/588222091a28ab52368b4593/html5/thumbnails/7.jpg)
CACHE READ OPERATION
![Page 8: Cache memory in Eng:Ahmed Ali Ahmed](https://reader035.vdocument.in/reader035/viewer/2022062412/588222091a28ab52368b4593/html5/thumbnails/8.jpg)
TYPICAL CACHE ORGANIZATION
![Page 9: Cache memory in Eng:Ahmed Ali Ahmed](https://reader035.vdocument.in/reader035/viewer/2022062412/588222091a28ab52368b4593/html5/thumbnails/9.jpg)
TYPICAL CACHE ORGANIZATION
![Page 10: Cache memory in Eng:Ahmed Ali Ahmed](https://reader035.vdocument.in/reader035/viewer/2022062412/588222091a28ab52368b4593/html5/thumbnails/10.jpg)
THANKS FOR LISTENING