Presentation is loading. Please wait.

Presentation is loading. Please wait.

Avishai Wool lecture 8.3 - 1 Introduction to Systems Programming Lecture 8.3 Non-volatile Memory Flash.

Similar presentations


Presentation on theme: "Avishai Wool lecture 8.3 - 1 Introduction to Systems Programming Lecture 8.3 Non-volatile Memory Flash."— Presentation transcript:

1 Avishai Wool lecture 8.3 - 1 Introduction to Systems Programming Lecture 8.3 Non-volatile Memory Flash

2 EEPROM EEPROM – Electrically Erasable Programmable Read Only Memory. –this is a historical term to differentiate from an older type of memory that used UV-light to for eraser “Flash” memory is the dominant type currently –NOR flash –NAND flash Main feature: contents remain when power is off Avishai Wool lecture 8.3 - 2

3 Examples of Flash Memory Your computer's BIOS chip USB sticks Digital Camera memory Cellphone memory Solid-state disks (SSD) in laptops Memory cards for video game consoles Invented by Toshiba in 1980s Avishai Wool lecture 8.3 - 3

4 Basics Initially every bit is logical ‘1’ Programming a bit – set it to ‘0’ by applying a voltage Once a bit is set to ‘0’ – cannot be set back to ‘1’ by programming Erasing – set bits back to ‘1’ by applying a higher voltage Avishai Wool lecture 8.3 - 4

5 Limitations Erasure can only be performed on a “block” – not on individual bits or bytes Memory wear: a finite number of erase-write cycles. –Typical: guaranteed to withstand around 100,000 write-erase-cycles Avishai Wool lecture 8.3 - 5

6 NOR Flash Has Data and Address lines, like RAM Byte addressable Can store code – execute in place (XIP) Typical (erase) block sizes 64 - 256 Kilobytes. But: more expensive, uses more power Typical usage: BIOS, Firmware Avishai Wool lecture 8.3 - 6

7 NAND Flash Not byte-addressable – can only be read in “pages” Typical “page” size: 512-4096 bytes Typical erase block size: 16KB – 512KB Cheaper than NOR flash Slower read time Typical use: file systems (USB sticks, camera & cell phone memory) Avishai Wool lecture 8.3 - 7

8 Sept 2007 NAND vs NOR Flash Toshiba Avishai Wool lecture 8.3 - 8

9 NAND vs. NOR Flash NAND denser than NOR –preferred for data memory storage (flash drives) NAND slower read time –NOR preferred as program memory storage for microcontrollers because of faster access time NAND is always block read/block write; NOR allows read of individual memory locations NAND programming/erase is faster than NOR programming/erase Avishai Wool lecture 8.3 - 9

10 Flash File Systems “Wear Leveling” – blocks are not rewritten in- place. –Instead, written elsewhere, file pointers updated –Avoid rewriting same bits too often Error correcting – correct bad bits via ECC –one bit error in each 2048 bits (256 bytes) using 22 bits of ECC code –one bit error in each 4096 bits (512 bytes) using 24 bits of ECC code. Avishai Wool lecture 8.3 - 10

11 Transfer Rates NAND Flash: advertized raw read rate of 15,000KB/s = 14.65MB/s. That’s about 70ns to read one byte Slower than RAM – but much faster than disk Write is much slower Avishai Wool lecture 8.3 - 11

12 Flash as replacement to disks Advantages of Flash as SSD, especially in laptop –Noise –Speed –Power consumption, Heat –Weight –Reliability (no moving parts) Disadvantages (as of 2009) –Price per MB [Improving] –Capacity [Moore’s law, 2x every 1.5 years] –Finite write-erase cycle: [improving] Avishai Wool lecture 8.3 - 12

13 Recent numbers (SanDisk) SSD: 64GB, 128GB and 256GB Mobile memory & USB: up to 16GB Avishai Wool lecture 8.3 - 13


Download ppt "Avishai Wool lecture 8.3 - 1 Introduction to Systems Programming Lecture 8.3 Non-volatile Memory Flash."

Similar presentations


Ads by Google