Fully Associative Mapping Problems
Fully Associative Mapping Problems
ASSOCIATIVE MAPPING-
Problem-01:
Solution-
Given-
We have,
= 128 KB
= 217 bytes
We have,
Block size
= 256 bytes
= 28 bytes
= 17 bits – 8 bits
= 9 bits
= 16 KB / 256 bytes
= 26 lines
= 26 x 9 bits
= 576 bits
= 72 bytes
Solution-
Given-
We have,
Block size
= 1 KB
= 210 bytes
= 17 bits + 10 bits
= 27 bits
We have,
= 227 bytes
= 128 MB
= 512 KB / 1 KB
= 512 lines
= 29 lines
= 29 x 17 bits
= 8704 bits
= 1088 bytes
Problem-03:
Solution-
Given-
We have,
= 16 GB
= 234 bytes
Thus, Number of bits in physical address = 34 bits
We have,
Block size
= 4 KB
= 212 bytes
= 34 bits – 12 bits
= 22 bits