14
Intro to Cache Memory By david hsu

Intro to Cache Memory By david hsu. Examples of memory Paper and writing, books Neon signs Cassettes and other magnetic tape memory Abacus Art material

Embed Size (px)

Citation preview

Page 1: Intro to Cache Memory By david hsu. Examples of memory Paper and writing, books Neon signs Cassettes and other magnetic tape memory Abacus Art material

Intro to Cache Memory

By david hsu

Page 2: Intro to Cache Memory By david hsu. Examples of memory Paper and writing, books Neon signs Cassettes and other magnetic tape memory Abacus Art material

Examples of memory

• Paper and writing, books• Neon signs• Cassettes and other magnetic tape memory• Abacus• Art material such as clay, canvas, marble, rock,

etc.• Caves• The great pyramids• Our flesh (tattoos)

Page 3: Intro to Cache Memory By david hsu. Examples of memory Paper and writing, books Neon signs Cassettes and other magnetic tape memory Abacus Art material

• ROM means read only memory and RAM means random access memory.

EPROMDDR2 RAM

CD ROM

PROM

FLASH MEMORY

Page 4: Intro to Cache Memory By david hsu. Examples of memory Paper and writing, books Neon signs Cassettes and other magnetic tape memory Abacus Art material

RAM

• RAM allows you to read and write to it. Two basic forms of semiconductor random access memory: dynamic and static ram

Page 5: Intro to Cache Memory By david hsu. Examples of memory Paper and writing, books Neon signs Cassettes and other magnetic tape memory Abacus Art material

RAM

• both RAMs use cells to store data

Page 6: Intro to Cache Memory By david hsu. Examples of memory Paper and writing, books Neon signs Cassettes and other magnetic tape memory Abacus Art material

RAM

• DRAM’s cell is smaller than static ram cells so a DRAM is denser. it is created with capacitors and is written with information by storing charge in the capacitors. to keep the data in a DRAM cell, the capacitors must be constantly recharged periodically or refreshed periodically because the charge in them runs out. when it is being read, the charge in the capacitor gets discharged and needs to be recharged (also called volatile). it is used for main memory.

Page 7: Intro to Cache Memory By david hsu. Examples of memory Paper and writing, books Neon signs Cassettes and other magnetic tape memory Abacus Art material

RAM

• SRAM is faster and more expensive than dram so it is used for cache memory. it is different from DRAM in that its charge does not need to be refreshed constantly in order for the memory to be kept (also called nonvolatile).

Page 8: Intro to Cache Memory By david hsu. Examples of memory Paper and writing, books Neon signs Cassettes and other magnetic tape memory Abacus Art material

RAM

• when memory is saved, bits are set to either 1 or 0, 1 is written, 0 is empty. When read, the data needs to be refreshed.

Page 9: Intro to Cache Memory By david hsu. Examples of memory Paper and writing, books Neon signs Cassettes and other magnetic tape memory Abacus Art material

ROM

• Read only memory include: ROM, PROM, EPROM, EEPROM, FLASH MEMORY.

• they are all random access memory, even though they have different names.

Page 10: Intro to Cache Memory By david hsu. Examples of memory Paper and writing, books Neon signs Cassettes and other magnetic tape memory Abacus Art material

ROM

• read only memory means that once you write on the memory you cannot immediately overwrite it.

CD ROM

Page 11: Intro to Cache Memory By david hsu. Examples of memory Paper and writing, books Neon signs Cassettes and other magnetic tape memory Abacus Art material

ROM

• ROM does not need constant recharging of memory.

Page 12: Intro to Cache Memory By david hsu. Examples of memory Paper and writing, books Neon signs Cassettes and other magnetic tape memory Abacus Art material

ROM

• EPROM, erasable programmable read only access memory, even though is read only, can be erased by ultraviolet light and rewritten. so essentially it is not really read only.

EPROM

Page 13: Intro to Cache Memory By david hsu. Examples of memory Paper and writing, books Neon signs Cassettes and other magnetic tape memory Abacus Art material

ROM

• erasure of regular read only and programmable read only memory is not possible.

Page 14: Intro to Cache Memory By david hsu. Examples of memory Paper and writing, books Neon signs Cassettes and other magnetic tape memory Abacus Art material

Advantages of memory types

• some advantages of other memory are as follows:• Programmable ROM is inexpensive, but can only be

written once. if even one bit is written incorrectly, you have to throw the whole thing away.

• flash memory is good in that erasing it only takes a few seconds.

• error correction in memory uses hamming code system. • other memory include synchronous dram, Rambus

dram, developed by Rambus and adopted by Intel for several of its processors, DDR SDRAM