ec2203-unit iv memory devices digital electronics

38
EC2203-DIGITAL ELECTRONICS UNIT IV - MEMORY DEVICES PART-I G.Karthikeyan M.E., AP | ECE, SKP Engineering College, Tiruvannamalai – 606611, Tamilnadu, India EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 1

Upload: karthikeyango9525

Post on 27-Oct-2014

590 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Ec2203-Unit IV Memory Devices Digital Electronics

EC2203-DIGITAL ELECTRONICS

UNIT IV - MEMORY DEVICES

PART-I

G.Karthikeyan M.E., AP | ECE, SKP Engineering College, Tiruvannamalai – 606611, Tamilnadu, India

EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 1

Page 2: Ec2203-Unit IV Memory Devices Digital Electronics

CONTENTS • Introduction • Classification of Memory • ROM

• PROM • EPROM • EEPROM • ROM Origination

• RAM • Static RAM • Dynamic RAM • RAM Organization • DRAM organization

• Memory Cycles and Timing Waveforms • Read Cycle • Write Cycle

• Memory Decoding • Coincident Decoding

• Memory Expansion • Expanding Word Size • Expanding memory Capacity

EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 2

Page 3: Ec2203-Unit IV Memory Devices Digital Electronics

Introduction Name Meaning/Operation

Memory It is made up of registers

Memory Location

Each register in the memory is one storage location. It is also called as memory location

Address Used to identify the memory location

Capacity The total no. of bits that a memory can store is its capacity (Most of the types of capacity is specified in terms of bytes. 1 byte=8bits)

Registers Consists of storage elements {Flip flop or Capacitors =Semiconductor memories Magnetic domain = Magnetic storage}

Cell It is a storage element

Write The process of storing a data in to a memory

Read The process of retrieving the data from the memory

EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 3

Page 4: Ec2203-Unit IV Memory Devices Digital Electronics

Read & Write operation

EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 4

Page 5: Ec2203-Unit IV Memory Devices Digital Electronics

Block diagram of memory unit

EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 5

Page 6: Ec2203-Unit IV Memory Devices Digital Electronics

How a communication is takes place between memory and its environment

1. Data lines Provides the information stored in the memory

2. Address selection lines Specify the particular word

3. Control Lines Direction of transfer

EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 6

Page 7: Ec2203-Unit IV Memory Devices Digital Electronics

Classification of memory CLASSIFICATION OF SEMICONDUCTOR MEMORIES

NON VOLATILE VOLATILE

READ ONLY MEMORY (ROM)

READ/WRITE MEMORY (NVRAM)

READ/WRITE MEMORY (PWM)

Mask-Programmable

ROM

EPROM RANDOM ACCESS

NON RANDOM ACCESS

Programmable ROM

EEPROM SRAM FIFO

Flash DRAM LIFO

Shift Registers

EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 7

Page 8: Ec2203-Unit IV Memory Devices Digital Electronics

ROM (Read only Memory)

1. PROM

2. EPROM

3. EEPROM

4. ROM ORGANIZATION

EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 8

Page 9: Ec2203-Unit IV Memory Devices Digital Electronics

ROM CELL

EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 9

Page 10: Ec2203-Unit IV Memory Devices Digital Electronics

PROM (Programmable Read Only Memory)

EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 10

Page 11: Ec2203-Unit IV Memory Devices Digital Electronics

Four Byte PROM

• Diode: Initially all 0

• Proper current pulse: to blow the fuse

• Fuse material: Nichrome & Polycrystalline

• Current range to blow fuse: 20 to 50mA

• Time: 5 to 20µs

• Also called as “burning of PROM”

EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 11

Page 12: Ec2203-Unit IV Memory Devices Digital Electronics

EPROM (Erasable Programmable Read Only Memory)

• Uses MOS circuitry

• Store 1s & 0s

• Programmed by user

• Erasing the date: by using Ultraviolet light through its quartz window

• Time: 20minutes

• Erasing: Entire information lost

EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 12

Page 13: Ec2203-Unit IV Memory Devices Digital Electronics

EEPROM (Electrically Erasable Programmable Read Only Memory)

• Very Similar to EPROM

• The insulating layer: very thin (i.e) <200Ao

• Voltage: 20 to 25 V for programming or erasing

• Selective information can be erased

• Time: 10ms

EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 13

Page 14: Ec2203-Unit IV Memory Devices Digital Electronics

ROM Organization

• Simple Four Byte Diode ROM

A 5

1 0 1 0 0 1 0 1

EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 14

Page 15: Ec2203-Unit IV Memory Devices Digital Electronics

Address in binary

Binary Data Data in Hexa

decimal D0 D1 D2 D3 D4 D5 D6 D7

00 1 0 1 0 0 1 0 1 A 5

01 0 1 0 1 0 0 0 1 5 1

10 0 1 0 0 0 1 1 0 4 6

ROM ORGANIZATION (CONTD…)

• Contents of ROM

EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 15

Page 16: Ec2203-Unit IV Memory Devices Digital Electronics

ROM ORGANIZATION (CONTD…)

EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 16

Page 17: Ec2203-Unit IV Memory Devices Digital Electronics

RAM (Random Access Memory)

Static RAM (SRAM) Static RAM Cell Read Operation

Write operation

Bipolar RAM Cell

MOSFET RAM Cell

Dynamic RAM (DRAM) Dynamic RAM Cell

COMPARISON BETWEEN SRAM AND DRAM

EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 17

Page 18: Ec2203-Unit IV Memory Devices Digital Electronics

STATIC RAM CELL

• Read Operation

• Write Operation

EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 18

Page 19: Ec2203-Unit IV Memory Devices Digital Electronics

BIPOLAR RAM CELL

EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 19

Page 20: Ec2203-Unit IV Memory Devices Digital Electronics

MOSFET RAM CELL

EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 20

Page 21: Ec2203-Unit IV Memory Devices Digital Electronics

Dynamic RAM (DRAM)

• Dynamic Ram Cell

Storage Capacitor

EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 21

Page 22: Ec2203-Unit IV Memory Devices Digital Electronics

COMPARISON BETWEEN SRAM AND DRAM Sl.No Static RAM Dynamic RAM

1 Static RAM contains less memory cells per area.

Dynamic RAM contains more memory cells as compared to static RAM per unit area

2 It has less access time hence faster memories

Its access time is greater than static RAMs

3 Static RAM consists of flip-flops. Each flip-flop stores one bit

Dynamic RAM stores the data as a charge on the capacitor. It consists of MOSFET and the capacitor for each cell.

4 Refreshing circuitry is not required.

Refreshing circuitry is required to maintain the charge on the capacitors after every few milliseconds. Extra hardware is required to control refreshing. This makes system design complicated.

5 Cost is more Cost is less

EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 22

Page 23: Ec2203-Unit IV Memory Devices Digital Electronics

RAM Organization • RAM organization: in the

form of Array • Each cell: capable of

storing one bit information

• Memory chip: 8191 bit • Line decoder

• 64 rows • 128 columns • i.e 64x128=8192 memory cells

• 13 address lines • 6 for rows ( 0 to 5 ) • 7 for columns ( 0 to 6 )

EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 23

Page 24: Ec2203-Unit IV Memory Devices Digital Electronics

DRAM Organization • Two dimensional

• It is a 16 M-bit DRAM. Configured as 2M x 8

• Cells organized 4Kx4K array

• 4096 cells addressed by 12 address bits

• It can store 512x8, i.e 512 bytes

• 21 address lines • 9 for column ( 0 to 8)

• 12 for row ( 9 to 20)

EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 24

Page 25: Ec2203-Unit IV Memory Devices Digital Electronics

DRAM ORGANIZATION (CONTD…)

• Configured as 2Mx4 • Row & Column

address lines multiplexed: To reduce number of pins

• So, less address pins than SRAM chip

• 11 address lines: to select one of 2048 lines for output

• 211=2048

EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 25

Page 26: Ec2203-Unit IV Memory Devices Digital Electronics

Memory Cycles and Timing Waveforms • Read Cycle

1. tRC

2. tAA

3. tOH

4. tLZ

5. tACS

6. tHZ

7. tOE

8. tDF

9. tPU

10. tPD

ADDRESS

DATA

CS

OE

SYPPLY CURRENT

EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 26

Page 27: Ec2203-Unit IV Memory Devices Digital Electronics

Memory Cycles and Timing Waveforms • Write Cycle

1. tWC

2. tAW

3. tWR

4. tAS

5. tCW

6. tWP

7. tDW

8. tDH

EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 27

Page 28: Ec2203-Unit IV Memory Devices Digital Electronics

Memory Decoding • Decoder operation • 16 words of 8 bits each • A memory with 16 words

needs 4 address lines • So, 4 x16 decoder is used • If memory enable = 0

• No memory word is select

• If memory enable = 1 • One of the 16 word is

selected

• Read/write determines the operation

• Write operation: • Data transferred in to eight

memory cells • If a memory cell is not

selected, that is disabled and the previous value remain unchanged

EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 28

Page 29: Ec2203-Unit IV Memory Devices Digital Electronics

Coincident Decoding

• k input 2k output

• 2k and gates are needed with k input to each gate

• So, 2 decoders used to reduce the no. of inputs

• So k/2 inputs to each decoder instead of k inputs

• Instead of 10 x 1024 we use 5 x 32 decoders

EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 29

Page 30: Ec2203-Unit IV Memory Devices Digital Electronics

Illustrate The Concept of 16 X 8 Bit ROM Arrange With Diagram

EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 30

Page 31: Ec2203-Unit IV Memory Devices Digital Electronics

Explain the Basic Structure of 256 X 4 Static RAM, with neat diagram

EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 31

Page 32: Ec2203-Unit IV Memory Devices Digital Electronics

Memory Expansion

• 2 methods

• 1. Expanding word size

• 2. Expanding memory capacity

• 3. Limitations for memory expansion

• 4. Example Problems

EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 32

Page 33: Ec2203-Unit IV Memory Devices Digital Electronics

Memory Expansion • Expanding Word Size

• By connecting 2 or more ICs together

• Data bus: In Series

• Address bus: In parallel

• Chip select: common to Both memory ICs

• Word size is limited: by Data bus width

Design 1 K X 8 RAM using two 1 K X4 ICs

EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 33

Page 34: Ec2203-Unit IV Memory Devices Digital Electronics

Memory Expansion • Expanding Memory Capacity

• By connecting 2 or more ICs in parallel

• i.e. The address & data bus connected in parallel

• Chip select: separate to each cell(generated by address decoder)

• Capacity is limited: by address bus width

Design 16 K X 8 RAM using four 4 K X 8 ICs

EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 34

Page 35: Ec2203-Unit IV Memory Devices Digital Electronics

Memory Expansion

• Limitations for memory Expansion

• Memory devices: Processors accessed using Address, data & Control bus

• But Each Processor has limited no. of address lines & data lines

• Eg:- Suppose a processor has 24 address lines & 16 data lines,

we can expand memory word size up to 16

Memory capacity up to 224 = 16Mbytes

EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 35

Page 36: Ec2203-Unit IV Memory Devices Digital Electronics

How one can make 64x8 ROM using four 32x4 ROMs? Draw such a circuit and explain

• 64x8 ROM = Four 32x4 ROM

• Two pair ICs

• Data bus: In series

• Address bus: In parallel

• In two pair: The data, address & control bus: In parallel

• To address 32 memory locations: 5 address lines(A0 to A4) needed

• The additional line: used to select the particular pair(A5)

EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 36

Page 37: Ec2203-Unit IV Memory Devices Digital Electronics

Given the 32x8 ROM chip with enable input, show the external connection necessary to construct a 128x8 ROM with four chips and a decoder

EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 37

Page 38: Ec2203-Unit IV Memory Devices Digital Electronics

SUMMARY

EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 38