memory structure and addressing

20
On Memory

Upload: flashdomain

Post on 23-Jun-2015

476 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Memory structure and addressing

On Memory

Page 2: Memory structure and addressing

A Different View

• Instead of RAMs and ROMs

• Writability and Data Permanence

Page 3: Memory structure and addressing

Basic Form

Page 4: Memory structure and addressing
Page 5: Memory structure and addressing

ROM & Comb. Function

Page 6: Memory structure and addressing

EPROM

(contrasted to OTP ROM)

Page 7: Memory structure and addressing

EEPROM

• Erased using higher than normal voltage• Erased in seconds vis a vis minutes for

EPROMs• Can be erased by words and not in entirety• In circuit programmable e.g. in telephones

to store commonly dialed numbers• Read tens of nanosec – Write tens of

micosec.

Page 8: Memory structure and addressing

Flash Memory

• Uses same floating gate principle

• Large blocks can be written/erased at a time

• Digital camera/Set top boxes/cell phones etc.

• Writing a single word is slower

Page 9: Memory structure and addressing

•Search for optimized density, power, fast readability, nonvolatility

•Uses single transistor for a bit

–EEPROM employs two transistors

•Electrical erasability and writability

•A flash memory cell is 30% smaller than a DRAM cell however write time is significantly higher compared to DRAM

•Tunnel Oxide technology Intel ETOX

Flash (contd.)

Page 10: Memory structure and addressing

RAM Internals

Page 11: Memory structure and addressing

SRAM and DRAM

Page 12: Memory structure and addressing

Modern RAMs

• PSRAM (Pseudo Static RAM)– DRAM with refreshing circuit built in

– A bit slow compared to SRAM but a good optimization

• NVRAM– Battery backed SRAM (10 yrs)

– Writes done in nanosec.

– More susceptible to bit changes due to noise

– Another form uses Flash/EEPROM to store the contents of SRAM

Page 13: Memory structure and addressing

Composing Memory

Page 14: Memory structure and addressing

Effect of Cache on System Performance

Page 15: Memory structure and addressing

Let us assume that we are designing a small 2 Kbyte cache for our processor. With this cache, we have measured the miss rate to be 15%, meaning 15 out of every 100 accesses to the cache result in a miss on the average. The cost of going to main memory (i.e., the cost of memory access when there is a miss) is 20 cycles. Doubling the cache size improves the hit ratio to 93.5% and additional cycle to access the cache.Doubling further results in 94.4% hit rate.

Effect??

Page 16: Memory structure and addressing

Basic DRAM Architecture

Page 17: Memory structure and addressing

Fast Page Mode DRAM (FP DRAM)

A row is selected and the col. addresses are sequenced. A row is considered a page, consisting of multiple words.

Each word has a sep. col. address.

The sense amplifier buffers a page.

Page 18: Memory structure and addressing

EDO DRAM (Extended Data Out DRAM)

-- Extra output latch between the sense ampl. and output buffer

-- allows overlap bet. Col. Select and previous data out

-- saves one cycle over FP DRAM

Page 19: Memory structure and addressing

•FPM and EDO RAM controlled asynchronously by the processor or the memory controller.

•A synchronous DRAM interface will eliminate a small amount of time (thus latency) that is needed by the DRAM to detect the ras/cas and rd/wr signals. DRAM latches information to and from the controller on the active edge of the clock signal

•In addition to a lower latency I/O, after a proper page and column setup, an SDRAM may store the starting address internally and output new data on each active edge of the clock signal, as long as the requested data are consecutive memory locations. This is accomplished by adding a column address counter to the base DRAM architecture. This counter is seeded with a starting column address strobed in by the processor (or memory controller) and is thereafter incremented internally by the DRAM on each clock cycle.

SDRAM

Page 20: Memory structure and addressing

SDRAM Timing