10. Computer Architecture_Memory
10. Computer Architecture_Memory
Memory Basics
Secondary
Memory
Primary
Memory
Input Output
CPU
Devices Devices
Memory Hierarchies
Memory can be categorized into
•Registers
• primary memory (e.g. cache, main memory)
•secondary memory (e.g. disks)
Registers:
❖Are used to store temporary and partial results of
calculations and sometimes system state information.
2 10= k
2 20= M
Calculate the capacity of the a memory
If, Address bus width= 32 bits
Data bus width= 8 bits
◼ In a memory there are 16M address. What is the
width of the address bus?
Calculate the capacity of the a memory
If, No of address= 8M
Data bus width= 8 bits
RAM/ROM Naming Convention
• Examples 8X32, 8 by 32➔ 32 8-bit words
• 1X1M, 1 by 1M➔ 1M 1-bit words
8X32 1X1M
8 5 1 20
A0 ~ A14
8x32K bit
0
1:2 D7
A15
1 D0
8x32K bit
D7
8 bit
D4
4x8K bit
D7
8 bit
(1) (2)
4x32K bit 4x32K bit
64K
(3) (4)
4x32K bit 4x32K bit
Construct an 8x32k memory using 4x16k
memories
Construct an 8x16K memory using 4x4k
memories
Construct 2x64K memory using 2x16K
units
Construct an 4x8K memory using units of
an 1x8K memories
Construct an 4x16K memory using 1x4k
memories
R A M (Random Access Memory)
• Because the bits of data can be individually
accessed, retrieved, and modified at random,
this type of main memory used in computers is
called random access memory (RAM).
• RAM is a volatile form of memory, which means
that it must have power in order to retain data.
When the power is turned off, data in RAM is
lost.
• Contrast this to other storage media such as
disks, tapes, and CDs that retain data even
without power.
There are two main forms of RAM:
• DRAM
• SRAM