Docsity

Understanding DRAM Systems: A Design Perspective - Prof. Bruce Jacob, Study notes of Electrical and Electronics Engineering

Toggle sidebar
bg1
DRAM Projects
Spring 2003
Bruce Jacob
David Wang
University of
Maryland
slide 1
Now we’ll really get our hands
dirty, and try to become DRAM
designers. That is, we want to
understand the tradeoffs, and
design our own memory system
with DRAM cells. By doing this,
we can gain some insight into
some of the basis of claims by
proponents of various DRAM
memory systems.
A Memory System is a system
that has many parts. It’s a set of
technologies and design
decisions. All of the parts are
inter-related, but for the sake of
discussion, we’ll splite the
components into ovals seen
here, and try to examine each
part of a DRAM system
separately.
Memory System Design
DRAM
Memory
System
Topology
I/O Technology
Access Protocol
DRAM Chip
Architecture
Clock Network
Row Buffer
Address Mapping
Management
Pin Count
Chip Packaging
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Understanding DRAM Systems: A Design Perspective - Prof. Bruce Jacob and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

DRAM Projects

Spring 2003Bruce JacobDavid WangUniversity of

Maryland

slide 1

Now we’ll really get our handsdirty, and try to become DRAMdesigners. That is, we want tounderstand the tradeoffs, anddesign our own memory systemwith DRAM cells. By doing this,we can gain some insight intosome of the basis of claims byproponents of various DRAMmemory systems.A Memory System is a systemthat has many parts. It’s a set oftechnologies and designdecisions. All of the parts areinter-related, but for the sake ofdiscussion, we’ll splite thecomponents into ovals seenhere, and try to examine eachpart of a DRAM systemseparately.

Memory System Design

DRAMMemorySystem

Topology

I/O Technology

Access Protocol

DRAM ChipArchitecture

Clock Network

Row Buffer

Address Mapping

Management

Pin Count

Chip Packaging

DRAM Projects

Spring 2003Bruce JacobDavid WangUniversity of

Maryland

slide 2

What is a “good” system?It’s all about the cost of asystem. This is a multi-dimensional tradeoff problem.Especially tough when therelative cost factors of pins, diearea, and the demands ofbandwidth and latency keeps onchanging. Good decisions forone generation may not be goodfor future generations. This iswhy we don’t keep a DRAMprotocol for a long time. FPMlasted a while, but we’ve quicklyprogressed through EDO,SDRAM, DDR/RDRAM, andnow DDR II and whatever else ison the horizon.

Cost - Benefit Criterion

Logic Overhead

Power

Package Cost Consumption

Test and

DRAMSystemDesign

Bandwidth

Latency

Implementation

Interconnect

Cost

DRAM Projects

Spring 2003Bruce JacobDavid WangUniversity of

Maryland

slide 4

Now we’ll really get our handsdirty, and try to become DRAMdesigners. That is, we want tounderstand the tradeoffs, anddesign our own memory systemwith DRAM cells. By doing this,we can gain some insight intosome of the basis of claims byproponents of various DRAMmemory systems.A Memory System is a systemthat has many parts. It’s a set oftechnologies and designdecisions. All of the parts areinter-related, but for the sake ofdiscussion, we’ll splite thecomponents into ovals seenhere, and try to examine eachpart of a DRAM systemseparately.

DRAM Evolution II * figure taken from SLDRAM white paper, by Pete Gillingham

cost adder

1Gbit

256Mbit

64Mbit

16Mbit

Dominant DRAM Generation

SDRAM 100 Mbp/s/p

DDRSDRAM 200 Mbp/s/p

SLDRAM 800 400 Mbp/s/p

SLDRAM{RDRAM}Mbp/s/p

SLDRAM>1 Gbp/s/p

x

x

x

x

x

Internal datapath width (16 bit external I/O)

DRAM Projects

Spring 2003Bruce JacobDavid WangUniversity of

Maryland

slide 5

RDRAM moves complexity frominterface into DRAM chips.Is this a good trade off? Whatdoes the future look like?

Differences of Philosophy

Complexity Moved to DRAM

SDRAM - Variants

Controller

DRAMChips

ComplexInterconnect

InexpensiveInterface

RDRAM - Variants

Controller

DRAMChips

SimplifiedInterconnect

expensiveInterface

SimpleLogic

ComplexLogic

DRAM Projects

Spring 2003Bruce JacobDavid WangUniversity of

Maryland

slide 7

So we have some choices tomake. Integration of memorycontroller will move the memorycontroller on die, frequency willbe much higher. Command-datapath will only cross chipboundaries twice instead of 4times. But interfacing withmemory chips directly meansthat you are to be limited by thelowest common denominator. Toget highest bandwidth (for agiven number of pins) ANDlowest latency, we’ll needcustom RAM, might as well beSRAM, but it will be prohibativelyexpensive

Choices for Future

DRAM

CPU

DRAM

DRAM

DRAM

DRAM

CPU CPU

CPU

DRAM

DRAM

DRAM

DRAM

DRAM

DRAM

DRAM

MemoryController

Direct ConnectCustom DRAM:Highest Bandwidth +Low Latency

Direct ConnectCommodity DRAMLow Bandwidth +Low Latency

Direct Connectsemi-comm. DRAM:High Bandwidth +Low/Moderate Latency

Indirect Connection

Inexpensive DRAM

Highest Bandwidth

Highest Latency

DRAM

DRAM

DRAM

DRAM

DRAM

DRAM

DRAM

DRAM

DRAM

DRAM

DRAM

DRAM

DRAM

DRAM

DRAM

DRAM

DRAM Projects

Spring 2003Bruce JacobDavid WangUniversity of

Maryland

slide 8

Instead of thining about thingson a strict latency-bandwidthperspective, it might be morehelpful to think in terms oflatency vs pin-transitionefficiency perspective. The ideais that

A Different PerspectiveEverything is bandwidthLatency and BandwidthPin-bandwidth andPin-transition *Efficiency (bits/cycle/sec)

ClockRow Cmd/Addr BandwidthCol. Cmd/Addr BandwidthWrite Data BandwidthRead Data Bandwidth

DRAM Projects

Spring 2003Bruce JacobDavid WangUniversity of

Maryland

slide 10

Certain things simply does notmake sense to do. Such asvarious STREAM components.Move multimegabyte arrays fromDRAM to CPU, just to performsimple “add” function, then movethat multi megabyte arrays rightback. In such extremebandwidth constrainedapplications, it would bebeneficial to have some logic orhardware on DRAM chips thatcan perform simplecomputation. This is tricky, sincewe do not want to add too muchlogic as to make the DRAMchips prohibatively expensive tomanufacture. (logic overheaddecreases with each generation,so adding logic is not animpossible dream) Also, we donot want to add logic into thecritical path of a DRAM access.That would serve to slow down ageneral access in terms of the“real latency” in ns.

Page Based Commands:

Instead of A[ ] = 0; Do “write 0”

Write

Act

Write 0

Act

Why do STREAMadd in CPU?

A[ ] = B[ ] + C[ ]

Active Pages *(Chong et. al. ISCA ‘98)

Why do A[ ] = B[ ] in CPU?

Move Data inside of DRAM or between DRAMs.

MemoryController

DRAM Projects

Spring 2003Bruce JacobDavid WangUniversity of

Maryland

slide 11

For a given physical address,there are a number of ways tomap the bits of the physicaladdress to generate the“memory address” in terms ofdevice ID, Row/col addr, andbank id.The mapping policies couldimpact performance, since badlymapped systems can causebank conflicts in consecutiveaccesses.Now, mapping policies must alsotake temperature control intoaccount, as consecutiveaccesses that hit the sameDRAM chip can potentiallycreate undesirable hot spots.One reason for the additionalcost of RDRAM initially was theuse of heat spreaders on thememory modules to prevent thehotspots from building up.

Address Mapping: Access Distribution for Temp ControlAvoid Bank ConflictsAccess Reordering for performance

PhysicalAddress

Row Addr

Bank Id

Col Addr

Device Id

DRAM Projects

Spring 2003Bruce JacobDavid WangUniversity of

Maryland

slide 13

Each Load command istranslated to a row commandand a column command. If twocommands are mapped to thesame bank, one must becompleted before the other canstart.Or, if we can re-order thesequences, then the entiresequence can be completedfaster.By allowing Read 3 to bypassRead 2, we do not need togenerate another row activationcommand. Read 4 may alsobypass Read 2, since it operateson a different Device/bankentirely.DRAM now can do autoprecharge, but I put in theprecharge explicitly to show thattwo rows cannot be active withintRC (DRAM architecture)constraints.

Access Reordering:

Read 05AE5700Read 023BB880Read 00CBA2C

Device id 3, Row id 266, Bank id 0Device id 3, Row id 1BA, Bank id 0Device id 1, Row id 052, Bank id 1

Read 05AE

Device id 3, Row id 266, Bank id 0

Read

Act

Data

Prec

Act = Activate Page (Data moved from DRAM cells to row buffer)Read = Read Data (Data moved from row buffer to memory controller)Prec = Precharge (close page/evict data in row buffer/sense amp)

Read

Act

Data

Prec

Read

Act

Data

Read

Act

Data

Prec

Strict Ordering

Read

Act

Data

Prec

Read

Act

Data

Prec

Memory Access Re-ordered

tRC

DRAM Projects

Spring 2003Bruce JacobDavid WangUniversity of

Maryland

slide 14

Each Load command istranslated to a row commandand a column command. If twocommands are mapped to thesame bank, one must becompleted before the other canstart.Or, if we can re-order thesequences, then the entiresequence can be completedfaster.By allowing Read 3 to bypassRead 2, we do not need togenerate another row activationcommand. Read 4 may alsobypass Read 2, since it operateson a different Device/bankentirely.DRAM now can do autoprecharge, but I put in theprecharge explicitly to show thattwo rows cannot be active withintRC (DRAM architecture)constraints.

Serial Link Memory:

DRAMChip

DRAMChip

DRAMChip

DRAMChip

DRAMChip

DRAMChip

DRAMChip

DRAMChip

DRAMChip

DRAMChip

DRAMChip

DRAMChip

Memory Controller*ref: Poulton ISSCC 1999 signaling tutorial

DRAM Projects

Spring 2003Bruce JacobDavid WangUniversity of

Maryland

slide 16

Each Load command istranslated to a row commandand a column command. If twocommands are mapped to thesame bank, one must becompleted before the other canstart.Or, if we can re-order thesequences, then the entiresequence can be completedfaster.By allowing Read 3 to bypassRead 2, we do not need togenerate another row activationcommand. Read 4 may alsobypass Read 2, since it operateson a different Device/bankentirely.DRAM now can do autoprecharge, but I put in theprecharge explicitly to show thattwo rows cannot be active withintRC (DRAM architecture)constraints.

DRAM Controller Design

sy s te m c o n tro lle r/

(n o rth b rid g e )

tra n sa c tio n q u e u em e m o ry c o n tro lle r

C o m m a n dS e q u e n c e

D R A M S y ste m

M e m o ryC o n tro lle rM e m o ryC o n tro lle rM e m o ryC o n tro lle rM e m o ryC o n tro lle r

D R A M S y ste mD R A M S y ste mD R A M S y ste m

- Code in structural and behavioral Verilog- Target (High Performance/Low power/Low cost)

RISCCPU

- Interface with 16 bit RISC CPU- Generic so it can be reused

DRAM Projects

Spring 2003Bruce JacobDavid WangUniversity of

Maryland

slide 17

Each Load command istranslated to a row commandand a column command. If twocommands are mapped to thesame bank, one must becompleted before the other canstart.Or, if we can re-order thesequences, then the entiresequence can be completedfaster.By allowing Read 3 to bypassRead 2, we do not need togenerate another row activationcommand. Read 4 may alsobypass Read 2, since it operateson a different Device/bankentirely.DRAM now can do autoprecharge, but I put in theprecharge explicitly to show thattwo rows cannot be active withintRC (DRAM architecture)constraints.

Simulator

sy s te m c o n tro lle r/

(n o rth b rid g e )

tra n sa c tio n q u e u em e m o ry c o n tro lle r

C o m m a n dS e q u e n c e

D R A M S y ste m

M e m o ryC o n tro lle rM e m o ryC o n tro lle rM e m o ryC o n tro lle rM e m o ryC o n tro lle r

D R A M S y ste mD R A M S y ste mD R A M S y ste m

- Code in C and C++- Target High Performance

RISCCPU

- Interface with Simplescalar or Bochs- Generic so it can be reused