Lecture 4 - Memory Flashcards
What is the general understanding of Read Only Memory (ROM)?
- Will keep its contents when power is off
- Contents cannot be changed
- Used for system boot
- Types: ROM, PROM, EPROM, EEPROM/Flash
What is ROM?
- ROM - Read Only Memory
- Mask (data) supplied by customer
- Mass production
- Can never be changed
What is PROM?
- PROM Programmable ROM
- programmable ROM
- comes “empty” (E.g. all bits are 1)
- can be programmed (“burned”) by supplying certain voltages to a specific pin
- “Burning” of fuses (wires) within chip, setting individual bits to 0
- Once a bit is flipped, it can never be changed
What is EPROM?
- EPROM Erasable Programmable ROM
- Original state can be restored, ~ 20mins UV exposure
What is EEPROM?
- EEPROM (Flash) Electronically Erasable Programmable ROM
- Can be electrically programmed/erased many times (~ 10,000)
- “In circuit programming” (e.g. for system parameters in computer system)
- Alternative solution: static RAM + battery backup → runs out after some time
How is ROM implemented?
REFER TO SLIDES
What is Random Access Memory (RAM)?
- Will lose its contents when power is off
- Contents can be changed any time
- Can store programs or data
- Writing data to a location (“address”) overwrites old data contents
- Types: Static, Dynamic
Static RAM
– Static RAM keeps data as long as power is on
Dynamic RAM
– Dynamic RAM “leaks” memory contents over short time period, needs periodic “refresh” → periodical read/write all cells
How is RAM implemented - DRAM AND SRAM
REFER TO SLIDES
What is the memory for RAM?
Mem = 1 cell = 1 bit (=1 flip-flop)
What does 1 Byte equate to?
8 bits
What does 8 data lines equate to?
1 Data Bus
What happens if there is 2 bytes?
- 2 Outputs coming together on the same line!
- Only one device is allowed to send data at a time
➢ Enable/disable mechanism via tri-state gates required
REFER TO SLIDES
How is memory controlled?
REEFER TO SLIDES
What are some of the main memeory sizes?
kilobyte (KB = 2^10 Bytes = 1’024 Bytes),
megabyte (MB = 2^10 KB = 2^20 Bytes),
gigabyte (GB = 2^10 MB = 2^30 Bytes)
terabyte (TB = 2^10 GB = 2^40 Bytes)
How is memory size calculated?
size = number of cells * cell size
EX: A Memory module has 2M cells with 16bits per cell.
What is its size in MB? -> 2M * 2 Bytes = 4MB (as 16 bits is 2 bytes)