Top Banner
Memory Systems Embedded Systems Design and Implementation Witawas Srisa-an
24

Memory Systems Embedded Systems Design and Implementation Witawas Srisa-an.

Jan 01, 2016

Download

Documents

Ella Carr
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Memory Systems Embedded Systems Design and Implementation Witawas Srisa-an.

Memory Systems

Embedded Systems Design and Implementation

Witawas Srisa-an

Page 2: Memory Systems Embedded Systems Design and Implementation Witawas Srisa-an.

Agenda

• Go over memory device and system– Basic technology– Review of memory organization– Review of memory management

• Credits– Materials presented in this slide set are from

• Steve Heath, Embedded Systems Design 2nd Ed., Newnes, Elsevier Science

• Wayne Wolf, Computers as Components, Morgan Kaufman, Elsevier Science

Page 3: Memory Systems Embedded Systems Design and Implementation Witawas Srisa-an.

Memory Technology

• Volatile– DRAM– SRAM

• Non-volatile– EPROM– EEPROM– Flash

Page 4: Memory Systems Embedded Systems Design and Implementation Witawas Srisa-an.

Signals

• Address bus

• Data bus

• Chip selects– Select chips from an array within a memory

device

• Control signals– Read/write

Page 5: Memory Systems Embedded Systems Design and Implementation Witawas Srisa-an.

Dynamic RAM Technology

• Used for cheap/large memory– Cost determines by the number of transistors/bit and

packaging technology• How many per bit?• How many pins?

– Need to refresh regularly (15 microseconds)• Why?• Result in 3 – 4% theoretical maximum processing overhead

– Higher density• 4 to 5 more times than SRAM

Page 6: Memory Systems Embedded Systems Design and Implementation Witawas Srisa-an.

DRAM Interface

DRAM

CE’

R/W’

Adrs

Data

RAS’

CAS’

Page 7: Memory Systems Embedded Systems Design and Implementation Witawas Srisa-an.

DRAM Interface

• Two stages– Upper half of address is placed on the

address bus to form row address then assert RAS signal

– Then, lower half of address is placed on the address bus to form column address then assert CAS signal

– Notice, row address is buffered internally– Access time from assertion of RAS to

appearance of data

Page 8: Memory Systems Embedded Systems Design and Implementation Witawas Srisa-an.

DRAM Interface

time

CE’

R/W’

RAS’

CAS’

Adrs

Data

rowadrs

coladrs

data

Page 9: Memory Systems Embedded Systems Design and Implementation Witawas Srisa-an.

DRAM Interface256Kbit (512 bits/row 16 DRAMs)

Things to consider

• memory chip (16K x 1 or 4K x 4)• the width of each row• the number of DRAM in the array

Page 10: Memory Systems Embedded Systems Design and Implementation Witawas Srisa-an.

DRAM Interface

0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0

256Kbit (512 bits/row 16 DRAMs)

Things to consider

• memory chip (16K x 1 or 4K x 4)• the width of each row• the number of DRAM in the array

Page 11: Memory Systems Embedded Systems Design and Implementation Witawas Srisa-an.

Page Mode DRAM

• First access to a row, supply RAS• Afterward, keep RAS assert so only need to

supply CAS– Performance gain is in cutting down the time needed

to provide the RAS pulse– Not truly random access– 256 KB memory module (512 bit/row and 16 DRAMs

in an array)• How large is a page?

• Can be interleaved and/or burst mode

Page 12: Memory Systems Embedded Systems Design and Implementation Witawas Srisa-an.

Page Mode DRAM256Kbit (512 bits/row, 16 DRAMs, 4K x 4)

0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0

How big is a page?

Page 13: Memory Systems Embedded Systems Design and Implementation Witawas Srisa-an.

Page Mode DRAM

time

CE’

R/W’

RAS’

CAS’

Adrs

Data

rowadrs

coladrs

data

coladrs

coladrs

data data

Page 14: Memory Systems Embedded Systems Design and Implementation Witawas Srisa-an.

EDO RAM

time

CE’

R/W’

RAS’

CAS’

Adrs

Data

rowadrs

data data data

coladrs

coladrs

coladrs

Page 15: Memory Systems Embedded Systems Design and Implementation Witawas Srisa-an.

Video RAM

• DRAM with shift register– Simultaneous accesses between processor

and the video display– Shift register is driven by clock serially

Page 16: Memory Systems Embedded Systems Design and Implementation Witawas Srisa-an.

Static RAM Technology

• Used for fast/small memory– 4 to 5 transistors per bit– Need more resource– No refresh is needed– Example

• Cache memory• Local memory-

Page 17: Memory Systems Embedded Systems Design and Implementation Witawas Srisa-an.

SRAM Interface

SRAM

CE’

R/W’

Adrs

Data

Page 18: Memory Systems Embedded Systems Design and Implementation Witawas Srisa-an.

SRAM Interface

time

CE’

R/W’

Adrs

Data

read write

From SRAM From CPU

Page 19: Memory Systems Embedded Systems Design and Implementation Witawas Srisa-an.

SRAM vs DRAM (Pin)

• How many pins are needed for a 1M x 1– DRAM chip?– SRAM chip?

SRAM

CE’

R/W’

Adrs

Data

DRAM

CE’

R/W’

Adrs

Data

RAS’

CAS’

Page 20: Memory Systems Embedded Systems Design and Implementation Witawas Srisa-an.

SRAM

• Has been said to consume more power than DRAM– Only true during switching– Use less quiescent current than DRAM which

has to be refreshed all the time

• Can use battery to back-up SRAM

Page 21: Memory Systems Embedded Systems Design and Implementation Witawas Srisa-an.

Non-Volatile Memory

• EPROM– Read-only– Erasable through UV

• Flash– Electrically erasable– Same access time as DRAM

• EEPROM– Erase in block using electrical pulses

Page 22: Memory Systems Embedded Systems Design and Implementation Witawas Srisa-an.

Basic Memory Organization

• Processors don’t request data in a single bit. They request data in multiple bits– MC68000 has 16-bit data path

• Either 16x1, 4x4 or 2x8 device would be needed

• We have by 1, by 4, by 8 by 16 or more organization

Page 23: Memory Systems Embedded Systems Design and Implementation Witawas Srisa-an.

Memory Packaging

• Dual in line memory module (DIMM)– 64 bit

• SIMM– 32 bit

Page 24: Memory Systems Embedded Systems Design and Implementation Witawas Srisa-an.

OS Review

• Why do we need memory management?– Relocation– Protection– Large address space

• Trade offs– Slower memory access

• Translation overhead• Additional storage for look-up tables