Professional Documents
Culture Documents
COMPUTER ORGANIZATION
Lecture 14: Memories
ELEC3010
ACKNOWLEGEMENT
2
COVERED IN THIS COURSE
❑ Binary numbers and logic gates
❑ Boolean algebra and combinational logic
❑ Sequential logic and state machines
❑ Binary arithmetic
Digital logic
❑ Memories
Qualcomm
RF front
Snapdragon X55M
end Super Retina
5G modem 16-core
AMX blocks XDR OLED
Neural Engine
LG
Sensor Fabricated by TSMC
modules
4GB/6GB 64GB/28GB/256GB
12M Cameras LPDDR4X RAM NAND flash Battery and Power
LG Innotek Micron Samsung module
4
MOTIVATION EXAMPLE 2
5
GENERAL MEMORY ORGANIZATION
❑ Two dimensional array of bit cells
▪ Each bit cell stores 1 bit
❑ Address selects a word with multiple bit cells
6
GENERAL MEMORY STRUCTURE
7
TYPES OF MEMORIES
❑ Read-Only Memory (ROM)
▪ Truly read-only
• Written in the factory, and never written after installation
▪ Mostly read and rarely written (PROM, EPROM, EEPROM, Flash …)
• Much faster to read than write
▪ Usually non-volatile
❑ Random Access Memory (RAM)
▪ Dynamic RAM (DRAM), Static RAM (SRAM)
▪ Read and write any location at similar speeds
▪ Typically volatile: loses contents when powered off
• New classes of non-volatile/persistent RAMs are emerging
8
READ-ONLY MEMORY (ROM) STRUCTURE
9
EXAMPLE TRULY READ-ONLY ROM IMPLEMENTATION
10
APPLICATIONS OF ROM
11
USING ROMS FOR COMBINATIONAL LOGIC
12
TYPES OF MEMORIES
❑ Read-Only Memory (ROM)
▪ Truly read-only
• Written in the factory, and never written after installation
▪ Mostly read and rarely written (PROM, EPROM, EEPROM, Flash …)
• Much faster to read than write
▪ Usually non-volatile
❑ Random Access Memory (RAM)
▪ Dynamic RAM (DRAM), Static RAM (SRAM)
▪ Read and write any location at similar speeds
▪ Typically volatile: loses contents when powered off
• New classes of non-volatile/persistent RAMs are emerging
13
DRAM BIT CELL
14
DRAM WRITE
15
DRAM READ
16
COMMON DRAM STRUCTURE
❑ Multiplexed address inputs (log2n bits)
▪ Row and column address share the same
pins
• Row address (addr) bits arrive first;
followed by column addr
▪ Row-address strobe (RAS)
• RAS loads Address into row addr latch to
select 1 row
▪ Column-address strobe (CAS)
• CAS loads Address into col addr latch to
select 1 column bit
▪ Row and column address bits combined
form the complete address
17
READ ACCESS TO A DRAM ARRAY
18
BIDIRECTIONAL INPUT/OUTPUT VIA TRI-STATE DRIVERS
19
DRAM REFRESH
20
STATIC RAM (SRAM) BIT CELL
21
SRAM WRITE
❑ Drive one bit line high, the other low (depending on the
desired value)
❑ Then turn on word line
❑ Bit lines over power cell with new value
22
SRAM READ
23
SRAM ARCHITECTURE
24
BEFORE NEXT CLASS
• Textbook: 7.3.2-7.3.4
• Next time: Single Cycle
Microprocessor
25