4. 4
Random Access Memory (RAM)
Can be written to or read from.
− Read/Write memory
Reading from RAM is non-destructive.
Access time to read from any memory
location is the same.
− As compared to serial access memory.
Volatile
− Information is lost when power is
removed.
6. 6
Random Access Memory (RAM)
Static Random Access Memory (SRAM)
− Based on the Flip-Flop
− Requires a large number of transistors
− Fast
Dynamic Random Access Memory (DRAM)
− Uses a single transistor to store charge
− Requires very few transistors
− Must be periodically refreshed
− Slow(er)
7. Summary:
1. SRAM is static while DRAM is dynamic.
2. SRAM is faster compared to DRAM.
3. SRAM consumes less power than DRAM.
4. SRAM uses more transistors per bit of memory compared
to DRAM.
5. SRAM is more expensive than DRAM.
6. Cheaper DRAM is used in main memory while SRAM is
commonly used in cache memory
9. 9
Read Only Memory (ROM)
Can only be read from.
Memory is written (or “programmed”) once
Reading from ROM is non-destructive.
Access time to read from any memory
location is the same.
− As compared to serial access memory.
Non-Volatile
− Information is retained even after power
is removed.
11. 11
Read Only Memory (ROM)
Programmable Read Only Memory (PROM)
− Can be “programmed”
Erasable PROM (EPROM)
− Can be “programmed” and erased
Electrically Erasable PROM (EEPROM)
− Can be erased using an electrical signal
UV Erasable PROM (UVEPROM)
− Can be erased using Ultraviolet light
16. 16
Random Access Memory
Address
− Location in memory of the binary information
− Must be decoded to select the appropriate
location and read/write the associated data
− k-bit address → 2k
memory locations
Data
− Binary information of interest
− Stored in a specific location in the memory
− Typically organized into words
− Each word has n bits
20. 20
Random Access Memory
Rather than use the Read and Write
signals, most commercially available RAM
chips use Enable and Read/Write'
Enable
− Used to enable the selected RAM chip
− Aka. “chip select”
Read/Write'
− RAM is read when Read/Write' = 1
− RAM is written when Read/Write' = 0
27. Problems
The memory units that follow are specified by the number of words times
the number of bits per word, How many address lines and input-output
data lines are needed in each case?
(a)8K x 16
(b)2G X 8
(c)16M X 32
(d)256K X 64
28. Solution
(a)8 K x 16 = 213
x 16 A = 13 D = 16
(b) 2 G x 8 = 231
x 8 A = 31 D = 8
(c) 16 M x 32 = 224
x 32 A = 24 D = 32
(d) 256 K x 64 = 218
x 64 A = 18 D = 64
29. Problem 2
How many 32K X 8 RAM chips are needed to
provide a memory capacity of 256K byte
256 K / 32 K = 8 chips