


























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
These are the Lecture Slides of Computer Architecture which includes Machines Address Memory, Notes About Memory, Assembly Language Programmer, Instruction Support for Functions, Jump Register, Nested Procedures, Register Values, Memory Organization etc. Key important points are: Cache Memory, Revisiting Memory Hierarchy, Direct Mapped Cache, Size of Cache, Inputs to Comparator, Advantage of Spatial Locality, Associative Caches, Cache Index, Set Associative Cache
Typology: Slides
1 / 34
This page cannot be seen from the preview
Don't miss anything!



























Blockno. 0 1 2 3 4 5 6 7
Fully associative: block 12 can go anywhere Blockno. 0 1 2 3 4 5 6 7
Direct mapped: block 12 can go only into block 4 (12 mod 8) Blockno. 0 1 2 3 4 5 6 7
Set associative: block 12 can go anywhere in set 0 (12 mod 4)
Set 0
Set 1
Set 2
Set 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
Block-frame address
Blockno. 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 3 3
What is the cache size in this case?
Cache Data Cache Block 0
Cache Tag Valid
Cache Data Cache Block 0
Valid Cache Tag
Cache Index
Sel1 1 Mux^0 Sel
Cache Block
Adr Tag (^) Compare Compare
OR Hit
Direct Mapped N-way Set Associative Fully Associative
Compulsory Miss
Cache Size
Capacity Miss
Coherence Miss
Big Medium Small Same (^) Same Same
Conflict Miss High Medium Zero
Low Medium High Same Same Same
Block offset
Block Address Tag Index
Set Select Data Select
IR
PC I -Cache
D Cache
A B
R
T
IRex
IRm
IRwb
miss
invalid
Miss