Beruflich Dokumente
Kultur Dokumente
ARCHITECTURE
Memory Systems Hierarchy
Computer Memory
• A memory is just like a human brain. It is used to store
data and instructions.
– Cache Memory
– Secondary Memory/Non-Volatile
Cache Memory
Micro Programming
Library subroutines
Systems Programs(BIOS)
Function tables
RAM
Read and write (R/W) memory of a computer is
called RAM.
Dynamic RAM
Static RAM
Dynamic RAM
Dynamic RAM : loses its stored information in a very
short time (for milli sec.) even when power supply is
on.
In static RAM, a form of flip flop holds each bit of memory.
Solution:
=(32 * 210 )/ 23 =2 12
No of blocks = 2 12/8 =2 9=512 blocks
Main Memory contains 8k blocks of 512 words each. Each word is 8 bit
Solution:
Words/block
Main Memory Tag Directory
Cache Size or Tag bits
Size size
Block size
1
128 KB 16 KB 256 B ? ?
2
32 GB 32 KB 1 KB ? ?
3
? 512 KB 1 KB 7 ?
4
16 GB ? 4 KB 10 ?
5
64 MB ? ? 10 ?
6
? 512 KB ? 7 ?
Direct Mapping
S.no
Words/block
Main Memory Tag Directory
Cache Size or Tag bits
Size Size(bits)
Block size
1
128 KB 16 KB 256 B 3 3x 26
2
32 GB 32 KB 1 KB 20 20 x 25
3
226 512 KB 1 KB 7
7 x 29
4
16 GB
224 4 KB 10
10 x 212
5
64 MB
216 Unknown 10 Unknown
6
226 512 KB Unknown 7 Unknown
Associative Mapping
No of
comparator
s
Words/block
Main Memory Tag Directory
Cache Size or Tag bits
Size size
Block size
?
128 KB 16 KB 256 B ? ?
?
32 GB 32 KB 1 KB ? ?
?
? 512 KB 1 KB 17 ?
?
16 GB ? 4 KB ? ?
?
64 MB ? ? 10 ?
?
? 512 KB ? 7 ?
Associative Mapping
No of
comparat
ors Main Words/block
Tag Directory
Memory Cache Size or Tag bits
size
Size Block size
32 GB 32KB 1 KB ? ? 4-way
? 512 KB 1 KB 7 ? 8-way
16 GB ? 4 KB 10 ? 4-way
64 MB ? ? 10 ? 4-way
? 512 KB ? 7 ? 8-way
Set Associative mapping
Main memory Cache memory Block size Tag Tad DIR size Set
bits Associa
tive/
No of
lines in
a set
128 KB 16 KB 256 B 4 4 X 26 2-way
32 GB 32KB 1 KB 22 22 X 32 4-way