ec2203-unit iv memory devices digital electronics
TRANSCRIPT
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
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
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
Read & Write operation
EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 4
Block diagram of memory unit
EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 5
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
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
ROM (Read only Memory)
1. PROM
2. EPROM
3. EEPROM
4. ROM ORGANIZATION
EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 8
ROM CELL
EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 9
PROM (Programmable Read Only Memory)
EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 10
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
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
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
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
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
ROM ORGANIZATION (CONTD…)
EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 16
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
STATIC RAM CELL
• Read Operation
• Write Operation
EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 18
BIPOLAR RAM CELL
EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 19
MOSFET RAM CELL
EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 20
Dynamic RAM (DRAM)
• Dynamic Ram Cell
Storage Capacitor
EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 21
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
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
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
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
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
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
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
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
Illustrate The Concept of 16 X 8 Bit ROM Arrange With Diagram
EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 30
Explain the Basic Structure of 256 X 4 Static RAM, with neat diagram
EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 31
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
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
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
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
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
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
SUMMARY
EC2203-DE|G.Karthikeyan, AP|ECE, SKPEC 38