Flash Qing Xu Tie Chen. Flash An electronic device Non-volatile Can be electrically erased and reprogrammed Usage: Digital Music Device Smartphones Digital.

Slides:



Advertisements
Similar presentations
ECE 353 Introduction to Microprocessor Systems
Advertisements

Flash storage memory and Design Trade offs for SSD performance
Chapter 5 Internal Memory
Computer Organization and Architecture
Memory Section 7.2. Types of Memories Definitions – Write: store new information into memory – Read: transfer stored information out of memory Random-Access.
Microprocessor System Design. Outline Address decoding Chip select Memory configurations.
Overview Memory definitions Random Access Memory (RAM)
Static Memory Outline –Types of Static Memory –Static RAM –Battery Backup –EPROM –Flash Memory –EEPROM Goal –Understand types of static memory –Understand.
Chapter 5 Internal Memory
Memory Devices Wen-Hung Liao, Ph.D..
Chapter 4 Computer Memory
IT Systems Memory EN230-1 Justin Champion C208 –
Sequential circuits part 2: implementation, analysis & design All illustrations  , Jones & Bartlett Publishers LLC, (
MEMORY.
CompE 460 Real-Time and Embedded Systems Lecture 5 – Memory Technologies.
Flash Memory A type of EEPROM (Electrically-Erasable programmable Read-Only Memory) an older type of memory that used UV-light to erase Non-volatile,
Khaled A. Al-Utaibi Memory Devices Khaled A. Al-Utaibi
ECE 447: Lecture 1 Microcontroller Concepts. ECE 447: Basic Computer System CPU Memory Program + Data I/O Interface Parallel I/O Device Serial I/O Device.
2. Memory. Main memory – speed & types Organization of RAM RAM – Random Access Mem Static RAM [SRAM] - In SRAM, a bit of data is stored using the state.
Stuart Cunningham - Computer Platforms COMPUTER PLATFORMS Input, Output, and Storage & Introduction to Basic Computer Architecture Week 2.
Memory Hierarchy Registers Cache Main Memory Fixed Disk (virtual memory) Tape Floppy Zip CD-ROM CD-RWR Cost/Bit Access/Speed Capacity.
Faculty of Information Technology Department of Computer Science Computer Organization and Assembly Language Chapter 5 Internal Memory.
ECE Lecture 1 Microcontroller Concepts. Basic Computer System CPU Memory Program + Data I/O Interface Parallel I/O Device Serial I/O Device Data.
Memory and Storage Dr. Rebhi S. Baraka
Digital Design: Principles and Practices
CIM101 : Introduction to computer Lecture 3 Memory.
+ CS 325: CS Hardware and Software Organization and Architecture Memory Organization.
1 Course Title: IT IN BUSINESS Course Instructor: ADEEL ANJUM Chapter No: 04 1 BY ADEEL ANJUM (MCS, CCNA,WEB DEVELOPER)
Computer Architecture Lecture 24 Fasih ur Rehman.
Microprocessor Fundamentals Week 3 Mount Druitt College of TAFE Dept. Electrical Engineering 2008.
Semiconductor Memory Types
07/11/2005 Register File Design and Memory Design Presentation E CSE : Introduction to Computer Architecture Slides by Gojko Babić.
Memory 2 ©Paul Godin Created March 2008 Memory 2.1.
1 Memory Hierarchy (I). 2 Outline Random-Access Memory (RAM) Nonvolatile Memory Disk Storage Suggested Reading: 6.1.
نظام المحاضرات الالكترونينظام المحاضرات الالكتروني Main Memory Read Only Memory (ROM)
Computer Architecture Chapter (5): Internal Memory
XIP – eXecute In Place Jiyong Park. 2 Contents Flash Memory How to Use Flash Memory Flash Translation Layers (Traditional) JFFS JFFS2 eXecute.
Chapter 5 Internal Memory
William Stallings Computer Organization and Architecture 7th Edition
A Dummies guide to computer memory
MEMORY.
MEMORY DEVICES, CIRCUITS, AND SUBSYSTEM DESIGN
Memory Units Memories store data in units from one to eight bits. The most common unit is the byte, which by definition is 8 bits. Computer memories are.
William Stallings Computer Organization and Architecture 7th Edition
Electronics Technology
William Stallings Computer Organization and Architecture 8th Edition
Introduction to Microprocessors and Microcontrollers
Information Storage and Spintronics 10
Serial EEPROM (Atmel 24C-512)
William Stallings Computer Organization and Architecture 7th Edition
William Stallings Computer Organization and Architecture 8th Edition
Introduction to Computing Chapter 0
Memory Basics Chapter 8.
MICROPROCESSOR MEMORY ORGANIZATION
2.C Memory GCSE Computing Langley Park School for Boys.
part 2: implementation, analysis & design
Memory Basics Chapter 7.
UNIT-III Pin Diagram Of 8086
William Stallings Computer Organization and Architecture 8th Edition
Lecture 5 Memory and storage
Computer Memory.
Presentation transcript:

Flash Qing Xu Tie Chen

Flash An electronic device Non-volatile Can be electrically erased and reprogrammed Usage: Digital Music Device Smartphones Digital Cameras Removable Storage Devices (picpedia.com)

Non-Volatile Memory Non-Volatile Memory in Embedded System: Stores data after power down – Battery Change – Consumer Electronics

Flash Non-Volatile Memory Read-Only: ROM Read-Write: EPROM, E 2 PROM, FLASH (Figure Credit: Prof. Dennis Sylvester)

Flash Flash Development vs. Moores Law (Figure Credit: H. Cho, Stanford University)

MOSFET How does a MOSFET transistor work? (Wikipedia - Threshold formation in MOSFET)

Flash How is Flash different from MOSFET? (Figure Credit: Prof. Grishman, CSCI Inc.)

Flash Operations Writes a Logic ZERO Writes a Logic ONE (Figure Credit: S. Verna, Stanford University)

Flash Wearing Erosion of a flash memory Programming and erasing breaks down the oxide layer in the transistor. Life of 100,000 Program/Erase cycles (Figure Credit: Prof. Li-Ping Zhang)

Flash Wearing Flash Memory Controller Arrange data so that programming/ erasing is distributed evenly A block of extended life memory is allocated for the controller, stores operation data. Flash Wear Leveling Algorithm: Dynamic Static

Flash Wear Leveling Dynamic Wear Leveling: - Controller selects new free data block before write - Mapping points to new block location after write Disadvantage: - Static blocks where data do not change (eg. OS file) wears slower than other blocks - Reduce lifespan of the flash drive

Flash Wear Leveling Static Wear Leveling: - Works the same as dynamic wear leveling - Static blocks that do not change are periodically moved Disadvantage: - Moving static blocks takes time

Flash Wear Leveling Dynamic vs. Static What to use? Use Both! StaticDynamic PerformanceSlowerFaster ComplexityMore ComplexLess Complex EnduranceLongerShorter

Introduction to AT45DB161D

Important Facts 4,096 Pages (512/528 Bytes/Page) Main Memory (2MB in total) Single 2.5V - 3.6V or 2.7V - 3.6V Supply SPI Serial Port Interface – Mode 0 and Mode 3 compatible Two SRAM Data Buffers (512/528 Bytes) 100,000 Program/Erase Cycles Per Page Minimum

Block Diagram (Figure Credit: AT45DB161D Datasheet)

Pin Configuration SymbolFunctionAsserted StateType CSnChip SelectLowInput SCKSerial Clock-Input SISerial Input-Input SOSerial Output-Output WPnWrite protectionLowInput RESETnResetLowInput RDY/BUSYnReady/BusyLowOutput VCC Device Power Supply -Power GNDGround-

SPI Interface A valid instruction starts with the falling edge of CS followed by the appropriate 8-bit opcode and the desired buffer or main memory address location.

Read Operations Main Memory Page Read Buffer Read Main Memory Page to Buffer Transfer (Figure Credit: AT45DB161D Datasheet)

Write Operations Buffer Write Buffer to Main Memory Page Program (Figure Credit: AT45DB161D Datasheet)

Erase Operations Page Erase (528/512 bytes) Block Erase (8 pages) Sector Erase (256 pages) Chip Erase (all 16 sectors, which is 2MB)

Modifying Data in Flash (Figure Credit: AT45DB161D Datasheet)

Why do We need Buffers? Because it saves us a lot of trouble! The minimum size of erase/programming is one page. You will have to send exactly one page data through SPI for every write operation without buffers. You may have to first send back one page data from flash even before that!

Timing Issues Erase and Program time Flash output delay Setup time, hold time of all serial port … You are able to find timing diagrams and characteristic tables in datasheet. (Figure Credit: AT45DB161D Datasheet)

Power Issues 7 mA Active Read Current Typical 12 mA Active Program/Erase Current Typical 25 μA Standby Current Typical 9 μA Deep Power Down Typical (Figure Credit: AT45DB161D Datasheet)

Other Features Software Sector Protection Sector Lockdown Status Register Security Register Deep Power-down and Resume Page Size Option

Reference introduction.html introduction.html S. Verma, Tunnel Barrier Engineering for Flash Memory Technology, Stanford University, May 2010 H. Cho, Low Power, Highly Scalable, Vertical Flash Memory Cell and MOSFET, Stanford University, Sept 2007 ATMEL, AT45DB161D 16-megabit DataFlash Specification L.P. Zhang, Low Cost Wearing Algorithm for Block Mapping Solid State Disks, National ChiaoTung University, Taiwan

Questions?