cache memory in eng:ahmed ali ahmed

10
UNIVERSITY OF SOMALIA Collage of computer science & IT Computer Organization CACHE MEMORY TIME IS MONEY -- THE FASTEST MEMORY EVER Lecturer: Eng Ahmed Ali Ahmed WEEK 8 Gmail:hormuud612@gm ail. 01-01- 2016 Friday 8th class CS13 Mohamed-Nur Hussein Abdullahi Hame

Upload: ahmed-ali-ahmed

Post on 20-Jan-2017

165 views

Category:

Engineering


3 download

TRANSCRIPT

Page 1: Cache memory in Eng:Ahmed Ali Ahmed

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

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

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

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

CACHE/MAIN MEMORY STRUCTURE

Page 6: Cache memory in Eng:Ahmed Ali Ahmed

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

CACHE READ OPERATION

Page 8: Cache memory in Eng:Ahmed Ali Ahmed

TYPICAL CACHE ORGANIZATION

Page 9: Cache memory in Eng:Ahmed Ali Ahmed

TYPICAL CACHE ORGANIZATION

Page 10: Cache memory in Eng:Ahmed Ali Ahmed

THANKS FOR LISTENING