Docsity

Digital Signal Processing Architecture: Understanding DRAM and Its Latencies in ECE 747, Study notes of Electrical and Electronics Engineering

Toggle sidebar
bg1
Spring 2007W. Rhett Davis NC State University ECE 747 Slide 1
ECE 747
ECE 747
Digital Signal Processing Architecture
Digital Signal Processing Architecture
SoC
SoC Lecture
Lecture –
–
Working with DRAM
Working with DRAM
April 3, 2007
April 3, 2007
W. Rhett Davis
W. Rhett Davis
NC State University
NC State University
Spring 2007W. Rhett Davis NC State University ECE 747 Slide 2
Today’s Lecture
zDRAM Introduction
zDRAM Latencies
Spring 2007W. Rhett Davis NC State University ECE 747 Slide 3
Introduction
zPerhaps more than any other single factor,
DRAM heavily influences SoC Architecture
zOur goal is to accurately predict the average
throughput of our architecture.
zQuestions 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 Davis NC State University ECE 747 Slide 4
Types of DRAM
zSDRAM (Synchronous DRAM) – Synchronized to bus
clock frequency, Achieves higher clock-frequencies than
normal DRAM because it is designed to work at a
specific frequency
zDDR 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?
zDDR2 SDRAM – Allows bus clock to be 2X internal
clock of DRAM, achieves higher clock-frequencies
zEach 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
pf3
pf4
pf5

Partial preview of the text

Download Digital Signal Processing Architecture: Understanding DRAM and Its Latencies in ECE 747 and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

Spring 2007

NC State University

ECE 747

Slide 1

ECE 747ECE 747

Digital Signal Processing ArchitectureDigital Signal Processing Architecture

SoC LectureLecture –SoC

Working with DRAMWorking with DRAM

April 3, 2007April 3, 2007W. Rhett DavisW. Rhett DavisNC State UniversityNC State University

Spring 2007

W. Rhett Davis

NC State University

ECE 747

Today’s Lecture

z^ DRAM Introduction z^ DRAM Latencies

Spring 2007

NC State University

ECE 747

Slide 3

Introduction

z^ Perhaps more than any other single factor,DRAM heavily influences SoC Architecture z^ Our goal is to accurately predict the averagethroughput of our architecture. z^ Questions we need to answer: For a givenarchitecture, 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 thecorrect latencies?

Spring 2007

W. Rhett Davis

NC State University

ECE 747

Types of DRAM

z^ SDRAM (Synchronous DRAM)

  • Synchronized to bus

clock frequency, Achieves higher clock-frequencies thannormal DRAM because it is designed to work at aspecific frequency z DDR SDRAM (Double Data Rate SDRAM)

  • Achieves

higher throughput by reading/writing data on both clocktransitions (rising and falling)^ »^ Why is this necessary? Can’t we just use more chips? z DDR2 SDRAM

  • Allows bus clock to be 2X internal •Because adding a pin to the SoC is one of the most costly designdecisions, consumes lots of area and adds lots of wire delayclock of DRAM, achieves higher clock-frequencies z Each of these improvements comes with added latency

Spring 2007

NC State University

ECE 747

Slide 5

Array-Structured Memory Architecture

Row Decoder L^^2 K Bit line 2

Word line A^ K A^ K^ 1 1 A^ L^ 2 1^ A^^0

K M. 2 Sense amplifiers / Drivers A K 2 1 Column decoderInput-Output( M^ bits)

Storage cell^ Amplify swing torail-to-rail amplitudeSelects appropriateword Source: Rabaey, et al,Digital Integrated Circuits

Spring 2007

W. Rhett Davis

NC State University

ECE 747

Hierarchical Memory Architecture^ Advantages:Advantages:1. Shorter wires within blocks1. Shorter wires within blocks2. Block address activates only 1 block => power savings2. Block address activates only 1 block => power savings

Globalamplifier/driver Controlcircuitry

Global data bus

Block 0 Block selector RowaddressColumnaddressBlockaddress

Block^ i^

Block^ P^ 2 1 I/O^

Source: Rabaey, et al,Digital Integrated Circuits

Most DRAMs are organized in multiple “blocks” or “banks”

Spring 2007

NC State University

ECE 747

Slide 7

SDRAM Pins

z^ Address pins are in twogroups^ »^ Column/Row Address pins(each address provided ona different cycle)^ »^ Bank Address z^ Example: 256Mb(32Mx16 – 4banks)^ »^ 13 column/row addresspins (green)^ »^ 2 bank address pins (white)^ »^ 16 data pins (blue)

Source: Micron 256Mb DDR2 SDRAM Datasheet

Spring 2007

W. Rhett Davis

NC State University

ECE 747

Today’s Lecture

z^ DRAM Introduction z^ DRAM Latencies

Spring 2007

NC State University

ECE 747

Slide 13

Command Latencies

z^ The previous latencies don’t affect throughput, becausethey can be pipelined z^ Command latencies, however, affect throughput, becausethey affect how long you must wait before issuing a newcommand z^ Commands:^ »^ ACTIVE – Activate (or “open”) a row for read/write^ »^ PRECHARGE – Precharge (or “close” a row)^ »^ READ^ »^ WRITE z^ Only ONE ROW AT A TIME may be active in each bank z^ A Row must be closed before another one can be opened

Spring 2007

W. Rhett Davis

NC State University

ECE 747

Types of Latencies

z^ Read/Write Latencies:^ »^ CAS/CL – Column Address Strobe/Select Latency^ »^ DQSS – Data Strobe Delay z^ 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 2007

NC State University

ECE 747

Slide 15

Command Latencies Illustrated z This figure illustrates which latency value to expectwhen one command follows another

Spring 2007

W. Rhett Davis

NC State University

ECE 747

RCD, RP, RAS, RC Latencies

Source: Micron 256Mb SDRAM Datasheet

Spring 2007

W. Rhett Davis

NC State University

ECE 747

Slide 17

Comparison of Micron Memories

WR (ns)

WTR (cyc.)

RRD (ns)

RC (ns)

RAS (ns)

RP (ns)

RCD (ns)

CAS/CL (cyc.)

fclk (MHz)

256 MbDDR2 SDRAM 256 MbDDR SDRAM 256 MbSDRAM

Spring 2007

W. Rhett Davis

NC State University

ECE 747

Slide 18

Comparison of Micron Memories

WR (cyc.)

WTR (cyc.)

RRD (cyc.)

RC (cyc.)

RAS (cyc.)

RP (cyc.)

RCD (cyc.)

CAS/CL (cyc.)

fclk (MHz)

256 MbDDR2 SDRAM 256 MbDDR SDRAM 256 MbSDRAM