Docsity

Memory Systems: Architecture & Performance Analysis - Lecture 7, UMD, ENEE 759H, Spring 20, Study notes of Electrical and Electronics Engineering

Partial preview of the text

Download Memory Systems: Architecture & Performance Analysis - Lecture 7, UMD, ENEE 759H, Spring 20 and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

Architecture and

Performance

Analysis

Spring 2005ENEE 759H

Lecture7.fm

Bruce Jacob

David Wang University of

Maryland

ECE Dept.

SLIDE 1

ENEE 759H, Spring 2005 Memory Systems:Architecture andPerformance AnalysisSDRAM, DDR SDRAM and DDR2SDRAM Memory Systems

Credit where credit is due

Slides contain original artwork (© Jacob, Wang 2005)

Architecture and

Performance

Analysis

Spring 2005ENEE 759H

Lecture7.fm

Bruce Jacob

David Wang University of

Maryland

ECE Dept.

SLIDE 2

Memory System Topology

SingleChannelSDRAMController

Dimm

Dimm

Dimm

Dimm

Data Bus

Addr & Cmd

Chip (DIMM) Select

“Mesh Topology”

Architecture and

Performance

Analysis

Spring 2005ENEE 759H

Lecture7.fm

Bruce Jacob

David Wang University of

Maryland

ECE Dept.

SLIDE 4

SDRAM Chip Architecture

CKECLKCS#WE#CAS#RAS#

command

decode controllogic

moderegister

refreshcounter

rowaddressmux

Bank 0rowaddresslatchanddecoder

Bank 0rowaddresslatchanddecoder

Bank 0rowaddresslatchanddecoder

bank 0rowaddresslatchanddecoder

Sense Amp

Sense Amp

Sense Amp

Sense Amp

addressregister

addrbus

bankcontrollogic

columnaddresscounter/latch

columndecoder Read Data LatchWrite Drivers

I/O Gating

columndecoder

columndecoder

columndecoder

datainreg dataoutreg

256 Mbit chip: 8192 rows, 512 columns, x16 data, 4 banks

dataI/O

Architecture and

Performance

Analysis

Spring 2005ENEE 759H

Lecture7.fm

Bruce Jacob

David Wang University of

Maryland

ECE Dept.

SLIDE 5

Mode Register

command

decode controllogic

moderegister

12

11 10 9

8

7

6

5

4

3

2

1

0

Burst Length

CAS Latency

Burst Type

Burst Length = 1, 2, 4, 8, or Page mode

CAS Latency = 2, 3 (4, 5, etc in special versions)

Burst Type = Sequential or Interleaved

addressregister

addrbus

CKECLKCS#WE#CAS#RAS#

SDRAM Device can be programmed to respond inslightly different manners

Architecture and

Performance

Analysis

Spring 2005ENEE 759H

Lecture7.fm

Bruce Jacob

David Wang University of

Maryland

ECE Dept.

SLIDE 7

System Initialization

  1. Apply power to Vdd and VddQ2a. Wait 100us before issuing command to DRAM chip2b. Read out SPD3. Issue at least one NOP
    1. Issue precharge-all command
      1. Issue two auto-refresh commands6. Program mode register

SingleChannelSDRAMController

Dimm

Dimm

Dimm

Dimm

Data Bus

Addr & Cmd

Chip (DIMM) Select

“Mesh Topology”

Architecture and

Performance

Analysis

Spring 2005ENEE 759H

Lecture7.fm

Bruce Jacob

David Wang University of

Maryland

ECE Dept.

SLIDE 8

CAS Read/Write Commands

read command

command bus

CAS = 2

D out

t

OH

CAS = 3

D out

t

OH

DQ (data bus)

DQ (data bus)

write command

command bus

D in

DQ (data bus)

C

Architecture and

Performance

Analysis

Spring 2005ENEE 759H

Lecture7.fm

Bruce Jacob

David Wang University of

Maryland

ECE Dept.

SLIDE 10

Write after Read

0

1

2

3

4

5

6

7

9

8

10

12

11

13

read command

data bus utilization

CASL 3

MemoryController

SDRAMrank # 0

SDRAMrank # 1

1

2

3 4

4

2

Data bus

1

3

Data written frommemory controller

Data return fromrank # 0

rank # 0hold time

bus idletime

memory controllersetup time

Clock signal

Data bus

write command

Architecture and

Performance

Analysis

Spring 2005ENEE 759H

Lecture7.fm

Bruce Jacob

David Wang University of

Maryland

ECE Dept.

SLIDE 11

Read after Write

0

1

2

3

4

5

6

7

9

8

10

12

11

13

write command

CASL = 3

1

2

3

read command

4

write command

CASL = 3

1

2

3

read command

4

MemoryController

SDRAMrank # 0

SDRAMrank # 1

4

2

Data bus

1

3

MemoryController

SDRAMrank # 0

SDRAMrank # 1

4

2

Data bus

1

3

0

1

2

3

4

5

6

7

9

8

10

12

11

13

Back-to-back accesses to same rank

Back-to-back accesses to different ranks

Architecture and

Performance

Analysis

Spring 2005ENEE 759H

Lecture7.fm

Bruce Jacob

David Wang University of

Maryland

ECE Dept.

SLIDE 13

Signaling: LVTTL

V

out

V

in

input voltage

V

in

low = 0.8V

V

in

high = 2.0V

V

out

high = 2.4V

V

out

low = 0.4V

LVTTL

outputvoltage

inverter

- No reference voltage- Rail-to-rail swing of 3.3V

Architecture and

Performance

Analysis

Spring 2005ENEE 759H

Lecture7.fm

Bruce Jacob

David Wang University of

Maryland

ECE Dept.

SLIDE 14

DDR SDRAM Memory System

SingleChannel

Dimm

Dimm

Dimm

DDRSDRAMController

Data Bus

Addr & Cmd

Chip (DIMM) Select

DQS (Data Strobe)

Same Topology

as SDRAM

Architecture and

Performance

Analysis

Spring 2005ENEE 759H

Lecture7.fm

Bruce Jacob

David Wang University of

Maryland

ECE Dept.

SLIDE 16

DDR SDRAM Chip

CKECLKCS#WE#CAS#RAS#

command

decode controllogic

moderegister

refreshcounter

rowaddressmux

Bank 0rowaddresslatchanddecoder

Bank 0rowaddresslatchanddecoder

Bank 0rowaddresslatchanddecoder

bank 0rowaddresslatchanddecoder

13

Sense Amp

Sense Amp

Sense Amp

Sense Amp

addressregister

addrbus

bankcontrollogic

2

columnaddresscounter/latch

columndecoder Read Data LatchWrite Drivers

I/O Gating

columndecoder

columndecoder columndecoder

9

Data

I/O

Same basic architectureas SDRAM

DQS

generator

MUX

Data I/O Interface isdifferent

readlatch writeFIFOanddrivers

clk

drivers

receivers

DLL

clk

input

registers

databus(andmask)

DQS

mask data

Data I/O runs at 2X freq.of DRAM core

Architecture and

Performance

Analysis

Spring 2005ENEE 759H

Lecture7.fm

Bruce Jacob

David Wang University of

Maryland

ECE Dept.

SLIDE 17

Signal Propagation

Ideal Transmission Line

A

B

PC Board + Module Connectors +

Varying Electrical Loads

= Rather non-Ideal Transmission Line

~ 0.66c = 20 cm/ns

Architecture and

Performance

Analysis

Spring 2005ENEE 759H

Lecture7.fm

Bruce Jacob

David Wang University of

Maryland

ECE Dept.

SLIDE 19

DQS: Data Strobe

A

Controller

Bus Signal 2Bus Signal 1

IntermoduleConnectors

B

DQS

- Source synchronous “clock” signal- Edge aligned with data for reads,

center aligned with data for writes

- Topology, electrically matched with

signals on data bus

- Single ended, bidirectional signal in

DDR SDRAM memory system

Architecture and

Performance

Analysis

Spring 2005ENEE 759H

Lecture7.fm

Bruce Jacob

David Wang University of

Maryland

ECE Dept.

SLIDE 20

DQS: Read and Write

0

1

2

3

4

5

CASL = 2

Clk

Clk #

Read

DQSData Cmd

DQS Pre-amble

DQS Post-amble

0

1

2

3

4

5

Clk #Clk

Write

Data

Cmd

DQS Pre-amble

DQS Post-amble

DQS

Read

Write