Docsity

Memory Types-Computer Logic Design-Lecture Slides, Slides of Digital Logic Design and Programming

Toggle sidebar
bg1
2
Memory
•Random Access Memory (RAM)
–Contrary to Serial Access Memory (e.g. Tape)
–Static Random Access Memory (SRAM)
•Data stored so long as Vdd is applied
•6-transistors per cell
•Faster
•Differential
–Dynamic Random Access Memory (DRAM)
•Require periodic refresh
•Smaller (can be implemented with 1 or 3 transistor)
•Slower
•Single-Ended
–Can be read and written
–Typically, addressable at byte granularity
•Read-Only Memory (ROM)
docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a

Partial preview of the text

Download Memory Types-Computer Logic Design-Lecture Slides and more Slides Digital Logic Design and Programming in PDF only on Docsity!

Memory

  • Random Access Memory (RAM)
    • Contrary to Serial Access Memory (e.g. Tape)
    • Static Random Access Memory (SRAM)
      • Data stored so long as Vdd is applied
      • 6-transistors per cell
      • Faster
      • Differential
    • Dynamic Random Access Memory (DRAM)
      • Require periodic refresh
      • Smaller (can be implemented with 1 or 3 transistor)
      • Slower
      • Single-Ended
    • Can be read and written
    • Typically, addressable at byte granularity
  • Read-Only Memory (ROM)

docsity.com

Block Diagram of Memory

  • Example: 2MB memory, byte-addressable
    • N = 8 (because of byte-addressability)
    • K = 21 (1 word = 8-bit)

2 k^ words

N-bit per word

Memory Unit

N-bit Data Input

(for Write)

N-bit Data Output

(for Read)

K-bit address

lines

Read/Write

Chip Enable

N
N
K

docsity.com

Dynamic Random Access Memory (DRAM)

  • 1-transistor DRAM cell
  • During a write, put value on bitline and then set WL=
  • During a read, precharge bitline to Vdd (1) before assert WL to 1
  • Storage decays, thus requires periodic refreshing (read-sense-write)

Bitline

Wordline (WL)

docsity.com

Memory Description

  • Capacity of a memory is described as
    • addresses x Word size

    • Examples:

Memory # of addr # of data lines # of addr lines # of total bytes

1M x 8 1,048,576 8 20 1 MB

2M x 4 2,097,152 4 21 1 MB

1K x 4 1024 4 10 512 B

4M x 32 4,194,304 32 22 16 MB

16K x 64 16,384 64 14 128 KB

docsity.com

Building Memory in Hierarchy

  • Design a 2Mx4 using 1Mx4 memory chips
A
A
A
A

1Mx

CS^ R/W

A
A
A
A

1Mx

CS^ R/W

A20 (^) 1-to- Decoder

CS

1

0

D
D
D
D

Note that 1-to- decoder is the wire itself (or use an inverter)

docsity.com

Building Memory in Hierarchy

  • Design a 2Mx8 using 1Mx4 memory chips A A A

A

1Mx CS R/W A A A

A

1Mx

CS R/W A A A

A

1Mx

CS R/W A A A

A

1Mx

CS R/W

D D D D D D D D

A
A
A
A

A20 (^) 1-to- Decoder

CS

1

0

docsity.com

Read Only Memory (ROM)

  • “Permanent” binary information is stored
  • Non-volatile memory
    • Power off does not erase information stored

2 k^ words

N-bit per work

ROM

N-bit Data Output

K-bit address

lines

K N

docsity.com

32x8 ROM

32x8 ROM

0 1 2 3

28 29 30 31

D7 D6 D5 D4 D3 D2 D1^ D
A
A
A
A
A

5-to-

Decoder

Each represents 32 wires

Fuse can be implemented as a diode or a pass transistor docsity.com

Example: Lookup Table

  • Design a square lookup table for F(X) = X^2 using ROM
X F(X)=X^2
X F(X)=X^2

docsity.com

Square Lookup Table using ROM

X F(X)=X^2 000 000000 001 000001 010 000100 011 001001 100 010000 101 011001 110 100100 111 110001

0 1 2 3

F5 F4 F3 F2 F1^ F
X
X
X

3-to-

Decoder (^4) 5 6 7

docsity.com

Square Lookup Table using ROM

X F(X)=X^2 000 000000 001 000001 010 000100 011 001001 100 010000 101 011001 110 100100 111 110001

0 1 2 3

F5 F4 F3 F2 F
X
X
X

3-to-

Decoder (^4) 5 6 7

F

docsity.com

Classifying Three Basic PLDs

Fixed AND plane (decoder)

Programmable OR plane

Programmable Connections

(Programmable) Read-Only Memory (ROM)

INPUT OUTPUT

Programmable OR plane

Programmable Connections

Programmable Logic Array (PLA)

Programmable AND plane INPUT OUTPUT

Programmable AND plane

Fixed OR plane

Programmable Array Logic (PAL) Devices PAL: trademark of AMD, use PAL as an adjective or expect to receive a letter from AMD’s lawyers

INPUT
OUTPUT
F/F

docsity.com

Example using PLA

F2(A,B,C) m(0,5,6,7)

F1(A,B,C) m(0,1,2,4)

F2 AB AC ABC

F1 AB AC BC

F1 AB AC BC

docsity.com

Example using PLA

C
B
A
C C B B A A

F2 AB AC ABC

F1 AB AC BC

  

  

AB
AC
BC
A B C
F
F

docsity.com