Spring 2007W. Rhett DavisNC State UniversityECE 747Slide 1 ECE 747 Digital Signal Processing Architecture SoC Lecture – Working with DRAM April 3, 2007.

Slides:



Advertisements
Similar presentations
Synchronous Static Random Access Memory (SSRAM). Internal Structure of a SSRAM AREG: Address Register CREG: Control Register INREG: Input Register OUTREG:
Advertisements

Outline Memory characteristics SRAM Content-addressable memory details DRAM © Derek Chiou & Mattan Erez 1.
Chapter 5 Internal Memory
Anshul Kumar, CSE IITD CSL718 : Main Memory 6th Mar, 2006.
Accelerating DRAM Performance
COEN 180 DRAM. Dynamic Random Access Memory Dynamic: Periodically refresh information in a bit cell. Else it is lost. Small footprint: transistor + capacitor.
Memory (RAM) Organization Each location is addressable Addresses are binary numbers Addresses used at different granularities –each bit is possible, but.
Spring 2007W. Rhett DavisNC State UniversityECE 747Slide 1 ECE 747 Digital Signal Processing Architecture SoC Lecture – Working with Analog-to-Digital.
Low Power Memory. Quick Start Training Agenda What constitutes low power memory Variations & vendors of low power memory How to interface using CoolRunner-II.
Main Mem.. CSE 471 Autumn 011 Main Memory The last level in the cache – main memory hierarchy is the main memory made of DRAM chips DRAM parameters (memory.
CS.305 Computer Architecture Memory: Structures Adapted from Computer Organization and Design, Patterson & Hennessy, © 2005, and from slides kindly made.
Chapter 9 Memory Basics Henry Hexmoor1. 2 Memory Definitions  Memory ─ A collection of storage cells together with the necessary circuits to transfer.
Lecture 12: DRAM Basics Today: DRAM terminology and basics, energy innovations.
DRAM. Any read or write cycle starts with the falling edge of the RAS signal. –As a result the address applied in the address lines will be latched.
Week 7a, Slide 1EECS42, Spring 2005Prof. White Week 7a Announcements You should now purchase the reader EECS 42: Introduction to Electronics for Computer.
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.
Lecture 13, Slide 1EECS40, Fall 2004Prof. White Lecture #13 Announcements You should now purchase the reader EECS 40: Introduction to Microelectronics,
DRAM Visualization Tool -- Austin, Prashant, Vincent1 DRAM SIMULATOR VISUALIZATION TOOL ENEE 759 H Austin Lanham Prashant Bhoot Vincent Chan.
1 COMP 206: Computer Architecture and Implementation Montek Singh Mon., Nov. 18, 2002 Topic: Main Memory (DRAM) Organization – contd.
8-5 DRAM ICs High storage capacity Low cost Dominate high-capacity memory application Need “refresh” (main difference between DRAM and SRAM) -- dynamic.
Memory Technology “Non-so-random” Access Technology:
SDRAM Synchronous dynamic random access memory (SDRAM) is dynamic random access memory (DRAM) that is synchronized with the system bus. Classic DRAM has.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 8 – Memory Basics Logic and Computer Design.
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
Spring 2007W. Rhett DavisNC State UniversityECE 747Slide 1 ECE 747 Digital Signal Processing Architecture SoC Lecture – SoC Simulation Strategy ECE 747.
Survey of Existing Memory Devices Renee Gayle M. Chua.
Chapter 5 Internal Memory. Semiconductor Memory Types.
Spring 2007W. Rhett DavisNC State UniversityECE 747Slide 1 ECE 747 Digital Signal Processing Architecture SoC Lecture – Normalized Comparison of Architectures.
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.
Lecture 13 Main Memory Computer Architecture COE 501.
Main Memory CS448.
CS 312 Computer Architecture Memory Basics Department of Computer Science Southern Illinois University Edwardsville Summer, 2015 Dr. Hiroshi Fujinoki
CPEN Digital System Design
University of Tehran 1 Interface Design DRAM Modules Omid Fatemi
Overview Memory definitions Random Access Memory (RAM)
Modern DRAM Memory Architectures Sam Miller Tam Chantem Jon Lucas CprE 585 Fall 2003.
Dynamic Random Access Memory (DRAM) CS 350 Computer Organization Spring 2004 Aaron Bowman Scott Jones Darrell Hall.
Computer Architecture Lecture 24 Fasih ur Rehman.
Chapter 4 Memory Design: SOC and Board-Based Systems
Spring 2009W. Rhett DavisNC State UniversityECE 406Slide 1 ECE 406 – Design of Complex Digital Systems Lecture 16: Introduction to Buses and Interfaces.
How do you model a RAM in Verilog. Basic Memory Model.
Semiconductor Memory Types
The Evolution of Dynamic Random Access Memory (DRAM) CS 350 Computer Organization and Architecture Spring 2002 Section 1 Nicole Chung Brian C. Hoffman.
Digital Circuits Introduction Memory information storage a collection of cells store binary information RAM – Random-Access Memory read operation.
COMP541 Memories II: DRAMs
1 Adapted from UC Berkeley CS252 S01 Lecture 18: Reducing Cache Hit Time and Main Memory Design Virtucal Cache, pipelined cache, cache summary, main memory.
Spring 2007W. Rhett DavisNC State UniversityECE 747Slide 1 ECE 747 Digital Signal Processing Architecture SoC Lecture – Working with Buses & Interconnects.
D ESIGN AND I MPLEMENTAION OF A DDR SDRAM C ONTROLLER FOR S YSTEM ON C HIP Magnus Själander.
Contemporary DRAM memories and optimization of their usage Nebojša Milenković and Vladimir Stanković, Faculty of Electronic Engineering, Niš.
1 Lecture: DRAM Main Memory Topics: DRAM intro and basics (Section 2.3)
CS35101 Computer Architecture Spring 2006 Lecture 18: Memory Hierarchy Paul Durand ( ) [Adapted from M Irwin (
Computer Architecture Chapter (5): Internal Memory
“With 1 MB RAM, we had a memory capacity which will NEVER be fully utilized” - Bill Gates.
Chapter 5 Internal Memory
William Stallings Computer Organization and Architecture 7th Edition
7-5 DRAM ICs High storage capacity Low cost
ESE532: System-on-a-Chip Architecture
Modern Computer Architecture
Reducing Hit Time Small and simple caches Way prediction Trace caches
William Stallings Computer Organization and Architecture 7th Edition
Lecture 15: DRAM Main Memory Systems
William Stallings Computer Organization and Architecture 8th Edition
William Stallings Computer Organization and Architecture 8th Edition
DRAM Hwansoo Han.
William Stallings Computer Organization and Architecture 8th Edition
Bob Reese Micro II ECE, MSU
Presentation transcript:

Spring 2007W. Rhett DavisNC State UniversityECE 747Slide 1 ECE 747 Digital Signal Processing Architecture SoC Lecture – Working with DRAM April 3, 2007 W. Rhett Davis NC State University

Spring 2007W. Rhett DavisNC State UniversityECE 747Slide 2 Today’s Lecture l DRAM Introduction l DRAM Latencies

Spring 2007W. Rhett DavisNC State UniversityECE 747Slide 3 Introduction l Perhaps more than any other single factor, DRAM heavily influences SoC Architecture l Our goal is to accurately predict the average throughput of our architecture. l Questions we need to answer: For a given architecture, how do we » choose the right data-width for the DRAM? » choose the right clock-frequency for the DRAM? » configure the Dynamic Memory Controller for the correct latencies?

Spring 2007W. Rhett DavisNC State UniversityECE 747Slide 4 Types of DRAM l SDRAM (Synchronous DRAM) – Synchronized to bus clock frequency, Achieves higher clock-frequencies than normal DRAM because it is designed to work at a specific frequency l DDR SDRAM (Double Data Rate SDRAM) – Achieves higher throughput by reading/writing data on both clock transitions (rising and falling) » Why is this necessary? Can’t we just use more chips? l DDR2 SDRAM – Allows bus clock to be 2X internal clock of DRAM, achieves higher clock-frequencies l Each of these improvements comes with added latency Because adding a pin to the SoC is one of the most costly design decisions, consumes lots of area and adds lots of wire delay

Spring 2007W. Rhett DavisNC State UniversityECE 747Slide 5 Array-Structured Memory Architecture Amplify swing to rail-to-rail amplitude Selects appropriate word Source: Rabaey, et al, Digital Integrated Circuits

Spring 2007W. Rhett DavisNC State UniversityECE 747Slide 6 Hierarchical Memory Architecture Advantages: 1. Shorter wires within blocks 2. Block address activates only 1 block => power savings Source: Rabaey, et al, Digital Integrated Circuits Most DRAMs are organized in multiple “blocks” or “banks”

Spring 2007W. Rhett DavisNC State UniversityECE 747Slide 7 SDRAM Pins l Address pins are in two groups » Column/Row Address pins (each address provided on a different cycle) » Bank Address l Example: 256Mb (32Mx16 – 4banks) » 13 column/row address pins (green) » 2 bank address pins (white) » 16 data pins (blue) Source: Micron 256Mb DDR2 SDRAM Datasheet

Spring 2007W. Rhett DavisNC State UniversityECE 747Slide 8 Today’s Lecture l DRAM Introduction l DRAM Latencies

Spring 2007W. Rhett DavisNC State UniversityECE 747Slide 9 Types of Latencies l Read/Write Latencies: » CAS/CL » DQSS l Command Latencies » RCD » RP » RAS » RC » RRD » WTR » WR

Spring 2007W. Rhett DavisNC State UniversityECE 747Slide 10 CAS Latency (CAS/CL) l “Colmn Address Strobe/Select” Latency – Delay between read command and arrival of data l Source: Micron 256Mb SDRAM Datasheet CAS = 3

Spring 2007W. Rhett DavisNC State UniversityECE 747Slide 11 Moving Between Columns/Banks l Reads within the same column and between banks incur no additional latency l Configured for bursts of 4, reads to separate column addresses in different banks Source: Micron 256Mb SDRAM Datasheet

Spring 2007W. Rhett DavisNC State UniversityECE 747Slide 12 Data Strobe Delay (DQSS) l Time between issuing of write command and when first data-value is expected to be valid Source: Micron 256Mb DDR2 SDRAM Datasheet

Spring 2007W. Rhett DavisNC State UniversityECE 747Slide 13 Command Latencies l The previous latencies don’t affect throughput, because they can be pipelined l Command latencies, however, affect throughput, because they affect how long you must wait before issuing a new command l Commands: » ACTIVE – Activate (or “open”) a row for read/write » PRECHARGE – Precharge (or “close” a row) » READ » WRITE l Only ONE ROW AT A TIME may be active in each bank l A Row must be closed before another one can be opened

Spring 2007W. Rhett DavisNC State UniversityECE 747Slide 14 Types of Latencies l Read/Write Latencies: » CAS/CL – Column Address Strobe/Select Latency » DQSS – Data Strobe Delay l Command Latencies » RCD – Row-to-Column or Row Command Delay (ACTIVE to READ or WRITE) » RP – Row Precharge (PRECHARGE to ACTIVE) » RAS – Row Address Strobe/Select (ACTIVE to PRECHARGE) » RC – (ACTIVE to ACTIVE – same bank) » RRD – Row to Row Delay (ACTIVE to ACTIVE – different banks) » WTR – Write to Read Delay (WRITE to READ) » WR – Write Recovery (WRITE to PRECHARGE)

Spring 2007W. Rhett DavisNC State UniversityECE 747Slide 15 Command Latencies Illustrated l This figure illustrates which latency value to expect when one command follows another

Spring 2007W. Rhett DavisNC State UniversityECE 747Slide 16 RCD, RP, RAS, RC Latencies Source: Micron 256Mb SDRAM Datasheet

Spring 2007W. Rhett DavisNC State UniversityECE 747Slide 17 Comparison of Micron Memories 256 Mb SDRAM 256 Mb DDR SDRAM 256 Mb DDR2 SDRAM fclk (MHz) CAS/CL (cyc.)335 RCD (ns)15 RP (ns)15 RAS (ns)3740 RC (ns)6055 RRD (ns) WTR (cyc.)127.5 WR (ns)1415

Spring 2007W. Rhett DavisNC State UniversityECE 747Slide 18 Comparison of Micron Memories 256 Mb SDRAM 256 Mb DDR SDRAM 256 Mb DDR2 SDRAM fclk (MHz) CAS/CL (cyc.)335 RCD (cyc.)335 RP (cyc.)335 RAS (cyc.)7814 RC (cyc.)11 19 RRD (cyc.)323 WTR (cyc.)123 WR (cyc.)335