digital circuits design

36
Digital Circuits Design Faculty of Automatic Control, Electronics and Computer Science, Informatics, Bachelor Degree

Upload: others

Post on 18-Dec-2021

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Digital Circuits Design

Digital Circuits Design

Faculty of Automatic Control, Electronics and Computer Science,

Informatics, Bachelor Degree

Page 2: Digital Circuits Design

Lecture 8.

SEMICONDUCTOR MEMORY

Ph.D. Eng. Adam Opara

Page 3: Digital Circuits Design

Memory

Agenda:

• Introduction

• Parameters and signals

• Semiconductor memory classification

– Read Only (ROM, PROM)

– Non volatile (EPROM, EEPROM, NVRAM, FLASH EEPROM,

FRAM, MRAM)

– Volatile

• RAM (SRAM, DRAM – EDO, SDRAM , DDR, VSRAM)

• Special (FIFO, LIFO, associative CAM, dual port)

• Organizing memory blocks

Page 4: Digital Circuits Design

Memory

• Devices used to store a digital information(analog devices also exist!)

– Operational (data and prog. used by µP - semiconductor)

– External (eg. HDD)

Page 5: Digital Circuits Design

Memory

• Parameters

– Capacity - # of cells

– Word length (organization #words x #word length)

– Access time

– Memory cycle (+ regeneration)

– Power per bit (technology: bipolar, CMOS)

Page 6: Digital Circuits Design

Memory

• Signals

– Address (input)

– Data (input)

– Data (output)

– Control

• Chip enable or chip select CE , CS

• Access type OE , WE, R/W

• Enable programming (non-volatile mem.)

or in/out

Page 7: Digital Circuits Design

• Read timing. The access time measured from change of

– address tAA

– chip enable tACE

– read signal tARD

tHD1 - hold data time after decaying A

tHD2 - hold data time after decaying CE

Memory parameters

tARD

A

CE

RD

DOUT

tAA

tACE

tHD2

tHD1

Page 8: Digital Circuits Design

• Write timing.

tAS – address setup

tAH – address hold

tCSW – chip select before write

tWP – write pulse minimum width

tDS – data setup

tDH – data hold

Memory parameters

tDS

A

CE

WE

DIN

tWP

tCSWtAH

tDH

tAS

Page 9: Digital Circuits Design

ROM

• Read Only MemoryProgrammed during manufacturing

Bin -> 1..n

A0

Ak-1

Am-1

Ak

enable buf.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. . . . .

. . . . .

VCC

DOUT

mux

Page 10: Digital Circuits Design

ROM

• Read Only MemoryProgrammed during manufacturing

Application:

- character generator,

- code converter,

- multiplier,

- μP program

- A/D, D/A nonlinearity

correction

- combinatorial circuits

Bin -> 1..n

A0

Ak-1

Am-1

Ak

enable buf.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. . . . .

. . . . .

VCC

DOUT

Bin -> 1..n

. . . . .

.

.

.

.

Page 11: Digital Circuits Design

PROM

• Programmable ROM

mostly bipolar

10ns-50ns

<128Kb

One time user programmable

Bin -> 1..n

A0

Ak-1

Am-1

Ak

enable buf.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. . . . .

. . . . .

VCC

mux

VCC

VCC VCC

Page 12: Digital Circuits Design

EPROM

• Erasable PROM

Programming:

- high U -> c. gate

- electrons -> f. gate

Bin -> 1..n

A0

Ak-1

An-1

Ak

OE buf.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. . . . .

. . . . .

VCC

DOUT

mux

Control gate

Floating gate

Erasing:

- quartz glass window

- UV 2537 A, 15Ws/cm2,

15…30 min.

Page 13: Digital Circuits Design

EEPROM

• Electrically Erasable PROM

Row select

Selection transistor

Mem. transistor

Column

Pogramming

Erasing

0V

+20V

+20V

Write “0”

18V

+20V

0V

Write “1”

0V

+20V

0V

Page 14: Digital Circuits Design

EEPROM programming

mem. cell

matrix

+decoders

Control

circiut

CE

OE

WE

A

D

Mode CE OE WE D BUSY

Read 0 0 1 DOUT HiZ

Idle 1 - - HiZ HiZ

Write 0 1 0 DIN 0

5V/ 20VVCC

BUSY

Programming

pulse

generator

Write control

Addr. buffer

Data buffer

VPP

Page 15: Digital Circuits Design

NVRAM• Battery-backed SRAM

• EEPROM+SRAM in parallel– Fast

– Non VolatileEEPROM

mem. cell

matrix

SRAM

mem. cell

matrix Copying

control

Read/Write

control

CE

OE

WE

A

D

NE

CE OE WE NE

read 0 0 1 0

write 0 1 0 0

recall 0 0 1 1

store 0 1 0 1

< 10μs

10ms

Page 16: Digital Circuits Design

FLASH

• Fast erase (sector/block)

• Programming wr 0 like in EPROM

• NAND FLASH – high density

• NOR – high durability

Page 17: Digital Circuits Design

New NV memories

• Ferroelectric RAM (FRAM)

– Programmable capacitors, dielectric cristals

polarize under electric field

– High density, many RD/WR

– Low power

• Magnetoresistive RAM (MRAM)

– Like magnetic core memory

– Spin electron or tunneling magnetic resistance

Page 18: Digital Circuits Design

SRAM

Static RAM

• Fast

• 1 cell = 1 flip flop (4-6 transistors)

• High power dissipation

Page 19: Digital Circuits Design

SRAM

row

Bin -> 1..n

A0

Ak-1

Am-1

Ak

output buffer

.

.

.

.

.

.

.

.

.

.

.

DIN/OUT

col.

Bin -> 1..n

.

.

.

.

Column I/O

mem. cell

matrix

input buffer

. . . .

OE

WE

Page 20: Digital Circuits Design

SRAM – memory cell

VCCVCC

bit sel.bit bit

transmission transistors

T1 T2

T5 T6

(T4)(T3)

+ -

D D write (0) amplifierwrite (1) amplifier read amplifier

row sel.

Page 21: Digital Circuits Design

SRAM – memory cell

VCCVCC

bit sel.bit bit

transmission transistors

T1 T2

T5 T6

T4T3

+ -

D D write (0) amplifierwrite (1) amplifier read amplifier

row sel.

Page 22: Digital Circuits Design

NVRAM – EEPROM+SRAM

VCCVCC

bit sel.bit bit

transmission transistors

T1 T2

T5 T6

T4T3

+ -

D D write (0) amplifierwrite (1) amplifier read amplifier

transm. transistor

mem. transistor

clear

prog

.clk

Page 23: Digital Circuits Design

DRAM

Dynamic RAM

• Slower than Static RAM

• 1 cell = 1 transistor + capacitance

• Refresh

Page 24: Digital Circuits Design

DRAM

Row

deco

-der

Bin -> 1..n

A0

Ak-1(Am-1)

(Ak)

Output buffer

DIN/OUT

Col. decoder

WR/RD amplifier

Mem. cell matrix

Input buffer

OE

WE

Row

addr.

buffer

Column

addr.

buffer

refresh

RAS

CAS

. . . .

.

.

.

.

.

Page 25: Digital Circuits Design

DRAM

Memory cell

VCCG

D S

row

column

transmission

transistor

CS ~ 50 fF (50 *10-15 F)

discharging -> refreshCB

Page 26: Digital Circuits Design

DRAMRead

Write

rowA

RAS

column

CAS

D Data out

WE

tCAC

tRAC

rowA

RAS

column

CAS

D D in

WE

Page 27: Digital Circuits Design

DRAM

rowA

RAS

column

CAS

D data

Std. CAS writes column addr. and enables output

Static columns change of addr. automatically detected, no CAS sync.

rowA

RAS

column1

CAS

D D1 D2 D3 D4

col.2 col.3 col.4

Page 28: Digital Circuits Design

DRAMNibble/EDO fast access to 4 data cells

rowA

RAS

column i

CAS

D Di Di+1 Di+2 Di+3EDO

FastPage/EDO fast access to a few columns

rowA

RAS

column i

CAS

D Di Dj Dk DlEDO

column j column k column l

Pipelined Burst EDO Nibble+FastPage

rowA

RAS

col. i

CAS

D Di Di+1 Di+2 Di+3

col. j

Dj

Page 29: Digital Circuits Design

DRAM – refresh timingRAS only refresh

row iA

RAS

row j

CAS

RASCAS

D data

CAS before RAS (internal counter)

rowA

RAS

column

CAS

D Data out

Hidden (additional RAS during read cycle)

Page 30: Digital Circuits Design

SDRAMAsynchronous DRAM

Synchronous DRAM

rowA

RAS

column i

CAS

D Di Di+1 Di+2 Di+3

A

RASCAS

D

CLK

row col. i

Di Di+1 Di+2 Di+3

Double Data Rate DDR DRAM

D Di Di2 Di4 Di6Di1 Di3 Di5 Di7

Page 31: Digital Circuits Design

DDR - speedName Release Chip Bus Voltage

Generation Standard

year Clock rate Clock rate Bandwidth [V]

[MHz] [MHz] [MB/s]

DDR

DDR-200

2000

100

(10ns)100 1600

2.5

DDR-400 200 200 3200 2.6

DDR2 DDR2-1066 2003 266⅔ 533⅓ 8533⅓ 1.8

DDR3 DDR3-2133 2007 266⅔ 1066⅔ 17066⅔ 1.5/1.35

DDR4 DDR4-3200 2014400

(2,5ns)1600 25600 1.2/1.05

DDR5 2020

Page 32: Digital Circuits Design

DRAM - Row hammer

• Row hammer attack - without exploiting

software bugs– Y. Kim; R. Daly; J. Kim; C. Fallin; J.H. Lee; D. Lee; C. Wilkerson; K. Lai; O. Mutlu

(June 24, 2014). "Flipping Bits in Memory Without Accessing Them: An

Experimental Study of DRAM Disturbance Errors". ece.cmu.edu. IEEE.

Retrieved March 10, 2015.

Page 33: Digital Circuits Design

DDR - Row hammer

Row

deco-

der

Col. decoder

WR/RD amplifier

Page 34: Digital Circuits Design

DDR - Row hammer

Row

deco-

der

Col. decoder

WR/RD amplifier

Page 35: Digital Circuits Design

DDR - Row hammer

• How we can defend?

– ECC error correction

– Refreshing neighbors

Page 36: Digital Circuits Design

Memory

• Organizing memory blocks

– data width

– address width