SRAM Memory External Interface

Slides:



Advertisements
Similar presentations
Chapter 5 Internal Memory
Advertisements

Computer Organization and Architecture
Computer Organization and Architecture
+ CS 325: CS Hardware and Software Organization and Architecture Internal Memory.
5-1 Memory System. Logical Memory Map. Each location size is one byte (Byte Addressable) Logical Memory Map. Each location size is one byte (Byte Addressable)
COEN 180 DRAM. Dynamic Random Access Memory Dynamic: Periodically refresh information in a bit cell. Else it is lost. Small footprint: transistor + capacitor.
Kevin Walsh CS 3410, Spring 2010 Computer Science Cornell University Memory See: P&H Appendix C.8, C.9.
CS.305 Computer Architecture Memory: Structures Adapted from Computer Organization and Design, Patterson & Hennessy, © 2005, and from slides kindly made.
11/29/2004EE 42 fall 2004 lecture 371 Lecture #37: Memory Last lecture: –Transmission line equations –Reflections and termination –High frequency measurements.
1 Lecture 16B Memories. 2 Memories in General Computers have mostly RAM ROM (or equivalent) needed to boot ROM is in same class as Programmable Logic.
Memory Hierarchy.1 Review: Major Components of a Computer Processor Control Datapath Memory Devices Input Output.
Registers  Flip-flops are available in a variety of configurations. A simple one with two independent D flip-flops with clear and preset signals is illustrated.
Chapter 5 Internal Memory
1 Lecture 16B Memories. 2 Memories in General RAM - the predominant memory ROM (or equivalent) needed to boot ROM is in same class as Programmable Logic.
Main Memory by J. Nelson Amaral.
©Wen-mei W. Hwu and David Kirk/NVIDIA, ECE408/CS483/ECE498AL, University of Illinois, ECE408/CS483 Applied Parallel Programming Lecture 7: DRAM.
Memory Technology “Non-so-random” Access Technology:
Lecture on Electronic Memories. What Is Electronic Memory? Electronic device that stores digital information Types –Volatile v. non-volatile –Static v.
CPE232 Memory Hierarchy1 CPE 232 Computer Organization Spring 2006 Memory Hierarchy Dr. Gheith Abandah [Adapted from the slides of Professor Mary Irwin.
CSIE30300 Computer Architecture Unit 07: Main Memory Hsin-Chou Chi [Adapted from material by and
EEL 5708 Memory technology Lotzi Bölöni. EEL 5708 Acknowledgements All the lecture slides were adopted from the slides of David Patterson (1998, 2001)
Memory /27/081ECE Lecture 13 Memory 2.
EEE-445 Review: Major Components of a Computer Processor Control Datapath Memory Devices Input Output Cache Main Memory Secondary Memory (Disk)
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use ECE/CS 352: Digital Systems.
University of Tehran 1 Interface Design DRAM Modules Omid Fatemi
+ CS 325: CS Hardware and Software Organization and Architecture Memory Organization.
Computer Architecture Lecture 24 Fasih ur Rehman.
Physical Memory and Physical Addressing By Alex Ames.
CS35101 Computer Architecture Spring 2006 Lecture 18: Memory Hierarchy Paul Durand ( ) [Adapted from M Irwin (
Computer Architecture Chapter (5): Internal Memory
CSE431 L18 Memory Hierarchy.1Irwin, PSU, 2005 CSE 431 Computer Architecture Fall 2005 Lecture 18: Memory Hierarchy Review Mary Jane Irwin (
1 Lecture: Memory Basics and Innovations Topics: memory organization basics, schedulers, refresh,
COMP541 Memories II: DRAMs
Lecture 3. Lateches, Flip Flops, and Memory
CS 1251 Computer Organization N.Sundararajan
Chapter 5 Internal Memory
William Stallings Computer Organization and Architecture 7th Edition
ENG241 Digital Design Week #11 Memory Systems School of Engineering.
7-5 DRAM ICs High storage capacity Low cost
COMP211 Computer Logic Design
ESE532: System-on-a-Chip Architecture
ECE 4100/6100 Advanced Computer Architecture Lecture 11 DRAM
CSE 502: Computer Architecture
Lecture 19: SRAM.
Modern Computer Architecture
Reducing Hit Time Small and simple caches Way prediction Trace caches
Recap DRAM Read Cycle DRAM Write Cycle FAST Page Access Mode
Dynamic Random Access Memory (DRAM) Basic
COMP541 Memories II: DRAMs
William Stallings Computer Organization and Architecture 7th Edition
Lecture 15: DRAM Main Memory Systems
William Stallings Computer Organization and Architecture 8th Edition
Hakim Weatherspoon CS 3410 Computer Science Cornell University
Information Storage and Spintronics 10
Computer Architecture
William Stallings Computer Organization and Architecture 7th Edition
William Stallings Computer Organization and Architecture 8th Edition
DRAM Bandwidth Slide credit: Slides adapted from
BIC 10503: COMPUTER ARCHITECTURE
Memory.
Lecture: Memory Technology Innovations
Semiconductor Memories
15-740/ Computer Architecture Lecture 19: Main Memory
AKT211 – CAO 07 – Computer Memory
DRAM Hwansoo Han.
William Stallings Computer Organization and Architecture 8th Edition
Bob Reese Micro II ECE, MSU
Presentation transcript:

SRAM Memory External Interface A0-A9 D0 R/W! E 1Kbit SRAM GEOMETRY: ( ROWS , COLS ) == ADDRESSES x DATA WIDTH CAPACITY

Making Wider Memories WANT HAVE A0-A9 D0-D1 R/W! E 1Kx2bit SRAM A0-A9

Making Wider Memories D0-D1 D0 A0-A10 R/W! D1 E 2Kx1bit SRAM D0 A0-A9

Making Taller Memories WANT HAVE A0-A10 D0 R/W! E 2Kx1bit SRAM A0-A9 D0 R/W! E 1Kx1bit SRAM

Making Taller Memories WANT HAVE A0-A10 D0 R/W! E 2Kx1bit SRAM A0-A9 D0 R/W! E 1Kx1bit SRAM

Making Taller Memories A0-A10 D0 R/W! E 2Kx1bit SRAM A0-A9 D0 R/W! E 1Kx1bit SRAM

Address Mapping 0 00000 00000 1K rows 2K rows 0 11111 11111 1 00000 00000 1 11111 11111

Address Mapping 0 XXXXX XXXXX 1K rows 2K rows A10 1 XXXXX XXXXX

Making Taller Memories D0 A0-A10 A0-A9 D0 A0-A9 D0 R/W! E A10 R/W! D0 A0-A9 A0-A9 D0 R/W! E E 2Kx1bit SRAM

Making Taller Memories A0-A11 D0 R/W! E 4Kx1bit SRAM A0-A9 D0 R/W! E 1Kx1bit SRAM

Address Mapping 00 00000 00000 1K rows 00 11111 11111 01 00000 00000 4K rows 01 11111 11111 10 00000 00000 10 11111 11111 11 00000 00000 11 11111 11111

Address Mapping 00 XXXXX XXXXX 1K rows 01 XXXXX XXXXX 4K rows

Making Taller Memories A0-A11 D0 A0-A9 D0 A0-A9 D0 R/W! E A11-A10 R/W! A0-A9 D0 A0-A9 D0 R/W! E E A0-A9 D0 A0-A9 D0 R/W! E A0-A9 D0 A0-A9 D0 R/W! E

Where is the decoder? D0 D0 A0-A9 A0-A10 A10 R/W! D0 A0-A9 E 2Kx1bit SRAM

Memory External Interface A0-A9 D0 R/W! E 1Kbit SRAM

SRAM Internal Organization A0-A9 SRAM bit Decoder R/W! Wire delay = f(length^2) D0 E Sense Amp

SRAM Internal Organization A0-A9 D0 R/W! E 32x32 array Row Decoder Column Mux A0-A4 A5-A9 As square as possible

Wider Data Bus A0-A9 A0-A4 D3 32x32 array Row Decoder Column Mux D2 R/W! A5-A9 E

Wider Data Bus A0-A4 A0-A9 As square as possible 32x32 array D0-D3 R/W! E 32x32 array Row Decoder Column Mux A0-A4 A5-A9 As square as possible D0-D3

From prof. Gulak’s Slides

SRAM Bit Cell 6T Cell row select bitline bitline! bit-cell array 2n row x 2m-col (nm to minmize overall latency) 2n n Read Sequence 1. precharge all bitlines 2. address decode 3. drive row select 4. selected bit-cells drive bitlines 5. diff. sensing and col. select n+m m 2m diff pairs sense amp and mux 1 From Prof. Sankaralingam, UWisc-Madison

SRAM Bit Cell - Precharge Vdd Vdd wordline bitline bitline!

SRAM Bit Cell – Decode Row and Select row select bitline bitline!

SRAM Bit Cell – Mux and Sense row select bitline bitline!

SRAM Bit Cell – Mux and Sense row select bitline bitline!

SRAM Bit Cell – Writes 1 row select bitline bitline!

From prof. Gulak’s Slides

Memory Array From prof. Gulak’s Slides

Decoders users.ece.utexas.edu/~adnan/vlsi-05-backup/lec13SRAM.ppt‎

Larger Decoders For N>4 NAND becomes slow Use 2-input gates hierarchically users.ece.utexas.edu/~adnan/vlsi-05-backup/lec13SRAM.ppt‎

Pre-Decoding Many gates are redundant Saves area

Dynamic RAM wordline _bitline RAS bit-cell array 2n row x 2m-col 2n Value is stored on a capacitor C – A single pass transistor T connects C to the bit line when the cell is being read or written C experiences leakage meaning the charge stored on C will slowly leak out, thus destroying the value To prevent this DRAM cells need to be periodically refreshed – Memory controller goes through and reads all the cells and then writes the same values back DRAM cells have a different manufacturing process than processors so it’s difficult and expensive to incorporate them onto the same chip wordline _bitline bit-cell array 2n row x 2m-col (nm to minmize overall latency) RAS 2n n m 2m sense amp and mux 1 A DRAM die comprises of multiple such arrays CAS From Prof. Sankaralingam, UWisc-Madison

wordline _bitline From http://en.wikipedia.org/wiki/File:DRAM_trench_structure_configuration1_1.svg

DRAM Notes Read: Write: Refresh adds overhead: Bit line is pre-charged and then word line is activated. If there is a 1 in the capacitor, then the bit line remains high. Otherwise it gets pulled down Write: Bit line is driven to the write value and either charges or drains the capacitor writing the value into it. Refresh adds overhead: Usually each cell has to be refreshed every 64ms Cell is unavailable for 2-4% of refresh period (i.e. 1.2 to 2.4 ms of each 64ms period) Memory controller tries to schedule refreshes so they don’t interfere with regular memory traffic Self-Refreshing memories

Synchronous DRAM http://search.library.utoronto.ca/details?6949501 Memory Systems Cache, DRAM, Disk About this Book Author(s): Bruce Jacob, Spencer W. Ng, David T. Wang and Samuel Rodriguez

Synchronous DRAM (SDRAM) RAS’ CAS’ Column Row Data Data Data BURST From Prof. Sankaralingam, UWisc-Madison

DDR2 (Double Data Rate RAS’ CAS’ Column Row Data Data Data From Prof. Sankaralingam, UWisc-Madison

Addressing in Modern DRAM

DRAM Organization Alternatives 128MB DRAM Capacity 64-bit data bus 1Gbit capacity 64MBit w/ 4-bit data bus? 64Mbit w/ 8-bit data bus? 128Mbit w/ 16-bit data bus?

DRAM Organization Alternatives 128MB DRAM Capacity 64-bit data bus 1Gbit capacity 64MBit w/ 4-bit data bus? 64 bit bus? 16 devices 16 x 64Mb = 1Gbit 64Mbit w/ 8-bit data bus? 64-bit bus? 8 devices Capacity? 8 x 64Mbit = 512Mbit  2 ranks 128Mbit w/ 16-bit data bus? 64-bit bus? 4 devices

 Home >  Computer Hardware > Memory > Desktop Memory > Mushkin Enhanced > Item#: N82E16820146744   Mushkin Enhanced Essentials 2GB 240-Pin DDR3 SDRAM DDR3 1333 (PC3 10666) Desktop Memory Model 991586  DDR3 1333 (PC3 10666) Timing 9-9-9-24 Cas Latency 9 Voltage 1.5V

DDR3 1333 Operates at 667 Mhz Can tranfer data at double the rate Bandwidth 1333 MT/sec Mega transfers per second

DRAM Access Sequence 1. Precharge 2. Row Access 3. Column Access 4. Data Transfer 5. Close Row (write data back)

DRAM Timing tCAS-tRCD-tRP-tRAS tCAS: tRCD: tRP: tRAS: column address strobe column to data appearing tRCD: RAS to CAS row to column tRP: RAS precharge, Precharge latency tRAS: Row Access Strobe: Shortest time between two Row activations

DDR3 Timing Timing 9-9-9-24 tCAS-tRCD-tRP-tRAS

DDR DRAM Timing Timing 9-9-9-24 tCAS-tRCD-tRP-tRAS From anandtech: http://images.anandtech.com/doci/3851/Back%20to%20Back%20Burst%20Read%20with%20Page%20Close.png

Interleaved Main Memory Divide memory into M banks and “interleave” addresses across them, so word A is in bank (A mod M) at word (A div M) Interleaved memory increases memory BW without wider bus Use parallelism in memory banks to hide memory latency Bank 0 Bank 1 Bank 2 Bank n word 0 word 1 word 2 word n-1 word n word n+1 word n+2 word 2n-1 word 2n word 2n+1 word 2n+2 word 3n-1 PA Doubleword in bank Bank Word in doubleword Copyright © 2002 Falsafi, from Hill, Smith, Sohi, Vijaykumar, and Wood

Flash Memory gate Floating gate n p n

“1” “0” Flash Memory Floating gate changes threshold voltage - - - - - - - - - - - Trapped charge n p n n p n Floating gate changes threshold voltage SLC  2 states MLC  more states

Flash Memory -- Reading gate Voltage Floating gate n p n

Flash Memory – Writing a “0” gate High Possitive Voltage - - - - - - - - - - n p n

Flash Memory – Writing a “1” gate High negative Voltage n p n

NAND FLASH

NAND FLASH Reading Conduct no matter what value Conduct only if no charge VA Von Von Von Von Von Von Von Von Von

NAND FLASH Erasing Clear off all charge: negative Von Ve Ve Ve Ve Ve

NAND FLASH Writing Conduct no matter what value High possitive VA Von